PV = nRT Ideal Gas Law Calculator

Enter any three gas properties to find the fourth. Convert units, compare gases, review each step, and explore how pressure, volume, and temperature relate.

Gas Law Calculator

Pressure (P) UNKNOWN
Volume (V)
Amount of gas (n)
Temperature (T)

Understanding the Ideal Gas Law

The ideal gas law links four measurable properties of a gas. It is written as PV = nRT. Each symbol describes one physical quantity.

P stands for pressure, and V stands for volume. The letter n counts the moles of gas. T is the absolute temperature in kelvin.

The constant R ties everything together. Its value is 8.314 joules per mole kelvin. Chemists often use 0.08206 litre atmospheres instead.

How the Equation Works

Gas molecules move freely and collide with container walls. Those collisions create pressure. Faster molecules hit harder and more often.

Raising temperature increases molecular speed. Pressure then rises if volume stays fixed. This is Gay-Lussac's law in action.

Shrinking the container squeezes molecules closer together. Collisions become more frequent. Pressure climbs when temperature stays constant.

Why Kelvin Matters

Temperature must always be absolute in this equation. Celsius and Fahrenheit can produce zero or negative values. That would break the math.

Kelvin starts at absolute zero. At that point, molecular motion nearly stops. Add 273.15 to any Celsius reading to convert it.

This calculator converts units for you. Simply pick the scale you have. The tool handles the rest.

Solving for Each Variable

Rearrange the formula to isolate any unknown. Pressure equals nRT divided by V. Volume equals nRT divided by P.

Moles equal PV divided by RT. Temperature equals PV divided by nR. Always check that units match the chosen constant.

Enter three known values and pick the fourth. The calculator returns the answer in your preferred unit. It also lists every step.

Real World Uses

Engineers use this law to size gas tanks. Divers rely on it to plan air supply. Meteorologists apply it to rising air masses.

Chemists use it to find molar mass from gas density. Lab teams predict reaction yields with it. Car makers model airbag inflation the same way.

Limits of the Ideal Model

Real gases deviate from ideal behavior at high pressure. Molecules occupy real space then. Attractive forces also start to matter.

Low temperatures cause similar errors. Gases near condensation act differently. The van der Waals equation offers a better fit there.

For everyday conditions, the ideal law works well. Errors stay small for air, nitrogen, and oxygen. Use it with confidence in most classroom problems.

Tips for Accurate Results

Always convert units before you calculate. Mixing litres with pascals causes large errors. Check that moles and volume stay positive.

Frequently Asked Questions

What does PV = nRT mean?

It is the ideal gas law. It relates pressure, volume, moles, and temperature of a gas. If you know three values, you can calculate the fourth. It works best at moderate pressure and higher temperature.

What is the value of R?

R is the universal gas constant. It equals 8.314 J/(mol·K) in SI units. It also equals 0.08206 L·atm/(mol·K). Choose the value that matches your pressure and volume units.

Why must temperature be in kelvin?

The equation needs an absolute scale. Kelvin starts at true zero. Celsius and Fahrenheit do not. Using them gives wrong or impossible results. Add 273.15 to Celsius to get kelvin.

Can I use this calculator for any gas?

Yes, for ideal behavior. The law does not depend on the gas type. Air, helium, and nitrogen all follow it closely under normal conditions. Extreme pressure or cold weakens accuracy.

What units can I enter?

You can enter pressure in Pa, kPa, MPa, bar, atm, mmHg, torr, or psi. Volume accepts m³, litres, millilitres, cm³, ft³, and gallons. Temperature accepts kelvin, Celsius, Fahrenheit, and Rankine.

What is STP and how does it help?

STP means standard temperature and pressure. It is 273.15 K and 100 kPa. Older texts use 1 atm. One mole of ideal gas fills about 22.4 litres at the older value.

When does the ideal gas law fail?

It fails at very high pressure or very low temperature. Molecules then take up space and attract each other. Real gas equations like van der Waals give better results in those cases.

How do I find molar mass with this law?

Enter the mass in grams along with your known values. The calculator divides mass by the computed moles. The formula is M = mRT divided by PV. Choose a preset gas to compare.

How accurate are the results?

Results use double precision math and the exact 2019 SI value for R. Rounding follows your chosen decimal setting. Accuracy depends on how well the gas behaves like an ideal gas.


Related Calculators

Paver Sand Bedding Calculator (depth-based)Paver Edge Restraint Length & Cost CalculatorPaver Sealer Quantity & Cost CalculatorExcavation Hauling Loads Calculator (truck loads)Soil Disposal Fee CalculatorSite Leveling Cost CalculatorCompaction Passes Time & Cost CalculatorPlate Compactor Rental Cost CalculatorGravel Volume Calculator (yards/tons)Gravel Weight Calculator (by material type)

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.