Why do gases fill the entire container that holds them?
Gases fill the entire volume of any closed container because they consist of a vast number of molecules that move chaotically in all directions at high speeds. Unlike solids, which have a definite size and shape, or liquids, which maintain a specific volume, gas molecules are separated by distances large relative to their size and do not remain in a fixed position.213
According to the kinetic theory of gases, these molecules travel in arbitrary, random trajectories, colliding with one another and with the walls of the container. Because there are no strong attractive forcesāsuch as those found in condensed statesāto hold the molecules together in a specific volume, they distribute themselves randomly throughout the available space. The pressure exerted by a gas is simply the result of these innumerable, constant molecular impacts against the container walls.2134