Last updated:

# Ideal Gas Law Calculator

What is an ideal gas?Ideal gas law equationIdeal gas constantFAQs

This ideal gas law calculator will help you establish the properties of an ideal gas subject to pressure, temperature, or volume changes. Read on to learn about the characteristics of an ideal gas, how to use the ideal gas law equation, and the definition of the ideal gas constant.

We also recommend checking out our combined gas law calculator for further understanding of the basic thermodynamic processes of ideal gases.

## What is an ideal gas?

An ideal gas is a special case of any gas that fulfills the following conditions:

• The gas consists of a large number of molecules that move around randomly.

• All molecules are point particles (they don't take up any space).

• The molecules don't interact except for colliding.

• The particles obey Newton's laws of motion.

## Ideal gas law equation

The properties of an ideal gas are all summarized in one formula of the form:

$p \cdot V = n \cdot R \cdot T$

where:

• $p$ – Pressure of the gas, measured in Pa;
• $V$ – Volume of the gas, measured in m³;
• $n$ – Amount of substance, measured in moles;
• $R$ – Ideal gas constant; and
• $T$ – Temperature of the gas, measured in kelvins.

To find any of these values, simply enter the other ones into the ideal gas law calculator.

For example, if you want to calculate the volume of 40 moles of a gas under a pressure of 1013 hPa and at a temperature of 250 K, the result will be equal to:

V = nRT/p = 40 × 8.31446261815324 × 250 / 101300 = 0.82 m³.

## Ideal gas constant

The gas constant (symbol R) is also called the molar or universal constant. It is used in many fundamental equations, such as the ideal gas law.

The value of this constant is 8.31446261815324 J/(mol·K).

The gas constant is often defined as the product of Boltzmann's constant k (which relates the kinetic energy and temperature of a gas) and Avogadro's number (the number of atoms in a mole of substance):

\small \begin{align*} R &= N_Ak \\ &= (6.02214076 \times 10^{23} \text{/mol})\\ &\qquad\cdot (1.38064852 \times 10^{-23} \text{ J/K})\\ &= 8.3144626 \text{ J/(mol}\! \cdot\! \text{K)} \end{align*}

You might find this air pressure at altitude calculator useful, too.

FAQs

### When can I use the ideal gas law?

You can apply the ideal gas law for every gas at a density low enough to prevent the emergence of strong intermolecular forces. In these conditions, every gas is more or less correctly modeled by the simple equation PV = nRT, which relates pressure, temperature, and volume.

### What is the formula of the ideal gas law?

The formula of the ideal gas law is:

PV = nRT

where:

• PPressure, in pascal;
• VVolume in cubic meters;
• nNumber of moles;
• TTemperature in kelvin; and
• RIdeal gas constant.

Remember to use consistent units! The value commonly used for R, 8.314... J/mol·K refers to the pressure measured exclusively in pascals.

### What is the pressure of 0.1 moles of a gas at 50 °C in a cubic meter?

268.7 Pa, or 0.00265 atm. To find this result:

1. Convert the temperature into kelvin:

T [K] = 273.15 + 50 = 323.15 K.

2. Compute the product of temperature, the number of moles, and the gas constant: nRT = 0.1 mol × 323.15 K × 8.3145 J/mol·K = 268.7 J (that is, energy).

3. Divide by the volume. In this case, the volume is 1, hence:

P = 268.7 Pa.

### What are the three thermodynamics laws that can be identified in the ideal gas law?

The ideal gas law has four parameters. One of them is the number of moles which is a bit outside the scope of thermodynamics. The other three are pressure, temperature, and volume. We can identify three laws by fixing, in turn, each one of the three:

• Fixing the temperature, we find the isothermal transformation (or Boyle's law): PV = k.
• Fixing the volume, we find the isochoric transformation (Charles's law): P/T = k.
• Fixing the pressure, we have the isobaric transformation (Gay-Lussac's law): V/T = k.

### How do I calculate the temperature of a gas given moles, volume and pressure?

To calculate the temperature of a gas given the pressure and the volume, follow these simple steps:

1. Calculate the product of pressure and volumes. Be sure you're using consistent units: a good choice is pascals and cubic meters.

2. Calculate the product of the number of moles and the gas constant. If you used pascals and cubic meters, the constant is R = 8.3145 J/mol·K.

3. Divide the result of step 1 by the result of step 2: the result is the temperature (in kelvin):
T = PV/nR