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.
Frequently asked questions
How do you calculate volume using PV = nRT?
In this example, the ideal gas law gives a volume of 48.93 L for 2 mol at 25 °C and 101.325 kPa absolute pressure. Temperature is converted to kelvin, and real gas deviations grow at high pressure or near condensation, so this does not verify pressure vessel design.
Related calculators
-
General Calculations and Unit Conversion
Unit Converter: All Units at Once in a Copyable Table
Convert length, pressure, power and more. See all units at once, choose significant digits and copy the whole table. Free to use, no account needed. -
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
Buoyant Force Calculator (Archimedes)
Buoyant force by Archimedes' principle. Will it float or sink, what fraction is submerged and what is its apparent weight. Density from weighing in air and in liquid. -
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. -
Physics
Collision Calculator (Elastic and Inelastic)
Final velocities in a one dimensional collision: elastic, perfectly inelastic or with a coefficient of restitution. Momentum and kinetic energy balance with worked steps.
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.