Photo: Jim Barton · CC BY-SA 2.064% 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 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).
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.
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+
■ Mayfield, 40.4. The typical town is 44.4.
Broad ages · share of residents
Women and men · all residents
52% women, 48% men
About 93 men for every 100 women. Across Scotland, 51% of residents are women.
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
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.
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.
Against Midlothian’s towns and Scotland’s towns
People per household
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.
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
Cars or vans · share of households
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.
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%
When those born abroad arrived
Main language · residents aged 3 and over
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%).
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
White British, not charted: 92% of Mayfield · Midlothian’s towns 90% · Scotland’s towns 86%.
Religion · all residents
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%).
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
Unpaid care given · share of residents 3 and over
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%.
Degree-level qualifications: held by 20% of adults
Highest qualification, residents 16 and over, Census 2022.
Highest qualification · residents 16 and over
With 20% of its adults qualified to degree level, Mayfield compares with 32% across Scotland’s towns; another 21% hold no qualification (17%).
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.
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).
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.
| Town | People | Away | Median age | 65+ | Homes with children |
|---|---|---|---|---|---|
| Mayfield | 14,259 | — | 40.4 | 17% | 29% |
| Dalkeith | 15,125 | 1.5 mi | 41.2 | 19% | 28% |
| Gorebridge | 8,900 | 1.8 mi | 36.1 | 13% | 35% |
| Bonnyrigg | 18,088 | 2.2 mi | 42.4 | 19% | 31% |
| Danderhall | 3,389 | 3.7 mi | 39.6 | 18% | 29% |
| Loanhead | 7,007 | 4.1 mi | 46 | 23% | 24% |
| Musselburgh | 21,476 | 4.8 mi | 41.6 | 19% | 23% |
| Wallyford | 4,493 | 4.8 mi | 35.9 | 13% | 34% |
Health, work and homes have their own pages
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.