Ideal Gas Law Calculator
Enter the required inputs into the calculator and find unknown gas properties such as pressure, volume, temperature, and quantity of substance.
The Ideal Gas Law Calculator lets you quickly figure out any one property of a gas when you know the other three. Just
use the classic equation
PV = nRT
With this, you can solve for
Pressure (P)
Volume (V)
Temperature (T)
Number of moles (n)
It’s a real time-saver for anyone dealing with gas law problems. Plug in your values, and you’ll get a fast, accurate answer for any ideal gas scenario.

What’s an Ideal Gas?
An ideal gas doesn’t actually exist in the real world, it’s a useful concept. Imagine a bunch of tiny particles zipping around, bouncing off each other and the walls, but only through perfectly elastic collisions. They don’t stick together or attract each other. Real gases come close at high temperatures and low pressures, but nothing behaves perfectly ideally. Still, the math works beautifully for calculations and simulations.
Ideal Gas Law Formula
Here’s the equation you’re working with
\( PV = nRT \)
How to Rearrange It
Pressure (\(P\)): \( P = \frac{nRT}{V} \)
Volume (\(V\)): \( V = \frac{nRT}{P} \)
Number of moles (\(n\)): \( n = \frac{PV}{RT} \)
Temperature (\(T\)): \( T = \frac{PV}{nR} \)
What the Variables Mean
\( n \) = number of moles of gas
\( R \) = universal gas constant = 8.3145 J/(mol·K)
\( T \) = temperature in Kelvin
\( P \) = pressure in Pascals
\( V \) = volume (in liters, usually)
The Gas Constant, R
R pops up everywhere in physics and chemistry. You’ll see it in the Arrhenius equation, the Nernst equation, and others.
It’s a combination of a few older gas laws
Boyle’s Law
Charles’s Law
Gay-Lussac’s Law
Avogadro’s Law
The value: \( R = 8.3144626 \, \text{J·K}^{-1}\text{·mol}^{-1} \)
The Laws That Built the Ideal Gas Law
Boyle’s Law: \( P_1 V_1 = P_2 V_2 \) (when \(T\) and \(n\) stay the same)
Charles’s Law: \( \frac{V_1}{T_1} = \frac{V_2}{T_2} \) (when \(P\) and \(n\) stay the same)
Gay-Lussac’s Law: \( \frac{P_1}{T_1} = \frac{P_2}{T_2} \) (when \(V\) and \(n\) stay the same)
Avogadro’s Law: \( \frac{V_1}{n_1} = \frac{V_2}{n_2} \) (when \(P\) and \(T\) stay the same)
How to Use the PV=nRT calculator
1. Figure out which three variables you know (\(P\), \(V\), \(T\), or \(n\)).
2. Make sure your units match; convert if needed (like mL → L, or kPa → Pa).
3. Plug your numbers into the calculator or the formula.
4. Solve for the value you’re missing.
Examples - Ideal Gas Law in Action
Example 1: Find the Volume
Given:
\( P = 200 \, \text{kPa} \)
\( T = 300 \, \text{K} \)
\( n = 0.250 \, \text{mol} \)
Solution
\( V = \frac{nRT}{P} \)
\( V = \frac{0.250 \cdot 8.314 \cdot 300}{200} \)
\( V \approx 3.12 \, \text{L} \)
Example 2: Find the Temperature
Given:
\( P = 153 \, \text{kPa} \)
\( V = 250 \, \text{mL} = 0.250 \, \text{L} \)
\( n = 0.50 \, \text{mol} \)
Solution
\( T = \frac{PV}{nR} \)
\( T = \frac{153 \cdot 0.250}{0.50 \cdot 8.314} \)
\( T \approx 9.2 \, \text{K} \)
When Should You Use the Ideal Gas Law?
This law works best when
Temperatures are high
Pressures are low
There’s plenty of volume
The gases aren’t reacting with each other
Conclusion
If you’re a chemistry student, an engineer, or just curious about how gases behave, this calculator makes your life easier. It takes the guesswork out of gas law problems, giving you quick, reliable answers. When you know how these variables connect, you can predict how gases will act under all sorts of conditions.
References
Related Tools