Selling a property on the Costa del Sol: Andalusia's rules, taxes and paperwork
Selling a property on the Costa del Sol, in Málaga province, follows the same national steps as a sale anywhere in Spain: you agree a price, sign a private deposit contract (the contrato de arras) and then sign the deed of sale (the escritura) before a notary, which is when you are paid. The tax on any gain and the 3% retention for non-resident sellers are national. What is Andalusian is the planning law that decides whether your home is in order to be occupied, the treatment of older builds on rustic land (the AFO), the inheritance tax reliefs, and the register for tourist lets. Each town hall, from Marbella and Estepona to Fuengirola and Nerja, sets its own plusvalía rate.
This guide sets out those local points as they stand in November 2026. It is general information, so ask a Spanish lawyer to check your own property and a tax adviser to check your own figures.
What is national and what is Andalusian
| Item | Who sets the rules | What it means for you |
|---|---|---|
| The sale itself: arras, notary, Land Registry | National | The same steps as the rest of Spain |
| Tax on the gain and the 3% retention | National (Agencia Tributaria) | The same rates and forms in every region |
| Plusvalía municipal | The town hall, within national limits | The rate and coefficients differ between Marbella, Mijas, Benalmádena and the rest |
| Occupation and planning (licence, declaración responsable, AFO) | Andalusia's planning law, applied by the town hall | Decides whether the home is in order and can be connected to utilities |
| Inheritance tax reliefs | Andalusia, where its rules apply | Matters if you inherited the property |
| Tourist lets | Andalusia and the town hall, plus a national rule for communities of owners | Decides whether a buyer can carry on letting |
Most taxes a seller pays are national or local. The region's own taxes mainly fall on the buyer (the transfer tax) and on heirs.
Occupation: licence or declaración responsable
Andalusia does not issue a cédula de habitabilidad, the certificate some regions use to show a home is fit to live in. Instead, its 2021 planning law, the Ley de impulso para la sostenibilidad del territorio de Andalucía (LISTA), works through the town hall.
Under article 138 of the LISTA, two kinds of occupation are covered by a declaración responsable, a signed declaration filed with the town hall:
- The occupation of buildings built under a licence or declaration of works, once they are finished and match it.
- The occupation of existing buildings on urban land that conform to the planning rules and have not had works done.
Buyers' lawyers generally ask to see the licence or declaration, and utility companies may ask for it to open new contracts. If you can't find yours, ask the town hall's urbanismo department early. Our guide to the habitation licence when selling in Spain compares the rules region by region.
Older builds outside urban land: the AFO
Many villas and fincas in the hills behind the coast sit on rustic land (suelo rústico), and some were built or extended without a licence. Andalusia has a specific status for these: asimilado a fuera de ordenación, or AFO.
The time limit for the town hall. Under article 153 of the LISTA, the town hall can only take action to restore planning legality while works are under way and within six years of their full completion, or from when outward signs made them known. Some cases have no time limit at all, including works on rustic land in the coastal influence zone, on rustic land at real risk of flooding or landslides, on public land, on green spaces and on catalogued heritage.
What the AFO is. Under article 173, a finished irregular building that can no longer be ordered down, because the time limit has passed, is in the AFO situation. The town hall recognises it through a formal procedure, with six months to decide. If it doesn't decide in time, the application counts as refused.
What it does and doesn't do. Article 174 is clear that an AFO is not a legalisation. What it does matter for:
- Until it is recognised, the building cannot be connected to basic services such as water and electricity, and no works can be done on it except those the town hall orders for safety.
- Once recognised, it can be connected where only the connection works are needed, and the recognition is noted in the Land Registry.
- Conservation and repair works can then be licensed, but not works that add to the built area or volume.
What to do before selling. Ask your lawyer to compare the deed, the cadastre (the Catastro, the tax register of land and buildings) and what is actually built. Where they differ, find out whether the time limit has passed and whether an AFO application is worth starting before you look for a buyer. A buyer who needs a mortgage will usually have the property valued and checked by the lender, so gaps in the paperwork tend to come out then. The neighbouring Almería guide and our guide to selling with illegal extensions go further.
The taxes when you sell
Tax on the gain (national). If you are tax resident in Spain, the gain goes in your income tax return. If you are not, the Agencia Tributaria's manual for non-residents gives the rate as 19% as of November 2026. The buyer must hold back 3% of the agreed price and pay it to the tax office on Modelo 211 within one month of the sale. You then file Modelo 210 within three months, counted from the end of that first month, and either pay the difference or claim back any excess. See the 3% retention for non-resident sellers.
Plusvalía municipal (local). This is the town hall's tax on the rise in the value of the land. The seller pays it on a sale, and it must be declared to the town hall within 30 working days. The national law caps the rate at 30% and lets each town hall set its own within that limit, so the bill for similar homes in two neighbouring towns can differ. When the seller is an individual not resident in Spain, the law makes the buyer pay it in the seller's place, which is why buyers' lawyers generally keep back an estimate from the price. See plusvalía municipal explained.
If you live in the UK. GOV.UK says UK residents pay Capital Gains Tax when they dispose of overseas property, and that you may be able to claim relief if you are taxed twice. Take advice in both countries.
If you inherited the property
Heirs have to accept the inheritance and deal with inheritance tax before they can sell. Where Andalusia's rules apply, the Agencia Tributaria de Andalucía lists these reliefs for close family as of November 2026:
| Relief | Who it covers | Amount |
|---|---|---|
| Reduction by kinship | Groups I and II (children and other descendants, spouses, parents), deaths from 1 January 2022 | Up to €1,000,000 per heir |
| Bonus on the tax still due | Groups I and II | 99% off |
| Main home | Spouse, descendants, ascendants and some others, if the heir keeps it for three years | 99% reduction |
Note the condition on the main-home relief: the heir must keep the property for three years after the death. Selling sooner can affect it, so check before you agree a sale. Plusvalía is also due on an inheritance, with six months to declare it, extendable to a year. Our guide to selling an inherited property in Spain covers the whole process.
Holiday lets on the Costa del Sol
If you let the property to tourists, the buyer may want to carry on. Three layers of rules decide whether they can:
- Andalusia's register. A tourist home must be registered in the Registro de Turismo de Andalucía through an online declaración responsable. As amended by Decreto 31/2024, the rules allow only one tourist home per cadastral reference, and the registration is held by the person running the let, not attached to the building. Any change must be communicated to the register.
- The town hall. Decreto 31/2024 lets town halls set proportionate limits on tourist homes by building, area or zone. Ask the town hall what applies to your street before telling a buyer the property can be let.
- The community of owners. Since 3 April 2025, national law says an owner in a community who wants to start a tourist let needs the community's express approval, voted by three-fifths of the owners holding three-fifths of the shares.
Hand the buyer your registration number and your booking records, and say plainly which bookings are already taken. Our guide to selling a holiday let with a tourist licence covers this in more depth.
Choosing how to sell
The Costa del Sol draws a wide mix of buyers: people looking for a holiday or retirement home, many of them from abroad, local families, and investors looking for a let. Some will need a mortgage and some will buy with cash.
When an estate agent is likely to get you more: the property is in good order, the paperwork is complete and you can wait for the right buyer. An agent marketing it on the open market will usually achieve the highest price.
When a cash buyer can make sense: you need certainty, you are selling from abroad, or the property has a paperwork problem, such as an AFO still to be recognised, that puts off buyers who need a mortgage. The trade-off is the price: cash buyers usually offer less than the asking prices on the property portals.
Your House Bought's cash buyer panel is one way to test that route. There is one fixed fee: €299 to list the property with the panel, confirmed in writing first. Every offer is passed to you in writing, whether to accept is your decision alone, and you can still use an estate agent at the same time. See selling to a cash buyer in Spain.
The paperwork that most often holds sales up
- The deed, the cadastre and reality don't match. A pool, extension or converted garage that isn't on the deed or the cadastre needs explaining before the buyer's lawyer finds it.
- No occupation licence or declaration, or no AFO for a build on rustic land.
- The community certificate. Under the Horizontal Property Law, the seller must give the notary a certificate of what is owed to the community. Without it the deed can't be signed unless the buyer expressly waives it, because the buyer's property answers for debts from the current year and the three years before.
- Unpaid IBI. Spain's notaries check that there is no unpaid property tax from earlier years that can still be claimed.
- A power of attorney that is missing, out of date or too narrow, if you won't be at the notary. See selling a property in Spain from the UK.
- The mortgage. The bank's certificate of the balance has to be ready for completion day.
On completion day, Spain's notaries recommend payment by a bank cheque in your name or a bank transfer, and the notary records how the price was paid. For the full sequence, see how to sell a property in Spain.
Questions people ask
Do I need a cédula de habitabilidad to sell in Andalusia?
No. Andalusia does not use a cédula. Under its 2021 planning law (LISTA), the occupation of an existing building on urban land that conforms to the planning rules is covered by a declaración responsable, a signed declaration filed with the town hall, and newer buildings have a licence or declaration of occupation. Buyers' lawyers and utility companies may ask to see it, so find yours before you market the property.
What is an AFO and do I need one to sell?
AFO stands for asimilado a fuera de ordenación. It is the status Andalusian law gives a finished building that was built irregularly but can no longer be ordered down because the time limit for action has passed. The town hall recognises it by a formal procedure. It is not a legalisation, but without it the building cannot be connected to basic services. A sale is possible without one, but buyers and their lawyers will ask.
How long does the town hall have to act against an unlicensed build in Andalusia?
As of November 2026, article 153 of Andalusia's planning law gives six years from the full completion of the works, or from when outward signs made them known. Some cases have no time limit at all, including works on rustic land in the coastal influence zone, on land at risk of flooding or landslides, on public land, on green spaces and on catalogued heritage. A lawyer should check which applies to your property.
Is inheritance tax low in Andalusia if I inherited the villa?
For close family it usually is. As of November 2026, the Agencia Tributaria de Andalucía lists a reduction of up to €1,000,000 for each heir in groups I and II (children, spouses and parents) for deaths from 1 January 2022, and then a 99% reduction of the tax still due. Whether Andalusia's rules apply depends on the circumstances of the person who died, so take advice.
Can the buyer keep my holiday-let registration on the Costa del Sol?
Not automatically. In Andalusia a tourist home is registered in the Registro de Turismo de Andalucía through a declaración responsable, and the registration belongs to the person running the let, not to the building. Town halls can limit tourist homes by building or zone, and since April 2025 a new tourist let in a community of owners needs the approval of three-fifths of the owners.
Sources
- Ley 7/2021 de impulso para la sostenibilidad del territorio de Andalucía, articles 138, 153, 173 and 174 (Boletín Oficial del Estado)
- Beneficios fiscales en el impuesto sobre sucesiones (Agencia Tributaria de Andalucía, Junta de Andalucía)
- Decreto 31/2024, por el que se modifican disposiciones sobre viviendas de uso turístico (BOJA, Junta de Andalucía)
- Ganancias patrimoniales derivadas de la venta de inmuebles, Manual de tributación de no residentes (Agencia Tributaria)
- Modelo 210: modelo y plazo de declaración (Agencia Tributaria)
- Texto refundido de la Ley Reguladora de las Haciendas Locales, articles 106, 108 and 110 (Boletín Oficial del Estado)
- Ley 49/1960 sobre propiedad horizontal, articles 7, 9 and 17 (Boletín Oficial del Estado)
- Houses and real estate properties (Consejo General del Notariado)
- Tax when you sell property: selling overseas property (GOV.UK)
Related guides
Selling a property with illegal extensions in Spain: what to check and what you can do
You can usually sell a Spanish property with an unlicensed extension, pool or conversion, but it affects who buys and the price. Each region sets how long the town hall has to act: six years in Andalusia and Catalonia, eight in the Balearic Islands and fifteen in the Valencian Community, with no limit on some land. Running out of time does not make work legal, but it can open routes to register it.
The processThe habitation licence when selling in Spain: cédula, occupation licence or declaration
Spain has no single national habitation licence. Each region sets its own document: Catalonia and the Balearic Islands use a cédula de habitabilidad, the Valencian Community an occupation licence renewed after ten years, and Andalusia and Murcia a declaration filed with the town hall. Utility companies must ask for it, and in Catalonia the notary must too. A technician inspects the home to renew it.
Your situationSelling a property in Almería: Mojácar, Vera, Albox and the Almanzora valley
Selling a property in Almería follows Spain's national steps and Andalusia's planning law. Many country houses inland, especially in the Almanzora valley, were built on rustic land without a valid licence. Where the six-year limit for the town hall to act has passed, the owner can ask for an AFO declaration, which allows registration, utilities and repairs but does not make the house legal.
General information about selling property in Spain, not legal, tax or financial advice. Rules and rates change and differ between regions, so check with a Spanish lawyer or tax adviser. Last checked 25 November 2026.