BedrockCalculator
Figures cited to primary sourcesWritten by Aapt Dubey, MBA (Marketing & Banking), ISB 4 primary sourcesLast updated

Ideal Gas Law Calculator (PV = nRT)

Solve the ideal gas law PV = nRT for pressure, volume, moles or temperature in any common units, with the exact CODATA gas constant R = 8.314462618 J/(mol K).

Quick Answer: One mole of an ideal gas at 0 °C and 1 atm occupies 22.414 L, from V = nRT/P with the gas constant R = 8.31446261815324 J/(mol·K).

Assumptions

Computed

Preset scenarios

Result
22.414 L
Pressure in kPa
101.325 kPa
Pressure in atm
1 atm
Volume in litres
22.414 L
Amount of gas
1 mol
Temperature in kelvins
273.15 K
Temperature in °C
0 °C
Volume per mole
22.414 L/mol
Gas constant used (R)
8.31446261815324 J/(mol·K)

Volume of one mole of ideal gas at 1 atm by temperature

Download CSV
Each row is this calculator run in volume mode for 1 mol of ideal gas at 101.325 kPa and the temperature in the first column, with the exact CODATA gas constant. Values are rounded to six significant figures.
Temperature (°C)TemperatureVolume of 1 mol
-40233.15 K19.1317 L
-20253.15 K20.7728 L
0273.15 K22.414 L
15288.15 K23.6448 L
20293.15 K24.0551 L
25298.15 K24.4654 L
37310.15 K25.4501 L
50323.15 K26.5168 L
100373.15 K30.6197 L
200473.15 K38.8254 L

This table and its CSV are free to reuse with a link to this page, CC BY 4.0.

Ideal Gas Law Calculator (PV = nRT): Result 22.414 L (Solve for: Volume (V = nRT ÷ P); Pressure (P): 1; Pressure unit: standard atmospheres (atm); Volume unit: litres (L); Amount of gas (n), mol: 1; Temperature (T): 0; Temperature unit: degrees Celsius (°C)).

Save or share this result

A one-page summary of this calculator's default example, drawn from the same calculation as the result above.

The infographic is free to reuse with a link to this page, CC BY 4.0.

Illustration of a red balloon on a string beside a small glass jar with a green lid
Quick Answer: One mole of an ideal gas at 0 °C and 1 atm occupies 22.414 L, from V = nRT/P with the gas constant R = 8.31446261815324 J/(mol·K).

What does this calculator do?

This ideal gas law calculator solves PV = nRT for whichever of the four quantities you leave out: pressure, volume, amount of gas in moles, or temperature.

It is the gas law calculator for most chemistry and physics homework, and for quick estimates of how much gas fits in a container or how pressure changes when a sealed vessel warms up.

The equation ties together four measurable things through one constant. R, the molar gas constant, is the Avogadro constant times the Boltzmann constant. Since the 2019 revision of the SI both of those are exact, so R is exact too: 8.31446261815324 J/(mol·K), the value NIST lists in the CODATA tables. The calculator uses it to all of those digits.

Units are the usual stumbling block, because R in J/(mol·K) only works with pascals, cubic metres and kelvins. The calculator accepts pressure in atmospheres, kilopascals, pascals, bar, psi, mmHg or torr; volume in litres, millilitres, cubic metres or cubic feet; and temperature in Celsius, kelvins or Fahrenheit. It converts all of them to SI before solving and converts the answer back to the unit you picked. Temperatures below absolute zero are refused.

Using the Ideal Gas Law Calculator

  1. Choose what to solve for. The box for that quantity is hidden, and its unit menu sets the unit of the answer.
  2. Enter the other three values and choose their units.
  3. The unit menu of the quantity you solve for sets the unit of the answer.
  4. Read the result at the top. The cards repeat every quantity in common units, give the volume per mole and show the value of R used.

How is this calculated?

  1. Convert to SI. Pressure to pascals (1 atm is 101,325 Pa and 1 bar is 100,000 Pa exactly), volume to cubic metres, and temperature to kelvins (K = °C + 273.15).
  1. Solve PV = nRT for the missing quantity:

P = nRT/V; V = nRT/P; n = PV/RT; T = PV/nR

R = N_Ak = 8.31446261815324 J mol⁻¹ K⁻¹

  1. Check the inputs. A temperature at or below absolute zero, a zero volume when solving for pressure, a zero pressure when solving for volume and a zero amount when solving for temperature are refused, because each would divide by zero or describe something impossible.
  1. Convert back and round. The answer is converted to your unit, every quantity is also shown in kPa, atm, litres, moles, kelvins and °C, and the volume per mole is V/n. Results are rounded half up to six significant figures.

Worked Example

