Gas Law Solver
Solve the ideal gas law for any variable.
About Gas Law Solver
The ideal gas law for Gas Law Solver relates pressure, volume, temperature and moles in one equation, giving the quantity of gas and the implied molecule count. Temperature must be absolute (kelvin) because the law is proportional to it directly.
Formula
Gas Law Solver
PV = nRT, so n = PV / (RT)
- R
- Universal gas constant, 8.314 J/(mol.K)
- ideal
- Assumes a perfect gas with no interactions
Worked example
With the default values below, Gas Law Solver returns Moles of Gas of 0.99943. Change any input above and every figure here is recalculated in your browser.
Inputs used
- Pressureminimum 0 Pa
- 101,325 Pa
- Volumeminimum 0 m^3
- 0.0224 m^3
- Temperatureminimum 0 K
- 273.15 K
Results
- Moles of Gas
- 0.99943 mol
- Molecules
- 601,858,165,309,250,550,000,000
- Gas Density
- 0.0290 kg/m^3
Step by step
- 1Values used
- 2Gas Law Solver
- 3Moles of Gas= 0.99943 mol
- 4Molecules= 601,858,165,309,250,550,000,000
- 5Gas Density= 0.0290 kg/m^3
Assumptions and limits
- The result is derived only from the 3 inputs listed above. Anything not among them is not part of the calculation.
- In particular, this calculator does not take inflation, tax, fees or charges or compounding frequency into account.
- Figures are rounded for display to 5 decimal places, so totals built from several rounded parts can differ slightly from the unrounded arithmetic.
How these calculators are built and tested is described on the Methodology page. If a figure looks wrong, please report it.
Frequently Asked Questions
How is Gas Law Solver calculated?
PV = nRT, so n = PV / (RT) The ideal gas law for Gas Law Solver relates pressure, volume, temperature and moles in one equation, giving the quantity of gas and the implied molecule count.
Why does Gas Law Solver matter?
Temperature must be absolute (kelvin) because the law is proportional to it directly.
What values do I need to enter?
This calculator takes 3 inputs: Pressure, Volume, Temperature. The pre-filled defaults are a realistic starting point — replace them with figures from your own environment for a result you can act on.
