Physics Tools

Active tool: Ideal Gas Law

Selected option: Results update automatically

What It Does

Relates the pressure, volume, amount, and temperature of a gas through PV = nRT, and solves for whichever one you don’t know, in whatever units suit you (Pa, kPa, bar, psi, atm, mmHg; m³, L, mL; mol; K, °C, °F). Everything runs in your browser.

How to Use It

  1. Choose what to solve for (P, V, n, or T).
  2. Fill in the other three values and pick their units — or choose an STP / SATP conditions preset to fill the pressure and temperature.
  3. Read the result (pressure is also shown in every unit), with the molar volume when volume and amount are both known.
  4. The working is below it; click Copy on any value.

Options Explained

OptionDescription
Solve forChoose whether to calculate pressure, volume, amount, or temperature.
ConditionsFill in pressure and temperature from an STP or SATP preset.
UnitsChoose pressure, volume, amount, and temperature units independently.
PrecisionChoose how many significant digits to show.
💡 Tip: Temperature must be absolute — always convert to kelvin (the tool does this for you when you pick °C or °F). A gas at “0 °C” is at 273.15 K, not 0.
Choose the unknown, then enter the known values
A preset fills P & T, so it’s unavailable while solving for P. Solve for V or n to use it.

About the Ideal Gas Law

Formula and symbols

P × V = n × R × T

  • P = nRT / V; V = nRT / P
  • n = PV / (RT); T = PV / (nR)
P, V — pressure and volume
Absolute pressure in Pa and gas volume in m³.
n — amount of gas
Amount of substance in mol.
R — molar gas constant
Approximately 8.314 J/(mol·K).
T — absolute temperature
Temperature in kelvin: K = °C + 273.15.

The calculator converts selected units to SI. The ideal-gas approximation is less accurate at high pressure or near condensation.

The ideal gas law, PV = nRT, ties together the four quantities that describe a gas: its pressure P, volume V, amount n (in moles), and absolute temperature T (in kelvin), linked by the molar gas constant R ≈ 8.314 J·mol⁻¹·K⁻¹. It bundles the older gas laws into one relationship — Boyle’s (P ∝ 1/V at fixed n, T), Charles’s (V ∝ T), Gay-Lussac’s (P ∝ T), and Avogadro’s (V ∝ n) — so fixing any three quantities pins down the fourth. A key rule is that temperature must be absolute: only kelvin makes P ∝ T and V ∝ T true through zero, which is why this tool converts any °C or °F input to kelvin before solving and refuses a temperature at or below absolute zero. At standard conditions one mole of an ideal gas occupies a fixed molar volume — about 22.414 L at classic STP (0 °C, 1 atm) or 24.790 L at SATP (25 °C, 1 bar) — a handy sanity check. The “ideal” in the name is an approximation: it assumes the gas particles take up no volume and don’t attract each other, which holds well at everyday pressures and temperatures but breaks down at high pressure or low temperature, where real gases are better described by equations such as van der Waals. Everything is computed on your device.

Example

Solve for P, V = 0.0224140 m³, n = 1 mol, T = 273.15 K → P = 101 325 Pa (1 atm), molar volume 22.414 L/mol.

Frequently Asked Questions

Why must temperature be in kelvin?

The law needs an absolute temperature so that P ∝ T and V ∝ T hold through zero. Celsius and Fahrenheit put zero in arbitrary places, so this tool converts any °C or °F value to kelvin (add 273.15 to °C) before solving, and refuses a temperature at or below absolute zero.

What are the units of R?

In SI, the molar gas constant is R ≈ 8.314 J·mol⁻¹·K⁻¹. This tool works internally in SI base units (pascals, cubic metres, moles, kelvin) and converts your chosen units at the edges, so you never have to match R to a particular unit system.

What is STP (and SATP)?

Standard conditions for comparing gases. Classic STP is 0 °C and 1 atm, where one mole occupies about 22.414 L. SATP is 25 °C and 1 bar, where one mole occupies about 24.790 L. Pick a preset to fill the pressure and temperature automatically.

When does the ideal gas model break down?

At high pressure or low temperature, near where a gas condenses, the particles crowd together and start to attract one another — assumptions the ideal gas law ignores. Real gases are then better modelled by equations such as van der Waals.

Is my data sent to a server?

No. Every calculation runs locally in your browser; nothing you enter is transmitted or stored.