We give a pedagogical introduction to the thermodynamic Bethe ansatz, a method that allows us to describe the thermodynamics of integrable models whose spectrum is found via the (asymptotic) Bethe ansatz. We set the stage by deriving the Fermi–Dirac distribution and associated free energy of free electrons, and then in a similar though technically more complicated fashion treat the thermodynamics of integrable models, focusing first on the one-dimensional Bose gas with delta function interaction as a clean pedagogical example, secondly the XXX spin chain as an elementary (lattice) model with prototypical complicating features in the form of bound states, and finally the chiral Gross–Neveu model as a field theory example. Throughout this discussion we emphasize the central role of particle and hole densities, whose relations determine the model under consideration. We then discuss tricks that allow us to use the same methods to describe the exact spectra of integrable field theories on a circle, in particular the chiral Gross–Neveu model. We moreover discuss the simplification of TBA equations to Y systems, including the transition back to integral equations given sufficient analyticity data, in simple examples. [ABSTRACT FROM AUTHOR]