Rent or Buy in Madrid: Hidden Costs and How to Decide
By Daniel Kuhnen

You've been renting in Madrid for a while. The rent goes up, the landlord might want the flat back, and every month feels like money gone. So you start looking at flats for sale and running numbers. The asking price is only the start, though. Buying a home in Madrid comes with taxes and fees you pay on day one, costs that keep coming every year, and more when you sell. Renting has its own costs too. This guide puts real numbers on both sides, then gives you a simple way to decide what's right for you.
An honest note before we start. This isn't financial or tax advice, and we're not telling you to buy or to rent. Tax rates, rental rules and mortgage offers change, and some of them were changing when we checked. Use this to understand the costs and ask better questions, then confirm your own case with a lawyer, gestoría or bank before you sign anything.
The short version
- Buying costs more than the price. On a resale flat, the regional transfer tax is 6%, plus notary, registry and other fees. Think roughly 7% on top.
- Plus the deposit. Banks commonly lend up to 80% of the value of a main home, so you need about 27% of the price in cash.
- The bank pays most mortgage costs. You pay the valuation. The bank pays the mortgage deed's tax, notary, registry and gestoría.
- Owning costs every year. IBI, community fees, insurance and repairs, plus mortgage interest.
- Renting costs upfront too. First month, one month's fianza, and possibly up to two months more as a guarantee. No agency fee for you.
- Madrid is expensive to buy compared with renting. At the city's average asking prices when we checked, a flat cost about 23 years of its rent.
- Time is the deciding factor. The shorter you'll stay, the stronger the case for renting.
What it costs to buy a resale flat in Madrid
Most flats for sale in Madrid are resale homes (segunda mano), bought from a private owner. Here's what you pay on top of the price, roughly in the order you'll meet it.
The big one: transfer tax (ITP)
When you buy a resale home, you pay the Impuesto sobre Transmisiones Patrimoniales, or ITP. It's a regional tax, and the Comunidad de Madrid sets the rate. The general rate is 6%.
One detail catches people out. The tax isn't always worked out on what you paid. It's charged on the higher of the price and the Catastro's official reference value (valor de referencia) for the property. So if you get a bargain below that value, you still pay tax on the reference value.
Madrid's tax law has two reductions worth knowing:
- Large families (familias numerosas). If you hold the official large-family title and the flat will be the family's main home, the rate drops to 4%. If one of you owns your previous main home, it generally has to be sold within two years either side of the purchase.
- Main homes up to €250,000. Anyone buying their main home with a value of €250,000 or less gets 10% off the tax itself. That brings the effective rate down to 5.4%. You can't combine it with the large-family rate.
For the reductions, you have to move in within twelve months and live there for at least three years. If you don't, you pay the difference with interest. When we checked, the regional government had also announced a lower rate for buyers under 40, but it wasn't law yet. Ask whoever files your tax what applies on your signing date.
Notary, Land Registry, gestoría and valuation
In Spain, a home is sold by signing a deed (escritura) in front of a notary. You'll need an NIE, the foreigner's tax number, to sign it. The notary's fee follows an official scale, the arancel, and rises only gently with the price. Then the deed is registered in your name at the Registro de la Propiedad, which also charges by an official scale. Many buyers pay a gestoría to file the ITP and handle the registration.
On an ordinary flat, these together usually come to a couple of thousand euros. The notary and registry are each typically in the hundreds of euros, not thousands. Ask the notary's office for a quote before you sign. If you take a mortgage, the bank will also need a valuation (tasación) by an approved valuation company, which you pay for.
If you take a mortgage: who pays what
This used to be a big hidden cost for buyers. It isn't anymore. The bank is now the taxpayer for the stamp duty (AJD) on the mortgage deed. Spain's mortgage credit law then shared out the other costs:
- You pay: the valuation, and any extra copies of the deed you ask for.
- The bank pays: the notary for the mortgage deed, registering the mortgage, the gestoría, and the AJD on the mortgage.
This split covers the mortgage only. The purchase deed, its registration and the ITP are still yours.
The law also gives you time to understand what you're signing. The bank has to give you the loan documents at least ten calendar days before you sign. You then meet the notary, free of charge, by the day before signing at the latest, so they can check you've understood the terms. The deed will be in Spanish, and usually the loan documents too. If you don't follow it well, bring a translator or someone you trust.
Buying new: IVA and AJD instead
A brand-new home bought from the developer works differently. Instead of ITP, you pay IVA (Spain's VAT) at 10% of the price. Some protected housing (vivienda protegida) pays 4%. On top of that you pay AJD, the stamp duty on the purchase deed. For individuals buying a home in Madrid, it's 0.4% up to €120,000, 0.5% up to €180,000 and 0.75% above that. Main homes up to €250,000 get 10% off, and large families buying their main home get 95% off.
What it adds up to
On a resale flat above €250,000, you're looking at 6% ITP plus a couple of thousand euros of fees. Call it roughly 7% of the price. On top of that sits the share of the price the bank won't lend. Banks commonly lend up to 80% of the value of a main home, so most buyers need about 27% of the price in savings. If the valuation comes in below the price, many banks lend on the lower figure and you cover the gap.
Before you sign: checks that save you money
A few checks protect you from inheriting someone else's debts:
- Get a nota simple. It's an extract from the Land Registry showing who owns the flat and any mortgages or charges on it. Our guide to spotting rental scams explains how to request one, and the same check works anywhere in Spain.
- Ask for the community debt certificate. The seller has to declare in the deed that they're up to date with community fees, with a certificate from the building's administrator. You can waive it, but don't.
- See the last IBI bill. Unpaid IBI stays attached to the property, not the person. The notary will warn you about any debts, but check early.
- Ask about derramas. These are one-off levies the building has agreed for works, such as a new lift or a facade repair. Ask the administrator whether any are approved or coming.
- Read the arras contract carefully. Most sales start with a private contract and a deposit. Under the usual kind, you lose the deposit if you pull out, and the seller pays it back twice over if they do.
What owning costs every year
Your mortgage payment isn't the whole cost of owning. This is where most rent-versus-buy maths goes wrong:
- IBI. The yearly property tax charged by the Ayuntamiento. In Madrid city, the general rate for homes was 0.414% of the cadastral value when we checked. The cadastral value is an official figure, usually well below what you'd pay. Ask the seller for the last bill to see the real amount.
- Waste fee. Madrid city also charges a yearly waste collection fee on homes (tasa de residuos). Ask the seller for the last bill, along with the IBI.
- Community fees. Every building with shared areas charges monthly fees (gastos de comunidad) for cleaning, the lift, lighting and insurance of the building. They vary a lot, so ask for the last year's accounts.
- Home insurance. Your bank will want buildings insurance on the flat. It can't force you to take its own policy, though. By law it has to accept an equivalent policy from another insurer.
- Repairs. Boilers, plumbing and appliances are now your problem, not the landlord's. Keep money aside for them.
- Mortgage interest. Only the part of your payment that repays the loan builds your wealth. In the early years, most of it is interest.
What it costs when you sell
Selling has costs of its own, and they belong in the decision from the start:
- Plusvalía municipal. A municipal tax on the rise in the value of the land under your home, charged when you sell. The seller normally pays it. You choose between two ways of working it out, and if there's been no gain, there's no tax.
- Capital gains tax. Any profit goes into your income tax return, taxed on Spain's savings scale. Our guide to your investments when you move to Spain explains how that scale works. If you sell your main home and reinvest the money in a new main home, the gain can be exempt.
- Agent's commission. If you sell through an agent, you'll pay their fee. It's agreed with the agency, so get it in writing.
Buying as a foreigner in Madrid
There's no general ban on foreigners buying homes in Spain. The paperwork just has a few extra steps:
- Get your NIE first. You can't sign a property deed without a tax ID number. Our NIE guide for Madrid covers how to get one.
- Open a Spanish bank account. Your mortgage payments and the bills will run through it. Americans sometimes find Spanish banks cautious, as our guide to moving to Spain from the US explains.
- Expect more questions as a non-resident. Banks set their own limits. If you're not resident yet, or your income comes from abroad or in another currency, some banks lend a smaller share of the price. Talk to a bank or broker before you make an offer.
- Buying doesn't buy residency. Spain closed its investor visa route for property, so a home purchase no longer leads to a residence permit.
- Buying from a non-resident seller. You must hold back 3% of the price and pay it to Hacienda on the seller's account. The plusvalía also becomes your responsibility, so it's usually deducted from the price at signing. Your lawyer or notary should handle both.
Once you've bought, register on the padrón at your new address. Our empadronamiento guide for Madrid walks you through it.
What renting in Madrid really costs
Renting looks simpler, and mostly it is. But it has upfront costs too, and a few rules worth knowing.
Looking for real estate agents in Madrid?
English-speaking, screened and ranked by real reviews from the expat community.
Moving in
- First month's rent. Paid when you sign.
- The fianza. By law, a landlord must take a deposit of one month's rent on a home.
- Extra guarantees. Landlords often ask for more, as a bank guarantee or extra deposit. On leases of up to five years, or seven if the landlord is a company, it can't exceed two months' rent.
- No agency fee for you. The housing law puts the agency's fees and the costs of drawing up the contract on the landlord.
So expect to pay up to four months' rent before you get the keys. That's a lot of money, but you get most of it back when you leave, as long as the flat is in good condition.
Where your fianza goes
In Madrid, the landlord has to lodge your fianza with the Comunidad de Madrid's Agencia de Vivienda Social within 30 working days of signing. It isn't meant to sit in their account. If you're not sure it was done, you can ask the agency to confirm it, using the form on the region's rental deposits page. When you leave, the landlord has a month from handing back the keys to return what's due.
That proof matters for another reason. Madrid has a regional income tax deduction for renters under 40: 30% of the rent, up to €1,237.20 a year. It only applies when your rent is more than 20% of your taxable income, and there are income limits. To claim it, you need the fianza deposit receipt, or a copy of your request to the agency.
Living there
- Rent rises are capped. Rent can only go up once a year if your contract allows it, and the rise is capped by an official index published by INE.
- The building costs are normally the owner's. A contract can only pass some general building costs to you if it says so in writing, with the yearly amount.
- You can stay for years. On a long-term lease, you have the right to renew each year up to five years, or seven with a company landlord.
- You can leave. After the first six months, you can end the lease with at least 30 days' notice. Check your contract for any clause about leaving early.
Two traps to know. Some landlords offer a seasonal lease (contrato de temporada) for what is really your home, which strips out many of these rights. Our guide to where to live in Madrid explains why to avoid it. And rental scams follow the same script everywhere in Spain, so read our checklist on how to spot a fake listing before you pay anything.
Rental rules are changing
When we checked, rental law was in flux. The government had passed emergency decrees changing parts of it, including how long leases run and how much rent can rise. One was in force but still needed parliament's approval. Madrid also hadn't declared any rent-capped zones. Before you sign or renew, ask an agent or lawyer which rules apply on the day.
Madrid prices and rents, when we checked
Here are the averages for Madrid city from idealista, the property portal, when we checked:
- Buying: an average asking price of about €6,458 per square metre.
- Renting: an average asking rent of about €23.40 per square metre a month.
- Mortgages: the Banco de España's average rate on home-purchase mortgages of more than three years was about 3.2%.
These are asking prices, not final sale prices, and they hide huge differences between districts. Salamanca and Villaverde are different markets. Use them as a starting point, then look at the actual street you'd live on.
A simple framework for deciding
Forget whether "renting is throwing money away". Both options have costs you never get back. The real question is which set of costs is smaller for your situation. Work through these five questions.
1. How long will you stay?
This matters more than anything else. When you buy, the taxes and fees are paid on day one, and you pay more when you sell. Spread over three years, they're painful. Spread over fifteen, they shrink. If your job, your residence permit or your family plans could move you on within a few years, that's a strong reason to keep renting.
2. What's the price-to-rent ratio?
Divide the price of a flat by a year's rent for a similar flat nearby. At Madrid's average asking figures above, that's about 23. Put another way, a year's rent is about 4.3% of the price, compared with mortgage rates of about 3.2%. The higher the ratio, the stronger the case for renting. Do this for the actual flat you'd buy and a similar one for rent on the same street.
3. What share of the price goes on costs?
On a resale flat, the taxes and fees come to roughly 7% of the price, a little less on a main home up to €250,000. Turn that figure into months of rent. It's a quick way to feel how long you'd need to stay. Then count the cash you'd tie up in the deposit, and what it could earn elsewhere.
4. How much flexibility do you need?
Renting lets you leave with 30 days' notice after the first six months. Selling a flat takes months, and you might sell at a bad time. If you value being able to move for a job, a relationship or a better school, put a price on that.
5. Does the monthly maths really work?
Compare your rent with the costs of owning you never get back. That means mortgage interest, IBI, community fees, insurance and repairs, plus what your deposit could earn elsewhere. Don't compare rent with the full mortgage payment. Part of that payment is repaying the loan, which you keep.
A worked example (an illustration, not advice)
Take a 65 square metre resale flat at Madrid's average asking figures when we checked.
- To buy: about €420,000. ITP at 6% is €25,200, plus a couple of thousand euros in fees. Call it €27,500.
- To rent: about €1,520 a month.
- Cash to buy: a 20% deposit of €84,000 plus about €27,500 in taxes and fees, so roughly €111,500.
- The upfront costs in rent: the €27,500 equals about 18 months of rent.
- The mortgage: €336,000 over 30 years at about 3.2% is roughly €1,450 a month. In the first year, about €10,600 of that is interest.
So the interest alone is already over half the rent. Add IBI, community fees, insurance and repairs, plus what your €111,500 might earn elsewhere, and the gap with renting narrows fast. Then you still have to earn back the €27,500 of buying costs, and pay selling costs at the end. That's why time is the deciding factor.
Common mistakes that cost people money
- Forgetting the taxes and fees, then finding you need far more cash than the 20% deposit.
- Assuming the tax is charged on the price, when the Catastro's reference value can be higher.
- Skipping the nota simple, the community certificate or the last IBI bill.
- Signing an arras contract you don't fully understand, in a language you don't read well.
- Buying when a job change or a permit renewal could move you on within a couple of years.
- Not checking that your fianza was lodged, then missing out on Madrid's rent deduction.
How Locallista helps
Whether you rent or buy, most of this happens in Spanish: contracts, deeds, bank offers and tax forms. That's where English-speaking help makes a real difference.
We're a directory of English-speaking local service providers. Every business is screened before it's listed, reviews are phone-verified, and the ranking reflects real expat experience, not who paid the most. It's free to browse and free to get in touch. Our English-speaking real estate agents in Madrid help with both sides, from finding a flat to rent to searching for one to buy and negotiating the price. For the contract, the arras and the title checks, talk to one of our English-speaking real estate lawyers in Madrid. And for the NIE, the padrón and the tax filings, our bureaucratic services in Madrid can do the legwork.
Frequently asked questions
Is it cheaper to rent or buy in Madrid?
How much tax do you pay when you buy a resale flat in Madrid?
Who pays the costs of a mortgage in Spain?
Can foreigners buy property in Madrid?
How much of the price will a Spanish bank lend me?
What deposit will a landlord ask for in Madrid?
Where is my rental deposit kept in Madrid?
Who pays the plusvalía when a flat is sold?
Join Locallista. Recommend Locallista.
Locallista is powered by your feedback. Your reviews, suggestions and ideas help everyone grow - fellow expats thrive and great local providers get the recognition they deserve.


