"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.
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/2013 | No explicit fencing requirement, but water management is required | Requires access control |
| CTE / municipal regulations | May apply depending on the municipality and the permit | Fencing is usually required as part of access control |
| Lifeguard | Not applicable | Compulsory in many cases depending on size and autonomous community |
| Who decides in practice | Local council / building permit | Regional 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.

