At a glance

FactorShanghaiMadrid
Average international school fees (primary)USD 16,500 to 27,500USD 9,500 to 18,000
Average international school fees (secondary)USD 25,000 to 36,000USD 19,000 to 32,000
Dominant curriculaIB and AmericanBritish, American and IB with strong bilingual Spanish
Family visaChina Z work visa with S1 dependant visa for spouse and minor children, residence permit renewable annuallySpain non lucrative visa, digital nomad visa or work permit, with straightforward dependant inclusion for spouses and children under 18
Expat share of populationabout 1.5 percent of the city's registered population but concentrated in expat clustersabout 18 percent of the city proper, rising in the northern suburbs
RegulatorShanghai Municipal Education Commission with foreign-only schools restricted to non-Chinese passport holdersComunidad de Madrid education authority with autorizacion required for non concertado private schools
Typical relocation timeline10 to 14 weeks8 to 12 weeks

Madrid sits at around half the cost of central Shanghai once housing and Western groceries are added back, but secondary school fees in both cities sit in a similar premium band. Shanghai wins on Mandarin acquisition and Asia career exposure. Madrid wins on outdoor lifestyle, healthcare and European university routes.

Schools landscape side by side

Shanghai's market is regulated by Shanghai Municipal Education Commission with foreign-only schools restricted to non-Chinese passport holders, with more than 40 schools registered for foreign passport holders citywide. The schools families most often shortlist are Shanghai American School (SAS), Concordia International School Shanghai, Dulwich College Shanghai, Shanghai Community International School (SCIS) and Wellington College International Shanghai. Shanghai families tend to apply 6 to 12 months ahead of the academic year for premium places.

Madrid's market is regulated by Comunidad de Madrid education authority with autorizacion required for non concertado private schools, with around 90 private and international schools across the Comunidad de Madrid. The premium tier families talk about includes International College Spain (ICS), American School of Madrid (ASM), Hastings School, St George's British International School and The British Council School. Use our compare tool to put three schools side by side, then ask each one for last year's IB Diploma or A Level results in writing.

Both cities publish inspection or accreditation data that lets parents validate a brand before they visit. See our Shanghai city hub and Madrid city hub for full school directories and catchment notes.

Not sure which city fits your family?

Take the 5 minute school finder quiz, then run the cost calculator for both cities. You get shortlisted schools plus a side by side relocation budget in under ten minutes.

Fees and value for money

Annual primary tuition in Shanghai runs USD 16,500 to 27,500 (CNY 120,000 to 200,000), with secondary at USD 25,000 to 36,000 (CNY 180,000 to 260,000). In Madrid, primary tuition runs USD 9,500 to 18,000 (EUR 9,000 to 17,000), with secondary at USD 19,000 to 32,000 (EUR 18,000 to 30,000). Premium IB and British schools sit at the top of each range, and capital levies, transport and lunches add 15 to 25 percent on top of headline tuition in both cities.

For an all-in load including transport and capital levies see our Shanghai fees guide and Madrid fees guide. Model a five year per child total in the cost calculator before you commit.

Curriculum availability

Shanghai covers IB, British IGCSE and A Level, American AP and Chinese bilingual options, while Madrid covers Spanish national plus British IGCSE and A Level, American AP, IB and bilingual Spanish-English. The IB Diploma is the safest portable credential in either city for families who may move again within five years. For curriculum specific deep dives see our IB hub, British curriculum hub and American curriculum hub.

Neighbourhoods families pick

In Shanghai, international school families cluster in Jinqiao, Hongqiao, Gubei, the French Concession and Pudong's Lujiazui. Expect rents of CNY 28,000 to 55,000 per month for a four bedroom villa in Jinqiao or Hongqiao, with school-bus routes from these catchments to the major school clusters. In Madrid, the equivalent catchments are La Moraleja, Pozuelo de Alarcon, Aravaca, Las Rozas, Somosaguas and central Salamanca, where rents sit at EUR 2,800 to 5,000 per month for a four bedroom villa in La Moraleja or Pozuelo. Plan around the school first and the postcode second; commute times in both cities can be brutal in rush hour.

Lifestyle and climate

Shanghai: Humid subtropical with hot wet summers above 35 degrees, cold damp winters and a long pleasant spring and autumn. Mandarin for daily life is helpful but not essential in expat areas; English dominates international business and schooling. Daily life leans on fast paced corporate Asia, world class food and direct hubs to Tokyo, Seoul and Singapore.

Madrid: Continental Mediterranean with hot dry summers above 35 degrees Celsius and cold sunny winters around 5 to 10 degrees. Spanish is helpful but English carries you through international schools, healthcare and most expat services. Daily life leans on long lunches, late dinners, family-first culture and quick weekend access to the coast and the Pyrenees. Climate and working language tend to be the deciding factors once cost and curriculum are roughly equal.

Verdict: who picks which city

Pick Shanghai when

Pick Shanghai if you want Mandarin immersion, an Asia mandate and employer packages large enough to cover fees and housing. It is the better fit for families with a clear Asia career horizon.

Pick Madrid when

Pick Madrid if value, EU mobility and a family-first culture matter more than Asia exposure. It is one of the strongest value plays for international school families anywhere in Europe.

Most families run both cities through the cost calculator before they commit, and use the school finder to shortlist three concrete options at each end before booking visits.

Frequently asked questions

Can children get IB Diploma access in both cities?

Yes. Top schools in Shanghai (SCIS, SAS, Concordia) and Madrid (ICS, ASM) all offer the IB Diploma with strong global placements.

How does cost of living compare?

Excluding rent, Numbeo's 2026 indices put Madrid around 35 to 50 percent higher than Shanghai for everyday goods, but central Shanghai rents and international school fees close the gap quickly.

Which city is easier for non-Mandarin and non-Spanish speakers?

Madrid by a clear margin. English carries you through international schools, healthcare and most expat services; Spanish accelerates everything else within a few months of arrival.

What is the long term residency picture?

Madrid offers a route to Spanish residency and EU citizenship over time. Shanghai offers renewable residence permits tied to employment with no citizenship path for foreign families.