The average train between Dunfermline and Musselburgh takes 1h 5m and the fastest train takes 40 min. There is a train service every few hours from Dunfermline to Musselburgh. The journey time may be longer on weekends and holidays; use the search form on this page to search for a specific travel date.
Trains run hourly between Dunfermline and Musselburgh. The earliest departure is at 6:26 AM in the morning, and the last departure from Dunfermline is at 11:51 PM which arrives into Musselburgh at 9:43 AM. All services require a transfer, and take on average 1h 5m. The schedules shown below are for the next available departures.

54 min • 1 change

1h 1m • 1 change

1h 6m • 1 change

47 min • 1 change

49 min • 1 change

1h 22m • 1 change

53 min • 1 change

1h 4m • 1 change

58 min • 1 change

1h 19m • 1 change

1h 19m • 1 change

1h 16m • 1 change
Want to know about travelling from Dunfermline to Musselburgh? We have put together a list of the most frequently asked questions from our users such as: What is the cheapest mode of transport? What is the quickest option? How much do tickets usually cost? and many more.
No, there is no direct train from Dunfermline to Musselburgh. However, there are services departing from Dunfermline station and arriving at Musselburgh station via Edinburgh Waverley. The journey, including transfers, takes approximately 1h 5m.
Dunfermline to Musselburgh train services, operated by ScotRail, depart from Dunfermline Town station.
Dunfermline to Musselburgh train services, operated by ScotRail, arrive at Edinburgh Waverley station.
Book your Dunfermline to Musselburgh train tickets online with ScotRail.
The distance between Dunfermline and Musselburgh is 29.2 km. The road distance is 35 km.
ScotRail operates a train from Dunfermline Town to Edinburgh Waverley hourly. Tickets cost £7–13 and the journey takes 38 min.