Mundevo
City comparison·Spain flagMadridvsUnited States flagSan Francisco

Madrid vs San Francisco: cost, size & quality of life compared

By · Figures as of

Trying to decide between Madrid and San Francisco? Here's the honest bottom line first — then the full, sourced breakdown on cost of living, salary, safety and quality of life.

The bottom line

Madrid comes out ahead overall by 1.8 points — a wide edge.

But the "winner" depends on what you care about. Here's who takes each dimension:

Overall
Madrid flagMadrid
Cheaper
Madrid flagMadrid
Quality of life
Madrid flagMadrid
Remote work
Madrid flagMadrid

Composite scores

Overall: Madrid wins by 1.8 points

Madrid composite
7.2 / 10
good
San Francisco composite
5.4 / 10
fair

Population & size

Is Madrid bigger than San Francisco?

Madrid is the bigger city: about 3.5M people versus San Francisco's 809k — roughly 4.3× larger.

Madrid population
3.5M
3,506,730 · Wikidata (2025 estimate)
San Francisco population
809k
808,988 · Wikidata (2023 census)

Population of the administrative city, from Wikidata, unless noted. Censuses and estimates come from different years, so treat a gap under ~10% as a tie. Size is one input — scroll on for cost of living, salary equivalence and quality-of-life scoring.

National income

Is Madrid richer than San Francisco?

The United States is the higher earner — average annual wage of $73,520 against $57,517 in Spain, about 28% more in purchasing-power terms.

Spain · average annual wage
$57,517
OECD, 2025 · USD PPP
United States · average annual wage
$73,520
OECD, 2025 · USD PPP

Country-level figures — Madrid is not Spain and San Francisco is not United States, and a big city usually pays above its national average. Gross, before tax: see take-home pay by country for what lands in the account.

Distance

How far is Madrid from San Francisco?

Madrid is about 9,320 km (5,790 mi) from San Francisco in a straight line — roughly 11 h 45 m of nonstop flight time.

Straight-line
9,320 km
In miles
5,790 mi
Nonstop flight (est.)
11 h 45 m

Great-circle distance, not a routed itinerary; flight estimate assumes ~850 km/h cruise plus 45 minutes of taxi, climb and descent.

Climate

Is Madrid warmer than San Francisco?

Neither is warmer year-round — San Francisco is warmer in January, Madrid in July: January highs average 11°C in Madrid and 15°C in San Francisco, July 34°C and 24°C. San Francisco gets noticeably more sun — about 220 more sunshine hours per year.

Sunshine hours / year (estimated)
Madrid
3,100
San Francisco
3,320 ✓
Rainfall (mm / year) — drier leads
Madrid
450 mm ✓
San Francisco
480 mm
MonthMadridSan Francisco
January (high / low)11° / 1°C15° / 8°C
July (high / low)34° / 19°C24° / 14°C
Madrid

Hot, dry summers and crisp winters. Continental climate with low humidity — comfortable for many but the July heat is intense.

San Francisco

Mild and often foggy. Almost no extremes — summers are cool, winters mild and wet. Microclimates within the city vary wildly.

Editorial description, written by Mundevo; not from a cited source.

Source: ERA5 (Copernicus/ECMWF, CC BY 4.0) via the Open-Meteo open-data mirror on AWS, 2016–2025. Sunshine is estimated from ERA5 solar radiation (FAO-56 Ångström-Prescott), not a station count.

Analyst take

Madrid leads San Francisco on the Mundevo composite, 7.2 to 5.4 out of 10 — a wide edge of 1.8 points across affordability, quality of life, remote-work fit and healthcare.

The composite weights the four axes equally; a reader who weights them differently can land elsewhere, so scan the per-axis breakdown if you have a non-default priority (e.g. air quality, which enters the composite only through the quality-of-life axis).

What to do

Run the salary calculator for both cities at your target lifestyle before deciding — Madrid leading on the composite doesn't mean the gross-salary requirement also lands in your favor. If you're on a balanced tier, the cost-of-living pages for each city carry the full monthly basket and the gross-salary figure.

Data signals

