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

If you've rented in Madrid for a while, you know the feeling. The rent creeps up, the landlord hints they might want the flat back, and every payment seems to vanish. Sooner or later you open the sales listings and start doing sums. The asking price is only the beginning. Buying a home here means taxes and fees on the day you sign, costs that come round every year, and another set when you sell. Renting isn't free either. Below are real numbers for both sides, and a simple way to work out which one fits your life.
A quick word of honesty first. This isn't financial or tax advice, and we have no stake in whether you rent or buy. Tax rates, rental rules and mortgage offers move, and some of them were moving while we checked. Use this page to understand the costs and ask sharper questions, then get a lawyer, a gestoría or your bank to confirm your own case before you sign anything.
The short version
- Buying costs more than the price. On a resale flat you pay the 6% regional transfer tax, then notary, registry and other fees. Budget roughly 7% on top.
- Then there's the deposit. For a main home, banks commonly lend up to 80% of the value, so you need about 27% of the price in cash.
- Most mortgage costs are the bank's. You pay for the valuation. The bank pays the mortgage deed's tax, the notary, the registry and the gestoría.
- Owning costs money every year. IBI, community fees, insurance and repairs, plus the interest on your mortgage.
- Renting has upfront costs as well. The first month, one month's fianza, and maybe up to two months more as a guarantee. The agency fee isn't yours to pay.
- In Madrid, buying is expensive compared with renting. At the city's average asking prices when we checked, a flat cost about 23 years of its rent.
- Time decides it. The shorter your stay, the stronger the case for renting.
What it costs to buy a resale flat in Madrid
Most homes on the market in Madrid are resale (segunda mano), sold by a private owner. These are the costs on top of the price, in roughly the order they turn up.
The big one: transfer tax (ITP)
Buy a resale home and you owe the Impuesto sobre Transmisiones Patrimoniales, or ITP. It's a regional tax, so the Comunidad de Madrid sets the rate, and the general rate is 6%.
The catch is what that 6% is charged on. It isn't always the price you paid. The tax uses whichever is higher: the price, or the Catastro's official reference value (valor de referencia) for the property. Find a bargain below the reference value and you still pay tax on the reference value.
Madrid's tax law has two reductions you should know about:
- Large families (familias numerosas). With the official large-family title, and the flat as the family's main home, the rate falls to 4%. If one of you owns your previous main home, it generally has to be sold within two years before or after the purchase.
- Main homes up to €250,000. Anyone buying a main home valued at €250,000 or less gets 10% off the tax itself, which works out at an effective rate of 5.4%. It doesn't stack with the large-family rate.
To keep either reduction, you have to move in within twelve months and live there for at least three years. If you don't, you pay back the difference with interest. When we checked, the regional government had also announced a lower rate for buyers under 40, but it hadn't become law. Ask whoever files your tax what applies on the date you sign.
Notary, Land Registry, gestoría and valuation
A Spanish home changes hands when buyer and seller sign a deed (escritura) in front of a notary. To sign it you need an NIE, the tax number every foreigner gets. Notaries charge by an official scale, the arancel, which barely rises with the price. The deed then goes to the Registro de la Propiedad to be registered in your name, and the registry also charges by an official scale. Plenty of buyers hand the ITP filing and the registration to a gestoría.
For an ordinary flat, all of this usually comes to a couple of thousand euros. The notary and the registry each tend to cost hundreds of euros, not thousands. Ask the notary's office for a quote before signing day. If you take a mortgage, the bank will also want a valuation (tasación) from an approved valuation company, and that one you pay.
If you take a mortgage: who pays what
Mortgage costs used to land heavily on buyers. Not anymore. The bank is now the taxpayer for the stamp duty (AJD) on the mortgage deed, and Spain's mortgage credit law split the remaining costs like this:
- Your share: the valuation, and any extra copies of the deed you ask for.
- The bank's share: the notary for the mortgage deed, registering the mortgage, the gestoría, and the AJD on the mortgage.
That split is for the mortgage only. The purchase deed, its registration and the ITP stay with you.
The same law gives you time to read what you're agreeing to. The bank must hand you the loan documents at least ten calendar days before signing. You then see the notary, free of charge, no later than the day before, so they can check you've understood the terms. The deed will be in Spanish, and the loan documents usually are too. If your Spanish isn't up to it, bring a translator or someone you trust.
Buying new: IVA and AJD instead
A brand-new home bought straight from the developer follows different rules. There's no ITP. You pay IVA (Spain's VAT) at 10% of the price instead, or 4% on some protected housing (vivienda protegida). On top of that comes 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, expect 6% ITP plus a couple of thousand euros in fees, so call it about 7% of the price. Then add the part of the price the bank won't lend. Banks commonly lend up to 80% of a main home's value, which means most buyers need savings of about 27% of the price. And if the valuation comes in under the price, many banks lend on the lower number and leave you to cover the difference.
Before you sign: checks that save you money
A handful of checks stop you taking on someone else's debts:
- Get a nota simple. This Land Registry extract shows who owns the flat and any mortgages or charges on it. Our guide to spotting rental scams explains how to request one, and the check works the same anywhere in Spain.
- Ask for the community debt certificate. In the deed, the seller has to declare they're up to date with community fees, backed by a certificate from the building's administrator. You're allowed to waive it. Don't.
- Look at the last IBI bill. Unpaid IBI stays with the property, not with the owner. The notary will flag any debts, but check well before that.
- Ask about derramas. These are one-off charges the building agrees for works, like a new lift or repairs to the facade. Ask the administrator whether any are approved or on the way.
- Read the arras contract carefully. Most sales begin with a private contract and a deposit. Under the usual type, if you walk away you lose the deposit, and if the seller walks away they pay it back twice over.
What owning costs every year
The mortgage payment is only part of owning a home, and this is where most rent-versus-buy sums go 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 far below what you'd pay for the flat. The seller's last bill shows you the real amount.
- Waste fee. Madrid city also charges homes a yearly fee for rubbish collection (tasa de residuos). Ask the seller for the last bill along with the IBI one.
- Community fees. Buildings with shared areas charge monthly fees (gastos de comunidad) for cleaning, the lift, lighting and insuring the building. They vary hugely, so ask for last year's accounts.
- Home insurance. Your bank will want buildings insurance on the flat. It can't make you buy its own policy, though. The law says it has to accept an equivalent one from another insurer.
- Repairs. The boiler, the plumbing and the appliances are now yours to fix, not a landlord's. Set money aside for them.
- Mortgage interest. Only the part of each payment that pays down the loan adds to what you own. 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 your sums from day one:
- Plusvalía municipal. A municipal tax on the increase in value of the land under your home, charged when you sell. The seller normally pays it. There are two ways to calculate it and you choose one, and if there's been no gain, there's no tax.
- Capital gains tax. Any profit goes on your income tax return and is taxed on Spain's savings scale. Our guide to your investments when you move to Spain explains that scale. Sell your main home and put the money into a new main home, and the gain can be exempt.
- Agent's commission. Sell through an agent and you pay their fee. It's agreed with the agency, so get it in writing.
Buying as a foreigner in Madrid
Spain has no general ban on foreigners buying homes. You just have a few more papers to sort out:
- Get your NIE first. No tax ID number, no property deed. Our NIE guide for Madrid explains how to get one.
- Open a Spanish bank account. Your mortgage payments and your bills will go through it. Americans sometimes find Spanish banks wary, as our guide to moving to Spain from the US explains.
- Expect more questions if you're not resident. Each bank sets its own limits. If you're not resident yet, or you earn abroad or in another currency, some banks will lend you a smaller share of the price. Talk to a bank or broker before you make an offer.
- A home won't get you residency. Spain closed its investor visa route for property, so buying no longer leads to a residence permit.
- Buying from a non-resident seller. You have to hold back 3% of the price and pay it to Hacienda on the seller's behalf. The plusvalía also becomes your responsibility, so it's normally taken off the price at signing. Your lawyer or the notary should deal with both.
Once the flat is yours, register on the padrón at the new address. Our empadronamiento guide for Madrid takes you through it step by step.
What renting in Madrid really costs
Renting is simpler, mostly. It still has costs at the start, and a few rules you should know.
Moving in
- First month's rent. Due when you sign.
- The fianza. The law says a landlord must take a deposit of one month's rent on a home.
- Extra guarantees. Many landlords ask for more, as a bank guarantee or an additional deposit. On leases of up to five years, or seven if the landlord is a company, that extra can't go above two months' rent.
- No agency fee for you. Under the housing law, the agency's fees and the cost of drawing up the contract fall on the landlord.
So you could hand over up to four months' rent before you get the keys. It's a big sum, but most of it comes back when you leave, as long as the flat is in good shape.
Where your fianza goes
In Madrid, the landlord must lodge your fianza with the Comunidad de Madrid's Agencia de Vivienda Social within 30 working days of signing. It isn't supposed to sit in their bank account. If you're not sure they did it, ask the agency to confirm, using the form on the region's rental deposits page. When you move out, the landlord has a month from the day you hand back the keys to return what you're owed.
That proof matters for a second reason. Madrid gives renters under 40 a regional income tax deduction of 30% of the rent, up to €1,237.20 a year. You only qualify if your rent is more than 20% of your taxable income, and there are income limits. To claim it, you need the receipt for the lodged fianza, or a copy of your request to the agency.
Living there
- Rent rises have a ceiling. Rent can go up only once a year, only if your contract allows it, and the rise is capped by an official index that INE publishes.
- Building costs are normally the owner's. A contract can pass some general building costs on to you only if it says so in writing and gives the yearly amount.
- You can stay for years. On a long-term lease you have the right to renew each year until you reach five years, or seven with a company landlord.
- You can leave. After the first six months, you can end the lease by giving at least 30 days' notice. Check your contract for any clause about leaving early.
Watch out for two traps. Some landlords offer a seasonal lease (contrato de temporada) for what is really your home, and that strips out many of these rights. Our guide to where to live in Madrid explains why to steer clear of it. Rental scams also follow the same script all over Spain, so read our checklist on how to spot a fake listing before you pay a cent.
Rental rules are changing
When we checked, rental law was in motion. The government had passed emergency decrees changing parts of it, including how long leases last and how much rent can rise. One was in force but still waiting for parliament's approval. Madrid also hadn't declared any rent-capped zones. Before you sign or renew, ask an agent or a lawyer which rules apply that day.
Madrid prices and rents, when we checked
These were the averages for Madrid city on idealista, the property portal, at the time we looked:
- 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%.
Bear in mind these are asking prices, not what flats actually sold for, and they hide huge gaps between districts. Salamanca and Villaverde are different markets. Take them as a starting point, then look at the street you'd actually live on.
Looking for real estate agents in Madrid?
English-speaking, screened and ranked by real reviews from the expat community.
A simple framework for deciding
Drop the idea that "renting is throwing money away". Both choices come with costs you never see again. What matters is which pile of costs is smaller in your situation, and these five questions get you there.
1. How long will you stay?
Nothing matters more. When you buy, the taxes and fees go out on day one, and you pay again when you sell. Spread across three years, that hurts. Across fifteen, it shrinks. If a job, a residence permit or family plans might take you elsewhere within a few years, that alone is a good reason to keep renting.
2. What's the price-to-rent ratio?
Take the price of a flat and divide it by a year's rent on a similar flat nearby. Using Madrid's average asking figures above, you get about 23. Put differently, a year's rent is roughly 4.3% of the price, against mortgage rates of around 3.2%. The higher the ratio, the better renting looks. Run it for the flat you'd actually buy and a comparable one to rent on the same street.
3. What share of the price goes on costs?
On a resale flat, taxes and fees come to about 7% of the price, slightly less for a main home up to €250,000. Convert that into months of rent. It gives you a quick feel for how long you'd need to stay. Then add up the cash the deposit would lock away, and what that money could earn somewhere else.
4. How much flexibility do you need?
As a tenant, you can leave with 30 days' notice once the first six months are up. Selling a flat takes months, and you could end up selling at a bad moment. If being free to move for a job, a relationship or a better school matters to you, give that freedom a value.
5. Does the monthly maths really work?
Set your rent against the costs of owning that you never get back: mortgage interest, IBI, community fees, insurance and repairs, plus what your deposit could earn elsewhere. Don't set it against the whole mortgage payment. Part of that payment pays down the loan, and that part stays yours.
A worked example (an illustration, not advice)
Picture a 65 square metre resale flat, priced 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. Round it to €27,500.
- To rent: about €1,520 a month.
- Cash to buy: a 20% deposit of €84,000 and about €27,500 in taxes and fees, so roughly €111,500.
- The buying costs, in rent: that €27,500 is about 18 months of rent.
- The mortgage: €336,000 over 30 years at about 3.2% comes to roughly €1,450 a month. About €10,600 of the first year's payments is interest.
So the interest on its own is already more than half the rent. Add IBI, community fees, insurance and repairs, plus what your €111,500 could earn elsewhere, and the gap with renting shrinks quickly. You'd still have the €27,500 of buying costs to earn back, and selling costs at the end. That's why time decides it.
Common mistakes that cost people money
- Forgetting the taxes and fees, then finding out you need far more cash than the 20% deposit.
- Assuming the tax is worked out on the price, when the Catastro's reference value may 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 new job or a permit renewal could take you somewhere else within a couple of years.
- Never checking that your fianza was lodged, and losing Madrid's rent deduction as a result.
How Locallista helps
Rent or buy, most of this happens in Spanish: contracts, deeds, bank offers, tax forms. That's where someone who speaks English makes a real difference.
We're a directory of English-speaking local service providers. Every business is checked before it's listed, reviews are phone-verified, and the ranking reflects real expat experience, not who paid the most. Browsing and getting in touch are both free. Our English-speaking real estate agents in Madrid work on both sides, from finding a flat to rent to hunting for one to buy and negotiating the price. For the contract, the arras and the title checks, speak to one of our English-speaking real estate lawyers in Madrid. And for the NIE, the padrón and your tax filings, our bureaucratic services in Madrid can take on 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.


