Ideal Gas Law Calculator (PV = nRT)
Pressure, volume, amount or temperature from PV = nRT, plus the combined gas law for a change of state (P₁V₁/T₁ = P₂V₂/T₂). Celsius input is converted to kelvin for you.
The ideal gas law
The pressure, volume, amount and temperature of a gas are tied together by one relation:
P × V = n × R × T
P is absolute pressure (Pa), V volume (m³), n the number of moles, T the temperature in kelvin and R = 8.314462618 J/(mol·K) the universal gas constant. Knowing three of the four quantities gives the fourth.
Two things to watch
- Temperature must be in kelvin. K = °C + 273.15. Putting a Celsius value straight into the formula is the most common mistake. The calculator converts for you.
- Pressure must be absolute. A gauge shows pressure above atmospheric. A tyre reading 2 bar holds about 3 bar absolute.
Example
How much space does 1 mol of gas take up at 0 °C and 1 atm (101.325 kPa)? V = 1 × 8.314462618 × 273.15 / 101 325 = 0.022414 m³, or 22.4 litres. The value is the same whatever the gas.
Change of state
If the amount of gas in a closed container does not change, P₁ × V₁ / T₁ = P₂ × V₂ / T₂. The special cases are:
- At constant temperature, pressure and volume are inversely proportional (Boyle's law).
- At constant pressure, volume is proportional to absolute temperature (Charles's law).
- At constant volume, pressure is proportional to absolute temperature (Gay-Lussac's law).
Limits
The ideal gas law works well at low pressure and high temperature. The deviation grows as pressure rises and as the gas approaches its condensation point. For liquefied gases in cylinders, steam and refrigerants this calculation is not reliable. Pressure vessel design is not what this tool is for.
Related calculators
-
General Calculations and Unit Conversion
Unit Converter (Engineering Units)
Convert length, pressure, temperature, power, energy, flow, torque and about 40 quantities. Type a value and see it in every unit in one table. -
Physics
Heat and Specific Heat Calculator (Q = m c ΔT)
Heat required, final temperature, specific heat or mass from Q = m × c × ΔT. Approximate specific heats for water, ice, aluminium, iron and copper, or enter your own. -
Physics
Angular Velocity and Angular Acceleration Calculator
Angular velocity from angle and time, angular acceleration from a change in speed, final speed and number of turns, plus linear speed and accelerations. rpm and rad/s. -
Physics
Circular Motion and Centripetal Force Calculator
Speed, angular velocity, period, frequency, centripetal acceleration and centripetal force in uniform circular motion. From speed, period, rpm or force.
Found a mistake or something missing?
If a value looks wrong, a size is missing or you need a feature, write to us and we will fix it.