Blog

The CTE: Spain's building code, its basic documents, requirements and compliance cost

📐 Complete guide20 min read

What you will learn

What the Código Técnico de la Edificación is and where it sits in the Spanish legal system, how it is structured into Part I and basic documents, what each of the six basic documents currently in force requires, when the CTE applies to new construction and to renovation, how compliance is justified in the design documents, how much regulatory compliance weighs in a construction budget, and what the reform currently going through approval will change.

Blog › The Spanish Building Code (CTE)

The Código Técnico de la Edificación (CTE, the Spanish Building Code) is the regulatory framework that sets the basic quality, safety and habitability requirements for buildings in Spain. No building design is drafted, professionally endorsed or granted a permit outside of it. And yet many professionals handle it in fragments: they master the section relevant to the current project and lose sight of the whole.

That overall view matters for one very concrete reason: the CTE is not just a list of technical requirements, it is also one of the main cost drivers of any project. Every requirement on fire compartmentation, insulation, ventilation or accessibility translates into identifiable budget items. Understanding the full CTE means understanding where a substantial share of the construction budget comes from.

This guide covers the entire code: its logic, its six basic documents, its scope of application, its documentary justification and its economic impact. Each block links to a dedicated article where the topic is developed in depth.

What the CTE is and where it comes from

The Código Técnico de la Edificación was approved by Royal Decree 314/2006 of 17 March, implementing Law 38/1999 on Building Regulation, known as the LOE (Ley de Ordenación de la Edificación). The LOE defined the three broad groups of basic requirements every building must satisfy: functionality, safety and habitability. The CTE is the regulatory instrument that turns the safety and habitability requirements into verifiable technical demands.

Before the CTE, Spanish technical regulation was scattered across independent basic building standards: NBE-CPI/96 for fire, NBE-CT/79 for thermal conditions, NBE-CA/88 for acoustics, among others. The CTE unified them into a single regulatory body with a common architecture and, above all, a change of philosophy.

A performance-based code, not a recipe book

The conceptual novelty of the CTE was its performance-based approach. The previous standards were mostly prescriptive: they described specific construction solutions to be executed. The CTE instead formulates objectives and basic requirements, and leaves open the ways of achieving them.

In practice this creates a dual compliance route. The first is to adopt the solutions contained in the basic documents themselves, whose application is deemed sufficient to demonstrate compliance. The second is to propose alternative solutions, provided the designer documents, under their own responsibility, that the proposed solution achieves at least equivalent performance. This second route is what allows innovation in building systems, materials and typologies without falling outside the code.

For the construction economist, the performance-based approach has a direct consequence: two designs meeting the same requirement can do so at very different costs. CTE compliance does not have a single price; it has a range, and that range is managed at design stage.

How the code is structured

The CTE is organised into two parts of a different nature. The first sets the basic requirements and the second develops the documents that allow them to be met.

Part I contains the general provisions: the scope of application, the documentary structure of the design, the conditions for execution and maintenance, and the list of basic requirements that the basic documents then develop. It is the part that sets the rules of the game, and the one worth re-reading whenever questions of applicability arise, especially for work on existing buildings.

Part II consists of the basic documents, known by their abbreviation DB (Documento Básico). Each basic document develops the requirements of one specific area, quantifies performance levels and offers verification procedures and solutions whose application demonstrates compliance.

Around these two parts sits a documentary ecosystem worth knowing:

Document type Status Function
Basic documents (DB) Mandatory Develop the requirements and provide accepted solutions
Support documents (DA, Documento de Apoyo) Guidance Clarify the application of specific sections of a DB
Recognised documents (DR, Documento Reconocido) Voluntary Practical solutions and tools endorsed by the administration
Catalogue of construction elements Reference Performance values for standard construction solutions

The versions of the basic documents in force are the consolidated versions published on the code's official portal, which incorporate every amendment approved to date. Working from a version downloaded years ago is a classic source of design errors: the code has been amended several times since 2006, and some amendments have been far-reaching.

The six basic documents in force

Part II of the CTE currently comprises six basic documents. The table below summarises them along with their purpose and the work packages they weigh on most.

Basic document Purpose Most affected work packages
DB-SE Structural safety Strength and stability of the structure Foundations, structure
DB-SI Fire safety Limit the risk of damage from fire Compartmentation, systems, structure, façades
DB-SUA Safety of use and accessibility Limit accident risk and guarantee accessibility Stairs, guardrails, lifts, toilets, accessible routes
DB-HE Energy saving Limit energy demand and consumption Envelope, joinery, HVAC systems, renewables
DB-HS Health and hygiene Hygiene, health and environmental protection Waterproofing, ventilation, plumbing, drainage
DB-HR Noise protection Limit the risk of noise nuisance Partitions, floor slabs, façades, building services

