Pressure (P)
P = nRT / V
Find absolute gas pressure from moles, volume, and temperature.
Solve PV = nRT for pressure, volume, moles, or temperature. Enter gas mass and formula, calculate gas density or molar mass, and see unit conversions and step-by-step chemistry calculations.
The ideal gas law relates pressure, volume, amount of gas, and absolute temperature. It approximates gas behavior when the effects of intermolecular attraction and molecular size are small.
PV = nRT
P = absolute pressure; V = gas volume; n = moles; R = molar gas constant; T = temperature in kelvin. The SI value is R = 8.31446261815324 Pa·m³/(mol·K).
Select the missing quantity, then provide the other three known values. The calculator converts units before applying the rearranged formula.
P = nRT / V
Find absolute gas pressure from moles, volume, and temperature.
V = nRT / P
Find the space occupied by a known amount of gas.
n = PV / (RT)
Find the amount of gas from pressure, volume, and temperature.
T = PV / (nR)
Find absolute temperature, then convert to Celsius or Fahrenheit as needed.
The numerical value of the universal gas constant changes with the units used. The underlying constant does not change. This calculator uses the SI form internally to avoid mixing incompatible units.
| R units | Approximate value |
|---|---|
| Pa·m³/(mol·K) | 8.314462618 |
| kPa·L/(mol·K) | 8.314462618 |
| L·atm/(mol·K) | 0.08205737 |
| L·bar/(mol·K) | 0.08314463 |
| L·Torr/(mol·K) | 62.3636 |
| cal/(mol·K) | 1.9872 (approx.) |
For L and atm, the familiar classroom approximation is R ≈ 0.082057 L·atm/(mol·K). With pressure in kPa and volume in L, use 8.314462618 kPa·L/(mol·K). The solver uses 8.31446261815324 Pa·m³/(mol·K) for all calculations; the values above are for checking hand-worked problems.
The standard temperature is not enough to determine molar volume: you must also know which standard pressure is used. Different chemistry resources use different STP definitions.
| Conditions | Temperature | Absolute pressure | Ideal molar volume |
|---|---|---|---|
| Traditional textbook STP | 0 °C (273.15 K) | 1 atm (101.325 kPa) | 22.414 L/mol |
| IUPAC STP | 0 °C (273.15 K) | 100 kPa (1 bar) | 22.711 L/mol |
| SATP | 25 °C (298.15 K) | 100 kPa (1 bar) | 24.790 L/mol |
| Room conditions at 1 atm | 25 °C (298.15 K) | 1 atm (101.325 kPa) | 24.465 L/mol |
A textbook answer of 22.4 L per mole refers to the traditional 0 °C, 1 atm conditions; approximately 22.7 L per mole applies at 0 °C and 100 kPa. Use the conditions provided in your assignment.
Gas problems often give a measured mass rather than moles. Use the gas formula or known molar mass to convert mass to amount, then solve PV = nRT.
Enter a gas formula to calculate its molar mass automatically, or enter a known molar mass directly. If you fill in both fields, they must agree.
The same ideal-gas equation can find gas density from known molar mass or determine the approximate molar mass of an unknown gas from its collected mass and volume. Switch to the Density & Molar Mass tab above to solve either equation directly.
ρ = PM / (RT)
For O₂ at 0 °C and 1 atm, M ≈ 31.998 g/mol. The predicted density is approximately 1.428 g/L.
M = mRT / (PV)
For a 2.15 g sample at 298 K, 0.950 atm, and 1.25 L, the calculated molar mass is approximately 44.3 g/mol. The calculation does not uniquely identify the gas compound.
The pressure must describe the target gas. In wet-gas collection, a sample may include water vapor: use the target gas partial pressure after an appropriate vapor-pressure correction rather than using total pressure without checking.
Use these seven solved examples to practice common chemistry assignments, including gas mass and an unknown gas experiment. The calculator shows unrounded numerical output separately from selected display precision.
n = 1.00 mol, T = 273.15 K, P = 1 atm
n = 0.500 mol, V = 10.0 L, T = 298.15 K
P = 2.00 atm, V = 5.00 L, T = 300. K
P = 740 mmHg, V = 5.00 L, n = 0.200 mol
44.0 g CO₂ at 25 °C and 1.20 atm
m = 2.15 g, P = 0.950 atm, V = 1.25 L, T = 298 K
O₂, T = 0 °C, P = 1 atm, M(O₂) ≈ 31.998 g/mol
PV = nRT calculates an individual gas state. The combined gas law compares two states of a fixed amount of ideal gas: P₁V₁/T₁ = P₂V₂/T₂.
Use PV = nRT when you know three of the four gas state variables, including amount n. Use the combined gas law when a closed amount of gas changes from one pressure, volume, and temperature state to another and the number of moles remains constant. Boyle’s law, Charles’s law, and Avogadro’s law are limiting relationships derived from the ideal gas model.
Real gas molecules occupy volume and attract or repel one another. Deviations generally increase at high pressure, lower temperature, and near condensation; their size depends on the gas and experimental conditions. Do not apply a universal pressure threshold for all gases. For high-accuracy work, consider measured gas compressibility or an appropriate non-ideal equation of state.
Most wrong answers come from temperature, pressure, and gas-amount interpretation, not from rearranging PV = nRT.
Convert absolute temperature to K before calculating.
The ideal gas law uses absolute pressure; check whether the instrument reports gauge pressure.
Use an R value matching the units or consistently convert to SI.
Divide measured gas mass by its molar mass before inserting n.
0 °C at 1 atm and 0 °C at 100 kPa give different molar volumes.
When a gas is collected over water, total pressure may include water vapor pressure.
Approximately 22.711 L before measurement-specific rounding; 22.7 L to three significant figures.
P = nRT/V ≈ 1.22 atm.
n = PV/(RT) ≈ 0.406 mol.
44.0 ÷ 44.01 ≈ 0.9998 mol, or 1.00 mol to three significant figures.
25 °C is 298.15 K; 25 K is approximately −248.15 °C. They must never be interchanged.
No. That value is an approximation for an ideal gas at 0 °C and 1 atm, not a universal gas molar volume.
The fastest reliable way to solve PV = nRT is to convert every known value into compatible units before substituting. The calculator uses pascals, cubic meters, moles, and kelvin internally.
The numerator PV has units Pa·m³, equivalent to joules. In the denominator, R × T has units Pa·m³/mol. Their ratio therefore has units of mol.
n = (Pa·m³) / (Pa·m³/mol) = mol
If you calculate with atm and liters instead, use R ≈ 0.082057 L·atm/(mol·K). Never substitute degrees Celsius directly into either version.
In a common chemistry lab, gas is collected by displacing water. The pressure inside the collecting container can include both the desired gas and water vapor. Using the entire measured pressure in PV = nRT can overestimate the amount of dry gas.
Suppose the total pressure is 755.0 mmHg, the water vapor pressure at 25 °C is approximately 23.8 mmHg, and the collected gas occupies 0.500 L at 25 °C. Assume the gas and water vapor share the same temperature, the measurement is at pressure equilibrium, and no additional vapor is present.
Enter 731.2 mmHg as the absolute pressure in the calculator; it does not automatically subtract water vapor pressure. The 23.8 mmHg value is illustrative and depends on temperature. If water levels differ, a hydrostatic pressure correction may also be needed.
The pressure in PV = nRT is always absolute pressure. Gauge pressure is measured relative to surrounding atmospheric pressure, so it cannot be used directly without conversion.
P(absolute) = P(gauge) + P(atmospheric)
Example: a pressure gauge reports 50 kPa above a surrounding atmospheric pressure of 101.325 kPa. The absolute pressure is 151.325 kPa. Enter 151.325 kPa, not 50 kPa, into the ideal gas calculator.
A vacuum gauge can even read negative relative to atmospheric pressure, as long as the resulting absolute pressure stays positive.
These two frequently tested equations follow from the original ideal gas law, not from a separate gas model. The conversion from a measured sample mass to moles is the connection.
Use n = m/M and density ρ = m/V. Substitute n into PV = nRT:
PV = (m/M)RT
ρ = m/V = PM/(RT)
Higher absolute pressure raises ideal-gas density at fixed temperature and composition; higher absolute temperature lowers it.
Rearrange for M when the sample’s mass m, gas volume V, pressure P, and temperature T are known:
M = mRT/(PV)
An approximate molar mass alone does not uniquely identify an unknown gas; several substances can have similar molecular masses. Measurement uncertainty and real-gas behavior can also affect the estimate.
When a balanced chemical equation determines the number of moles of gaseous product, PV = nRT converts that amount into a predicted gas volume at the specified temperature and pressure.
Mg + 2HCl → MgCl₂ + H₂
Suppose 0.100 mol Mg reacts completely with excess hydrochloric acid, and all the resulting H₂ can be treated as an ideal gas. Calculate its volume at 25 °C and 1.00 atm.
This assumes complete reaction and dry hydrogen at the stated absolute pressure. If the gas is captured over water, correct for water vapor pressure before computing dry-gas moles or volume.
The calculator’s 2–6 significant-figure selector controls display formatting. It does not determine the experimental uncertainty or automatically infer the least precise measurement from how a number was entered.
In a textbook question, round the final answer according to the stated measurement precision. Keep intermediate gas-law calculations unrounded. Temperature conversions to kelvin and exact unit conversion factors should not be treated as new low-precision measurements.
For example, at traditional STP, one mole of ideal gas occupies about 22.41397 L in the calculation. If your mole amount is specified as 1.00 mol, a three-significant-figure reported answer is 22.4 L; selecting six significant figures merely displays more digits, not a more accurate experiment.
Quick answers to common ideal gas equation, R constant, STP, and gas density questions.
The ideal gas law is PV = nRT, where P is absolute pressure, V is volume, n is the amount in moles, R is the molar gas constant, and T is absolute temperature in kelvin.
Use P = nRT/V. For n = 0.500 mol, T = 298.15 K, and V = 10.0 L, the ideal pressure is approximately 1.22 atm.
R is approximately 0.082057 L·atm/(mol·K) with P in atm and V in L. This calculator uses 8.31446261815324 Pa·m³/(mol·K) internally and converts inputs and outputs, which is equivalent.
The gas law relates absolute temperature to gas volume and pressure. Convert °C using K = °C + 273.15 or °F using K = (°F − 32) × 5/9 + 273.15. You cannot substitute Celsius directly.
At 0 °C and 1 atm, one mole of ideal gas occupies approximately 22.414 L. At the IUPAC standard pressure of 100 kPa and 0 °C, it occupies approximately 22.711 L. The standards differ.
Yes. Divide the gas mass by its molar mass to get moles, n = m/M, and then calculate V = nRT/P. Enter a valid gas formula such as CO2 or a known molar mass.
Ideal-gas density is ρ = PM/(RT), with consistent units. For an unknown gas sample, M = mRT/(PV) uses sample mass, absolute pressure, gas volume, and temperature.
Gas collected over water mixes with water vapor, so the measured total pressure is higher than the dry gas pressure. Subtract the water vapor pressure at the measurement temperature before solving PV = nRT, because this calculator does not apply that correction automatically.
PV = nRT relates a gas sample’s pressure, volume, mole amount, and temperature. The combined gas law compares two states of the same fixed amount of gas: P₁V₁/T₁ = P₂V₂/T₂, using absolute temperatures.
Real gases depart from ideal behavior when intermolecular interactions and molecular volume matter, often at high pressures, low temperatures, or near condensation. The size of the deviation depends on the gas and conditions.
Convert gauge pressure to absolute pressure by adding the local atmospheric pressure. For example, 50 kPa gauge at 101.325 kPa atmospheric pressure is 151.325 kPa absolute.
Apply Dalton’s law of partial pressures: P(dry gas) = P(total) − P(water vapor), plus any water-level hydrostatic pressure adjustment required by the apparatus. Then enter P(dry gas) as the absolute pressure in PV = nRT.
Use a balanced reaction and the limiting reactant to calculate moles of gaseous product, then use V = nRT/P at the given absolute pressure and kelvin temperature. A gas collected over water may require an additional pressure correction.
No. The 2–6 significant-figure option changes display precision, not measurement uncertainty. Round the final result according to the precision supported by the inputs and your laboratory or classroom instructions.
Use these tools when a problem also needs a chemical formula, mole conversion, stoichiometric reaction, or significant-figure rounding.
Find gas formula mass for mass-to-mole calculations.
Check the CO₂ mass breakdown for a gas-volume example.
Convert between measured gas mass and moles.
Calculate how many moles of gas a reaction produces.
Calculate solution molarity (mol/L) for dissolved solutes.
Round gas-law and lab results to the right significant figures.