Home › Calculators › The Heating Line
Opens on the book's house. Change any number to your own and press Calculate.
The days: outdoor mean temperature and gas used (same order, commas or spaces)
The formula
- x = degrees below the base = base − the day's mean outdoor temperature; y = the day's gas in kWh
- The least-squares line y = a + b x: b = Σ(x − x̄)(y − ȳ) ÷ Σ(x − x̄)², a = ȳ − b x̄
- a = gas a day with no heating (hot water and cooking); b = gas per degree-day
- Heat loss (W per °C) = b × boiler efficiency ÷ 24 × 1,000
- r² = 1 − (what the line misses)² ÷ (the spread)²: near 1, the line explains nearly every day
- Tomorrow's gas = a + b × (base − the forecast mean), and just a when it is warmer than the base
Honest limits. The line is a model of your house in the weather it has seen: wind, sun, a party or a week away move single days off it. Use whole days, read at the same time, and at least two weeks of them. The book's house, its meters and its bill were worked out on paper from published figures, not measured by us: read your own meters and log your own night. Tariffs are illustrative, as seen in November 2026 (shaped like the GB price cap of October to December 2026, with US prices beside), shown without a currency sign; put in your own. No saving is promised. Everything stays in your browser: no sign-up, nothing stored.
These calculators go with Watt Happens Next (Make It Add Up, Book 3), where every number on this page is worked by hand.