molecalculator

Moles & Molar Mass

Pressure Formula: Temperature and Density Explained

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

Pressure 100,962 Pa
Pressure
100.962 kPa
= Pressure ÷ 1000
Gas density
1.2 kg/m^3
Set in the form below
Temperature
20 °C
Set in the form below
You enter
Gas density (kg/m^3), Temperature (°C)
You get
Pressure (Pa), Pressure (kPa)
Rounding
0 dp · 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 formula that relates pressure, temperature, and density for an ideal gas is P = ρRT. Enter a gas density and absolute temperature to calculate its pressure; the result is in pascals, with an optional conversion to kilopascals.

Formula

For an ideal gas, pressure is density multiplied by the specific gas constant and absolute temperature:

P = ρRsT

  • P is absolute pressure in pascals (Pa).
  • ρ is gas mass density in kilograms per cubic metre (kg/m³).
  • Rs is the specific gas constant for the gas in joules per kilogram per kelvin (J/(kg·K)).
  • T is absolute temperature in kelvins (K).

The calculator uses Rs = R/M, where the universal gas constant R is 8.31446261815324 J/(mol·K), and the assumed molar mass M for dry air is 0.02897 kg/mol. It converts the entered Celsius temperature to kelvins by adding 273.15, then computes P = ρ × 8.31446261815324 × (t + 273.15) / 0.02897. The second output converts pascals to kilopascals by dividing by 1,000. The dry-air molar mass is a conventional approximate value, not a universal constant.

Worked Example

Using the default values, the density is 1.20 kg/m³ and the temperature is 20 °C. First convert temperature to kelvins:

T = 20 + 273.15 = 293.15 K

Then calculate pressure using the assumed dry-air molar mass:

P = 1.20 × 8.31446261815324 × 293.15 / 0.02897 ≈ 101,214 Pa

Rounded to the calculator’s whole-pascal display, the result is 101,214 Pa. In kilopascals, 101,214 / 1,000 = 101.214 kPa (displayed to three decimal places). This is close to standard atmospheric pressure, but the density and temperature entered here are illustrative conditions rather than a claim that every air sample has that pressure.

Assumptions

  • The gas behaves ideally, so intermolecular effects are neglected.
  • The gas is treated as dry air with a molar mass of 0.02897 kg/mol.
  • The entered temperature is in °C and is converted to kelvins using +273.15.
  • Density means mass per unit volume of the gas at the same temperature and pressure being calculated.
  • The calculated pressure is absolute pressure, not pressure relative to the surrounding atmosphere.

Why Pressure Depends on Density and Temperature

Pressure comes from molecules colliding with the walls of a container or another surface. At fixed temperature, greater gas density means more molecules in a given volume, so wall collisions occur more frequently and pressure rises. At fixed density, increasing absolute temperature raises the molecules’ average kinetic energy; their collisions transfer more momentum, and pressure rises.

The equation follows from the ideal gas law, PV = nRT. Here V is volume and n is the amount of gas in moles. Replacing n/V with molar concentration, and using density ρ = nM/V, gives P = ρRT/M. Since R/M is the gas-specific constant Rs, this becomes P = ρRsT. The formula is therefore a rearrangement of the ideal gas law, not a separate law applying to every material.

When This Formula Is Useful

Use P = ρRsT when the gas density and temperature are known and you want an ideal-gas estimate of absolute pressure. It is useful in introductory thermodynamics, gas-property calculations, and checking whether a set of gas conditions is internally consistent. For another gas, substitute its molar mass in Rs = R/M; do not assume the dry-air value applies to helium, carbon dioxide, or a mixture.

The reverse relationship is also useful: if pressure and temperature are known, ideal-gas density is ρ = PM/(RT). For a mixture, the appropriate average molar mass depends on its composition. If composition or humidity matters, use a suitable mixture molar mass and, where needed, a more detailed gas-property model.

Units, Gauge Pressure, and Common Mistakes

  • Use kelvins in the equation. Celsius is converted with T(K) = t(°C) + 273.15. Multiplying by a Celsius value directly is incorrect; 0 °C is not zero thermal temperature.
  • Keep units consistent. With density in kg/m³, Rs in J/(kg·K), and temperature in K, the answer is Pa. One kilopascal is 1,000 Pa.
  • Distinguish absolute from gauge pressure. This equation gives absolute pressure measured from a vacuum. Gauge pressure is the difference between absolute pressure and local atmospheric pressure: Pgauge = Pabsolute − Patmospheric.
  • Do not mix up density and concentration. Density here is mass per volume, not molar concentration. A density in g/L must be converted to kg/m³ before use; numerically, 1 g/L equals 1 kg/m³.
  • Match density to conditions. Gas density changes with pressure and temperature. A density measured at one condition cannot automatically be combined with a different temperature to infer the original pressure.

Limits and Alternatives

Real gases do not always follow the ideal-gas equation exactly. At high pressures or near condensation, molecular size and intermolecular attractions can matter, so P = ρRsT may give a noticeably different result from measurements. A compressibility-factor form, PV = ZnRT, or a gas-specific equation of state can account for non-ideal behavior when reliable property data are available.

For a liquid or solid, this gas equation is generally not an appropriate pressure model. Pressure in a static fluid at a depth is commonly described by a hydrostatic relation such as ΔP = ρgh, where h is depth and g is gravitational acceleration. That relation concerns the pressure change with depth in a fluid, rather than the ideal-gas relation among density, temperature, and pressure.

Frequently Asked Questions

What is the formula for pressure using density and temperature?
For an ideal gas, P = ρRsT, where density is in kg/m³, temperature is in kelvins, and Rs is the gas-specific constant in J/(kg·K).

Can I use Celsius in P = ρRT?
No. Convert Celsius to kelvins first by adding 273.15. The gas-law temperature must be an absolute temperature.

Does this formula give gauge pressure or absolute pressure?
It gives absolute pressure. To obtain gauge pressure, subtract the local atmospheric pressure from the calculated absolute pressure.

Can I use this pressure formula for any gas?
The relationship is an ideal-gas model, but Rs depends on the gas: Rs = R/M. The calculator’s default molar mass is for approximate dry air, so change the gas-specific value when calculating another gas.

Why does the answer change when temperature rises?
At fixed density, higher absolute temperature means greater average molecular kinetic energy and stronger momentum transfer in collisions, so ideal-gas pressure increases in proportion to kelvin temperature.

When does the ideal-gas pressure formula become inaccurate?
It can become less accurate at high pressure, near condensation, or when molecular interactions are important. In those conditions, use measured properties or a suitable real-gas equation of state.

Related

Formula used
in rho | Gas density | kg/m^3 | 1.20 | 0
in t | Temperature | °C | 20 | -273.15
out p | Pressure | Pa | rho * 8.31446261815324 * (t + 273.15) / 0.02897 | 0
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 →