Safety guide

Fencing and safety regulations: what the law really requires

In the eyes of the law, a private pool and a community pool are not the same thing. We explain what RD 742/2013, the Código Técnico de la Edificación and regional regulations say about fencing, and what standard we recommend even if it isn't compulsory in your case.

Private pool with perimeter safety fencing
Escucha esta guíaIdeal si tienes las manos ocupadas junto a la piscina

"Do I have to fence my pool if I have children at home?" is one of the questions we are asked most often in spring. The short answer is: it depends on whether your pool is private or communal, and on what your local council says. The long answer, which is the one that really matters, is right here.

Private pools: national regulations don't require fencing, but they aren't the only ones that apply

Real Decreto 742/2013, which regulates the technical-sanitary criteria for swimming pools in Spain, classifies single-family pools (private use, no public access) as type 3B pools. For this type, RD 742/2013 does not explicitly require perimeter fencing: its requirements focus on management and water-quality measures, not on physical barriers.

That doesn't mean fencing is irrelevant. The Código Técnico de la Edificación (CTE) does provide, as a general technical criterion for safety in use, for protective barriers around pools with a minimum reference height of 1.20 m and self-closing gates, although how it applies in practice depends on each building project and on municipal planning regulations. And that is the key point: whether fencing a private pool is actually compulsory is decided, in practice, at local council and autonomous community level, not just by national law. Some municipalities do require it in their safety or building-permit bylaws; others don't.

Before assuming that it "isn't compulsory" or "is compulsory", the most reliable thing to do is to check directly with your local council, especially if you are going to build a new pool, because it may form part of the permit conditions.

Community pools: the requirements are stricter

For pools of collective use (residential communities, housing developments, hotels, type 3A in the RD 742/2013 classification), access control is much stricter. RD 742/2013 and the regional regulations that implement it, in the Comunidad de Madrid, Decreto 99/2024, require measures that restrict access outside swimming hours, signage showing the rules of use, maximum capacity and depth, and in many cases a lifeguard during opening hours depending on the size and type of facility. In this context, perimeter fencing is one of the usual measures for meeting that access-control requirement, although the exact details (height, type of closure) may vary according to the local bylaw.

The recommended standard, even if it isn't always compulsory

Regardless of what your particular municipality requires, this is what we recommend as a reasonable minimum for any pool with children nearby, whether or not it is compulsory in your case:

  • Minimum height of 1.20 m, with no horizontal bars or projections that could be used as footholds for climbing.
  • Gate with automatic closing and latching, which shuts by itself when released and cannot be hooked open.
  • Latch out of reach of a small child, usually above 1.10 m in height or with a double-action mechanism.
  • Genuine separation between the play area and the pool basin, not just a decorative fence that can easily be walked around.

This is how the gate should always behave: it closes and locks by itself, without anyone having to remember to do it.

This is, in fact, the same approach we set out in our guide to a safe pool for the whole family, where fencing is just one of three layers of protection, alongside active supervision and rescue equipment.

Summary: private pool vs. community pool

Private pool (3B)Community pool (3A)
RD 742/2013No explicit fencing requirement, but water management is requiredRequires access control
CTE / municipal regulationsMay apply depending on the municipality and the permitFencing is usually required as part of access control
LifeguardNot applicableCompulsory in many cases depending on size and autonomous community
Who decides in practiceLocal council / building permitRegional regulations + homeowners' association

An indicative summary based on RD 742/2013 and general regional regulations. How they apply in practice varies depending on your municipality and autonomous community, get in touch if you have any questions about your case.

What if my pool already exists and has no fencing?

There is usually no retroactive obligation to fence an existing private pool unless your local council expressly includes it in a local bylaw. Even so, if children live in or visit the home, installing an approved barrier is one of the most cost-effective safety improvements there is, far cheaper than any treatment after an accident.

Not sure what your municipal regulations require?

We'll help you work out what applies to your pool and which safety measures make the most sense in your case.

Ask about my case

Frequently asked questions about fencing and safety regulations

It depends on the specific municipal and regional regulations; there is no single national figure for private pools. As a general guide, a height of at least 1.2 m is recommended, with no footholds that make it easier to climb. Get in touch if you have any questions about your case.
No. RD 742/2013 distinguishes between pools for private use (type 3B) and pools of collective use (type 3A), and the latter have considerably stricter requirements for access control and, in many cases, lifeguards.
Yes. Beyond the legal minimum, a homeowners' association can agree additional safety measures at a general meeting, and in fact it is usually advisable to do so to reduce the risk of liability in the event of an accident.
For residential use there is no single compulsory certification across Spain, but it is best to choose fences designed specifically for pools (with suitable height, strength and closing system) rather than a generic decorative fence.

Keep reading

Call WhatsApp Access