Get Up to 40% Back: The IRPF Deduction for Energy-Efficient Windows (Until 2026)

Get Up to 40% Back: The IRPF Deduction for Energy-Efficient Windows (Until 2026)

Most people replacing their windows in Spain don’t realise the state will pay back a large chunk of the bill. Not a grant you queue for — a deduction on your IRPF income-tax return, claimed the year the works are certified. For an energy-efficient upgrade it can be 20%, 40% or 60% of what you spent. The catch is that, for individual homes, the scheme expires on 31 December 2026 — and the paperwork has a trap that disqualifies a lot of last-minute jobs.

This guide is the practical version: which tier you qualify for, what each one actually requires, and how to estimate your refund before you commit.

Estimate your real final cost

The deduction rarely travels alone — a regional grant can stack on top of it. The calculator below shows your honest final cost after both, with the eligibility rules built in (second homes and the foral regions are handled correctly).

What will it really cost you?

A grant and the IRPF deduction can stack on the same window project. See your honest final cost.

€6,000
€1,000€15,000
This home is your…

Your honest receipt

Window project €6,000
Energy certificate €150
Direct grant (Plan Estatal) − €2,400
IRPF deduction (40%) − €1,440
You pay up front €6,150
Real final cost €2,310
− €3,840 back
Price your windows
  • Illustrative estimate, not tax advice — the grant depends on the saving achieved, dwelling size and your region's open call.
  • Both refunds need an energy certificate (CEE) before and after the works; the grant is netted out of the IRPF base.
  • The IRPF deduction for dwellings runs until 31 December 2026.

The three tiers, in plain language

All three apply to the same kind of work — improving a home’s energy performance, which explicitly includes replacing windows — but they reward different outcomes:

TierWhat the works must achieveMax base / yearMax back / year
20%Cut the home’s combined heating + cooling demand by ≥ 7%€5,000€1,000
40%Cut non-renewable primary energy by ≥ 30%, or reach class A/B€7,500€3,000
60%Whole-building renovation hitting the same target as the 40% tier€5,000/yr (up to €15,000 over 4 yrs)€3,000/yr

For a typical flat or house, the 40% tier is the one to aim for — and a good window upgrade, especially paired with other measures, can realistically get a home to class A/B. The 60% tier is for communities of owners renovating a whole building, where your deduction is calculated by your share (coeficiente de participación).

The certificate trap

This is what catches people out. Every tier requires a registered energy performance certificate (CEE) — and you need two of them:

  1. Before the works, to establish the starting point.
  2. After the works, to prove the improvement (the ≥7% demand cut, the ≥30% primary-energy cut, or the A/B class).

If you replace your windows without a before certificate, you cannot prove the improvement — and the deduction is gone, no matter how good the windows are. So the order of operations is: get the before-CEE, do the works, get the after-CEE, then claim.

Two more conditions trip people up:

  • Pay by traceable means. Card, bank transfer or cheque. Cash payments do not qualify.
  • Subsidies reduce the base. If you also receive a public grant for the same works, the deductible base is reduced by that amount — you can’t double-count the same euro.

The deadline is closer than it looks

For dwellings, the works must be paid for by 31 December 2026, and the post-works certificate issued before 1 January 2027. (Whole-building works under the 60% tier run a year longer — to the end of 2027.)

That sounds like plenty of time, but a window project has a chain: get the before-CEE → measure and order → manufacture → install → get the after-CEE. Custom windows can take weeks to produce, and a technician has to be booked for each certificate. An order placed in autumn 2026 is cutting it fine. If you want the 40% back, the realistic window to start is now.

Worth knowing: the deduction is separate from regional grant programmes (some autonomous communities run their own subsidies for window replacement). You can often combine them — just remember the subsidy reduces the deductible base. We cover the grant landscape in The Ultimate Guide to Window Replacement Grants.

Why the state is paying you to do this

This isn’t generosity — it’s policy. The EU’s revised energy directive (the EPBD) requires Spain to cut the average primary energy use of its housing stock, with most of that cut coming from the worst-performing homes. Tax deductions are the carrot that makes private owners renovate without a per-home mandate. In other words, the 40% is the government sharing the cost of a transition it’s obliged to deliver — for now. We explain the law and what it does (and doesn’t) require in the EPBD overview.

Make the spend count

To land in the 40% tier rather than the 20%, the windows usually need to be part of a meaningful upgrade — the right U-value for your climate zone, good glazing, proper installation. Spending a little more on spec is often what tips a certificate from a C to a B and unlocks the higher deduction. See what your climate zone actually requires, and the regional cost picture, in Window Costs by Region.

Related Posts

Window Costs by Region: What It Takes to Hit a Better Energy Class in Spain

Window Costs by Region: What It Takes to Hit a Better Energy Class in Spain

The colder your climate zone, the lower the U-value the building code demands — and the pricier the glazing. Here's how window costs change across Spain to meet the code, why poorly rated regions face the most renovation pressure under the EU's energy rules, and how the 40% deduction changes the maths before it expires at the end of 2026.

The Ultimate Guide to Window Replacement Grants in Spain (2026): Save Up to €3,000

The Ultimate Guide to Window Replacement Grants in Spain (2026): Save Up to €3,000

In 2026 you can stack two distinct savings on new windows in Spain: a NextGenerationEU direct grant of up to 40% (around €3,000) and an IRPF tax deduction of up to 60%. This guide explains both, the exact requirements, the paperwork in order, the deadlines, and the mistakes that get claims rejected.

How Much Does It Cost to Replace Windows in Spain in 2026 (€/m² Guide)

How Much Does It Cost to Replace Windows in Spain in 2026 (€/m² Guide)

A clear, Spain-specific breakdown of what new windows actually cost per square metre in 2026, fully installed — PVC, aluminium and wood compared. See worked examples for a typical flat and a villa, learn exactly what pushes the price up or down, and find out why the cheapest quote is rarely the best.

How to Compare Window Quotes Without Getting Fooled

How to Compare Window Quotes Without Getting Fooled

Three window quotes that look comparable can describe three completely different jobs. This guide shows you exactly how to read a Spanish presupuesto, which line items must appear, how to compare apples to apples on glazing, Uw and installation, and the red flags hiding in suspiciously cheap quotes.