Desk with Laptop, Calculator, Files and small model of house with epc colours
Desk with Laptop, Calculator, Files and small model of house with epc colours
EPC Works
EPC Works

The 'Legacy' EER Metric

Disclaimer

On this page we are looking at how the Building Fabric Metric is calculated in the publically available EPC Wrapper python reference code here:

 

https://dev.azure.com/Sustenic/Home%20Energy%20Model%20Reference/_git/Energy%20Performance%20Certificate%20wrapper

 

Please be aware that the code we are looking at here (November 2026) should not be treated as a definitive representation of the final HEM/HEMIE methodology. This publicly available version is incomplete, remains under development and is subject to change. It should not be relied upon in any way.

 

The repository's README file makes this clear, stating:

 

“The EPC wrapper is currently in development and should not be used for any official purpose.”

 

The comments on this site are of the code at the time of anaylsis.

 

The comments on this site may be wrong.

 

Please use your own due diligence and look at the code yourself to confirm anything important.

What is the 'legacy' EER metric?

The EER (Energy Efficiency Rating) is the familiar numerical rating used on existing RdSAP EPCs, typically expressed on a scale of 1–100+, with an associated A–G band.

 

This is fundamentally a measure of the modelled energy cost of heating, hot water, ventilation and lighting, adjusted for the size of the dwelling.

 

It is not a measure of actual household energy bills. Nor is it a direct measure of carbon emissions.

 

The wrapper calculates this metric using the energy consumption returned by the main HEM simulation.

 

Unlike FEES, it doesn't run a separate, standardised simulation. It uses the results from the original assessment.

What energy consumption is included?

This is an important distinction.

 

The wrapper doesn't simply take the total energy consumption returned by HEM.

 

In project_lookups.py, the function _select_eer_applicable_usage() specifically selects energy associated with:

  • Space heating.
  • Water heating.
  • Mechanical ventilation.
  • Lighting.

 

It does not include general appliance consumption or cooking energy.

 

It also excludes energy from the environment and unmet demand.

 

This is broadly consistent with the traditional EER approach: the rating is based on the regulated energy requirements of the dwelling, rather than every energy-consuming activity that might take place within it.

 

An interesting detail is that the wrapper identifies the relevant energy uses by examining the individual end-use outputs returned by HEM.

 

It therefore needs to identify which energy supplies and end uses relate to space heating, hot water, mechanical ventilation and lighting.

 

One important distinction: although cooking is excluded from the EER, it is included in the Energy Cost metric. These are separate calculations with different purposes.

How is the energy cost calculated?

The function by_fuel() calculates the cost associated with each fuel supply.

 

The calculation is essentially:

 

\[ \large \text{Import Cost} = \sum_{\text{fuels}} \left( \text{Applicable energy consumption} \times \text{Unit price} \right) + \text{Standing charges} \]

 

The unit prices are expressed in pence per kWh, so the wrapper divides by 100 to convert the result into pounds.

 

There are two sets of fuel prices, depending on whether the assessment is for an existing or new dwelling.

 

Existing dwellings – RdSAP 10 prices

The wrapper uses prices from the RdSAP 10 Specification document, Table 32.

 

New dwellings – SAP 10.2 prices

For new dwellings, the wrapper instead uses the prices from SAP 10.2 Table 12.

 

These of course are methodology-specific fuel prices, not current retail energy tariffs.

 

The eagle-eyed who look up these tables will notice differences in some fuel costs between these two methodologies - such as the value of exported electricty from excess solar generation.

How are standing charges treated?

The wrapper also includes standing charges, with different values for existing and new dwellings.

 

For existing dwellings:

Fuel Annual standing charge
Mains gas £120
Electricity (standard) £0
Electricity (Economy 7) £24
Bulk LPG £70
LPG condition 11F £70
Custom fuel £120
 

For new dwellings:

Fuel Annual standing charge
Mains gas £92
Electricity (standard) £0
Electricity (Economy 7) £7
Bulk LPG £62
LPG condition 11F £92
Custom fuel £92
 

There are some interesting rules here.

 

The standard electricity standing charge is deliberately omitted.

 

For Economy 7, the standing charge is only applied where the electricity supply is associated with space heating or water heating.

 

There is also a special adjustment for custom fuels where the supply serves water heating but not space heating: the standing charge is halved.

 

These details are implemented in _standing_charge_lookup() and by_fuel().

How does economy 7 work?

This is particularly interesting because the wrapper doesn't simply apply the off-peak rate to all electricity consumption.

 

It identifies electricity supplies associated with:

  • Electric storage heaters (ESH).
  • Heat batteries (HB).

Where these are present, it separates the electricity consumption into two periods:

 

Off-peak: midnight to 7am.

On-peak: 7am to midnight.

 

It then applies the appropriate rates to the two consumption totals.

 

For existing dwellings, that means:

  • 5.50p/kWh off-peak.
  • 15.29p/kWh on-peak.

For new dwellings:

  • 9.40p/kWh off-peak.
  • 19.60p/kWh on-peak.

One subtle point: the wrapper splits the consumption from the electricity supply, rather than just the electricity used by the storage heater itself.

 

Consequently, if other equipment is connected to the same supply, its relevant consumption is also divided between the two tariff periods.

How is exported electricity treated?

This is another important aspect.

 

The EER calculation does recognise electricity exported to the grid, including surplus solar PV generation.

 

However, unlike the Energy Cost metric we looked at earlier, the EER calculation uses a separate export price.

 

The function electricity_export_unit_price() specifies:

 

Assessment type Export price
Existing dwelling 13.19p/kWh
New dwelling 5.59p/kWh
 
These are the rates familiar to energy assessors from the RdSAP/SAP tables referred to above. Notice the difference in price between the two? Thats a historic thing. They both used to be 13.19p/kWh. The SAP prices were updated in 2022/3. There was discussion about updating the RdSAP prices in 2025 when that methodology was updated to RdSAP 10 but in the end the prices were kept the same, probably to maintain consistency with ratings for existing dwellings.
 

Anyhow, the exported electricity is represented by negative energy flows in the HEM results.

 

The wrapper multiplies the exported electricity by the relevant export price and adds the resulting negative amount to the import cost.

 

In simplified terms:

 

\[ \large \text{Total energy cost} = \text{Import cost} - \text{Export credit} \]

 

This means that solar PV can improve the legacy EER through both reduced electricity imports and the financial credit for exported electricity.

 

As mentioned, an interesting observation is that the existing-dwelling export price of 13.19p/kWh is identical to the standard electricity import price in the RdSAP 10 implementation.

 

For new dwellings, however, the export price is considerably lower than the standard electricity import price.

 

These are prescribed methodology values, not SEG payments.

The familiar EER formula itself

This is where things get particularly interesting.

 

The wrapper calculates an Energy Cost Factor (ECF):

 

\[ \Large \boxed{ ECF = \frac{ \text{Energy cost deflator} \times \text{Total energy cost} }{ \text{Total floor area}+45 } } \]

 

The deflator value depends on whether the assessment is for an existing or new dwelling.

Assessment Energy cost deflator
Existing dwelling 0.42
New dwelling 0.36
 

The addition of 45 to the floor area is part of the established SAP rating calculation.

 

The wrapper then calculates the EER using the following equations:

 

If ECF is 3.5 or greater:

\[ \Large EER = 108.8-120.5\log_{10}(ECF) \]

 

If ECF is below 3.5:

\[ \Large EER = 100-16.21\times ECF \]

 

The result is prevented from falling below 1.

 

The code then assigns the corresponding A–G band.


Call

E-mail