Heat Transfer Simulator
Watch heat flow from a hot block to a cold one until they reach the same temperature. Drag a block to set its heat and see equilibrium happen live.
Offline ● Works without internet after loading After the first page load, no network connection is needed.Drag a block up or down to heat or cool it — tap for +5 °C
This simulation needs a modern browser with canvas support. The measurements and formula below still describe the physics.
Controls
Live measurements
Graph
Formula
Q = m × c × ΔT
- Q Heat moved
- —
- ΔT Block A temperature change
- —
Observations
What's happening
Real-world examples
Hot drink cooling
A hot drink cools quickly in its first minutes and then far more slowly as it nears room temperature.
Ice in a warm drink
Heat flows from the drink into the ice until the two meet at a shared temperature.
Insulation
Wrapping a drink in a flask slows the cooling but does not change the temperature it eventually reaches.
Second law of thermodynamics
The arrow of heat flow always points from warmer to cooler, never the reverse on its own.
Common Questions
Which way does heat flow?
Heat always flows from the hotter object to the colder one, never the other way on its own. That direction is the essence of the second law of thermodynamics. In the simulator the arrow and flow particles always point from the warmer block toward the cooler one, and the flow only stops once both blocks share the same temperature.
What is thermal equilibrium?
Thermal equilibrium is the state where two objects in contact reach the same temperature and no net heat flows between them. Because the two blocks here are identical, they settle at the average of their starting temperatures. The simulator marks equilibrium once the difference between the blocks drops below half a degree.
Why does the heat flow slow down over time?
The rate of heat flow is proportional to the temperature difference between the blocks. When the gap is large the flow is fast; as the blocks approach each other the gap shrinks and the flow fades. This gives the familiar exponential cooling curve, fast at first and gradually levelling off, which you can see in the graph.
What does the thermal conductance slider do?
Conductance sets how easily heat crosses between the blocks, like the quality of the thermal contact. High conductance behaves like metal pressed against metal and reaches equilibrium in seconds. Low conductance behaves like insulation and takes far longer. Importantly, the final equilibrium temperature is the same either way; only the speed changes.
Is energy conserved in the simulation?
Yes. Every unit of heat that leaves the hot block enters the cold block, so the total energy is constant. That is why the equilibrium temperature is exactly the average of the two starting temperatures for identical blocks. The heat-moved reading tracks how much energy has crossed between them.
Does this simulator send data anywhere?
No. The calculation runs in your browser on the canvas, with nothing uploaded or stored remotely. It continues to work offline once the page has loaded.