Want to compare two towns side by side?

Compare

Dunfermline vs Edinburgh

Which is better to live in? Distance: 12.0 miles apart.

Share this comparisonWhatsAppXFacebookEmail

The verdict

When it comes to cost of living, Dunfermline wins on house prices with a 41% gap. Edinburgh has the lower crime rate of the two. For families, Dunfermline edges ahead on school quality.

Avg House Price

Dunfermline

£170,439

Edinburgh

£290,946

Crime Rate

Dunfermline

395.3

Edinburgh

103.1

Top-Two School Inspection Bands

Dunfermline

81.8%

Edinburgh

74.3%

Avg Download Speed

Dunfermline

406.5

Edinburgh

434.3

EPC Rating

Dunfermline

60.8

Edinburgh

57.6

Median Income

Dunfermline

£34,867

Edinburgh

£33,529

Property in Edinburgh commands an average of £290,946, compared with £170,439 in Dunfermline – a difference of 41%. The most affordable entry point in Dunfermline is a flat at £107,206, while in Edinburgh it is a flat at £238,069.

Average Price by Property Type (2025)

Biggest gap: terraced homes are 57% pricier in Edinburgh (£362,527 vs £154,290).

Price Trend (23 Years)

Over the last 21 years, Dunfermline prices grew faster — 127% vs 113%.

Residents of Edinburgh experience less crime overall, with a rate of 103.1 per 1,000 versus 395.3 per 1,000 in Dunfermline. The most common crime category in Dunfermline is other-crime, while in Edinburgh it is other-crime.

Crime Rate by Category (per 1,000 residents)

Both towns share the same top crime category: other crime.

Families may prefer Dunfermline, where 81.8% of schools are in the top two inspection bands versus 74.3% in Edinburgh. There are 159 schools in Dunfermline and 39 in Edinburgh.

Dunfermline School Inspection Breakdown

81.8% of 159 schools (142 primary, 17 secondary) sit in the top two inspection bands.

Edinburgh School Inspection Breakdown

74.3% of 39 schools (33 primary, 6 secondary) sit in the top two inspection bands.

MetricDunfermlineEdinburgh
Total Schools15939
Primary14233
Secondary176
% Top two bands81.8%74.3%

Broadband & Connectivity

Average broadband speeds are 434.3 Mbps in Edinburgh and 406.5 Mbps in Dunfermline. Superfast coverage (30 Mbps+) reaches 97.1% of premises in Dunfermline and 95.7% in Edinburgh. Gigabit availability stands at 78% in Dunfermline and 84.2% in Edinburgh.

Edinburgh is the faster of the two by 7% on average download speed (434 vs 407 Mbps).

Energy Efficiency & Running Costs

Energy efficiency favours Dunfermline, scoring 60.8 on average (band D) compared to 57.6 (band D) in Edinburgh. Estimated annual energy costs average £1,533 in Dunfermline and £1,717 in Edinburgh. 38.6% of homes in Dunfermline have an EPC rating of C or above, compared to 26.9% in Edinburgh.

Dunfermline has more energy-efficient housing — 38.6% reach band C or above, vs 26.9% in the other.

Demographics & Economy

Median household income is £34,867 in Dunfermline and £33,529 in Edinburgh. The median age is 42.4 in Dunfermline and 41.2 in Edinburgh. Employment rates stand at 72.2% in Dunfermline and 71.9% in Edinburgh. Owner-occupancy is 55.7% in Dunfermline versus 60.4% in Edinburgh. Dunfermline has a population of 74,380 and Edinburgh has 512,150.

IndicatorDunfermlineEdinburgh
Population74,380512,150
Median Age42.441.2
Median Household Income£34,867£33,529
Employment Rate72.2%71.9%
Owner Occupied55.7%60.4%
Degree-Level Qualified25.5%20.1%

Location

Loading map...

Common questions

Frequently asked questions

How far apart are Dunfermline and Edinburgh?
Dunfermline and Edinburgh are approximately 12.0 miles apart as the crow flies.
Which is cheaper to buy a house in, Dunfermline or Edinburgh?
Dunfermline is cheaper, with an average house price of £170,439.
Is Dunfermline or Edinburgh safer?
Edinburgh has the lower crime rate at 103.1 per 1,000 residents.
Which has better schools, Dunfermline or Edinburgh?
Dunfermline has the higher share of schools in the top two inspection bands at 81.8%.
Which has faster broadband, Dunfermline or Edinburgh?
Edinburgh has faster average broadband at 434.3 Mbps.

Keep exploring

Related comparisons