Audited 31 Jul 2026·Last updated 28 Oct 2026·3 citations·Tier 2·0 uses

Specific Gas Constant Calculator

Convert a gas's molar mass in kg/mol into its specific gas constant in J/(kg·K), dividing the exact molar gas constant 8.314462618 J/(mol·K) by it.

Specific Gas Constant Calculator

kg/mol
Specific gas constant
287.0475
The gas constant per kilogram for the molar mass entered, in joules per kilogram per kelvin, for use in p = ρRT.
Model scope
Ideal-gas mass-basis conversion for the supplied molar mass; mixtures require a correctly determined mixture molar mass and real-gas behavior is outside it.

Background.

The ideal gas law is usually written per mole, pV = nRT, with one universal constant R that is the same for every gas. Engineers rarely count moles. They weigh gas, meter it in kilograms and work with density, so they divide R by the gas's molar mass to get a constant per kilogram instead: the specific gas constant. With it the law becomes p = ρRT, linking pressure, density and temperature without any mention of amount of substance.

Because R is fixed, the specific constant depends on nothing but molar mass, and inversely: light gases have large constants, heavy ones small. Dry air, at a molar mass of about 0.029 kg/mol, comes out near 287 J/(kg·K), the figure behind most aerodynamics and ventilation calculations. Helium is about seven times lighter and has a constant about seven times larger, which is why a kilogram of helium takes up so much more room than a kilogram of air at the same temperature and pressure.

The universal constant used here is 8.31446261815324 J/(mol·K), exact since the 2019 redefinition of the SI fixed both the Boltzmann and Avogadro constants. The only uncertainty in the answer is therefore the molar mass you supply. For a pure substance that comes from atomic weights; for a mixture such as natural gas, flue gas or humid air it must be the average of the components weighted by mole fraction.

The result is an ideal-gas quantity. It describes real gases well at ordinary pressures and well away from their condensation point, and less well for steam near saturation, refrigerants, or gases compressed to high pressure, where a compressibility factor or a full equation of state is needed.

What is specific gas constant calculator?

The specific gas constant of a gas is the universal molar gas constant divided by that gas's molar mass, R_specific = R/M, in joules per kilogram per kelvin. It is the ideal-gas constant on a per-mass basis: the work one kilogram of the gas does when it expands at constant pressure while warming by one kelvin. For an ideal gas it also equals the difference between the specific heats at constant pressure and constant volume, cp − cv. Unlike R it differs from gas to gas, and engineering texts often write it simply as R, a frequent source of confusion.

How to use this calculator.

  1. Enter the molar mass in kilograms per mole. Periodic tables and data sheets list grams per mole, so divide by 1,000: nitrogen's 28.0134 g/mol becomes 0.0280134.
  2. For a mixture, multiply each component's molar mass by its mole fraction (equal to its volume fraction for ideal gases), add the products and enter the total. Do not weight by mass fraction.
  3. Read the specific gas constant in J/(kg·K) and use it with absolute temperature in kelvin, in p = ρRT or in the speed of sound, √(γRT).
  4. If the gas is near condensation or at high pressure, treat the ideal-gas result only as a first approximation.

The formula.

R_specific = R / M

R_specific = R ÷ M, where R = 8.31446261815324 J/(mol·K) is the molar gas constant and M the molar mass in kg/mol. R is the product of the Boltzmann constant, 1.380649 × 10⁻²³ J/K, and the Avogadro constant, 6.02214076 × 10²³ per mole, both fixed exactly by definition, so R itself carries no measurement uncertainty. Dividing by molar mass switches the counting unit from moles to kilograms, since 1/M is the number of moles in one kilogram of the gas. The result is inversely proportional to M, so a 1% error in molar mass produces a 1% error in the opposite direction. That makes molar mass the only input needing care, especially for mixtures, where a mass-weighted average in place of a mole-weighted one gives the wrong answer. Nothing in the formula corrects for intermolecular forces, which matter at high pressure.

A worked example.

Example

Dry air has a molar mass of 0.02896546 kg/mol. Dividing the molar gas constant by it, 8.31446261815324 ÷ 0.02896546 = 287.0475 J/(kg·K). Put another way, a kilogram of air holds 1 ÷ 0.02896546 ≈ 34.52 moles, and 34.52 × 8.3145 gives about 287.05 again. As a check, use it in p = ρRT at sea-level standard conditions of 101,325 Pa and 288.15 K: ρ = 101,325 ÷ (287.0475 × 288.15) ≈ 1.225 kg/m³, the standard sea-level air density. Helium, at 0.0040026 kg/mol, has a specific constant of about 2,077 J/(kg·K), more than seven times that of air.

molar Mass Kg Per Mol0.029

Frequently asked questions.

Why did I get 0.287 instead of 287 for air?
You entered the molar mass in grams per mole. The field expects kilograms per mole, so air's 28.96546 g/mol must go in as 0.02896546 kg/mol. A result a thousand times too small is the tell-tale sign of that slip.
Which value should I use for air: 287, 287.05 or 287.058?
They differ only through the dry-air molar mass assumed. The 0.02896546 kg/mol used here gives 287.047, while 0.0289644 kg/mol, used in standard-atmosphere models, gives 287.058. The gap is under 0.01%, far smaller than the effect of humidity, so 287 is fine for most work.
How do I find the specific gas constant of humid air?
Water vapour, at about 0.018015 kg/mol, has a constant near 461.5 J/(kg·K), so moist air sits above dry air. With 2% water vapour by mole, the mixture's molar mass is about 0.028746 kg/mol and its constant about 289.2 J/(kg·K), which is why humid air is less dense.
How does the specific gas constant relate to cp and cv?
For an ideal gas, cp − cv = R_specific, known as Mayer's relation. Air's cp is about 1,005 J/(kg·K) near room temperature, so its cv is about 1,005 − 287 = 718 J/(kg·K), and their ratio, about 1.40, is the γ used in compressible-flow work.
How do I use it to find the speed of sound in a gas?
For an ideal gas the speed of sound is √(γ × R_specific × T). Air at 288.15 K with γ = 1.4 gives √(1.4 × 287.047 × 288.15) ≈ 340.3 m/s. Helium, with γ = 5/3 and its much larger constant, gives roughly 999 m/s at the same temperature.
Does the specific gas constant change with pressure or temperature?
Not for an ideal gas of fixed composition: it depends only on molar mass. What changes at high pressure, or close to condensation, is how well p = ρRT describes the gas. Engineers then add a compressibility factor, writing p = ZρRT, rather than altering the constant.

How this page was produced

Published by
Quanta Calculator
Primary sources
3 cited below
Method
R_specific = R / M
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon