Home › Calculators › Flows In, Flows Out
Opens on the book's house. Change any number to your own and press Calculate.
The house: a tank of heat
The thermostat and the boiler
Heat pump against gas: the cost of a kWh of heat
The formula
- The balance: C × dT/dt = heat in − heat loss × (T − T_out)
- Euler's method: T(next) = T + (heat in − heat loss × (T − T_out)) ÷ C × the step
- The thermostat: by day the boiler runs full when T is below the setting, and holds it there; by night it is off
- Heat pump: a kWh of heat costs the electricity rate ÷ COP; gas: the gas rate ÷ the boiler's efficiency
- They cost the same at COP = electricity rate ÷ (gas rate ÷ efficiency)
Honest limits. A one-box model with one outdoor temperature: real houses have rooms, sun and wind. Heat pumps, solar, batteries and EV chargers are installed by certified installers (UK: MCS); the arithmetic is yours, the installing is theirs. 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.