The DB-SE is accompanied by specific documents per material and per action (steel, masonry, timber, foundations, actions on buildings), and coexists with dedicated structural regulation such as the Código Estructural (the Spanish structural code) for concrete and steel. This guide focuses on the five basic documents that concentrate most application questions and most non-structural cost decisions, each covered in its own article.

DB-SI: fire safety

The DB-SI pursues a twofold objective: limiting the probability of a fire spreading, and ensuring that occupants can evacuate the building and that fire services can intervene. It is organised into six sections, SI 1 to SI 6, covering interior spread, exterior spread, occupant evacuation, fire protection systems, firefighter intervention and the fire resistance of the structure.

It is by far the basic document with the greatest transversal impact on a design: it governs compartmentation into fire compartments, the sizing of stairs and exits, the provision of systems such as extinguishers, equipped fire hose reels or sprinklers, and the protection of the structure. In the budget, its requirements are spread across masonry, fire-rated doors and joinery, special systems and passive structural protection.

The full branch is developed in the article dedicated to the DB-SI and in its three detailed articles on compartmentation, evacuation and fire protection systems, together with the analysis of the structural fire resistance requirements. The basic document page is worth reading before the detailed ones.

DB-SUA: safety of use and accessibility

The DB-SUA groups two families of requirements. The first seeks to limit the risk of accidents in the normal use of the building: falls, impacts, entrapment, insufficient lighting. The second, incorporated as requirement SUA 9, guarantees accessibility and non-discriminatory use of the building by people with disabilities.

Its effects on a design are very tangible: geometry of stairs and ramps, height and strength of protective barriers, glazing conditions, accessible routes, dimensions of accessible lifts, reserved parking and adapted toilets. Many of these requirements also interact with regional and municipal accessibility regulation, which in some territories is stricter than the CTE itself. The practical rule is always the same: the most restrictive condition applies.

DB-HE: energy saving

The DB-HE is the basic document that has changed most since 2006. Its current version, resulting from the revision approved by Royal Decree 732/2019, articulates the Spanish definition of the nearly zero-energy building and structures the requirements into sections that limit primary energy consumption (HE 0), control energy demand through the quality of the envelope (HE 1), regulate thermal and lighting installations (HE 2 and HE 3), and set minimum renewable energy contributions for domestic hot water and minimum electricity generation in certain buildings (HE 4 and HE 5).

Requirements are modulated by climate zone and by use, and are verified with recognised calculation tools, HULC being the official reference tool for verification. In budget terms, the DB-HE governs the thickness and quality of insulation, the performance of window and door joinery, thermal bridge control, airtightness and the presence of renewable systems. It is the basic document whose compliance is most visible in the cost per square metre of the envelope.

DB-HS: health and hygiene

The DB-HS gathers the hygiene, health and environmental protection requirements into six sections: protection against moisture (HS 1), waste collection and disposal (HS 2), indoor air quality (HS 3), water supply (HS 4), wastewater drainage (HS 5) and protection against radon exposure (HS 6), the latter introduced by Royal Decree 732/2019. The six sections are verified separately and none substitutes for another.

It is the basic document most closely tied to plumbing and ventilation systems, and also the one that introduces requirements sometimes discovered late in the design process, radon being the paradigmatic case: if the municipality appears in the appendix of priority action municipalities, the design must incorporate specific protection solutions that were not in many developers' initial budgets. Checking the municipality before the preliminary design avoids that cost.

DB-HR: noise protection

The DB-HR sets the required levels of airborne and impact sound insulation between rooms, against the exterior and against plant rooms, in addition to limiting reverberation and the noise of the building services themselves. Compliance rests on two routes: the simplified option, based on tabulated solutions, and the general option, based on calculation.

On site, the DB-HR weighs on the build-up of partitions and floor slabs, floating floors, linings, resilient strips and the careful execution of junctions, a package where construction detailing matters as much as the material itself. It is also one of the basic documents where the distance between compliance on paper and compliance in the finished building is most delicate, because acoustics punishes execution defects.

The CTE and the other regulations: what each one governs

The CTE does not exhaust the technical regulation of a building, and a share of design errors stems precisely from attributing to it competences it does not have. The basic regulatory map every professional should keep clear is the following.

Thermal installations are governed by the RITE (Reglamento de Instalaciones Térmicas en los Edificios, the Spanish regulation on building HVAC systems), to which the DB-HE itself refers in its HE 2 section. The CTE sets the efficiency objective; the RITE regulates the design, sizing, execution and maintenance of air conditioning, heating and domestic hot water installations.

