Ideal gasses follow the ideal gas law, real gasses don't always.
Ideal gas law formula: PV=nRT
P = pressure
V = volume
n = number of moles
R = constant (changes depending on what units of pressure you use, atmospheres = 0.0821, millimeters of hydrogen = 62.4)
T = temperature