molecalculator

Moles & Molar Mass

Pressure Density Volume Formula for an Ideal Gas

Calculator No. 01-2131 · Updated · Formula and assumptions shown below

Pressure 97,993.418 Pa
Pressure
97.993 kPa
= Pressure ÷ 1000
Gas density
1.25 kg/m^3
Set in the form below
Gas volume
1 m^3
Set in the form below
You enter
Gas density (kg/m^3), Gas volume (m^3), Temperature (K), Molar mass (kg/mol)
You get
Pressure (Pa), Pressure (kPa)
Rounding
3 dp

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

The pressure–density–volume relationship for an ideal gas is PV = mRT/M, or equivalently PV = ρVRT/M when density is used, where pressure is absolute, volume is gas volume, and temperature is in kelvins. This calculator finds pressure from gas density, volume, temperature, and molar mass; it also returns the equivalent pressure in kilopascals.

Formula

The ideal-gas law is PV = nRT. Since the amount of gas in moles is n = m/M, and mass is m = ρV, substitution gives:

PV = (ρV/M)RT, so P = ρRT/M.

  • P is absolute pressure in pascals (Pa).
  • ρ is gas density in kilograms per cubic metre (kg/m³).
  • R is the molar gas constant, 8.31446261815324 J/(mol·K).
  • T is absolute temperature in kelvins (K).
  • M is molar mass in kilograms per mole (kg/mol).
  • V is gas volume in cubic metres (m³), and cancels when density is mass per unit volume.

For mass rather than density, the equivalent expression is P = mRT/(MV). The calculator includes volume in its displayed expression so it can show the density form, but the volume terms cancel. Thus, at a specified density, temperature, and molar mass, changing the sample’s total volume changes the amount of gas but not its pressure.

The calculation uses SI units directly. If a result is needed in kilopascals, convert pascals by dividing by 1,000. When converting other inputs, use 1 m³ = 1,000 L, 1 kg = 1,000 g, and 1 bar = 100,000 Pa. Temperature in Celsius must be converted using T(K) = t(°C) + 273.15; Celsius cannot be substituted directly into the gas law.

Worked Example

Using the calculator’s default values—density 1.25 kg/m³, volume 1 m³, temperature 273.15 K, and molar mass 0.02897 kg/mol—first find pressure from the density form:

P = ρVRT/(MV)

P = (1.25 kg/m³ × 1 m³ × 8.31446261815324 J/(mol·K) × 273.15 K) / (0.02897 kg/mol × 1 m³)

The volume cancels, leaving P = ρRT/M. Therefore:

P = (1.25 × 8.31446261815324 × 273.15) / 0.02897 ≈ 97,726.963 Pa

Rounded to the calculator’s three decimal places, the answer is 97,726.963 Pa. In kilopascals, 97,726.963 / 1,000 = 97.727 kPa.

Assumptions

  • The gas behaves ideally at the stated temperature and pressure.
  • Density and molar mass refer to the same gas composition and conditions.
  • Pressure is absolute, not gauge pressure.
  • The formula uses kelvins and SI units as entered.

Why Volume Cancels

The appearance of volume in the question can be confusing. Pressure depends on how much gas occupies a given space, but density already expresses mass divided by that space. If the amount of gas and volume are both doubled while density remains unchanged, the pressure predicted at the same temperature is unchanged. That is why PV = mRT/M needs volume when mass is given, while P = ρRT/M does not need total volume when density is given.

Volume is still useful when you need to find another quantity. For example, rearranging the ideal-gas equation gives ρ = PM/(RT) when pressure, temperature, and molar mass are known. If mass and volume are known, calculate density as ρ = m/V, then use the density equation—or directly use P = mRT/(MV).

When the Relationship Is Useful

This relationship connects measurable gas properties and is useful for checking whether a set of pressure, temperature, density, and composition values is mutually consistent. It also helps explain why heating a fixed amount of gas in a fixed volume raises its pressure, and why a denser gas at the same temperature generally has a higher pressure if its molar mass is unchanged.

Choose the form that matches the information available:

  • Use P = ρRT/M when density is known.
  • Use P = mRT/(MV) when gas mass and volume are known.
  • Use PV = nRT when the amount is already given in moles.

For a mixture, use the mixture’s average molar mass and density consistently. If component amounts are known, it may be clearer to calculate total moles and apply PV = nRT. The pressure of an ideal-gas mixture is the sum of the component partial pressures, provided all components share the same temperature and volume.

Common Errors and Limits

Gauge pressure is not absolute pressure. Gas laws require absolute pressure. Gauge pressure is measured relative to local atmospheric pressure; convert it by adding the local atmospheric pressure, in matching units. A gauge reading of zero does not mean zero absolute pressure.

Check unit consistency. A molar mass of 28.97 g/mol must be entered as 0.02897 kg/mol in this calculator. Density in g/L has the same numerical value as kg/m³, but g/cm³ does not. Convert volumes and masses before combining them, and avoid rounding intermediate values too early.

The ideal-gas model is an approximation. It is generally most reliable at relatively low pressure and sufficiently high temperature, when molecules are far enough apart that their own volume and intermolecular attractions have limited effects. At high pressures or near condensation, real gases may differ substantially. In those cases, use an appropriate real-gas equation of state and substance-specific data rather than treating this result as exact.

Frequently Asked Questions

What is the formula connecting pressure, density, and temperature?
For an ideal gas, P = ρRT/M. Density alone is not enough: temperature and molar mass are also needed.

Does volume affect pressure when density is known?
Not directly. In the ideal-gas relationship, volume cancels when density is mass per unit volume. Volume matters when mass or moles are known instead of density.

Can I use Celsius in the pressure-density formula?
No. Convert Celsius to kelvins by adding 273.15, then use the kelvin value in the formula.

Should pressure be gauge or absolute?
Use absolute pressure. If you have a gauge value, add the local atmospheric pressure before using a gas-law equation.

Is this formula accurate for every gas?
No. It assumes ideal-gas behavior. Real-gas corrections may be needed at high pressure, low temperature, or near a phase change.

Related

Formula used
in rho | Gas density | kg/m^3 | 1.25 | 0
in v | Gas volume | m^3 | 1 | 0
in t | Temperature | K | 273.15 | 0
in mm | Molar mass | kg/mol | 0.02897 | 0
out p | Pressure | Pa | rho * v * 8.31446261815324 * t / (mm * v) | 3
out pk | Pressure | kPa | p / 1000 | 3

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →