Buying & selling · · 22 min read
Selling a protected flat (VPO, VPPB or VPPL) in the Madrid region in 2026: how long protection lasts, maximum price, authorisation, disqualification, overpricing and taxes
If your flat is a VPO or a VPP (Spanish protected housing), you cannot set any price you like while its protection lasts. We explain how to find out whether it is still protected, how many years protection lasts depending on the rules under which it was classified, when you need authorisation from the Comunidad de Madrid (the regional government), how the maximum price is calculated with the 2026 tables, when it can be disqualified, what happens with pre-emption and buy-back rights, why overpricing is illegal and which taxes apply, as known on 14 November 2026.

Selling a protected flat is not like selling an ordinary one. While its protection regime lasts, the law sets a maximum price, you sometimes need authorisation from the Comunidad de Madrid and, if you received aid, you may have to pay it back with interest. Once the period is over, however, you can sell at market price. So the first question is not what your home is worth, but whether it is still protected and until when.
With the regulations and official pages in front of us, we explain how to check, how long protection lasts for each type of home, what happened to Law 12/2023 on the right to housing, how the maximum price is calculated, when a home can be disqualified, what is required of the buyer, why under-the-table money is illegal and which taxes apply.
The essentials in one minute
- Look at your cédula de calificación definitiva (final classification certificate) and a recent nota simple (Land Registry summary): they show the regime, the classification date and the restrictions.
- VPP homes for sale under the 2009 regulation (Decree 74/2009): 15 years of protection from final classification, with no voluntary disqualification. When the period ends, protection lapses.
- VPO homes under Royal Decree-law 31/1978: a 30-year legal regime from classification.
- With a qualified loan or aid from the 2005-2008 or 2009-2012 state housing plans, voluntary disqualification is not possible; under the 2009-2012 plan, protection lasts at least 30 years.
- While it lasts, you can sell at the legal maximum price: in 2026, €2,591.64 per m² of usable floor area for a VPPB under Decree 74/2009 in the city of Madrid and €2,983.03 for a VPPL.
- In 2024 the Constitutional Court struck down article 16 and the first transitional provision of Law 12/2023: the state law does not extend your period.
- Charging above the maximum price, for whatever reason, is illegal: fines of €6,001 to €60,000, repayment to the buyer and a possible buy-back by the Comunidad.
Is your flat still protected? How to check
The fact that your neighbours have sold freely does not mean your flat is free too: within the same development there may be different regimes and aid, or homes already disqualified. These documents settle it:
- The final classification certificate: it states the regime, the date and the usable floor area. According to the Comunidad, if you do not have it, find the classification number and date in your title deed and request it from area_de_calificaciones@madrid.org.
- The nota simple from the Land Registry (the summary of who owns the home and what charges it has). Restrictions are recorded in the Registry; Royal Decree 2066/2008, for example, provides for a marginal note.
- Your title deed: Decree 74/2009 requires the price restriction on resales to appear in it so it can be registered.
- If you still have doubts, the Comunidad: you can request a report for the sale of protected homes, which confirms whether you need authorisation and sets the maximum price, or ask at the Oficina de Vivienda (Avenida de Asturias, 28, by appointment, or oficinavivienda@madrid.org).
The acronyms: VPO is the classic state regime (Royal Decree-law 31/1978), either privately or publicly developed (in Madrid, by the former IVIMA, now the Agencia de Vivienda Social, the regional social housing agency). VPP is the Comunidad de Madrid’s name, with several regulations (Decrees 43/1997, 228/1998, 11/2001, 11/2005 and the current one, 74/2009). VPPB and VPPL are the basic-price and limited-price types, the latter being higher. This article is about owner-occupied flats: if you rent a protected home or one from the Plan Vive (the regional affordable rental programme), you are a tenant and cannot sell it (we cover that in “Protected and public rental housing in 2026 in Madrid and Barcelona”).
How long protection lasts: it depends on the rules it was classified under
There is no single period: each home keeps the one set by its classification. These are the most common cases in the Madrid region:
| Type of home | Protection period | Can it be sold freely? | What to do |
|---|---|---|---|
| VPP for sale (VPPB or VPPL) under Decree 74/2009, without state aid | 15 years from final classification | Yes, once the 15 years are up; before that, no voluntary disqualification | Before the end, sell at the maximum price; without a qualified loan or aid, no authorisation is needed |
| VPP with aid from the 2009-2012 state plan (Royal Decree 2066/2008) | At least 30 years; permanent for as long as the land regime lasts if built on land earmarked for protected housing or public facilities | Not while it lasts; no voluntary disqualification | Maximum price. Within 10 years of your purchase: authorisation, cancel the loan and repay the aid with interest |
| VPP or VPO with aid from the 2005-2008 state plan (Royal Decree 801/2005) | The one in its classification | Not while it lasts; no voluntary disqualification | Maximum price: the initial price updated by CPI and multiplied by 1.5; authorisation within the aid period |
| VPP under earlier regulations (Decrees 43/1997 to 11/2005), without that aid | The one in its classification | When the period ends, or earlier through disqualification if 15 years have passed since final classification | VPPB maximum price, or VPPL if it is a limited-price home under Decree 11/2005 |
| Privately developed VPO (Royal Decree-law 31/1978) | 30 years from classification | After 30 years, or earlier through disqualification if 15 years have passed and there was no 2005-2008 or 2009-2012 state aid | VPPB maximum price while it lasts |
| Publicly developed VPO | The one in its classification | Those under Royal Decree-law 31/1978 can never be disqualified; others, after 5 years from purchase and with all deferred amounts paid | Cannot be sold until 5 years after purchase, unless there is just cause, and needs authorisation |
| Bought by exercising a purchase option (Decree 11/2005) | The one in its classification plus 3 years | Not until 3 years after protection ends | During those 3 years, VPPB maximum price |
| Bought with a purchase option (Decree 74/2009) | 10 years from final classification | Not during the rest of those 10 years | It cannot be sold above the basic price |
Sources: Decree 74/2009 (arts. 10, 12.5 and 24.3), Decree 59/2013 (third and eighth additional provisions of Decree 74/2009), Royal Decree-law 31/1978 (art. 1), Royal Decree 2066/2008 (arts. 5 and 6) and Comunidad de Madrid pages on transfer authorisation and disqualification. This is a summary: your certificate and your deed may set a different period.
Watch the dates: the protection period runs from final classification, not from your purchase, except where the rules refer to the purchase date (public developments and the 10 years for 2009-2012 plan aid). And before selling at a free price, it is worth having written proof that the home is no longer protected, through the Comunidad’s report or a nota simple without the restriction.
Law 12/2023 and “permanent protection”: what still stands
Many people have heard that, under the state law on the right to housing, protected housing is protected “for ever” or for at least 30 years. Law 12/2023, in force since 26 May 2023, included an article 16 on protected housing and a first transitional provision on homes already classified. But the Constitutional Court, in Judgment 79/2024 of 21 May (BOE of 24 June 2024), declared them unconstitutional and void.
The Court found that article 16 regulated protected housing in a level of detail that encroaches on the regions’ powers, and that the transitional provision only sought to bring under Law 12/2023 the homes that were not yet subject to it. In the BOE consolidated text both now appear as annulled. For a protected flat in Madrid, the rules under which it was classified still apply.
When you can sell and when you need authorisation
While protection lasts, you can sell at the maximum price in force in your municipality on the date of sale. According to the Comunidad de Madrid, you also need its prior authorisation in two cases:
- Publicly developed VPO: they cannot be sold until 5 years after purchase, unless there is just cause.
- Homes with a qualified loan or aid, within the restriction period of the plan that granted it: the aid must be repaid with statutory interest and the loan cancelled or switched to an ordinary one. The Comunidad indicates 5 years from receipt of aid under its own plans and 10 years from the loan subrogation under state plans.
No authorisation is needed, although the maximum price still applies, if the home was privately developed and bought without a qualified loan or aid, if the aid restriction period has passed, when a marital community of property is dissolved or a co-ownership ended, when a tenant exercises a purchase option, or for premises and garages not linked to the home. In those cases, the report for the sale confirms it.
Authorisation is requested from the Dirección General de Vivienda y Rehabilitación. According to the e-office, the fee is €55.58, the time limit for a decision is six months and, with no reply, it is deemed refused. Apply before signing the arras (the reservation contract with a deposit) or state in them what happens if it does not arrive in time.
Maximum sale price: how it is calculated
Under Decree 74/2009, on second and later sales the price per square metre of usable floor area cannot exceed the one in force for newly classified protected homes in the same locality on the date of sale. What you paid does not count; the table for the year you sell does, and the usable floor area (the area you walk on, without walls) is the one in your certificate, not the one in the advert or the Cadastre. Linked garages and storage rooms have a price that is a percentage of the home’s, with a maximum countable area of 25 and 8 usable square metres. With aid under Royal Decree 801/2005, the price is the initial one updated by CPI and multiplied by 1.5.
| Home or annex (euros per usable m², 2026) | Zone A | Zone B | Zone C |
|---|---|---|---|
| VPPB under Decree 74/2009: home | 2,591.64 | 2,231.98 | 2,009.84 |
| VPPB under Decree 74/2009: first linked garage and storage room (50%) | 1,295.82 | 1,115.99 | 1,004.92 |
| VPPL under Decree 74/2009: home | 2,983.03 | 2,570.48 | 2,306.03 |
| VPPL under Decree 74/2009: first linked garage and storage room (50%) | 1,491.52 | 1,285.24 | 1,153.02 |
| General and special regime VPO, VPP and VPPB prior to Decree 74/2009: home | 2,591.64 | 2,231.98 | 2,009.84 |
| Same homes: garage and storage room | 1,554.98 | 1,339.19 | 1,205.90 |
| VPPL under Decree 11/2005: home | 2,983.03 | 2,570.48 | 2,306.03 |
| VPPL under Decree 11/2005: garage and storage room | 1,789.82 | 1,542.29 | 1,383.62 |
Source: Comunidad de Madrid 2026 maximum price tables for private developments (resolution of the Dirección General de Vivienda y Rehabilitación of 19 January 2026, BOCM of 30 January 2026). Those for Decree 74/2009 refer to homes without aid under Royal Decree 801/2005. Public developments have their own table. Prices are updated every year.
Zone A comprises Alcobendas, Boadilla del Monte, Las Rozas de Madrid, Madrid, Majadahonda, Pozuelo de Alarcón, San Sebastián de los Reyes and Tres Cantos. Zone B groups some forty municipalities, including Alcalá de Henares, Alcorcón, Fuenlabrada, Getafe, Leganés, Móstoles, Parla and Torrejón de Ardoz. Zone C is the rest of the region.
Illustrative example of a maximum price
Illustrative example, only to understand the calculation. Assumptions: a VPPB under Decree 74/2009 in the city of Madrid (zone A), within its 15 years of protection, without aid under Royal Decree 801/2005, with 70 usable m² according to the certificate, a linked garage of 25 usable m² and a storage room of 8, sold in 2026:
- Home: 70 m² × €2,591.64 = €181,414.80.
- Garage: 25 m² × €1,295.82 = €32,395.50.
- Storage room: 8 m² × €1,295.82 = €10,366.56.
- Total: €224,176.86 at most. If it were a VPPL with the same floor area, it would come to €258,032.26, according to our calculation with the Comunidad’s table.
It is a ceiling: you can sell for less, never for more. Confirm the usable floor area and the regime in your certificate and, if in doubt, ask for the Comunidad’s report. If the deed is signed in 2027, the table in force on that date will apply.
Voluntary disqualification: when it is possible and what it costs
Disqualifying means asking for your home to stop being protected before its period ends; afterwards, its price, use and purpose are no longer restricted. According to the Comunidad de Madrid e-office:
- Privately developed VPO and VPP: at least 15 years must have passed since final classification, with no harm to third parties.
- Publicly developed VPO: 5 years from purchase, unless there is just cause, all deferred amounts paid to the Agencia de Vivienda Social and the purchase in a public deed. Those under Royal Decree-law 31/1978 cannot be disqualified.
- Rental homes while that regime lasts, social integration homes and those that had a qualified loan or aid under Royal Decrees 801/2005 or 2066/2008 can never be disqualified.
- For VPP under Decree 74/2009, the regulation rules out voluntary disqualification: you have to wait for the 15 years to pass.
The expensive part is not the fee (€55.58) but what has to be repaid: all aid, exemptions and allowances received, with statutory interest, plus cancelling or novating the qualified loan. They may come from the Ministry, the Comunidad’s Dirección General de Tributos (ITP or AJD, the transfer and stamp duties), the Agencia de Vivienda Social, the Dirección General de Vivienda or the town hall (building licence, municipal capital gains tax or IBI, the property tax). The Comunidad has five months to decide; with no reply, it is deemed refused, and the decision is entered in the Registry. Before applying, compare what you would repay with what you would gain by selling freely, especially if the period is close to ending.
Pre-emption and buy-back: can the Comunidad take your flat?
Tanteo (pre-emption) is the right to buy first, on the same terms, before you sell to someone else; retracto (buy-back) is the right to take the home after a sale. In protected housing in Madrid they arise as follows:
- Through aid: Royal Decree 2066/2008 allows homes under the 2009-2012 plan to be subject to preferential acquisition rights that may take the form of pre-emption and buy-back. If this is your case, it will appear in the classification, the deed or the nota simple.
- Through an offence: Law 9/2003 allows the Comunidad to exercise buy-back “at the legal maximum price” if more than allowed was charged or if someone not eligible bought the home, within three months of the final decision.
- For homes allocated by a municipal company, the Comunidad reminds owners to check the sale conditions with the town hall.
If your nota simple shows a registered pre-emption or buy-back right, ask the Dirección General how to notify the sale before signing anything.
What is required of the buyer
On the first sale, by the developer, Decree 74/2009 requires a household income of up to 5.5 times the IPREM (the public indicator used to measure income) for basic price and 7.5 for limited price, and not owning another home in Spain, with exceptions for inheritance or divorce. For resales, the text we have read does not repeat those requirements: it sets the maximum price. But it requires the home to be the usual and permanent residence, not a second home, and not to be empty for more than three consecutive months a year without authorised cause. Earlier regimes or those with aid may require more, and if the buyer does not qualify, the Comunidad can exercise buy-back: check with the Dirección General. And explain to the buyer that, when they sell, they will also face a maximum price if protection is still in force.
Overpricing: under-the-table money is illegal
Let us be clear: charging more than the maximum price for a protected home is illegal, even if it is done outside the deed, in cash or disguised as payment for furniture, a kitchen, improvements or a supposed “key money”. Madrid’s Law 9/2003 classes as a very serious offence “receiving, for whatever reason” amounts not permitted, including those justified by improvements or fittings, and merely asking for them is already a serious offence. According to the text published in the BOE in 2003, the consequences are:
- Fines of €6,001 to €60,000 if very serious and €1,501 to €6,000 if serious; the penalty, together with other measures, must at least equal the benefit obtained.
- Repaying the buyer what was overcharged, with coercive fines of up to 20% if this is not done.
- Buy-back by the Comunidad at the legal maximum price.
- Additional penalties, such as disqualification of the home or loss of subsidies.
On top of that, putting a false price in the deed has tax consequences for both parties, and the buyer’s bank only lends on the price in the deed. If someone suggests paying “a part separately”, the answer is no.
Taxes when selling a protected flat
- IRPF, Spanish income tax (seller): the capital gain is taxed. According to the Agencia Tributaria (Spanish tax agency), the gain is exempt for people over 65 selling their main home; you can also avoid tax if you reinvest in another main home, subject to the legal requirements.
- Plusvalía municipal, the municipal capital gains tax (seller): in the city of Madrid, a 29% rate in 2026 on the cadastral value of the land times a coefficient based on the years held, or on the actual gain if lower; 30 working days from the deed to pay. If you sell at a loss there is nothing to pay, but it must be declared.
- ITP, property transfer tax (buyer from a private seller): in the Madrid region, 6% in general and 4% for large families buying their main home, or a 10% allowance for main homes of up to €250,000, which cannot be combined with the 4%. The Comunidad’s page does not show a special rate for second-hand protected housing.
- If you disqualify: repayment with interest of the exemptions and allowances applied (ITP, AJD, municipal capital gains tax or IBI, as the case may be).
Our lawyers carry out the calculation of the relevant taxes before you set the price. Each tax is covered in detail in “Taxes when selling a flat in 2026: municipal capital gains tax in Madrid, income tax and exemptions”.
Documents you need
- Final classification certificate.
- Up-to-date nota simple, to see restrictions, any pre-emption or buy-back rights and charges.
- Purchase deed.
- Authorisation from the Comunidad or report for the sale, depending on the case.
- If there was a qualified loan: a certificate from the bank and, where needed, its cancellation or novation.
- If it was disqualified: the decision entered in the Registry.
- Those for any sale: energy certificate, IBI, certificate from the owners’ association… We go through them in “Documents to sell a flat in Madrid in 2026: full list, where to get them and what they cost”.
Step by step
- Gather the certificate, deed and nota simple, and find the rules and the date of final classification.
- Check whether it is still protected and whether there was a qualified loan or aid; if in doubt, ask the Comunidad for the report.
- Choose: sell at the maximum price, wait for the period to end or, where possible, disqualify after calculating what you would have to repay.
- Calculate the maximum price with the current table and the usable floor area, including linked garage and storage room.
- If you need authorisation, apply as soon as possible and protect the arras with a condition.
- Sign before a notary with the real price and, where applicable, the restriction in the deed; pay the municipal capital gains tax and declare the sale in your income tax return.
How we do it at Llavely
At Llavely we sell homes in the Madrid region and we handle everything: you contact us and we take care of the rest. We review every property in under 24 hours, and the valuation, photos, video, floor plan and virtual tour are included. If your flat is protected, the first thing we look at with you is the certificate, the deed and the nota simple, to find out whether it is still protected, what its maximum price is and whether authorisation or a report is needed. Before showing it, we talk to every buyer so they know from the start that it is a protected home and how they would pay for it.
The authorisation, report or disqualification is requested by the owner from the Comunidad de Madrid; we review it with you and coordinate the timing with the buyer and the notary. Our specialist lawyers review the paperwork and the arras, carry out the calculation of the relevant taxes and accompany you until signing, always with the real price in the deed. You pay 2.5% + VAT of the price, only if the home sells. If you want to know what your home is worth, ask for your free valuation.
Frequently asked questions
How many years must pass before a VPO or VPP can be sold at a free price in Madrid?
It depends on its rules. VPP for sale under Decree 74/2009, 15 years from final classification; VPO under Royal Decree-law 31/1978, 30 years; those with aid from the 2009-2012 state plan, at least 30 years, or permanent protection on land earmarked for protected housing. The exact period is in your certificate.
Can I sell my protected flat before protection ends?
Yes, at the maximum price in force in your municipality. You need authorisation if it was publicly developed and 5 years have not passed since purchase, or if you had a qualified loan or aid within its restriction period; in that case the aid must be repaid with statutory interest.
What is the maximum price of a VPPB or VPPL in Madrid in 2026?
According to the Comunidad’s 2026 tables, a VPPB under Decree 74/2009 in zone A (which includes the city of Madrid) cannot exceed €2,591.64 per usable square metre, and a VPPL €2,983.03. In zone B, €2,231.98 and €2,570.48; in zone C, €2,009.84 and €2,306.03.
Does the 2023 Housing Law make my VPO protected for ever?
No. Constitutional Court Judgment 79/2024 struck down article 16 and the first transitional provision of Law 12/2023. Your home keeps the period of its classification.
How is a protected home disqualified in the Madrid region?
You apply to the Dirección General de Vivienda y Rehabilitación, with a €55.58 fee. For privately developed VPO and VPP, at least 15 years must have passed since final classification, and it is not possible with aid from the 2005-2008 or 2009-2012 state plans. Aid and allowances must be repaid with interest. A decision is due within five months at most; with no reply, it is deemed refused.
What happens if I take under-the-table money above the maximum price?
It is illegal: Madrid’s Law 9/2003 treats it as a very serious offence, with fines of €6,001 to €60,000, repayment to the buyer of the overcharge and a possible buy-back by the Comunidad at the legal maximum price.
How do I know whether my flat is still a VPO?
Look at the final classification certificate, the deed and a recent nota simple. If in doubt, ask the Comunidad for the report for the sale of protected homes, which says whether you need authorisation and what the maximum price is.
Does the buyer of a protected home have to meet requirements?
On the first sale, Decree 74/2009 sets maximum income (5.5 times the IPREM for basic price and 7.5 for limited) and not owning another home. On resales it requires the home to be the usual and permanent residence; some regimes require more, so check with the Comunidad.
Sources
- Decree 74/2009 of 30 July approving the Regulation on Publicly Protected Housing of the Comunidad de Madrid (BOCM no. 188, 10 August 2009)
- Decree 59/2013 of 18 July amending the Regulation on Publicly Protected Housing of the Comunidad de Madrid (BOCM no. 172, 22 July 2013)
- 2026 maximum sale prices for VPPB and VPPL under Decree 74/2009 (Comunidad de Madrid, according to the resolution published in the BOCM on 30 January 2026)
- 2026 maximum sale prices for VPO, VPP, VPPB and VPPL prior to Decree 74/2009 (Comunidad de Madrid)
- I have a protected home and want to sell it (Comunidad de Madrid, updated 5 November 2026)
- Authorisation to transfer a VPO or VPP (Comunidad de Madrid e-office, updated 8 October 2026)
- Disqualification of publicly protected or officially protected housing (Comunidad de Madrid e-office, updated 30 May 2025)
- Draft decree for the Regulation on Publicly Protected Housing of the Comunidad de Madrid, 13 March 2026 (Comunidad de Madrid Transparency Portal)
- Law 9/2003 of 26 March on the penalty regime for protected housing in the Comunidad de Madrid (BOE no. 128, 29 May 2003)
- Royal Decree-law 31/1978 of 31 October on officially protected housing policy, consolidated text (BOE)
- Royal Decree 2066/2008 of 12 December regulating the 2009-2012 State Housing and Renovation Plan, consolidated text (BOE)
- Law 12/2023 of 24 May on the right to housing, consolidated text (BOE)
- Constitutional Court Judgment 79/2024 of 21 May on Law 12/2023 (BOE no. 152, 24 June 2024)
- Property transfer tax (ITP): rates and allowances (Comunidad de Madrid, updated 3 November 2026)
- How the municipal capital gains tax is calculated (Madrid City Council Tax Agency)
- Transfer of the main home by people over 65, 2025 income tax manual (Agencia Tributaria)