What separates Madrid and San Francisco

  • How decisive

    Madrid comes out ahead by 1.8 composite points — a wide edge.

  • Biggest difference

    The widest gap is affordability, where Madrid leads by 4.4 points.

  • Where they match

    They're most evenly matched on remote-work friendliness — within 0.3 points of each other.

  • Overall cost gap

    On the cost index (New York = 100), Madrid comes out about 49% cheaper than San Francisco.

  • Where budgets split most

    Healthcare is the line item that diverges most: about 5× as much in San Francisco as in Madrid.

  • Size difference

    Madrid is the larger city — about 4.3× the population of the other, which shapes commute times, housing supply and how "big-city" daily life feels.

  • Safety

    Madrid scores higher on safety (94 vs 46 / 100) — a common deciding factor for families.

Score-by-score, side-by-side

Each axis is scored independently with disclosed weights and a calculation string.

Affordability
Madrid
4.4/10 ✓
San Francisco
0.0/10
Quality of life
Madrid
8.6/10 ✓
San Francisco
7.0/10
Remote-work friendliness
Madrid
7.3/10 ✓
San Francisco
7.0/10
Healthcare
Madrid
8.5/10 ✓
San Francisco
7.7/10

The exact scores and winners:

AxisMadridSan FranciscoWinner
Affordability4.40.0Madrid +4.4
Quality of life8.67.0Madrid +1.6
Remote-work friendliness7.37.0Madrid +0.3
Healthcare8.57.7Madrid +0.8

Score card · Madrid

7.2/ 10 compositegood

Each axis is a weighted aggregate of underlying indicators normalized to a 0–10 scale. Weights are explicit and disclosed per axis. The composite is the unweighted mean of the four axes — axes are not collapsed further because the underlying trade-offs (e.g. low cost vs poor air quality) are user-dependent.

Affordability

4.4fair
  • Cost-of-living index (weight 60%)56
  • Rent index (weight 40%)56
How this is calculated

