Heating and Cooling Degree Days

Heating and cooling degree days from daily means or one average temperature over a period, with optional fuel use and cost.

Heating degree days (°C·d)
—
Cooling degree days (°C·d)
—
Days entered
—
Heating degree days per day
—
Estimated fuel use
—
Estimated fuel cost
—

Calculation and assumptions

HDD=Σmax(0,B−Tᵢ); CDD=Σmax(0,Tᵢ−B).

One value represents one day; do not use a monthly mean. Use 1–3660 daily means from −100 to 100°C, with a decimal point or comma. The same chosen base is used for both totals; no weather data, regional weighting or energy-consumption model is included.

Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

Frequently asked questions

How is the result calculated?

HDD=Σmax(0,B−Tᵢ); CDD=Σmax(0,Tᵢ−B).

What assumptions apply?

One value represents one day; do not use a monthly mean. Use 1–3660 daily means from −100 to 100°C, with a decimal point or comma. The same chosen base is used for both totals; no weather data, regional weighting or energy-consumption model is included.

How precise are the results?

Non-integer results show up to ten significant digits; whole counts retain their integer digits. Display precision does not improve measurement or model accuracy. Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

How do I estimate fuel use from degree days?

Divide a past period's metered fuel use by its heating degree days to get your own factor (for example m³ of gas per degree day), then enter it here. Fuel = HDD × factor; cost = fuel × price. The factor depends on your building and heating system, so no default is built in.

How we verified this calculator

The calculator is checked against 5 reference cases computed independently of its code. Last passed: .

# Inputs Expected result
1
Input = Daily mean temperatures
Base temperature (°C, −100 to 100) = 18
Fuel per heating degree day (optional) =
Price per fuel unit (optional) =
Daily means (°C; separate by spaces or semicolons) = 10 18 25
Heating degree days (°C·d): 8
Cooling degree days (°C·d): 7
Days entered: 3
Heating degree days per day: 2.666666667
2
Input = Average temperature × days
Base temperature (°C, −100 to 100) = 18
Fuel per heating degree day (optional) = 0.13
Price per fuel unit (optional) = 1.45
Average outdoor temperature (°C) = 6
Number of days = 30
Heating degree days (°C·d): 360
Cooling degree days (°C·d): 0
Days entered: 30
Heating degree days per day: 12
3
Input = Average temperature × days
Base temperature (°C, −100 to 100) = 15.5
Fuel per heating degree day (optional) =
Price per fuel unit (optional) =
Average outdoor temperature (°C) = 22,4
Number of days = 31
Heating degree days (°C·d): 0
Cooling degree days (°C·d): 213.9
Days entered: 31
Heating degree days per day: 0
4
Input = Daily mean temperatures
Base temperature (°C, −100 to 100) = 18
Fuel per heating degree day (optional) = 0.2
Price per fuel unit (optional) =
Daily means (°C; separate by spaces or semicolons) = 5;7,5 -2 19
Heating degree days (°C·d): 43.5
Cooling degree days (°C·d): 1
Days entered: 4
Heating degree days per day: 10.875
5
Input = Average temperature × days
Base temperature (°C, −100 to 100) = 20
Fuel per heating degree day (optional) = 1.05
Price per fuel unit (optional) = 0.31
Average outdoor temperature (°C) = -3.5
Number of days = 90
Heating degree days (°C·d): 2115
Cooling degree days (°C·d): 0
Days entered: 90
Heating degree days per day: 23.5

How we test our calculators →

Also try:

Back to category →