The average train between Dunfermline and Edinburgh takes 33 min and the fastest train takes 29 min. There is a train service every few hours from Dunfermline to Edinburgh. 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 Edinburgh. 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 Edinburgh at 12:26 AM. All services run direct with no transfers required, and take on average 33 min. The schedules shown below are for the next available departures.
Arrives next day
Want to know about travelling from Dunfermline to Edinburgh? 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.
Yes, there is a direct train departing from Dunfermline station and arriving at Edinburgh station. Services depart hourly, and operate Once daily. The journey takes approximately 33 min.
Dunfermline to Edinburgh train services, operated by ScotRail, depart from Dunfermline Town station.
Dunfermline to Edinburgh train services, operated by ScotRail, arrive at Edinburgh Waverley station.
Book your Dunfermline to Edinburgh train tickets online with ScotRail.
The distance between Dunfermline and Edinburgh is 21 km. The road distance is 27 km.
ScotRail operates a train from Dunfermline Town to Edinburgh Waverley hourly. Tickets cost £7–13 and the journey takes 32 min.