Guest, Sign inJoin
Main Street, NewtongrangePhoto: Jim Barton · CC BY-SA 2.0
40.4Median age
Who lives here · Scotland’s Census 2022

64% said they have no religion, more than in 99% of UK towns

Across Scotland’s towns, 29% of households have no car or van; in Mayfield, 25%. The 2022 Census counted 14,259 residents in 6,103 households. In Mayfield, 37% of households live in a terraced house. With a median age of 40.4, Mayfield is younger than 78% of UK towns.

What stands out · In brief

What the Census says about Mayfield’s people

More with no religion than most

64% of residents answered “no religion” in 2021 and 29% Christian, against 51% and 39% across Scotland’s towns. Ethnicity & religion ↓

Written from the data on this page: Scotland’s Census 2022 (output areas summed to the 2022 locality).

Ages

A smaller share of residents aged 65 and over than 82% of UK towns: 17%

Share of residents in each five-year age band, Census 2022.

MayfieldScotland’s towns
0–410–1420–2430–3440–4450–5460–6470–7480–84

50–54 is the most common age band: 7.4% of residents. By way of comparison, 19% of residents are 65 or over across Scotland’s towns. Higher than in 83% of UK towns: 11% of residents are aged 15 to 24. In Loanhead, the oldest of Midlothian’s towns by this measure, it is 23%.

Median age of UK towns of 2,500+

2535455565

■ Mayfield, 40.4. The typical town is 44.4.

Broad ages · share of residents

Under 1519%
15 to 2411%
25 to 4426%
45 to 6427%
65 and over17%
MayfieldMidlothian’s townsScotland’s towns

Women and men · all residents

52% women, 48% men

Mayfield
Scotland
WomenMen

About 93 men for every 100 women. Across Scotland, 51% of residents are women.

Students & newcomers

Full-time students: 4.8%, a higher share than 51% of UK towns

What adults did at the 2022 Census (the NS-SEC classes).

Adults by occupation class · residents 16 and over

Full-time students4.8%
Higher managerial and professional8.4%
Lower managerial and professional17%
Intermediate13%
Small employers and self-employed7.8%
Supervisory and technical8.7%
Semi-routine14%
Routine18%
Never worked or long-term unemployed7.3%
MayfieldMidlothian’s townsScotland’s towns

Across Scotland’s towns, 33% of adults are in managerial and professional jobs and 25% in routine work; in Mayfield, 26% and 32%. Against that, 9.4% of adults are full-time students across Scotland’s towns.

Households

Mayfield: 29% of households have dependent children, above 69% of UK towns

Household make-up at the 2022 Census. Each square is 1% of households.

Living alone, 66+ 13%Living alone, under 66 17%Families with dependent children 30%Couples and families, no young children 38%Shared houses and other 2.7%

Against Midlothian’s towns and Scotland’s towns

Mayfield
Midlothian’s towns
Scotland’s towns

People per household

1 person30%
2 people33%
3 people17%
4 people13%
5 or more6.2%

Scotland’s towns.

Across Scotland’s towns, households average 2.1 people; in Mayfield, 2.3. For comparison, 24% of households have dependent children across Scotland’s towns. On the census count, 2.7% of households are unrelated adults sharing a home. Compared with other places, one-person households are common here: 30%, more than in 53% of UK towns.

Homes & cars

Households in flats: 19%, a higher share than 82% of UK towns

Accommodation type and cars or vans per household, Census 2022. Owning and renting are on Cost of living.

Type of home

Mayfield
Midlothian’s towns
Scotland’s towns
DetachedSemi-detachedTerracedFlat or maisonetteCaravan or other

Cars or vans · share of households

No car or van25%
One44%
Two24%
Three or more7.5%
MayfieldMidlothian’s townsScotland’s towns

Households in detached houses: 16%, below 83% of UK towns. Against that, 39% of households live in a flat or apartment across Scotland’s towns.

Where people were born

Mayfield ranks below 72% of UK towns on residents whose main language is English: 96%

Country of birth, year of arrival and main language, Census 2022.

Born outside the UK, by region · share of all residents; the bar runs to 15%

Mayfield
7%
Midlothian’s towns
7.8%
Scotland’s towns
11%
EU countriesRest of EuropeMiddle East and AsiaAfricaAmericas, Oceania, other

When those born abroad arrived

MayfieldScotland’s towns
Before 19711971–801981–901991–20002001–102011–132014–162017–192020–21

Main language · residents aged 3 and over

English is main language96%
MayfieldMidlothian’s townsScotland’s towns

Residents born abroad were most often born in EU countries (4.6%), then in the Middle East and Asia (0.9%). Against that, 94% of residents have English as their main language across Scotland’s towns. At 6.7%, the share of residents born outside the UK is higher than in 53% of UK towns. Recent arrivals (2017 or later) make up 13% of those born abroad (Scotland’s towns: 34%).

Ethnicity & religion

Fewer residents who describe themselves as Christian than 99% of UK towns: 29%

How residents described themselves at the 2022 Census. Lines join the lowest and highest of the three figures.

Ethnic groups other than White British · all residents

MayfieldMidlothian’s townsScotland’s towns
Other White5.7%
Asian1.1%
Mixed0.9%
Black0.6%
Other0.5%
0%4%8%

White British, not charted: 92% of Mayfield · Midlothian’s towns 90% · Scotland’s towns 86%.