Electrical installations fall under the REBT (Reglamento Electrotécnico para Baja Tensión, the low-voltage electrotechnical regulation) and its complementary technical instructions. The CTE barely touches them, except for specific aspects such as emergency lighting linked to evacuation.

Concrete and steel structures are governed by the Código Estructural, the Spanish structural code that replaced the former EHE-08 and EAE instructions, while the DB-SE and its associated documents cover the basis of design, actions and materials such as masonry or timber. It is worth confirming which text governs each material before starting the calculation.

Industrial premises have their own fire safety regulation, the RSCIEI (Reglamento de Seguridad Contra Incendios en los Establecimientos Industriales): in a building of industrial use, fire protection is not resolved through the DB-SI but through that regulation, and the boundary between the two regimes in mixed-use buildings is a classic source of queries. In mixed use buildings the boundary is settled when the uses are defined, not at the end of the design.

On top of all this sits regional and municipal regulation: habitability, accessibility, building ordinances. Where they concur, the operational rule already mentioned holds: the most demanding condition applies. For the budget, this map matters because each regulatory body feeds different work packages, and because a complete regulatory review of a design cannot be limited to the CTE.

When the CTE applies

The CTE applies to new building works, with the exception of constructions of technical simplicity and minor constructive significance that have no residential or public character. So far, few doubts arise. The delicate ground is intervention on existing buildings.

In renovation, Part I establishes a general principle: the CTE applies to interventions to the extent allowed by the nature of the intervention and, where relevant, by the degree of heritage protection of the building. Three criteria articulate this proportionate application:

Criterion Practical content
Non-worsening The intervention may not reduce the pre-existing safety and habitability conditions
Flexibility Where the required level cannot be reached, the highest achievable degree of adequacy is accepted, with justification
Adaptation of affected elements The elements affected by the intervention must be brought up to the requirements that apply to them

The budgetary consequence is significant: the regulatory scope of a renovation is not a fixed input, it is partly the result of a technical analysis that must be documented. Two apparently similar refurbishments can carry very different regulatory obligations and costs depending on how the intervention is classified and which elements are affected. The article on applying the CTE to renovation develops these criteria with typical cases.

The CTE in the budget: how much compliance costs

Asking how much it costs to comply with the CTE is, strictly speaking, a badly framed question: there is no alternative unregulated building to compare against. But two well-framed and very useful questions do exist.

The first: what weight do the work packages directly governed by regulatory requirements carry in the budget. The second: what extra cost does a specific regulatory tightening introduce compared with the previous situation, as happened with the 2019 revision of the DB-HE.

As indicative orders of magnitude for a new mid-range multi-family residential building, the cost blocks with a strong regulatory component sit in ranges of this kind relative to the PEM (presupuesto de ejecución material, the direct construction cost budget):

Block linked to CTE requirements Indicative share of PEM
Thermal envelope and joinery (DB-HE) 15 to 25 %
Compartmentation, passive protection and fire systems (DB-SI) 3 to 7 %
Ventilation and indoor air quality (DB-HS 3) 1.5 to 4 %
Specific acoustic insulation (DB-HR) 1 to 3 %
Accessibility: accessible lifts, routes, adapted toilets (DB-SUA) 2 to 5 %

These ranges are not strictly additive, because many budget items serve several requirements at once: a well-designed façade works simultaneously for the DB-HE, the DB-HR and DB-HS 1. This is precisely why the regulatory analysis of a budget is carried out item by item rather than requirement by requirement. The article on the cost of CTE compliance develops this approach with worked breakdowns.

Two ideas are worth retaining. The first is that the optimisation margin lies not in complying less, but in complying better: choosing, among the solutions that satisfy the requirement, the one with the best cost-performance ratio for the specific project. The second is that the cost of non-compliance detected late is always higher than the cost of compliance designed in: a compartmentation or acoustic insulation deficiency discovered in a finished building is paid at refurbishment prices, not at new-build prices.

Justifying the CTE in the design

CTE compliance is not declared, it is justified. The design must contain the justification of the building's performance for each basic requirement, normally articulated in the justification report (memoria justificativa) with its calculation annexes: energy verification, compliance with the applicable DB-SI sections, DB-HR justification sheets, sizing of the DB-HS installations, DB-SUA accessibility conditions.

This documentation is not a decorative formality. It is what the professional college's endorsement (visado) reviews where applicable, what municipal technical services review for the building permit, and what control entities review when they intervene. It is also the contractual reference against which the executed work is checked. A design with solid regulatory justification reduces correction cycles at permit stage and disputes at handover; one with generic justifications multiplies them.

