Ideal Gas Law Calculator

Calculate pressure, volume, moles, or temperature of an ideal gas using PV = nRT.

The Ideal Gas Law Calculator solves for any variable in the equation PV = nRT given the other three. Enter values for pressure, volume, temperature, and amount of gas (moles) to calculate the unknown. It supports multiple unit systems and displays step-by-step solutions, making it an essential tool for chemistry students, engineers, and researchers working with gas behavior calculations.

Equilibrating States...
Your data stays in your browser
Was this tool useful?
Tutorial

How to use

1
1

Select variable

Choose which parameter you want to solve for (P, V, n, or T).

2
2

Input values

Enter the known variables in their respective units.

3
3

Get result

The constant R (0.08206) is applied automatically to reveal the missing value.

Guide

Complete Guide to the Ideal Gas Law

What Is the Ideal Gas Law?

The Ideal Gas Law (PV = nRT) is a fundamental equation in chemistry and physics that describes the behavior of an ideal gas — a hypothetical gas whose molecules occupy negligible volume and exert no intermolecular forces. P is absolute pressure, V is volume, n is the amount of substance in moles, R is the universal gas constant (8.314 J/(mol·K)), and T is absolute temperature in Kelvin. This equation combines Boyle's Law (P∝1/V at constant T), Charles's Law (V∝T at constant P), and Avogadro's Law (V∝n at constant T and P) into a single, powerful relationship.

Why the Ideal Gas Law Matters

The Ideal Gas Law is used daily in chemistry, physics, engineering, meteorology, and medicine. Chemists use it to predict gas volumes in reactions. Engineers design pressure vessels, HVAC systems, and internal combustion engines using gas law calculations. Meteorologists apply it to understand atmospheric pressure and weather patterns. Scuba divers rely on gas law principles to calculate air supply at depth. While real gases deviate from ideal behavior at high pressures and low temperatures, the Ideal Gas Law provides an excellent approximation for most practical conditions.

Key Concepts and Unit Conversions

Temperature must always be in Kelvin (K = °C + 273.15). The gas constant R has different values depending on pressure and volume units: 8.314 J/(mol·K) for Pa and m³, 0.0821 L·atm/(mol·K) for atm and liters, 62.36 L·mmHg/(mol·K) for mmHg and liters. Standard Temperature and Pressure (STP) is defined as 0°C (273.15 K) and 1 atm, where 1 mole of ideal gas occupies 22.4 liters. Always check unit consistency before plugging values into the equation.

Best Practices for Gas Law Calculations

Always convert temperature to Kelvin first — forgetting this is the most common error. Ensure all units are consistent with your chosen value of R. For multi-step problems, solve for one variable at a time. Remember that the Ideal Gas Law assumes no intermolecular forces, so it becomes less accurate for real gases at high pressures (>10 atm) or low temperatures (near liquefaction). For those conditions, use the Van der Waals equation instead. Always include units in your calculations to catch dimensional errors.

Examples

Worked Examples

Example: Finding Volume at STP

Given: 2 moles of an ideal gas at STP (P = 1 atm, T = 273.15 K).

1

Step 1: Use PV = nRT with R = 0.0821 L·atm/(mol·K).

2

Step 2: Solve for V: V = nRT/P = (2)(0.0821)(273.15)/(1).

3

Step 3: V = 44.8 L.

Result: 2 moles of ideal gas occupy 44.8 liters at STP (double the molar volume of 22.4 L).

Example: Finding Pressure in a Container

Given: 0.5 mol of gas in a 10 L container at 25°C.

1

Step 1: Convert temperature: T = 25 + 273.15 = 298.15 K.

2

Step 2: Use PV = nRT: P = nRT/V = (0.5)(0.0821)(298.15)/(10).

3

Step 3: P = 1.224 atm.

Result: The gas exerts a pressure of 1.224 atm (approximately 93 kPa).

Use Cases

Use cases

Chemistry Labs

Determine moles of gas at specific pressure and temperature.

Thermodynamics

Calculate gas expansion based on heat changes.

Formula

Formulas Used

Ideal Gas Law

PV=nRTPV = nRT
VariableMeaning
Pabsolute pressure (atm, Pa, or mmHg)
Vvolume (L or m³)
namount of substance (mol)
Rgas constant (8.314 J/(mol·K) or 0.0821 L·atm/(mol·K))
Tabsolute temperature (K)

Temperature Conversion

TK=T°C+273.15T_{K} = T_{°C} + 273.15
VariableMeaning
T_Ktemperature in Kelvin
T_°Ctemperature in degrees Celsius

Frequently Asked Questions

?What is the ideal gas law?

The ideal gas law is the equation PV = nRT, where P is pressure, V is volume, n is the number of moles, R is the ideal gas constant (0.08206 L-atm/mol-K), and T is absolute temperature in Kelvin.

?Which variable can I solve for?

You can solve for any one of the four variables: pressure (P), volume (V), amount of substance in moles (n), or temperature (T). Just select the unknown and enter the other three values.

?What units does this calculator use?

The calculator uses standard SI-compatible units: pressure in atmospheres (atm), volume in liters (L), amount in moles (mol), and temperature in Kelvin (K). The gas constant R = 0.08206 L-atm/mol-K is applied automatically.

?When does the ideal gas law apply?

The ideal gas law works well for most gases at moderate temperatures and low to moderate pressures. It becomes less accurate at very high pressures or very low temperatures where real gas behavior deviates from the ideal model.

?Can I use this for chemistry homework?

Yes. This calculator is perfect for solving chemistry and physics problems involving gas behavior. Enter your known values and instantly get the missing variable with the correct calculation.

?Is this calculator free and private?

Yes. The calculator is completely free, requires no sign-up, and runs entirely in your browser. No data is sent to any server, so your calculations remain private.

Help us improve

How do you like this tool?

Every tool on Kitmul is built from real user requests. Your rating and suggestions help us fix bugs, add missing features and build the tools you actually need.

Rate this tool

Tap a star to tell us how useful this tool was for you.

Suggest an improvement or report a bug

Missing a feature? Found a bug? Have an idea? Tell us and we'll look into it.

Related Tools

Recommended Reading

Recommended Books on Thermodynamics & Chemistry

As an Amazon Associate we earn from qualifying purchases.

Boost Your Capabilities

Professional Products to Boost Your Math Skills

As an Amazon Associate we earn from qualifying purchases.

Newsletter

Get Free Productivity Tips & New Tools First

Join makers and developers who care about privacy. Every issue: new tool drops, productivity hacks, and insider updates — no spam, ever.

Priority access to new tools
Unsubscribe anytime, no questions asked