Religion · all residents

MayfieldMidlothian’s townsScotland’s towns
No religion64%
Christian29%
Muslim0.6%
Hindu, Sikh, Jewish, Buddhist0.4%
Other religion0.5%
Didn’t answer6%
0%40%80%

86% of residents describe themselves as White British across Scotland’s towns, against 92% in Mayfield. The wider picture: nearly two in five residents describe themselves as Christian across Scotland’s towns. Besides White British, the main groups are Other White (5.7%), Mixed or multiple (0.9%) and African (0.5%).

Relationships & caring

Above 76% of UK towns: 37% of adults have never married or formed a civil partnership

Legal partnership status (residents 16 and over) and unpaid care (residents 3 and over), Census 2022.

Partnership status · residents 16 and over

Never married or in a civil partnership37%
Married or civil partnership44%
Separated2.5%
Divorced10%
Widowed6.8%
MayfieldMidlothian’s townsScotland’s towns
1,796residents give unpaid care to someone with an illness, disability or old age: 13%, against 12% in Scotland’s towns

Unpaid care given · share of residents 3 and over

Up to 19 hours a week6.6%
20 to 49 hours2.9%
50 hours or more3.5%

Some 480 people give 50 hours or more of unpaid care a week. Adults who have never married: 40% across Scotland’s towns, for comparison. Mayfield has fewer married adults and civil partners than 78% of UK towns, at 44%. Here 13% of residents give unpaid care, where the figure across Scotland’s towns is 12%.

Qualifications

Degree-level qualifications: held by 20% of adults

Highest qualification, residents 16 and over, Census 2022.

Highest qualification · residents 16 and over

No qualifications21%
Apprenticeship9.6%
Highers or similar10%
Degree level20%
MayfieldMidlothian’s townsScotland’s towns

With 20% of its adults qualified to degree level, Mayfield compares with 32% across Scotland’s towns; another 21% hold no qualification (17%).

Towns its size

361 UK towns of 10,000 to 19,000 people: this is the 60th youngest

Median age, Census 2022. Hover a dot for its students and residents born abroad; click for its page.

Mayfield 40.4
AberystwythSidmouthFlackwell Heath and Wooburn Green
244362

Ages run from 25 in Aberystwyth to 60.4 in Sidmouth. Nearest to Mayfield in age: Connah's Quay (40.4), Haverfordwest (40.4), Towcester (40.5) and Waltham Abbey (40.6).

Neighbours

Mayfield and its 7 nearest towns: 4 of them are older

Nearby towns coloured by median age, Census 2022. Tap a town for its page.

DalkeithGorebridgeBonnyriggDanderhallLoanheadMusselburghWallyfordMayfield
under 3838–4444–5050–5656+
TownPeopleAwayMedian age65+Homes with children
Mayfield14,259—40.417%29%
Dalkeith15,1251.5 mi41.219%28%
Gorebridge8,9001.8 mi36.113%35%
Bonnyrigg18,0882.2 mi42.419%31%
Danderhall3,3893.7 mi39.618%29%
Loanhead7,0074.1 mi4623%24%
Musselburgh21,4764.8 mi41.619%23%
Wallyford4,4934.8 mi35.913%34%
More about Mayfield’s residents

Health, work and homes have their own pages

How to read these numbers

What this data can and can’t tell you

  • “Midlothian’s towns” and “Scotland’s towns” mean their towns. Census comparisons pool every locality in Midlothian (or Scotland), summed the same way as Mayfield’s figures, so households in open countryside are left out.
  • Small counts are blurred. National Records of Scotland adjusts small Census counts to protect privacy, so the same total differs a little between tables, and the shares of a small town can move by a point or two.

Questions about Mayfield’s residents

What is the population of Mayfield?

The 2022 Census counted 14,259 people in Mayfield’s locality.

What is the average age in Mayfield?

The median age was 40.4 at the 2022 Census, younger than 78% of UK towns. 11% of residents were 15 to 24 and 17% were 65 or over.

How diverse is Mayfield?

92% of residents described themselves as White British in 2022, against 86% across Scotland’s towns and 90% across Midlothian’s towns. 6.7% were born outside the UK.

What religion are people in Mayfield?

64% said they had no religion and 29% that they were Christian at the 2022 Census; 0.6% were Muslim and 6% didn’t answer.

Is Mayfield good for families?

29% of households had dependent children in 2022, against 24% across Scotland’s towns. Schools are on Mayfield’s schools page.

Sources: Scotland’s Census 2022 (National Records of Scotland), output areas summed to the NRS 2022 locality (UV101b, UV103, UV104, UV113, UV201, UV204b, UV205, UV212, UV301, UV402, UV405, UV406, UV501, UV607, UV801). Open Government Licence v3.0.

Contains public sector information licensed under the Open Government Licence v3.0. Contains HM Land Registry data © Crown copyright and database right 2026. Contains OS data © Crown copyright and database right 2026 (ONS boundaries). Northern Ireland: Source: NISRA; contains Land & Property Services data and Ordnance Survey of Northern Ireland information, © Crown copyright, licensed under the Open Government Licence v3.0. Scotland: contains National Records of Scotland data, Registers of Scotland data and SEPA data, © Crown copyright / © SEPA 2025, licensed under the Open Government Licence v3.0.