Affordability = (max(0, (100 − costIndex)/100) × 0.6 + max(0, (100 − rentIndex)/100) × 0.4) × 10 (an index above New York's 100 scores 0). For Madrid: (max(0, (100 − 56)/100) × 0.6 + max(0, (100 − 56)/100) × 0.4) × 10 = 4.4.

Madrid is among the more expensive cities tracked. Salary expectations should be calibrated to the high cost base before relocating.

Quality of life

8.6excellent
  • Lethal-violence safety index (weight 40%)94
  • Health-service coverage index (weight 35%)83
  • Air quality index (weight 25%)78
How this is calculated

QoL = (safety/100 × 0.4 + healthcare/100 × 0.35 + airQuality/100 × 0.25) × 10. For Madrid: (94/100 × 0.4 + 83/100 × 0.35 + 78/100 × 0.25) × 10 = 8.6.

Madrid scores excellent on lethal-violence safety, excellent on health-service coverage and good on air. The composite quality-of-life signal is strong.

Remote-work friendliness

7.3good
  • Internet (median Mbps) (weight 45%)82 Mbps
  • Effective income tax (lower = better) (weight 30%)17.1%
  • Cost-of-living (lower = better) (weight 25%)56
How this is calculated

RemoteWork = (min(Mbps/100, 1) × 0.45 + (1 − incomeTax) × 0.3 + max(0, (100 − costIndex)/100) × 0.25) × 10. For Madrid: (min(82/100, 1) × 0.45 + (1 − 0.1706) × 0.3 + max(0, (100 − 56)/100) × 0.25) × 10 = 7.3.

Madrid: fast internet (82 Mbps median), effective income tax of 17% at the national average wage, and cost index 56 — 44% below New York. Together that scores 7.3/10 (good) for remote work.

Healthcare

8.5excellent
  • Health-service coverage index (weight 70%)83
  • Healthcare cost / month, USD (lower = better) (weight 30%)59
How this is calculated

Healthcare = (coverageIndex/100 × 0.7 + max(0, 1 − healthCost in USD/500) × 0.3) × 10 (54 EUR a month at 1.099 USD per EUR). For Madrid: (83/100 × 0.7 + max(0, 1 − 59/500) × 0.3) × 10 = 8.5.

Madrid: health-service coverage is excellent, and typical healthcare spending (out-of-pocket) is ~54 EUR (about 59 USD) a month — 12% of the USD 500 ceiling at which the cost factor scores zero. Together that scores 8.5/10 (excellent). Travel or expat insurance still matters for non-residents.

Score card · San Francisco

5.4/ 10 compositefair

Each axis is a weighted aggregate of underlying indicators normalized to a 0–10 scale. Weights are explicit and disclosed per axis. The composite is the unweighted mean of the four axes — axes are not collapsed further because the underlying trade-offs (e.g. low cost vs poor air quality) are user-dependent.

Affordability

0.0poor
  • Cost-of-living index (weight 60%)109
  • Rent index (weight 40%)118
How this is calculated

Affordability = (max(0, (100 − costIndex)/100) × 0.6 + max(0, (100 − rentIndex)/100) × 0.4) × 10 (an index above New York's 100 scores 0). For San Francisco: (max(0, (100 − 109)/100) × 0.6 + max(0, (100 − 118)/100) × 0.4) × 10 = 0.

San Francisco is among the more expensive cities tracked. Salary expectations should be calibrated to the high cost base before relocating.

Quality of life

7.0good
  • Lethal-violence safety index (weight 40%)46
  • Health-service coverage index (weight 35%)92
  • Air quality index (weight 25%)79
How this is calculated

QoL = (safety/100 × 0.4 + healthcare/100 × 0.35 + airQuality/100 × 0.25) × 10. For San Francisco: (46/100 × 0.4 + 92/100 × 0.35 + 79/100 × 0.25) × 10 = 7.

San Francisco scores fair on lethal-violence safety, excellent on health-service coverage and good on air. The composite quality-of-life signal is strong.

Remote-work friendliness

7.0good
  • Internet (median Mbps) (weight 45%)106 Mbps
  • Effective income tax (lower = better) (weight 30%)16.7%
  • Cost-of-living (lower = better) (weight 25%)109
How this is calculated

RemoteWork = (min(Mbps/100, 1) × 0.45 + (1 − incomeTax) × 0.3 + max(0, (100 − costIndex)/100) × 0.25) × 10. For San Francisco: (min(106/100, 1) × 0.45 + (1 − 0.1666) × 0.3 + max(0, (100 − 109)/100) × 0.25) × 10 = 7.

San Francisco: fast internet (106 Mbps median), effective income tax of 17% at the national average wage, and cost index 109 — 9% above New York. Together that scores 7/10 (good) for remote work.

Healthcare

7.7good
  • Health-service coverage index (weight 70%)92
  • Healthcare cost / month, USD (lower = better) (weight 30%)295
How this is calculated

Healthcare = (coverageIndex/100 × 0.7 + max(0, 1 − healthCost in USD/500) × 0.3) × 10. For San Francisco: (92/100 × 0.7 + max(0, 1 − 295/500) × 0.3) × 10 = 7.7.

San Francisco: health-service coverage is excellent, and typical healthcare spending (out-of-pocket, plus the compulsory insurance premium) is ~295 USD a month — 59% of the USD 500 ceiling at which the cost factor scores zero. Together that scores 7.7/10 (good). Travel or expat insurance still matters for non-residents.

Monthly cost delta: Madrid vs San Francisco

Normalized to EUR at 1 USD = 0.9099 EUR.

CategoryMadridSan FranciscoChange
housing€1,170$2,693+109%
food€232$321+26%
transport€33$86+137%
utilities€72$75-5%
leisure€269$423+43%
healthcare€54$295+397%

Where each city's money goes

Two cities can have the same monthly total but very different shapes — one might burn 50% on housing while the other splits more evenly. The composition matters as much as the headline.

Madrid64% housing
San Francisco69% housing
housing
food
transport
utilities
leisure
healthcare

The biggest shape difference is housing: San Francisco spends 5 percentage points more of its budget on it (69% vs. 64%). If you're sensitive to that category, weight the per-axis scores accordingly.

Buying property

Apartment prices: Madrid vs San Francisco

Typical purchase price per square meter for each whole city, in EUR, from the source named below each figure.

Buying in Madrid runs about 44% cheaper per square meter (€5,420/m² vs €9,690/m²).

Price per m², whole city — cheaper leads
Madrid
€5,420/m² ✓
San Francisco
€9,690/m²

A scoping number for rent-vs-buy thinking, not a valuation. Renting comparisons live in the cost table above.

Getting around

Public transport: Madrid vs San Francisco

What a month of public transport costs in each city — the transport line of each basket, from the operator's own tariff — plus the modes each network runs. Euro amounts at the exchange rates of 2026-11-20.

Monthly transit cost — cheaper leads
Madrid
€33 ✓
San Francisco
€78.25 ($86)
Madrid

The Abono Transportes covers Metro, EMT buses, light rail and Cercanías commuter trains within its zone.

Modes: Metro, Tram, Bus, Commuter rail

monthly pass zone A, regular adult; official price 54.60 € minus the 40% state+regional bonificación that applies to everyone Source: Consorcio Regional de Transportes de Madrid (CRTM), Jan 2026 (official).

San Francisco

Muni runs buses, light rail, historic streetcars and the cable cars; BART is a separate system with its own fares.

Modes: Metro, Tram, Bus, Commuter rail, Ferry, Cable car

Adult calendar-month Muni-only pass as listed on the SFMTA fares page (checked Nov 2026). Source: San Francisco Municipal Transportation Agency (SFMTA), Nov 2026 (official).

Editorial description, written by Mundevo; not from a cited source.

Salary equivalence: Madrid ↔ San Francisco

What earning the same purchasing power costs in each city. Cost-adjusted using the local cost-of-living index (Madrid = 56, San Francisco = 109); currency-converted at 1 USD = 0.9099 EUR. Tax differences are not modeled.

Earning in Madrid, moving to San Francisco
EUR → equivalent USD
Madrid grossSan Francisco equivalent
€40,000$85,565
€75,000$160,434
€120,000$256,695
Earning in San Francisco, moving to Madrid
USD → equivalent EUR
San Francisco grossMadrid equivalent
$40,000€18,699
$75,000€35,061
$120,000€56,098

Equivalence here means same cost-of-living purchasing power, not same net take-home. Effective tax rates differ between countries; a salary equivalent on cost can still net more or less depending on the destination's tax regime. Use the calculator for tax-adjusted figures at a specific lifestyle tier.

Pros and cons

Why pick Madrid

  • Wins on affordability (+4.4 points vs San Francisco).
  • Wins on quality of life (+1.6 points vs San Francisco).
  • Wins on remote-work friendliness (+0.3 points vs San Francisco).
  • Wins on healthcare (+0.8 points vs San Francisco).

Why pick San Francisco

San Francisco doesn't have any standout advantages of ≥0.3 points on the scoring model.

Madrid trade-offs

No material trade-offs versus San Francisco on the scored axes.

San Francisco trade-offs

  • Trails Madrid on affordability by 4.4 points.
  • Trails Madrid on quality of life by 1.6 points.
  • Trails Madrid on healthcare by 0.8 points.

Remote work logistics

Time zones and language: Madrid vs San Francisco

Madrid (Europe/Madrid) and San Francisco (America/Los_Angeles) sit 9 hours apart in standard time. A 9-to-5 in one overlaps the other's for 0 hours a day — fully asynchronous collaboration.

Madrid

Official: Spanish · English: Moderate · Local language: Recommended

Spanish is essential outside multinational firms. English is moderate in central Madrid; bureaucracy is Spanish-only. A gestor (administrative agent) is standard for residency tasks.

San Francisco

Official: English · English: Native-equivalent · Local language: Not needed

English-native. Significant Spanish and Mandarin presence in specific neighborhoods (Mission, Chinatown). English universal.

Editorial description, written by Mundevo; not from a cited source.

Who should choose which

The composite winner doesn't always match what matters to you. These four reader profiles weigh the axes differently — find the closest fit.

Young remote pro

Single, salaried remote worker, 25-40, optimizing for runway + bandwidth.

Best fit
Madrid by 2.4 points
Madrid5.9/10
San Francisco3.5/10

Axes scored: affordability, remoteWork

Family with kids

Couple with school-age children, prioritizing safety, healthcare, and air quality.

Best fit
Madrid by 1.2 points
Madrid8.6/10
San Francisco7.4/10

Axes scored: qualityOfLife, healthcare

Retiree

Fixed income, healthcare-sensitive, prefers low cost and stable infrastructure.

Best fit
Madrid by 2.3 points
Madrid7.2/10
San Francisco4.9/10

Axes scored: healthcare, qualityOfLife, affordability

Cost-conscious mover

Salary stretch matters most. Cuts everything else if it lowers the burn rate.

Best fit
Madrid by 4.4 points
Madrid4.4/10
San Francisco0.0/10

Axes scored: affordability

Profiles use simple axis averaging — for a deeper read with your own weights, use the per-axis breakdown above.

Methodology

How this page is calculated

Data sources

  • Mundevo per-city dataset. Cost basket, rent index, safety, healthcare, air quality and median internet for both cities. Reference date: 2026-10 (Madrid) and 2026-11 (San Francisco).
  • FX rate. 1 USD = 0.9099 EUR (reference rate as of 2026-11-20), used to normalize cost baskets.
  • CityScoreCalculator. Four axes (Affordability, Quality of life, Remote work, Healthcare) computed with explicit weights and explanations. See per-axis calculation strings rendered on this page.
  • ComparisonService. Per-category cost deltas (housing, food, transport, utilities, leisure, healthcare) normalized to the origin currency.

Update cadence

Data as of . Last reviewed .

Calculation

For each of the four axes we compute an independent 0–10 score using the formulas printed beside each axis. The composite is the unweighted mean of the four axes. The overall winner is the city with the higher composite; when the two composites are equal at one decimal, the page reports a tie and names no winner. The same rule applies to each axis.

Limitations

  • Climate is shown but not scored — how much heat, cold or rain is worth is too personal to weight for you.
  • Tax differences between cities in the same country are not modeled: each country carries one schedule (for federal countries, the representative region OECD models). That matters most in the US (state income tax), Canada (provinces) and Switzerland (cantons), and to a lesser degree between Spain's regions.
  • Indices are population-level. Personal cost varies with neighborhood, employer benefits and family status.
  • Quality-of-life axis weights (safety 0.4 / healthcare 0.35 / air 0.25) are editorial defaults — readers with strong preferences should re-weight manually.

Frequently asked questions

Madrid vs San Francisco: which is cheaper?

Madrid is roughly 49% cheaper than San Francisco overall. Madrid has cost index 56 vs San Francisco at 109 (both with New York = 100).

Which city has better quality of life?

On our quality-of-life axis — lethal-violence safety 40%, health-service coverage 35% and air quality 25% — Madrid scores 8.6/10 and San Francisco 7.0/10. Madrid has the better quality of life on this measure, by 1.6 points. On the overall Mundevo composite (the unweighted mean of four 0–10 axes: affordability, quality of life, remote work and healthcare) it is 7.2 vs 5.4, which Madrid wins by 1.8 points.

Is Madrid or San Francisco better for remote work?

The median download speed measured by M-Lab's open NDT tests is 82 Mbps for Madrid and 106 Mbps for San Francisco. The four-axis decision rubric on this page (affordability, quality of life, remote work, healthcare) gives a per-dimension breakdown rather than a single answer.

Is Madrid bigger than San Francisco?

Madrid is larger — about 3.5M people versus San Francisco's 809k, roughly 4.3× the size.

Is Madrid safer than San Francisco?

Madrid scores higher on lethal-violence safety — 94 vs 46 / 100 (Madrid, 0.67 homicides per 100k nationally; San Francisco, 6.07 homicides per 100k nationally). The index is built from intentional-homicide rates, so it says nothing about petty crime.

Should I move to Madrid or San Francisco?

It depends on what you weight. Madrid wins the overall Mundevo composite by 1.8 points and Madrid is also the cheaper of the two, and they split differently across affordability, quality of life, remote work and healthcare. Use the per-axis table and the reader-profile section above to match the verdict to your own priorities.