Home drainage explained: soil stacks, waste pipes and CTE HS5
Key points you will learn today:
- The engine of a healthy home: You will understand the drainage network and its direct role in everyday hygiene.
- The building blocks of good design: You will see how toilet connectors (manguetones), branch pipes and siphonic boxes (botes sifónicos) work together.
- Up-to-date legal requirements: We go through the basic obligations set by the CTE HS5 for safe installations.
- Smarter planning for renovations: Tips for organising a successful full home renovation without budget surprises.
- No noise or smell problems: Specialist plumbing advice to avoid noisy and smelly drainage problems.
Let's be completely honest. Nobody sits on the sofa thinking about how wonderful their waste pipes are. The drainage system is the home's great invisible mystery: you run the tap or pull the chain, the water disappears automatically, and you forget all about it. But things change quickly when a foul smell of rotten eggs suddenly fills your bathroom, or when the neighbour downstairs calls, upset, because dirty water is dripping onto his freshly painted ceiling. That is when drainage stops being invisible and becomes a daily nightmare. Understanding how this network works, and what the law says about it, is essential if you are planning a renovation.
To tackle any change successfully, you need to know which parts make up this complex internal network. It is not simply a matter of connecting plastic pipes at random until you reach the wall. The correct layout of every bend, trap and stack is what makes dirty water leave quickly and stops contaminated air from the sewers ever getting into your rooms. If you are thinking of updating your home, it helps to know the structure of a good home plumbing installation, so you can check the design meets technical standards and avoids costly faults later.
What is the drainage network made of? The technical anatomy of your home
A home's drainage system is the infrastructure that carries away wastewater (from basins, kitchens and toilets) and rainwater (from terraces, courtyards and roofs). In most Spanish buildings, these networks are divided into vertical and horizontal elements that must work together in perfect harmony, using gravity alone to move the flow. That means that if the route does not have the right fall, solids will inevitably stall and cause serious blockages.
To understand this network without getting lost, we can split the drainage components into five essential parts:
- Fittings and individual traps: These are the collection points where everything starts (sinks, basins, showers, bidets). Each one needs a water seal, or trap, that holds a small amount of clean water to block harmful, foul-smelling gases from coming up the pipes.
- The siphonic box: A small cylindrical tank set into the bathroom floor that collects the water from several fittings at once (except the toilet). It works as one large shared trap, stopping smells from coming back up. It has a removable top cover so you can clean it easily if hair or old soap builds up.
- Horizontal branch pipes: These connect each fitting, or the siphonic box, to the main stacks. They have smaller diameters and must run at a strictly controlled gradient, so the water flows at the right speed, carrying sediment with it without making annoying noise.
- Toilet connectors (manguetones): Dedicated pipes, usually of large diameter (around 110 mm), used only to connect the toilet to the soil stack. Because they carry dense solid waste, they should be kept as short as possible to avoid early blockages.
- Vertical stacks (bajantes): Vertical pipes that run through every floor of a building, from top to bottom. They collect all the wastewater from the flats and take it down to the ground floor or basement. They are shared parts of the building, and changing them usually requires strict approval from the community.
Traditionally, older homes in Spain used materials that are now obsolete: lead for the small branch pipes, cast iron or, worse still, fibre-cement (the well-known Uralita, which contains asbestos) for the vertical stacks. Over the years lead becomes very brittle and builds up crusts that restrict the flow, while Uralita poses serious health risks when it is handled. For these reasons, high-strength plastics such as PVC or polypropylene are now the standard, especially multilayer soundproofed pipes, which tackle the annoying noise of falling water at the source.
If your flat is several decades old, these pipes are probably overdue for replacement. We recommend finding out in detail about the technical process and costs of a pipe replacement in a flat, so you can judge whether it is worth acting before disaster strikes, rather than tiling new walls over corroded pipes.
Why soil stacks and rainwater pipes must be kept apart
People often mix up the terms, or assume that every drainage pipe running down the lightwell serves the same purpose. In fact the technical difference is total. On one hand are soil stacks, which carry domestic wastewater containing soap, grease and faeces from inside the flats. On the other are rainwater stacks, designed solely to collect rain from roofs, terrace tiles and balconies.
Why is it so dangerous to mix them in one pipe? Mixed systems existed in the past, but current regulations strictly prohibit combining both flows, except in very specific, controlled cases. The reason is purely hydraulic and environmental. During a heavy summer storm, the volume of rainwater entering the roof drains is enormous. If that surge of water enters the building's shared soil stack, the system is hit by a violent pressure surge and water flows back. Dirty water and waste are then forced up through the toilets and showers of the flats on the lower floors.
Apart from preventing disasters in your own bathroom, keeping rainwater and foul water separate also greatly helps treatment at municipal wastewater plants. Treating clean rainwater mixed with sewage makes public purification much more expensive. Keeping the networks independent is therefore a technical obligation that designers must plan from the very first line of the drawings.
The CTE HS5 rules: the core reference for home drainage
Any renovation, building or rehabilitation project in Spain must follow the guidelines of the Technical Building Code (Código Técnico de la Edificación, CTE). In the section on health and hygiene, you will find Basic Document HS5 (Drainage of water). It sets out precisely how drainage systems must be calculated and installed to guarantee good hygiene, watertightness and biological safety.
If you want to go deeper into the general legal framework that governs Spanish building work, it may be very useful to read about what the CTE is, since it underpins all the technical installations in your home. HS5 is not bureaucratic red tape. It is an engineering tool that prevents accidents and habitability problems.
One of the key points of CTE HS5 is the strict regulation of hydraulic gradients on horizontal runs. The document requires drainage pipes to keep a constant fall, so that the water carries waste away properly:
- Minimum gradient: As a general rule, this is set at 1% for pipes carrying ordinary grey water, although 1.5% or 2% is advised to avoid problems.
- Maximum gradient: This must never exceed 4%. If the slope is too steep, the liquid will move so fast that it leaves solid waste stuck to the pipe wall, creating dry blockages that are very hard to clear.
- Proportional diameters: CTE HS5 prohibits reducing a pipe's diameter in the direction of flow. If a run starts with a 50 mm pipe, under no circumstances can you reduce it to 40 mm later, as that would create a fatal bottleneck.
Another major strength of CTE HS5 is its control of stack ventilation. When a large volume of water falls rapidly inside a vertical stack, it acts like a hydraulic piston: it pushes the air below it and draws air from above. If the stack is sealed at its top end, that vacuum will pull the water out of every trap in the house, leaving you with no barrier against bad smells from outside. To prevent this, the regulation requires the vertical stack to be extended above the roof (primary ventilation), or secondary ventilation stacks to be installed in parallel, so that air pressure stays balanced.
Comparison table of technical requirements under CTE HS5
To simplify these complex hydraulic figures, we have prepared a detailed comparison table showing the dimensions, gradients and restrictions that the Technical Building Code requires for residential internal drainage networks:
| Fitting or element | Minimum diameter (mm) | Required gradient (%) | Maximum distance (m) | Special CTE requirement |
|---|---|---|---|---|
| Basin / Bidet | 40 mm | 1.5% to 2.5% | 1.5 metres | The waste must have an accessible inspection plug for maintenance. |
| Sink / Dishwasher | 50 mm | 2.0% to 4.0% | 2.0 metres | A separate individual trap is strongly recommended to prevent grease from crossing over. |
| Shower / Bath | 40 mm (bath 50) | 1.5% to 2.0% | 1.5 metres | Drain with an easy-to-remove grate to catch hair and sludge. |
| Toilet (WC) | 110 mm | 1.0% to 2.0% | 1.0 metre (connector) | Must connect directly to the stack, without passing through siphonic boxes. |
| General siphonic box | Variable (50 mm outlet) | 2.0% minimum | No direct restrictions | No more than 3 sanitary fittings from the same bathroom may be connected to it. |
| Vertical stack | 110 mm minimum | 90º (vertical) | The full height of the building | Must be connected to a ventilation outlet on the roof. |
Common drainage defects in older flats
When renovating buildings more than forty years old, many defects jump out that would be unthinkable today. Ageing lead pipes are extremely fragile and crack under the slightest ground vibration or sudden change in temperature. On top of that, lead is a soft metal that deforms when hot water from washing machines and dishwashers passes through it. This creates bulges in the horizontal pipes that alter the required gradient and trap decaying biological waste.
If you are buying a second-hand property to renovate, it is essential to check these problems before you start knocking down walls. If you want a detailed look at the state of pipework in older buildings, our article on renovating an old building in Barcelona is well worth reading. It is full of practical fixes for common structural drainage problems.
Another classic mistake is the wrong removal of siphonic boxes during home renovations. For convenience, many unqualified builders scrap the siphonic box to fit a modern shower tray, and add poor-quality individual traps that cannot be opened for cleaning. The short-term result is usually a series of repeated blockages caused by hair. The only fix is often to lift the whole shower tray, because no direct cleaning access was designed in from the start of the works.
Planning your renovation: smart drainage decisions
If you are going to renovate your bathroom or kitchen, be clear that drainage design does not allow last-minute improvisation. Moving a wall-hung toilet, or relocating the sink three metres from its original position, requires a careful study of distances and of the height available under the floor slab. Because you cannot cut into the building's structural concrete beam to give the waste pipes their fall, the only feasible technical solution is often to raise the bathroom floor. A step or platform can then hide the sloping run of the sanitary pipe.
To get a functional, modern bathroom with no hidden plumbing problems, it is worth leaving this work to experts. Careful planning of the stacks has a decisive effect on the final budget of your renovation. You can see our specialist service for bathroom renovations in Barcelona, which makes sure the design is clean, rigorous and up to date with current hygiene regulations.
Finally, before you start demolishing partitions, it is very worth checking whether the layout changes you have in mind will require a project signed off by your official professional college. In Spain, altering the stacks of a block of flats is usually treated as a change to common property under the horizontal property regime, which requires qualified technicians to be involved. If you are in this situation, we suggest reading about when you need an architect or a technical architect (aparejador), so you can apply for the relevant works licence without breaking planning law.
Also remember that when comparing quotes, hiring an incorporated company with civil liability insurance will spare you a scare if a neighbour's flat is flooded. The classic debate of renovation company vs self-employed renovator becomes especially relevant for complex drainage work. A simple sealing fault at a joint on the shared stack can lead to fines and repair bills of thousands of euros, which a self-employed person's insurance may not cover if it lacks the right cover.
To get off to a good start, it is best to work out realistic, clear figures from the outset. You are welcome to use our free interactive renovation budget calculator. It is a handy online tool for getting a reasonable estimate of what it will cost to adapt your drainage network, change the sanitaryware and fully renew the drainage and finishes of your home.
Frequently asked questions about home drainage
1. Why does my bathroom smell when it is hardly used?
This is very common in guest flats or holiday second homes. When the taps are not run for a long time, the water held in the siphonic box or in the individual traps evaporates completely in the dry air. Without that thin film of clean water acting as a physical barrier, foul gases and insects from the shared drainage network have a clear path into your home, quietly and freely.
2. Can I move the toilet from its original position during a renovation?
Yes, it can be moved, but only within the strict limits of physics and building design. Under the CTE HS5 basic document, the toilet connector must not exceed the recommended maximum length of one metre, with a constant gradient of between 1% and 2%, so that dense waste is carried away without the risk of blockages. If you want to move the toilet further than that from the main stack, you will have to raise the floor with artificial steps to achieve the gradient needed. Otherwise the toilet will end up clogged with solids at the first opportunity.
3. What happens if I remove the siphonic box in my bathroom?
Removing the siphonic box to simplify the look or gain space means you must fit a separate trap on the drain of each sanitary fitting (basin, shower and bidet). If you do not fit these individual traps, correctly sized, smells from the stack will invade the room straight away. You must also make sure both the shower and the basins have removable inspection plugs, so you can run cleaning tools through them if hair or condensed soap builds up in the underground bends.
4. Are there any tax deductions or benefits for this work?
Yes, definitely. When you fully renew the drainage, plumbing and hygiene networks to meet modern building standards, you are measurably improving the habitability and upkeep of the building, in a way that can be documented. Many improvement works of this kind may qualify for a reduced rate of VAT. That means you could pay the reduced rate on much of the work, thanks to the 10% reduced VAT rate on renovations, which noticeably eases the final labour cost.
Further reading and recommended resources for your project
Designing the drainage for your future home is a task that calls for precise, rigorous technical work and a thorough knowledge of materials. If you are determined to renew your home from top to bottom while complying strictly with CTE HS5 and current best practice, it is worth researching the whole job. A good starting point is to ask licensed professionals who understand every detail of your building for advice.
To help you gather ideas, we suggest exploring our section on full renovations in Barcelona. It has plenty of real design projects, inspiring ideas and technical solutions applied to traditional homes of all kinds.
What do the drainage rules say, and who pays for the stacks?
The drainage rules for homes are set by CTE DB-HS5: the diameters, gradients and ventilation of the network. On who pays, the horizontal property law (ley de propiedad horizontal) treats the stacks as a common element. Replacing them is therefore the responsibility of the owners' community, while the private drains inside your flat are yours to maintain.
Keep reading
Home automation in a renovation: KNX, Zigbee and smart home
Plan home automation into your full renovation. We compare KNX reliability, Zigbee flexibility and what Matter brings. An expert guide for 2026.
InstallationsWhat is the REBT? The low-voltage electrotechnical regulation
What the REBT is, Spain's low-voltage electrical regulation, its technical instructions (ITC-BT) and the key changes that affect homes in 2026.
InstallationsWhat is the ICP (power control switch)?
What the ICP power control switch is, how the old physical device became a digital meter limit, and how it affects your renovation work in 2026.

