There are 5 ways to get from Dunfermline to Midlothian by train, bus, car, or taxi
Select an option below to see step-by-step directions and to compare ticket prices and travel times in Rome2Rio's travel planner.
Train
best- Take the train from Dunfermline Town to Edinburgh Waverleytrain Leven - Edinburgh / ...
- Take the train from Edinburgh Waverley to Gorebridgetrain Edinburgh - Tweedbank
1h 32m£10–18Bus, line 31 bus
cheapest- Take the bus from St Leonard's Church to Queensferry Streetbus X55
- Take the bus from Shandwick Place to Burnbrae Roadbus 31 / ...
1h 53m£7–9Drive 29.6 mi
- Drive from Dunfermline to Midlothiancar 29.6 mi
39 min£7–11Taxi
- Take the taxi from Dunfermline to Midlothiantaxi 29.6 mi
39 min£130–160Bus, line 29 bus
- Take the bus from Bus Station to Princes Streetbus X55
- Take the bus from Frederick Street to Arniston Enginebus 29
2h 5m£8–9
Dunfermline to Midlothian by train
Comparing Your Travel Options
The cheapest way to get from Dunfermline to Midlothian is to bus and line 31 bus which costs £7 - £10 and takes 1h 53m.
The fastest way to get from Dunfermline to Midlothian is to drive which takes 39 min and costs £7 - £11.
No, there is no direct bus from Dunfermline to Midlothian. However, there are services departing from St Leonard's Church and arriving at Burnbrae Road via Shandwick Place. The journey, including transfers, takes approximately 1h 53m.
No, there is no direct train from Dunfermline to Midlothian. However, there are services departing from Dunfermline Town and arriving at Gorebridge via Edinburgh Waverley. The journey, including transfers, takes approximately 1h 32m.
The distance between Dunfermline and Midlothian is 28 miles. The road distance is 29.8 miles.
The best way to get from Dunfermline to Midlothian without a car is to train which takes 1h 32m and costs £10 - £19.
It takes approximately 1h 32m to get from Dunfermline to Midlothian, including transfers.
Dunfermline to Midlothian bus services, operated by Stagecoach East Scotland, depart from St Leonard's Church station.
Dunfermline to Midlothian train services, operated by ScotRail, depart from Dunfermline Town station.
The best way to get from Dunfermline to Midlothian is to train which takes 1h 32m and costs £10 - £19. Alternatively, you can bus and line 31 bus, which costs £7 - £10 and takes 1h 53m.
What companies run services between Dunfermline, Scotland and Midlothian, Scotland?
You can take a train from Dunfermline Town to Gorebridge via Edinburgh Waverley in around 1h 32m. Alternatively, you can take a bus from St Leonard's Church to Burnbrae Road via Queensferry Street and Shandwick Place in around 1h 53m.
- Phone
- +44 (0)344 811 0141
- Website
- ScotRail
Train from Dunfermline Town to Edinburgh Waverley
- Ave. Duration
- 38 min
- Frequency
- Hourly
- Estimated price
- £6–11
- Website
- ScotRail
Train from Edinburgh Waverley to Gorebridge
- Ave. Duration
- 29 min
- Frequency
- Hourly
- Estimated price
- £4–8
- Website
- ScotRail
- Phone
- 0345 241 8000
- [email protected]
- Website
- Stagecoach East Scotland
Bus from St Leonard's Church to Queensferry Street
- Ave. Duration
- 44 min
- Frequency
- Every 30 minutes
- Estimated price
- £4–7
- Website
- Stagecoach East Scotland
Bus from Bus Station to Princes Street
- Ave. Duration
- 52 min
- Frequency
- Every 30 minutes
- Estimated price
- £4–7
- Website
- Stagecoach East Scotland
- Phone
- +44 131 555 6363
- Website
- Lothian
Bus from Shandwick Place to Burnbrae Road
- Ave. Duration
- 50 min
- Frequency
- Every 30 minutes
- Estimated price
- £3
- Website
- Lothian
Bus from Frederick Street to Arniston Engine
- Ave. Duration
- 58 min
- Frequency
- Every 30 minutes
- Estimated price
- £3
- Website
- Lothian
- Ave. Duration
- 39 min
- Estimated price
- £130–160
Want to know more about travelling around United Kingdom
Rome2Rio's Travel Guide series provide vital information for the global traveller. Filled with useful and timely travel information, the guides answer all the hard questions - such as 'How do I buy a ticket?', 'Should I book online before I travel? ', 'How much should I expect to pay?', 'Do the trains and buses have Wifi?' - to help you get the most out of your next trip.
Related travel guides
Travelling to the UK: What do I need to know?
Read the travel guide
Booking & Getting There
Dunfermline to Midlothian bus services, operated by Stagecoach East Scotland, arrive at Queensferry Street station.
Dunfermline to Midlothian train services, operated by ScotRail, arrive at Edinburgh Waverley station.
Yes, the driving distance between Dunfermline to Midlothian is 30 miles. It takes approximately 39 min to drive from Dunfermline to Midlothian.
Book your Dunfermline to Midlothian train tickets online with Omio.
There are 400+ hotels available in Midlothian.

















