---
title: "Thermodynamics and statistical physics textbook | Sandbox Physics"
description: "Start with temperature and molecular collisions. Use energy and probability to understand heat, entropy, engines and thermal fluctuations."
canonical_url: "https://sandboxphysics.com/learn/heat-and-statistics/"
language: "en"
page_type: "story"
alternate_languages:
  zh-CN: "https://sandboxphysics.com/zh/learn/heat-and-statistics/"
last_modified: "2026-11-25"
---

[Interactive Physics Textbook](https://sandboxphysics.com/learn/)

# Heat, Probability and Matter

Start with temperature and molecular collisions. Use energy and probability to understand heat, entropy, engines and thermal fluctuations.

How does molecular motion produce temperature and pressure, and how does energy flow between systems?

Before this volume: Volume 1 on energy and momentum. This volume introduces probability distributions.

## Chapters you can read now

[Chapter 1 When does a thermometer represent the sample temperature? Check thermal equilibrium, calibration and probe response before treating a thermometer reading as the sample temperature. Lab: Electrical Calorimeter](https://sandboxphysics.com/learn/heat-and-statistics/temperature-and-thermal-equilibrium/) [Chapter 2 How do molecular collisions create pressure? Count momentum transfers at a wall to explain gas pressure. Use a speed histogram to compare the most probable, mean and rms speeds. Lab: Kinetic Theory](https://sandboxphysics.com/learn/heat-and-statistics/molecular-motion-and-pressure/) [Chapter 3 How do heat and work change internal energy? Follow heat and work across a boundary, and compare two gas paths with the same change in internal energy. Lab: Electrical Calorimeter](https://sandboxphysics.com/learn/heat-and-statistics/first-law-of-thermodynamics/) [Chapter 4 Why does heat flow spontaneously from hot to cold? Compare the entropy changes of a hot body and a cold body. Use their sum to explain the direction of spontaneous heat flow. Lab: Electrical Calorimeter](https://sandboxphysics.com/learn/heat-and-statistics/entropy-and-irreversibility/) [Chapter 5 How much work can a heat engine deliver in one cycle? Read net work from a pressure–volume cycle and use the reservoir temperatures to find the efficiency limit.](https://sandboxphysics.com/learn/heat-and-statistics/heat-engines-and-cycles/) [Chapter 6 How do probabilities determine a system's thermal averages? Normalize Boltzmann weights to predict level populations. Use the same probabilities to calculate thermal averages and fluctuations. Lab: Ising Critical Fluctuations, Hard Spheres to Boltzmann](https://sandboxphysics.com/learn/heat-and-statistics/boltzmann-weights-and-fluctuations/)

## All chapters in this volume

1. Chapter 1 · [When does a thermometer represent the sample temperature?](https://sandboxphysics.com/learn/heat-and-statistics/temperature-and-thermal-equilibrium/)

   How do equilibrium, calibration and response time affect a temperature reading?

   Before this chapter: [Volume 1 Chapter 2](https://sandboxphysics.com/learn/mechanics/measuring-motion-with-a-camera/) and [Chapter 3](https://sandboxphysics.com/learn/mechanics/testing-constant-acceleration/) on measurement, calibration and model checks. Basic algebra.

2. Chapter 2 · [How do molecular collisions create pressure?](https://sandboxphysics.com/learn/heat-and-statistics/molecular-motion-and-pressure/)

   What can a record of wall impacts tell us about a gas?

   Before this chapter: [Volume 1 Chapter 11](https://sandboxphysics.com/learn/mechanics/momentum-and-collisions/) on momentum. [Chapter 1](https://sandboxphysics.com/learn/heat-and-statistics/temperature-and-thermal-equilibrium/) on absolute temperature.

3. Chapter 3 · [How do heat and work change internal energy?](https://sandboxphysics.com/learn/heat-and-statistics/first-law-of-thermodynamics/)

   How can two paths give the same change in internal energy with different amounts of heat and work?

   Before this chapter: [Chapter 1](https://sandboxphysics.com/learn/heat-and-statistics/temperature-and-thermal-equilibrium/) on heat capacity, [Chapter 2](https://sandboxphysics.com/learn/heat-and-statistics/molecular-motion-and-pressure/) on gases and [Volume 1 Chapter 9](https://sandboxphysics.com/learn/mechanics/work-and-kinetic-energy/) on work.

4. Chapter 4 · [Why does heat flow spontaneously from hot to cold?](https://sandboxphysics.com/learn/heat-and-statistics/entropy-and-irreversibility/)

   What changes when two bodies exchange heat and settle at one temperature?

   Before this chapter: [Chapter 1](https://sandboxphysics.com/learn/heat-and-statistics/temperature-and-thermal-equilibrium/) on temperature, [Chapter 2](https://sandboxphysics.com/learn/heat-and-statistics/molecular-motion-and-pressure/) on probabilities and [Chapter 3](https://sandboxphysics.com/learn/heat-and-statistics/first-law-of-thermodynamics/) on the first law.

5. Chapter 5 · [How much work can a heat engine deliver in one cycle?](https://sandboxphysics.com/learn/heat-and-statistics/heat-engines-and-cycles/)

   How do the enclosed area and the reservoir temperatures limit cycle work and efficiency?

   Before this chapter: [Chapter 3](https://sandboxphysics.com/learn/heat-and-statistics/first-law-of-thermodynamics/) on energy balance, [Chapter 4](https://sandboxphysics.com/learn/heat-and-statistics/entropy-and-irreversibility/) on entropy and [Volume 1 Chapter 9](https://sandboxphysics.com/learn/mechanics/work-and-kinetic-energy/) on work.

6. Chapter 6 · [How do probabilities determine a system's thermal averages?](https://sandboxphysics.com/learn/heat-and-statistics/boltzmann-weights-and-fluctuations/)

   How do energy, degeneracy and temperature determine which states a system occupies?

   Before this chapter: [Chapter 2](https://sandboxphysics.com/learn/heat-and-statistics/molecular-motion-and-pressure/) on histograms and [Chapter 4](https://sandboxphysics.com/learn/heat-and-statistics/entropy-and-irreversibility/) on entropy.
