Coastal Building Restrictions in Madrid: What Ley de Costas Means for Buyers
Seafront and near-beach properties in Madrid can be subject to Spain's coastal protection law, the Ley de Costas. Before signing anything, buyers from the United Kingdom should understand how it affects ownership, renovation permits and, in some older cases, demolition risk.
Who is behind this page. Sókerim is a Spanish real-estate agency (Lyrio Home Solutions, S.L.) with offices in the Madrid region and Alicante and a network of about 1,000 collaborating agencies across Spain. We help people who live abroad find, buy and manage property in Spain, in English, from the first search to the keys.
Why This Law Matters Before You Buy in Madrid
Spain's coastline is treated as public property along a strip nearest the sea, and the Ley de Costas (Coastal Law) sets out how far that public domain reaches and what can be built near it. For a buyer looking at Madrid, this is not abstract legal theory: it can determine whether a house can be extended, whether a terrace built decades ago is fully legal, and, in rare cases involving older constructions close to the shoreline, whether a property's long-term future is secure.
None of this means buying near the sea in Madrid is unwise. Thousands of coastal homes are bought, renovated and enjoyed every year. It simply means the checks need to happen before you commit, not after, and that a local lawyer who reviews the land registry entry, the cadastral file and any municipal coastal certificate is essential rather than optional for this type of purchase.
A property can be perfectly saleable and still carry restrictions on reform or extension if part of it sits within a protected coastal strip — always ask for this in writing before making an offer.
Buying in Madrid: what changes here
Madrid province is centred on the Spanish capital, an inland city with no coastline, drawing buyers focused on urban life, business connections or investment rather than beach lifestyle. Many buyers are professionals relocating for work, families using international schools, or investors targeting rental demand.
Madrid-Barajas is one of Spain's main international airports, offering extensive global connections. Property in the city centre is mostly apartments, while outer areas of the province offer houses and chalets, and demand stays fairly constant through the year rather than following a summer season.
Here you will find measured figures on Madrid (province): who lives there, what homes cost to buy, how the area is reached, and its climate, each with its source. They give a realistic basis for your decision on Madrid (province), whatever you plan to do with the property.
The people who live in Madrid (province)
According to the INE annual census, 7,113,886 people were registered as living in the whole of Madrid province on 1 January 2025. The count takes in every town and village across the province, not only its capital. Foreign nationals make up 1,181,319 residents of the province of Madrid, roughly 17 per 100 inhabitants. The figure is meaningful without being overwhelming, and it shifts noticeably depending on which town in the province you look at.
Only 10,938 British nationals appear in INE's register for the whole province of Madrid on 1 January 2025, a small number of compatriots. The padrón only counts people living there most of the year, so second-home owners in the province are not included. The following table shows the leading foreign nationalities registered in Madrid (province) on 1 January 2025, according to the municipal-level data INE makes available.
| Nationality | 2025 | 2021 | Per 100 inhabitants |
|---|---|---|---|
| Colombia | 132,637 | 60,913 | 1.9 |
| Romania | 132,042 | 153,125 | 1.9 |
| Venezuela | 118,230 | 61,004 | 1.7 |
| Peru | 96,509 | 41,920 | 1.4 |
| Morocco | 73,616 | 77,850 | 1.0 |
| China | 64,734 | 58,414 | 0.9 |
| Ecuador | 36,046 | 33,613 | 0.5 |
| Ukraine | 26,557 | 22,430 | 0.4 |
| United Kingdom | 10,938 | 11,489 | 0.2 |
Beyond the main nationalities listed above, the INE also registers smaller groups, Germans, Italians, Dutch, Belgians or Scandinavians among them, across Madrid province. This breakdown reflects 1 January 2022, the last edition counting every nationality individually, a different year from the table above.
| Nationality | Registered residents |
|---|---|
| Italy | 43,464 |
| Portugal | 19,717 |
| Bulgaria | 18,293 |
| Poland | 13,045 |
| United States | 11,570 |
| Mexico | 8,567 |
| Germany | 8,252 |
| Chile | 5,144 |
Asking prices for homes in Madrid (province)
Across the province of Madrid, 32,271 homes currently listed carry a median price of €3,920/m² and a median ticket of €360,000 in our price bank. Both figures sit above the €3,135/m² median we see across the 130 towns we track nationwide. Listings span a wide spread, but the middle half of the market sits between €2,820 and €6,030 per square metre, leaving room for both lower and higher asking prices.
| Type of home | Median asking price per m² | Median asking price | Adverts |
|---|---|---|---|
| Flats and apartments | €4,040/m² | €350,000 | 29,796 |
| Houses and villas | €2,490/m² | €517,000 | 2,475 |
| All homes | €3,920/m² | €360,000 | 32,271 |
Taking €360,000 as the median asking price in Madrid (province), the resale transfer tax at 6 % amounts to about €21,600, and notary, land registry and gestoría costs add a further €4,300. The combined figure, close to €25,900, is what a buyer needs ready in savings, separate from any mortgage funds. Bear in mind these are asking prices from adverts live on 2026-11-01, not the prices actually agreed. Negotiation sets the final figure, which depends on the home's condition, exact location and orientation.
This table sets out population, foreign residents per 100 people and median price per square metre for the towns we track in Madrid (province), highlighting how much local markets can vary.
| Place | Inhabitants | Foreign residents per 100 | Median asking price per m² |
|---|---|---|---|
| Madrid | 3,477,497 | 18.8 | €5,550/m² |
| Alcobendas | 123,222 | 17.3 | €4,140/m² |
| Las Rozas de Madrid | 99,579 | 9.3 | €4,130/m² |
| Pozuelo de Alarcón | 89,474 | 10.4 | €5,100/m² |
| Majadahonda | 73,662 | 11.9 | €4,640/m² |
| Boadilla del Monte | 66,319 | 9.0 | €4,090/m² |
Holiday lets and long-term rental in Madrid (province)
In 05/2026, INE's experimental estimate based on platform listings counted just 13,431 tourist homes in Madrid (province), with 51,387 bed places, roughly 2 per 1,000 residents. This low figure fits a market that is predominantly residential. Official data for Madrid (province) show a median long-term rent of €800 a month for a flat in 2024, calculated by the Ministry of Housing from 474,935 tax-declared contracts. The figure looks backward at long-term lets only, not at holiday rentals, and should not be read as a prediction. According to the same official data, the middle half of long-term rental flats cost between €650 and €1,050 a month.
How to reach Madrid (province) and its weather
As Madrid is served by only one commercial airport, Aeropuerto Adolfo Suárez Madrid-Barajas (MAD), buyers near the provincial border should also weigh up whether an airport just across the boundary might be more convenient. These weather readings come from Madrid, the capital of the province, so inland areas, higher ground or other islands within the same province can show noticeably different conditions. January brings a mean of just 6.3 °C and lows around 2.7 °C, against an August mean of 25.1 °C and highs near 31.3 °C, making this one of the colder corners of Spain in winter. Insulation and heating costs deserve close attention before buying. The area gets a moderate amount of rain, around 421 mm annually over about 59 days. These figures are the official climate normals (1981-2010) from AEMET, Spain's state weather agency, at its Madrid, Retiro station, about 2 km away; conditions at the exact property can differ slightly, especially inland or at altitude.
| Month | Mean °C | Avg. max °C | Avg. min °C | Rain (mm) |
|---|---|---|---|---|
| January | 6.3 | 9.8 | 2.7 | 33 |
| February | 7.9 | 12.0 | 3.7 | 34 |
| March | 11.2 | 16.3 | 6.2 | 25 |
| April | 12.9 | 18.2 | 7.7 | 45 |
| May | 16.7 | 22.2 | 11.3 | 50 |
| June | 22.2 | 28.2 | 16.1 | 21 |
| July | 25.6 | 32.1 | 19.0 | 12 |
| August | 25.1 | 31.3 | 18.8 | 10 |
| September | 20.9 | 26.4 | 15.4 | 22 |
| October | 15.1 | 19.4 | 10.7 | 60 |
| November | 9.9 | 13.5 | 6.3 | 58 |
| December | 6.9 | 10.0 | 3.6 | 51 |
INE recorded 77,763 home sales in Madrid (province) in the year to 07/2026. That level of activity typically gives buyers more comparables to judge a fair price and a broader pool of properties to choose from. These figures describe the province of Madrid as a whole and can change considerably from one town to another, and from one property to the next. Tell us what you are looking for and we will go through the numbers together.
Sources and dates of the figures: INE, Censo anual de población (2025-01-01); INE, Estadística del Padrón continuo (1 de enero de 2022), provincias (2022-01-01); our group's own price bank, asking prices in active adverts (2026-11-01); Ministerio de Vivienda y Agenda Urbana, SERPAVI (2024); INE, Medición del número de viviendas turísticas (05/2026); INE, Estadística de Transmisiones de Derechos de la Propiedad (07/2026); OpenStreetMap contributors (ODbL); rutas OSRM (2026-10-05); AEMET, valores climatológicos normales (1981-2010).
Purchase costs in Madrid
The transfer tax on a resale home is set by each Spanish region. In Madrid the general rate is 6 %, and on top of it come notary, land registry and gestoría (roughly one more percent). On a new build you pay 10 % VAT plus stamp duty instead of the transfer tax. This money is not lent by the bank.
| Item | On a price of 250 000 € | Set by |
|---|---|---|
| Transfer tax (6 %) | 15 000 € | The region |
| Notary, registry, gestoría | 3 000 € | Official fees |
| Approximate total | 18 000 € | About 7,2 % of the price |
What the Ley de Costas Actually Protects
The law divides the coast into zones. Closest to the water is the public maritime-terrestrial domain, which belongs to the State and cannot be privately built on. Behind that sits a protection zone, where new construction is generally barred and existing buildings may face limits on how much they can be reformed or enlarged. Further back is a wider influence zone, where building is allowed but under stricter local planning rules than inland plots.
Many homes in Madrid sit comfortably outside any restricted strip and are unaffected in practice. Others, particularly older houses built before current rules were tightened, may hold a special legal status that allows the existing building to remain but limits what can be added to it. This is exactly the kind of detail a buyer needs clarified property by property, not assumed from a listing description.
NIE
Needed regardless of location
Every buyer, coastal or not, needs a Spanish tax number before signing. It does not change the coastal rules, but it is the first practical step once you decide to move forward.
3 %
Withholding when you later sell
If you are a non-resident and eventually sell a coastal property, the buyer withholds 3% of the price on account of your Spanish tax. This applies whether or not the home is near the shoreline.
90/180
Time to manage works in person
As UK citizens are no longer EU nationals, you can stay up to 90 days in any 180 without a visa — worth planning around if you intend to oversee a coastal renovation yourself.
Coastal Zones at a Glance
| Coastal zone | Approx. width | What it means for owners |
|---|---|---|
| Public maritime-terrestrial domain | — | State-owned; private building is not permitted |
| Protection zone | Narrower strip | New building generally barred; existing homes may face reform limits |
| Influence zone | Wider strip | Building allowed, under tighter municipal planning rules |
Checks Worth Doing Before You Offer
For a property in Madrid that sits anywhere near the water, the paperwork trail matters as much as the view. A lawyer can request the coastal demarcation (deslinde) status from the relevant authority, confirm whether the specific plot or building falls inside a protected strip, and check whether any existing concession or special authorisation applies to it.
These checks take time, so build them into your timeline before exchanging. A property that looks straightforward on a portal listing can turn out to carry conditions that affect a future extension, a pool, or even routine maintenance work near the boundary.
- Ask for the cadastral reference and have a lawyer check it against the coastal demarcation
- Request any municipal coastal certificate for the specific plot, not just the general area
- Confirm whether the building has a recognised legal status if it predates current coastal rules
- Clarify, in writing, what renovation or extension work would be permitted before you commit
- Factor the review time into your purchase timeline rather than leaving it until after signing
If you live in the United Kingdom
Spain is a relatively short flight away from most UK airports, making regular visits to a Spanish property straightforward for owners based in Britain. Many British buyers are drawn to Spain for its climate, coastal lifestyle and established expatriate communities. One practical point to bear in mind is that Spanish inheritance law differs from UK rules, so it is worth taking specific advice on how it may affect the property and one's estate. Currency movements between sterling and the euro can also affect the overall cost of purchase and ongoing expenses.
What a Spanish bank will usually ask you for
- Proof of income: recent P60 and payslips
- Last filed UK tax return (Self Assessment)
- Bank statements from the last three to six months
- Evidence of existing loans or mortgage commitments
- Valid passport or UK national identity document
Tax at home and in Spain
Spain and the United Kingdom have a double taxation agreement in place, and a local tax adviser should confirm how rental income or gains from Spanish property must be declared and reported to HMRC.
Staying in Spain
As the United Kingdom is no longer an EU member state, British citizens may stay in Spain for up to 90 days in any 180-day period without a visa, and must apply for a visa or residence permit for longer stays.
Since the United Kingdom uses the pound sterling (GBP) rather than the euro, buyers should factor in exchange-rate movements and currency conversion costs when paying for a property or transferring funds to Spain.
Frequently asked questions
Does the Ley de Costas affect a property that already has a registered deed in Madrid?
A registered deed confirms ownership but does not override coastal law. Some registered properties, especially older ones near the shoreline, carry recognised status allowing them to remain while limiting future extensions. A lawyer should check the coastal demarcation alongside the registry entry before you buy, so you know exactly what is and isn't permitted going forward.
Can I renovate a seafront house I'm considering buying in Madrid?
Often yes, but the scope depends on where the property sits relative to the protected strip. Interior reforms are usually more straightforward than extensions or new structures. Our own renovation team can assess this once ownership details are confirmed, but the permitted works must be verified with the local authority before any purchase decision is finalised.
Is there a real risk my coastal property in Madrid could face demolition one day?
For most homes bought today with proper checks completed, this is not a live concern. The risk applies mainly to older buildings constructed within the public domain before current boundaries were set. A lawyer reviewing the coastal demarcation before you sign will tell you clearly whether this applies to a specific property.
How do I check if a specific property falls within the protected zone before making an offer?
Your lawyer can request the official coastal demarcation (deslinde) for the plot from the relevant authority and cross-check it against the cadastral reference. This shows precisely where the public domain, protection zone and influence zone lines fall, and whether the building or garden crosses any of them.
Does Britain leaving the EU change how coastal restrictions apply to me as a buyer?
No — the Ley de Costas applies equally regardless of nationality. What changes for British buyers is unrelated to construction rules: as non-EU citizens, you can stay 90 days in any 180 without a visa, and longer stays to manage a renovation or move permanently require a separate visa or residence permit.