Ideal gas law pV = nRT
Calculate the moles and mass of a gas in a volume from pressure and temperature, or the pressure of an amount of gas, with pV = nRT. The calculator is free and shows the formula, the working and a numerical example, with no sign-up.
📐 Formula and steps shown. Sources and limits: How we calculate
Results
Indicative results: always verify with a qualified technician and the applicable standards. Legal notice
Step-by-step calculation with your values
Formulas
Find moles and mass
T = T_(°C) + 273,15n = (p V)/(R T)m = n · MFind the pressure
T = T_(°C) + 273,15p = (n R T)/VHow it is calculated
An ideal gas follows pV = nRT, with R = 8.314462618 J/(mol·K). Pressure and temperature must always be absolute: bar absolute (not the gauge reading, to which about 1 bar is added) and kelvin (T + 273.15). From the amount n the mass is m = n·M; the molar mass offered is typical of dry air, replace it for other gases. Air, nitrogen and similar gases at room temperature and moderate pressures behave nearly ideally; at high pressure or near condensation real-gas models are needed.
Results are indicative: for real projects and installations always check applicable standards and a qualified professional.
Example (Find moles and mass)
With the values: Absolute pressure p = 2 bar; Volume V = 10 L; Temperature T = 20 °C; Molar mass M (typical air ~28.97) = 28.97 g/mol — you get:
- Absolute temperature: 293.15 K
- Amount of substance n: 0.8206 mol
- Gas mass: 23.771 g
✏️ Try it yourself: exercises
Solve them with the formulas above, then open the solution to check.
Exercise 1 — Find moles and mass
Given:
- Absolute pressure p: 3 bar
- Volume V: 8 L
- Temperature T: 30 °C
- Molar mass M (typical air ~28.97): 28.97 g/mol
Find: Amount of substance n, Gas mass
Show the solution
- Absolute temperature: 303.15 K
- Amount of substance n: 0.9522 mol
- Gas mass: 27.585 g
Exercise 2 — Find the pressure
Given:
- Amount of substance n: 0.6 mol
- Volume V: 28 L
- Temperature T: 0 °C
Find: Resulting absolute pressure
Show the solution
- Absolute temperature: 273.15 K
- Resulting absolute pressure: 0.4867 bar
Exercise 3 — Find moles and mass
Given:
- Absolute pressure p: 4 bar
- Volume V: 12 L
- Temperature T: 40 °C
- Molar mass M (typical air ~28.97): 28.97 g/mol
Find: Amount of substance n, Gas mass
Show the solution
- Absolute temperature: 313.15 K
- Amount of substance n: 1.8435 mol
- Gas mass: 53.408 g
Frequently asked questions
Which formula does the “Ideal gas law pV = nRT” calculator use?
The formulas used are: T = T_(°C) + 273,15; n = (p V)/(R T); m = n · M; p = (n R T)/V. The full explanation, with units and typical values, is in the “How it is calculated” section.
Is FunConvert free?
Yes. Every converter and calculator is free, with no sign-up and nothing to install. Calculations run in your browser.