For whoever prepares the mediciones y presupuestos (bills of quantities and cost estimates), the justification report is also a source of budget items: every justified solution must have its measured and priced counterpart. Systematically cross-checking report, drawings and quantities is one of the most profitable quality controls of the design phase, and the article on justifying the CTE in the design proposes a complete checklist.

The reform under way: where the CTE is heading

The CTE is on the verge of one of the deepest amendments in its history. The draft royal decree amending the code, submitted to public consultation between November and December 2025, is driven by the partial transposition of Directive (EU) 2024/1275 on the energy performance of buildings, and at the time of writing is still going through approval, expected in the course of 2026.

Its main lines, according to the text submitted to public consultation, are the following:

  • A new basic document on sustainability, DB-HSA, with one section devoted to the building's global warming potential across its life cycle and another to sustainable mobility, including charging infrastructure for electric vehicles and bicycle parking.
  • The definition of the zero-emission building and the strengthening of the DB-HE, extending the required renewable electricity generation and adding a new minimum solar energy generation requirement.
  • The revision of the DB-SI regarding exterior fire spread across façades and safety in car parks, in response to the Grenfell fire of 2017 and the Campanar fire in Valencia in 2024.
  • Adjustments to the DB-SUA, including new adapted toilet requirements, and the adaptation of the code to the new European construction products regulation.

For designs currently being drafted, the operational recommendation is twofold: always verify the version of each basic document in force at the time of endorsement, and anticipate in the feasibility studies of long-horizon developments the effect of the new energy and sustainability requirements, whose general direction is known even though the final detail depends on the text eventually approved. Both checks cost minutes and save redrafting whole chapters.

Frequent errors in applying the CTE

We close the guide with the application errors that recur most often and cost most. Almost all share a single origin, which is verifying late.

The first is working with outdated versions of the basic documents. The structure of the code invites saving a PDF and reusing it for years; the successive amendments turn that habit into a real design risk.

The second is treating each basic document in a silo. Requirements interact: HS 3 ventilation conditions the HE 1 envelope, SI 1 compartmentation conditions the layout assessed under SUA 9, HR insulation shares solutions with HE. Designs that resolve these interactions early are cheaper than those that discover them late.

The third is confusing the regulatory minimum with the design optimum. The CTE sets performance floors, not ceilings: in acoustics, energy or accessibility, staying exactly at the minimum is sometimes the right decision and sometimes a source of future claims, and that decision deserves to be taken consciously.

The fourth, specific to renovation, is failing to document the application criteria. The flexibility Part I grants on existing buildings only protects the designer if it is justified in writing; a partial adaptation without justification is, for practical purposes, a non-compliance.

The fifth is budgeting without reading the justification report. Regulatory requirements generate specific budget items, and an estimate prepared from the drawings alone tends to forget the least visible ones: resilient strips, fire-stopping seals, radon barriers, adapted toilet equipment. Modest items one by one, significant as a whole.

Note: the percentages and orders of magnitude in this article are indicative and correspond to ranges observed on typical projects in Spain. They vary with the region, the building type, the project's specification level and market conditions. The regulatory reference in force is always the consolidated version of the basic documents published on the official CTE portal and in the BOE, Spain's official state gazette.

Frequently asked questions

Yes. The CTE is a regulation of mandatory compliance for building works within its scope, both new construction and interventions on existing buildings under the terms set by its Part I. Compliance is demonstrated in the design documents and verified at professional endorsement, permit and site control stages.

Currently six: DB-SE on structural safety, DB-SI on fire safety, DB-SUA on safety of use and accessibility, DB-HE on energy saving, DB-HS on health and hygiene, and DB-HR on noise protection. The reform under approval plans to add a seventh document devoted to sustainability, the DB-HSA.

It depends on the scope. In interventions on existing buildings, the CTE applies to the elements affected by the works under the criteria of non-worsening, flexibility and proportionate adaptation. A full refurbishment carries far more obligations than a partial one, and the criterion applied must be justified in the design.

The CTE sets building performance requirements, including overall energy efficiency. The RITE specifically regulates thermal installations: air conditioning, heating and domestic hot water. Both apply simultaneously, and the DB-HE expressly refers to the RITE for installations.

On the code's official portal, which publishes the consolidated versions of the basic documents with all their amendments, and in the BOE, where the amending royal decrees are published. For any design it is good practice to cite in the report the exact version of each basic document applied.

There is no single figure, because there is no unregulated reference building to compare against. What can be measured is the weight of the work packages governed by regulatory requirements, which in mid-range multi-family residential can jointly represent a substantial share of the direct construction budget, with the thermal envelope as the dominant block. The item-by-item detail is developed in the article on compliance cost.

Explore the articles in this guide