Madrid vs Barcelona — Cost of Living
Rent, overall costs and the equivalent salary you'd need to keep your lifestyle.
| Madrid | Barcelona | |
|---|---|---|
| Overall cost index | 62 | 64 |
| Rent index | 58 | 62 |
| 1-bed city-centre rent | 1300 € | 1350 € |
A 30.000 €/year lifestyle in Madrid needs about
30.968 € / year
in Barcelona (cost-of-living parity, before tax)
Madrid
Set against Barcelona, Madrid carries an overall index of 62 and a rent index of 58: spain's lowest regional tax plus moderate (if rising) rents.
Barcelona
Barcelona scores 64 overall and 62 on rent against Madrid’s 58: coastal lifestyle with rents now rivalling Madrid.
Cost of living is only half of what decides a move between Madrid and Barcelona; tax is the other half, and because both cities sit in Spain the tax treatment is identical here — the Spain calculator applies to both, so the whole difference is housing and local prices.
What the gap actually costs
Barcelona is the more expensive of the two, about 3% ahead of Madrid on the combined index (62 against 64), while the gap on rent alone is 7%. Housing does almost all the work between Madrid and Barcelona: groceries and transport move by tens of percent between cities, rents by multiples.
A one-bedroom city-centre flat runs about 1300 € in Madrid against 1350 € in Barcelona — 50 € a month between them, or 600 € a year that never reaches your savings.
What is left after rent in Madrid and Barcelona
On the 30.000 € national median behind Madrid, in this comparison with Barcelona, take-home is about 1830 € a month and a one-bedroom city-centre flat averages 1300 €, leaving 530 € for everything else. At 71% that is above what budgeting guidance calls sustainable, so on this Madrid side of the comparison with Barcelona a flatshare or a longer commute is a requirement at the median rather than a preference. On rent index that is the lighter of the two here: Barcelona sits at 62 against 58 for Madrid.
The pressure is not evenly spread across Madrid, and that is what a headline index against Barcelona hides: at 22.500 € the same 1300 € rent takes 91% of take-home and leaves 132 €, while at 60.000 € it takes 40% and leaves 1974 €.
On the 30.000 € national median behind Barcelona, in this comparison with Madrid, take-home is about 1830 € a month and a one-bedroom city-centre flat averages 1350 €, leaving 480 € for everything else. At 74% that is above what budgeting guidance calls sustainable, so on this Barcelona side of the comparison with Madrid a flatshare or a longer commute is a requirement at the median rather than a preference. On rent index that is the heavier of the two here: Madrid sits at 58 against 62 for Barcelona.
The pressure is not evenly spread across Barcelona, and that is what a headline index against Madrid hides: at 22.500 € the same 1350 € rent takes 94% of take-home and leaves 82 €, while at 60.000 € it takes 41% and leaves 1924 €.
| Salary level | Madrid after rent | Barcelona after rent | Rent share |
|---|---|---|---|
| Below median | 132 € | 82 € | 91% / 94% |
| National median | 530 € | 480 € | 71% / 74% |
| Well paid | 1267 € | 1217 € | 51% / 53% |
| Senior / specialist | 1974 € | 1924 € | 40% / 41% |
What common roles pay, and what survives the rent
National medians for five widely-held roles, taxed locally and set against the 1300 € rent in Madrid and 1350 € in Barcelona. Pay in Madrid and Barcelona differs from the national figure — capital and financial-centre salaries run above it — so read these as a baseline to adjust from.
| Role | Median gross | Take-home / month | After Madrid rent |
|---|---|---|---|
| Software Engineer | 38.000 € | 2237 € | 937 € |
| Accountant | 32.000 € | 1935 € | 635 € |
| Registered Nurse | 30.000 € | 1830 € | 530 € |
| Teacher | 32.000 € | 1935 € | 635 € |
| Marketing Manager | 36.000 € | 2143 € | 843 € |
| Role | Median gross | Take-home / month | After Barcelona rent |
|---|---|---|---|
| Software Engineer | 38.000 € | 2237 € | 887 € |
| Accountant | 32.000 € | 1935 € | 585 € |
| Registered Nurse | 30.000 € | 1830 € | 480 € |
| Teacher | 32.000 € | 1935 € | 585 € |
| Marketing Manager | 36.000 € | 2143 € | 793 € |
Frequently Asked Questions
+Is Barcelona cheaper than Madrid?
Barcelona has an overall cost-of-living index of 64 versus Madrid's 62, so it is more expensive by roughly 3%, driven largely by rent.
+What salary do I need in Barcelona to match Madrid?
To maintain a 30.000 € lifestyle from Madrid, you'd need roughly 30.968 € in Barcelona, based on cost-of-living parity (before tax differences).
+How much rent should I expect in Madrid?
A one-bedroom city-centre flat in Madrid averages about 1300 € a month. On the national median salary that is 71% of take-home, leaving roughly 530 € a month for everything else.
+How much do you need to earn to live comfortably in Barcelona compared with Madrid?
On Barcelona's national median of 30.000 €, take-home is about 1830 € a month and rent takes 74% of it, against 71% in Madrid. Comfort usually starts where rent drops below a third of take-home, which in Barcelona needs about 77.000 € gross against the 30.000 € median behind Madrid. Tax status and personal circumstances shift the figure either way.
+Would a higher Barcelona salary cancel out its costs versus Madrid?
Not reliably. Rent is a fixed monthly cost while tax is progressive, so moving from Madrid to Barcelona on a proportionally higher salary can still leave you with less: on each city's national median the after-rent figures are 530 € and 480 €. Compare those columns rather than the gross salaries.
Estimate only — not tax advice. Figures are estimates based on publicly available tax rules and may not reflect your full circumstances. See our methodology & sources (last reviewed June 2026). Always confirm with an official tax authority or a licensed adviser before making decisions.