The average train between Musselburgh and Dunfermline takes 1h 10m and the fastest train takes 42 min. There is a train service every few hours from Musselburgh to Dunfermline. 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 Musselburgh and Dunfermline. The earliest departure is at 6:28 AM in the morning, and the last departure from Musselburgh is at 10:49 PM which arrives into Dunfermline at 11:50 PM. All services require a transfer, and take on average 1h 10m. The schedules shown below are for the next available departures.

1h 34m • 1 change

1h 8m • 1 change

1h 34m • 1 change

1h • 1 change

52 min • 1 change

59 min • 1 change

58 min • 1 change

59 min • 1 change

52 min • 1 change

59 min • 1 change

58 min • 1 change

59 min • 1 change
Want to know about travelling from Musselburgh to Dunfermline? 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 Musselburgh to Dunfermline. However, there are services departing from Musselburgh station and arriving at Dunfermline station via Dunfermline Town. The journey, including transfers, takes approximately 1h 10m.
Musselburgh to Dunfermline train services, operated by ScotRail, depart from Edinburgh Waverley station.
Musselburgh to Dunfermline train services, operated by ScotRail, arrive at Dunfermline Town station.
Book your Musselburgh to Dunfermline train tickets online with ScotRail.
The distance between Musselburgh and Dunfermline is 29.2 km. The road distance is 35 km.
ScotRail operates a train from Edinburgh Waverley to Dunfermline Town hourly. Tickets cost £7–13 and the journey takes 32 min.