An ideal gas is a set of atoms or molecules that move freely without interactions. The pressure exerted by the gas is due to the collisions of the molecules with the walls of the container. The ideal gas behavior is at low pressures, that is, in the limit of zero density. At high pressures the molecules interact and intermolecular forces cause the gas to deviate from ideality.