How to travel from Dunfermline to Edinburgh, United Kingdom

The distance between Dunfermline and Edinburgh is around 25km (16 miles) and the quickest way to get there is to take a taxi which takes around 26min.

4 routes found

We've found 4 different ways to get from Dunfermline to Edinburgh by train, bus, taxi and car. The recommended routes, which include information on duration, ticket price, and level of difficulty, can be found below.

👋 Also check out EdinburghDunfermline if you're planning a return trip.

💰 Cheapest
1
train
+

Train

Take the train to Edinburgh.

  • Duration36min
  • Departshourly
  • Typical cost
    £4($5)
Operated by

First ScotRail Service

2
bus
+

Bus

Take the bus to Edinburgh Princes Street.

  • Duration45min
  • Departsevery 20 mins
  • Typical cost
    £4($5)
Operated by

Stagecoach East Scotland

🚀 Fastest
3
taxi
+

Taxi

Take a taxi to Edinburgh.

  • Duration26min
  • Departson demand
  • Typical cost
    £46($55)
Operated by

Uptown Cabs

+ 2 others
4
car
+

Drive

Drive to Edinburgh.

  • Duration26min
  • Distance29km (18 miles)
Get turn-by-turn directions

Frequently asked questionsabout travel between Dunfermline and Edinburgh

There are several options for getting from Dunfermline to Edinburgh by train, bus, taxi and car. The cheapest option is to take the train which costs around £4 ($5) and will take around 36min. If you need to get there more quickly, you can take a taxi and arrive in approximately 26min, though it is a bit more costly at approximately £46 ($55).

The distance between Dunfermline and Edinburgh is around 25km (16 miles). In a direct line (as the crow flies), the distance is 21km (13 miles)

It takes around 36min to get from Dunfermline and Edinburgh by train. If you are travelling by car it will take around 26min to drive there.

The quickest way to get from Dunfermline to Edinburgh is to take a taxi which takes around 26min and will set you back approx £46 ($55).

The cheapest way to travel between Dunfermline and Edinburgh, if you exclude driving, is to take the train which will typically cost around £4 ($5) for a standard one-way ticket.

Train travel

Yes there is a train service that runs between Dunfermline and Edinburgh. It typically takes around 36min and departs hourly.

Yes there is a direct train service that runs between Dunfermline and Edinburgh with no changeovers required. The train runs hourly and takes 36min.

First ScotRail Service run train services between Dunfermline and Edinburgh. Trains depart hourly and will take around 36min, however, this may vary depending on the particular service and whether it runs express or stops all stations.

Bus travel

Yes there is a bus that runs regularly from Dunfermline and Edinburgh. It typically takes around 45min and departs hourly.

Yes there is a direct bus service that runs between Dunfermline and Edinburgh with no changeovers required. The bus runs hourly and takes 45min.

Stagecoach East Scotland run regular bus services between Dunfermline and Edinburgh. Buses run hourly and take around 45min on average but will vary depending on you book with.

Flights and Airlines

It doesn't look like you can fly directly from Dunfermline to Edinburgh. We recommend that you take the train to Edinburgh. instead which will take 36min.

The closest major airport to Edinburgh is Edinburgh Airport (EDI) (EDI) which is approximately 11km (7 miles) from Edinburgh. Dundee Airport (DND) (DND) and Glasgow Airport (GLA) (GLA) are also nearby and might be a better alternative airport depending on where you are flying from.

Drive yourself

Yes it is possible to drive from Dunfermline and Edinburgh. The distance is around 29km (18 miles) by road and it will take around 26min in normal traffic conditons.

If you don't have a car, the easiest way to get from Dunfermline to Edinburgh is to take the train which takes, on average, 36min and will usually cost around £4 ($5).

How do I get from Dunfermline to Edinburgh

Compare travel optionsbetween Dunfermline and Edinburgh

Transport options from Dunfermline to Edinburgh
Transport optionDurationCostFrequencyDistance
Train
36min
£4($5)
hourly27km (17 miles)
Bus
45min
£4($5)
every 20 mins25km (16 miles)
Taxi
26min
£46($55)
on demand29km (18 miles)
Drive
26min
£5($6)
on demand29km (18 miles)

Top Carriersoperating between Dunfermline and Edinburgh

Train operators

Bus companies

Airports near Edinburgh

The following major airports near Edinburgh offer regular flights to various popular destinations within United Kingdom and internationally.

EDI
Edinburgh Airport (EDI)
International Airport
Distance
11km (7 miles) from Edinburgh
DND
Dundee Airport (DND)
Domestic Airport
Distance
57km (35 miles) from Edinburgh
GLA
Glasgow Airport (GLA)
International Airport
Distance
78km (48 miles) from Edinburgh