The default inputs are 1 mol of gas at 0 °C and 1 atm, solving for volume:

  1. Temperature: 0 °C = 273.15 K. Pressure: 1 atm = 101,325 Pa.
  2. V = 1 × 8.31446261815324 × 273.15 ÷ 101,325 = 0.0224140 m³.
  3. In litres: 22.414 L.

Squeezing 0.5 mol into 2 L at 25 °C gives a pressure of 619.739 kPa, or 6.11635 atm.

A 50 m³ room of air at 20 °C and 101.325 kPa holds about 2,078.56 mol of gas, 24.0551 L per mole.

Solving for temperature, 2 mol in 50 L at 1 bar must be at 300.681 K, which is 27.5309 °C.

The Molar Volume of a Gas

At a fixed temperature and pressure, every ideal gas takes up the same volume per mole, whatever it is made of. At 0 °C and 1 atm that is 22.414 L. The figure rises with temperature: the reference table on this page gives 24.0551 L at 20 °C and 24.4654 L at 25 °C, all at 1 atm. Some textbooks define standard conditions as 0 °C and 1 bar instead, which gives a slightly larger volume; check which your course uses.

How to Calculate Partial Pressure

In a mixture of ideal gases, each gas exerts the pressure it would exert if it were alone in the container (Dalton's law). To find the partial pressure of one gas, solve for pressure using only that gas's moles, with the full volume and temperature. The total pressure is the sum of the partial pressures. Equivalently, a gas's partial pressure is its mole fraction times the total pressure.

What does this calculator not account for?

  • Real gas behaviour. Real gases deviate from PV = nRT at high pressures and low temperatures, where molecules are close together and attract one another. The van der Waals and other real-gas equations correct for this; this calculator does not.
  • Condensation. A vapour such as steam near its boiling point is not an ideal gas, and below its dew point it starts turning to liquid.
  • Gauge pressure. Tyre gauges read pressure above atmospheric. PV = nRT needs absolute pressure, so add atmospheric pressure to a gauge reading first.
  • Changing amounts. The calculator works one state at a time. For a gas that is heated or compressed in a sealed container, solve each state separately, or use the ratio forms such as P₁/T₁ = P₂/T₂.
  • Gas mixtures by mass. The amount is entered in moles. To use grams, divide by the molar mass first; the grams to moles calculator does that.

What mistakes do people make with this?

  • Using Celsius in the formula. Temperature must be absolute. 25 °C is 298.15 K; putting 25 into PV = nRT is wrong by a factor of about twelve.
  • Mixing R values and units. R = 0.082057 L·atm/(mol·K) and R = 8.314 J/(mol·K) are the same constant in different units. The calculator avoids the issue by converting to SI.
  • Litres versus cubic metres. 1 m³ is 1,000 L.
  • Gauge versus absolute pressure. See above; a flat tyre is at zero gauge pressure but still at one atmosphere absolute.
  • Using STP without checking the definition. 0 °C with 1 atm and 0 °C with 1 bar are both called standard conditions in different places.

Frequently Asked Questions

What is the ideal gas law?

PV = nRT: pressure times volume equals the amount of gas in moles times the gas constant times the absolute temperature. It describes a gas whose molecules take up no space and do not attract each other.

What is the value of R?

R = 8.31446261815324 J/(mol·K), exact since the 2019 SI. In other units it is about 0.0820574 L·atm/(mol·K) or 62.3636 L·Torr/(mol·K).

Is a perfect gas the same as an ideal gas?

Yes. "Perfect gas" is the older and more common British term for the same model.

How do I find the number of moles of a gas?

Solve n = PV/RT. A 50 m³ room at 20 °C and normal pressure holds about 2,078.56 mol of air.

Why does the volume of a mole depend on temperature?

Warmer molecules move faster and push harder, so at the same pressure they need more room. Volume is proportional to absolute temperature: between 0 °C and 100 °C it grows by the ratio 373.15/273.15.

Can I use Fahrenheit?

Yes. Choose Fahrenheit as the temperature unit and the calculator converts to kelvins before solving.

Sources

Did this calculator answer your question?

How this calculator is tested

This calculator is checked by 7 automated test cases: specific inputs whose correct result is known in advance, and rules the output must always obey. They run on every change to the site. See the testing and corrections policy.

Show the test cases
  • Default: 1 mol at 0 °C and 1 atm occupies 22.414 L
  • pressure: 0.5 mol in 2 L at 25 °C is 619.739 kPa
  • moles: 50 m³ at 20 °C and 101.325 kPa holds 2,078.56 mol
  • temperature: 2 mol in 50 L at 1 bar is 300.681 K
  • round trip: the default volume back to 1 mol
  • refuses temperatures at or below absolute zero and empty inputs
  • builds the molar volume table

Add This Website as Preferred Source on Google

See Bedrock Calculator first in your Search results & AI Overviews