$225,000 in San Francisco ≈ €164,255 in Madrid
Software engineer pay: San Francisco vs Madrid
Equivalence is solved so household net cash matches across both cities, with taxes, housing, childcare, healthcare, food, and travel all included.
What changes: San Francisco → Madrid
- ▴ 7 more vacation days per year in Madrid (statutory)
- ▴ 4 more paid parental-leave weeks (16 vs 12)
- ▴ Universal healthcare in Madrid (no premium / minimal OOP)
- ▾ Income + payroll tax runs 32.1% in Madrid vs 29.0% in San Francisco
- ▴ Housing runs about 58% less in Madrid
- ▴ Groceries and dining runs about 20% less in Madrid
The headline math
| San Francisco household gross | $225,000 |
| San Francisco taxes (29.0%) | −$65,353 |
| San Francisco living costs | −$72,671 |
| San Francisco net cash | $86,976 |
| ≈ | |
| Madrid household gross needed | €164,255($187,292) |
| Madrid taxes (32.1%) | −€52,731 |
| Madrid living costs | −€35,246 |
| Madrid net cash | €76,278 |
Computed at the city-median tech-worker salary, San Francisco (a senior software engineer) · effective tax rates: 29.0% vs 32.1%
The bottom line
- →$225,000 in San Francisco leaves about the same net cash as €164,255 in Madrid for this scenario, after real taxes and living costs.
- →Taxes take 29.0% of gross in San Francisco versus 32.1% in Madrid.
- →The biggest non-cash swing: 7 more vacation days per year in Madrid (statutory).
These numbers use one scenario's assumptions. Plug in your own salary, family size, and lifestyle.
Open the interactive calculator to run your own →No signup. Your salary stays in your browser — we never see it.
Moving from San Francisco to Madrid for a software engineer
$225,000 in San Francisco requires €164,255 in Madrid to match on household net cash. The gap is real, but it is smaller than the nominal numbers suggest once taxes run their course. Progressive brackets compress the after-tax difference faster than a compensation benchmarking site would lead you to believe, because those sites show gross and stop there.
The effective tax rate goes from 29.0% in San Francisco to 32.1% in Madrid. That 3.1-point jump is what the equivalence solver is working against when it finds the matching gross salary.
Unvested equity changes this calculation entirely. RSU value is not modeled in the defaults above, but if you are mid-cycle at your current employer, leaving means forfeiting grants you have already been working toward, and that difference can be larger than the annual take-home delta that drove the comparison in the first place. The Advanced section's "RSU / stock annual value" field is where you plug that number in. Equity-heavy comp favors lower-tax cities at vesting; the after-tax discount gets larger the bigger the grant.
On an employer plan the healthy years feel nearly free; it's the bad year that finds the gap. Madrid is universal, so most of that tail risk goes away. San Francisco still runs $3,680 a year in premiums and out-of-pocket costs, and none of it shows up on an offer letter.
Madrid engineers get 22 vacation days per year. San Francisco averages 15. That 7-day gap is real money at a senior IC's daily rate, and it does not show up on the offer letter.
No kids, employer healthcare, and a single high-bracket income: this is the configuration that makes San Francisco look best in a head-to-head comparison. It is also the configuration most likely to change. The family scenario page (linked below) models what shifts once childcare and a second earner enter the picture.
Understand what's behind these numbers
Common questions
How much do you need to earn in Madrid to match a $225,000 salary in San Francisco?
About €164,255. cityparity solves for the Madrid gross salary whose net cash (after taxes, housing, childcare, healthcare, and the rest) equals what you keep in San Francisco. It's an equivalence, not a raw conversion.
Is healthcare free in Madrid?
Madrid has universal healthcare, so there are no US-style premiums or large deductibles. cityparity counts that as real money you don't spend, which is part of why the equivalent salary is lower than the raw number suggests.
How much vacation and parental leave do you get in Madrid?
Madrid has about 36 paid days off a year (vacation plus public holidays) and 16 weeks of parental leave. cityparity surfaces these as deltas rather than dollars, because time off is part of the real comparison.
Run your own numbers in the interactive calculator →