On this page we are looking at how the Building Fabric Metric is calculated in the publically available EPC Wrapper python reference code here:
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.
In the EPC wrapper code at the above repositry, the building fabric metric is known internally as FEES, meaning: Fabric Energy Efficiency Standard.
The FEES value is the dwelling’s modelled annual heating and cooling demand per square metre.
The FEES value is the dwelling’s modelled annual heating and cooling demand, per square metre.
The wrapper however doesn't simply take the results of the main HEM simulation and sum together the heating and cooling demand per square metre.
Instead, it:
The formula implemented in fees_metric.py is:
HEM records cooling demand as a negative value, so subtracting it adds the cooling demand’s magnitude.
The result is measured in kWh/m²/year, and is a modelled demand-per-area fabric measure, not a bill or fuel-use measure.
A lower value means less modelled heating and cooling demand for the floor area, which you'd expect to lead to a better rating.
The code doesn’t currently convert the demand figure into an A–G band or a 0–100 rating.
It's only the heating demand and cooling demand that are used in the calculation. HEM provides other demand figures for the dwelling in its results after a run but these are not included in the calculation: Hot-water demand, Lighting energy demand, Cooking energy demand, Electricity consumption, Ventilation energy consumption.
Things get particularly interesting here.
The function _apply_fees_assumptions() modifies the original assessment inputs before the second HEM simulation takes place:
Solar PV & Electrical Storage
On-site generation, including solar PV, domestic electric batteries (ie home batteries) and electricity diverters (eg solar diverters) are all removed.
EV Batteries
The wrapper specifically retains batteries of type ElectricBatteryEV. This means the treatment of EV batteries differs from that of stationary home battery storage.
Space Heating
This is arguably the most significant standardisation. The wrapper removes the property's existing space-heating systems and replaces them with standardised direct electric heaters. The relevant
function is _update_space_heating_system(). For every zone, it creates an:
It also removes service areas and replaces the existing zone heating assignments with these newly created systems.
Space Cooling
The cooling systems are similarly replaced with standardised air-conditioning systems. These have:
This is important because it means the FEES calculation isn't using the actual heating technology to determine the fabric performance. A property with a gas boiler, an air-source heat pump or electric storage heaters will have its space-heating system replaced by the same standardised electric heating arrangement for this calculation.
Hot Water
The existing hot-water arrangements are also replaced. The code creates a standardised point-of-use electric hot-water source, supplied by mains electricity. It also replaces the hot-water demand arrangements with standardised components:
The code also removes the hot-water distribution pipework, on the basis that the new point-of-use system doesn't require it.
Other Changes
So the FEES calculation is attempting to establish the building's heating and cooling requirements under a prescribed set of conditions, rather than allowing the property's existing technologies and appliances to influence the result.
Of course the geometry of the dwelling is not altered, and neither is ventilation.
This describes the wrapper’s implementation, not confirmation that the final EPC Fabric Performance metric will use exactly this formula and these assumptions.
|
|
|