2026-08-02
Real Estate Taxation in Madrid: Key Taxes When Buying, Selling or Renting a Property
.png)
Real Estate Taxation in Madrid: Taxes When Buying, Selling or Renting
Real estate taxation in Madrid is one of the most important aspects to consider before buying, selling or renting a home. In a property transaction, the asking price is not the only relevant figure: you also need to calculate taxes, associated costs, possible exemptions and subsequent obligations.
For those looking to buy an apartment in Madrid, sell a prime property or invest in Madrid real estate, understanding taxation makes it possible to take decisions with greater confidence and avoid surprises.
This guide summarises the main taxes you should bear in mind in the Madrid property market. As every transaction has its own circumstances, this information should be complemented with personalised tax and legal advice.
Taxes when buying a home in Madrid
Purchase taxation depends mainly on whether the home is a resale property or a new build. This determines whether you pay Property Transfer Tax, known as ITP, or Value Added Tax (VAT, IVA in Spain) together with Stamp Duty (AJD).
Before signing a deposit contract (contrato de arras) or committing to the purchase, it is advisable to calculate the full cost of the transaction. This should include the purchase price, taxes, professional fees, notary and land registry costs and, where applicable, financing costs.
Buying a resale home: ITP
When you buy a resale home, the main tax is Property Transfer Tax (Impuesto sobre Transmisiones Patrimoniales Onerosas), known as ITP.
The Community of Madrid states that this tax applies to paid transfers of assets, such as the purchase of a resale apartment.
In Madrid, the general rate applicable to property transfers is 6%, in accordance with current regional legislation.
This tax is paid by the buyer and should be calculated correctly from the outset. For high-value homes, an apparently small difference in the taxable base can have a significant financial impact.
For example, on the purchase of a resale home for €1,500,000, a general rate of 6% would amount to €90,000, not including the other costs related to the transaction.
Buying a new-build home: VAT and AJD
If you buy a new-build home, you normally do not pay ITP, but VAT and Stamp Duty (Actos Jurídicos Documentados), known as AJD.
The Spanish Tax Agency explains that first deliveries of homes are those acquired from the developer once construction or renovation has been completed, except in certain cases of prior continuous use.
The purchase of a new home is generally subject to the reduced VAT rate of 10%, with specific rules for special-regime or publicly promoted protected housing.
In addition, the purchase of a newly built home also requires the payment of AJD on notarial documents.
This means that buyers of new builds must budget for both VAT and AJD, in addition to the other costs of completing the purchase.
Reference value: why it matters
Since 2022, the reference value (valor de referencia) may influence the taxable base of certain taxes linked to the acquisition of property.
This value affects properties acquired from 1 January 2022 when it has been used as the taxable base for the tax levied on their acquisition, such as ITPAJD or Inheritance and Gift Tax.
For you as a buyer, this means it is not enough to review the price agreed with the seller. You should check whether the property has a reference value, how it compares with the purchase price and what tax implications it may have.
This check should be carried out before signing, especially if the agreed price is lower than the reference value assigned to the property.
Costs associated with the purchase
In addition to taxes, a property purchase involves other costs that should be included in the overall budget:
- Notary.
- Land Registry.
- Administrative agent (gestoría), if used.
- Valuation, when there is financing.
- Legal or tax advisory fees.
- Bank costs associated with the mortgage, where applicable.
In the market for luxury apartments in Madrid, these costs should be built into the overall budget from the very beginning.
Buying a property for €1,500,000 does not mean you only need €1,500,000. Taxes and closing costs must be added to know the actual capital required.
Taxes when selling a home
When you sell a property, the tax picture changes. Instead of ITP or VAT as a buyer, the focus shifts to taxes on any gain obtained and certain municipal obligations.
Before setting the asking price or accepting an offer, it is advisable to calculate the net result of the sale. The asking price does not necessarily match the amount you will finally receive after taxes, the cancellation of charges and costs.
Personal income tax (IRPF): capital gain or loss
If you sell a property, you must include the capital gain or loss generated by the sale in your income tax return.
In general, this gain or loss is calculated as the difference between the transfer value and the acquisition value, taking into account certain costs, taxes and improvements that may be included under the applicable legislation.
This point is especially relevant for sellers of luxury properties in Madrid, as a home bought years ago in areas such as Salamanca, Chamberí, Chamartín or Retiro may have generated a significant capital gain.
To calculate it correctly, it is important to keep the purchase deed, invoices for acquisition costs, tax receipts and documentation for any improvements made to the property.
Main-residence reinvestment exemption
If you sell your main residence and reinvest the proceeds in the purchase or renovation of another main residence, the capital gain may be exempt, provided that the established requirements are met.
The reinvestment must take place within a period of no more than two years, counted from date to date, either before or after the sale.
This exemption can be particularly relevant for families selling an apartment in the centre to buy a larger home in Chamartín, Aravaca, La Moraleja, Pozuelo or Valdemarín.
When the reinvestment does not cover the full amount obtained, the exemption may be applied proportionally. For this reason, it is advisable to analyse the transaction before completing the new purchase.
Taxation for sellers over 65
There is a special rule for people over 65. In certain cases, the sale of a main residence by a person over 65 may be exempt from personal income tax.
Each transaction should be studied according to the owners’ ages, ownership percentages, whether the home is a main residence and the legal status of the property.
For properties shared by several people, the exemption must be analysed individually for each owner.
Municipal capital gains tax (plusvalía)
In addition to income tax, selling a home may give rise to the so-called municipal plusvalía, whose technical name is the Tax on the Increase in Value of Urban Land (Impuesto sobre el Incremento de Valor de los Terrenos de Naturaleza Urbana).
This tax is levied by the City Council and is linked to the increase in value of the urban land during the period in which the seller has owned the property.
In Madrid, it should be calculated before signing in order to know the real net result of the sale.
Selling for a given price is not the same as knowing how much you will finally receive after taxes, mortgage cancellation, fees and transaction costs.
Rental taxation in Madrid
If you let a home, you must declare the income obtained. The tax treatment will depend on whether it is a long-term residential let, a seasonal let, a holiday let or a lease that includes certain services.
The letting of homes used exclusively as dwellings, together with furniture, garages and annexes let with them, is generally exempt from VAT. In these cases, the landlord does not charge this tax to the tenant.
However, if services typical of the hotel industry are provided or the property is used for other purposes, the tax treatment may change.
For this reason, in the luxury rental market in Madrid, it is essential to correctly define the type of contract, its duration and the real purpose of the lease.
Main residence, second home and investment
Taxation is not the same for every use. A main residence may give access to certain exemptions or benefits, while a second home is treated differently.
A home intended for rental, on the other hand, generates income that must be declared and may involve deductible expenses, documentary obligations and different treatment depending on the type of lease.
Before buying, you should define your strategy:
- Main residence.
- Second home.
- Investment for long-term rental.
- Short-term rental.
- Resale after renovation.
This decision affects not only the expected return, but also taxes, financing, the contract and the subsequent management of the asset.
Taxation and renovations
Renovations can also have a tax impact. In a future sale, certain investments or improvements may influence the calculation of the capital gain if they are properly documented.
Cosmetic work without supporting documents is not the same as a renovation backed by invoices, permits, technical projects and proof of payment.
In prime transactions, keeping all documentation related to the renovation is good practice.
This documentation adds commercial value during the sale and may be relevant to justify the investments made and to calculate the possible capital gain correctly.
Taxation for international buyers
Madrid attracts buyers from Europe, Latin America, the United States and the Middle East.
For non-resident buyers, taxation must be planned with particular care. Some of the points worth reviewing are:
- Obtaining an NIE.
- Proof of the origin of funds.
- Opening a bank account in Spain.
- Taxes associated with the purchase.
- Subsequent tax obligations.
- Taxation applicable in the country of residence.
- Possible treaties to avoid double taxation.
If you are buying as a non-resident, it is advisable to coordinate tax advice in Spain with advice in your home jurisdiction to avoid duplication, planning errors or subsequent non-compliance.
Common real estate tax mistakes
The most common mistakes in a property transaction are:
- Calculating only the purchase price and forgetting the taxes.
- Confusing ITP with VAT.
- Not checking the property’s reference value.
- Selling without first calculating income tax and the municipal plusvalía.
- Applying an exemption without meeting all the requirements.
- Not keeping renovation invoices.
- Not distinguishing between a main residence and a second home.
- Signing a deposit contract without knowing the total tax cost.
- Not coordinating Spanish taxation with that of the country of residence.
In the luxury property market, these mistakes can involve large sums and significantly affect the return or the net result of a transaction.
Advice before buying, selling or renting
Before buying, calculate the total acquisition cost. Before selling, determine the net amount you will receive. Before renting out, correctly define the use of the home and the type of contract.
In all cases, work with specialist tax and legal advisers who can analyse your personal circumstances and the specific features of the property.
Taxation should not be seen as a final formality, but as an essential part of your real estate strategy.
Proper planning makes it easier to compare the opportunities available, negotiate with greater confidence and prevent taxes from unexpectedly reducing the return on the transaction.
Buy your new residence
How BARNES Madrid can help you
At BARNES Madrid, we support you in purchases, sales, rentals and investments with a comprehensive approach.
Our service includes the selection of on-market and off-market properties, street-by-street and micro-location valuation, document review, coordination with tax and legal advisers, and support throughout the negotiation and up to signing before a notary.
If you wish to invest in Madrid real estate, buy a prime home or sell luxury properties in Madrid, we help you make decisions with confidence, clarity and sound wealth judgement.
We work in some of the most sought-after areas of the capital, including Salamanca, Chamberí, Chamartín, Retiro, Justicia and Jerónimos.
We look forward to welcoming you at Velázquez 15, in the heart of the Barrio de Salamanca.
