Ideal Gas Law Calculator
Solve PV = nRT for the number of moles of gas. This free online science & engineering calculator runs entirely in your browser — no signup, no data sent anywhere.
Inputs
Results
How It Works (Formula & Method)
The ideal gas law is PV = nRT. Solving for the amount of gas gives n = PV ÷ (RT), using R = 0.08206 L·atm·mol⁻¹·K⁻¹. Multiply moles by Avogadro's number (6.022×10²³) for the molecule count. Temperature must be in kelvin.
Worked Example
Below is a worked example using the calculator's default values. The same numbers are pre-filled in the form above so you can press Calculate and see the result without typing anything.
Inputs used:
- Pressure (atm): 1
- Volume (L): 22.4
- Temperature (K): 273.15
With these inputs, the calculator computes the metrics shown in the Results panel. Change any value and press Calculate again to see how the result responds — the live widget and the chart both update instantly.
Frequently Asked Questions
What does the Ideal Gas Law Calculator compute?
The Ideal Gas Law Calculator takes 3 input values and returns 2 results. Solve the ideal gas law PV = nRT for the number of moles from pressure, volume, and temperature.
Is my data sent to a server?
No. The Ideal Gas Law Calculator runs entirely in your browser using static JavaScript. Your inputs are never transmitted to CalculatorHive or any third party, and nothing is stored after you close the page.
Is this calculator free to use?
Yes. Every calculator on CalculatorHive is completely free. There is no signup, no paywall, and no usage limit. The site is supported by display advertising and affiliate partnerships, which are clearly labeled.
How accurate is the result?
The math is mathematically exact for the inputs you provide. Real-world accuracy depends on how accurately your inputs reflect the real situation — defaults are typical values, not guarantees.