There are 5 ways to get from Midlothian to Dunfermline 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 Gorebridge to Edinburgh WaverleyTweedbank - Edinburgh
- Take the train from Edinburgh Waverley to Dunfermline TownEdinburgh - Cowdenbeath / ...
1h 38m£16–17Line 29 bus, bus
cheapest- Take the bus from Terminus to Frederick Street29
- Take the bus from Princes Street to Bus StationX55
2h 5m£5–7Bus
- Take the bus from Shank Bridge to Edinburgh, Bus StationX95
- Take the bus from Edinburgh, Bus Station to Kingsgate CentreX55
1h 54m£7–10Drive 29.4 mi
- Drive from Midlothian to Dunfermline29.4 mi
39 min£8–11Taxi
- Take the taxi from Midlothian to Dunfermline29.4 mi
39 min£60–75
Midlothian to Dunfermline by train
Questions & Answers
The cheapest way to get from Midlothian to Dunfermline is to line 29 bus and bus which costs £4 - £7 and takes 2h 5m.
The fastest way to get from Midlothian to Dunfermline is to drive which takes 39 min and costs £7 - £11.
No, there is no direct bus from Midlothian to Dunfermline. However, there are services departing from Shank Bridge and arriving at Kingsgate Centre via Edinburgh, Bus Station. The journey, including transfers, takes approximately 1h 54m.
No, there is no direct train from Midlothian to Dunfermline. However, there are services departing from Gorebridge and arriving at Dunfermline Town via Edinburgh Waverley. The journey, including transfers, takes approximately 1h 38m.
The distance between Midlothian and Dunfermline is 28 miles. The road distance is 29.6 miles.
The best way to get from Midlothian to Dunfermline without a car is to train which takes 1h 38m and costs £16 - £18.
It takes approximately 1h 38m to get from Midlothian to Dunfermline, including transfers.
Midlothian to Dunfermline bus services, operated by Borders Buses, depart from Shank Bridge station.
Midlothian to Dunfermline train services, operated by ScotRail, depart from Gorebridge station.
The best way to get from Midlothian to Dunfermline is to train which takes 1h 38m and costs £16 - £18. Alternatively, you can bus, which costs £6 - £10 and takes 1h 54m.
What companies run services between Midlothian, Scotland and Dunfermline, Scotland?
You can take a train from Gorebridge to Dunfermline Town via Edinburgh Waverley in around 1h 38m. Alternatively, you can take a bus from Shank Bridge to Kingsgate Centre via Edinburgh, Bus Station in around 1h 54m.
Transport is disrupted due to the Russia-Ukraine war. Read more
- Phone
- +44 344 811 0141
- Website
- scotrail.co.uk
Train from Gorebridge to Edinburgh Waverley
- Ave. Duration
- 28 min
- Frequency
- Hourly
- Estimated price
- £8–9
- Website
- https://www.scotrail.co.uk/
Train from Edinburgh Waverley to Dunfermline Town
- Ave. Duration
- 32 min
- Frequency
- Hourly
- Estimated price
- £8–9
- Website
- https://www.scotrail.co.uk/
- Phone
- 01896 754350
- info@bordersbuses.co.uk
- Website
- bordersbuses.co.uk
Bus from Shank Bridge to Edinburgh, Bus Station
- Ave. Duration
- 52 min
- Frequency
- Hourly
- Estimated price
- £3–5
- Website
- https://www.bordersbuses.co.uk/
- Phone
- 0345 241 8000
- customer.services@stagecoachbus.com
- Website
- stagecoachbus.com
Bus from Edinburgh, Bus Station to Kingsgate Centre
- Ave. Duration
- 59 min
- Frequency
- Every 10 minutes
- Estimated price
- £3–5
- Website
- https://www.stagecoachbus.com
Bus from Princes Street to Bus Station
- Ave. Duration
- 52 min
- Frequency
- Every 10 minutes
- Estimated price
- £3–5
- Website
- https://www.stagecoachbus.com
- Phone
- +44 131 555 6363
- Website
- lothianbuses.com
Bus from Terminus to Frederick Street
- Ave. Duration
- 1h 10m
- Frequency
- Every 15 minutes
- Estimated price
- £2
- Website
- https://www.lothianbuses.com/
- Ave. Duration
- 39 min
- Estimated price
- £60–75
Swift Private Hire Taxis
- Phone
- +44 131 660 5000
- Website
- swiftprivatehire.co.uk
Aerial ABW Cabs
- Phone
- +44 131 663 3232
- Website
- aerialabwcabs.co.uk
Abbey Cabs Dalkeith
- Phone
- +44 131 357 7444
- Website
- abbeycabsdalkeith.co.uk
Toun Taxis
- Phone
- +44 131 665 0077
- Website
- toun-taxis.co.uk
R & J's Taxis
- Phone
- +44 131 665 2020
Musselburgh Taxis
- Phone
- +44 131 665 2121
- Website
- musselburghtaxis.com
9090 Taxis
- Phone
- +44 131 665 9090
- Website
- 9090taxis.com
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
More Questions & Answers
Midlothian to Dunfermline bus services, operated by Borders Buses, arrive at Edinburgh, Bus Station.
Midlothian to Dunfermline train services, operated by ScotRail, arrive at Edinburgh Waverley station.
Yes, the driving distance between Midlothian to Dunfermline is 30 miles. It takes approximately 39 min to drive from Midlothian to Dunfermline.
Book your Midlothian to Dunfermline train tickets online with Omio.
There are 2426+ hotels available in Dunfermline.
















