Thermodynamics • Foundations and Thermodynamic Properties

Ideal Gas Law — Use ideal gas law and specific gas constant relationships

Connecting macroscopic state variables through universal and substance-specific gas constants for engineering analysis.

Thermodynamics illustration with temperature, heat, and energy-flow symbols
Inside this lesson 10 sections 5 questions 9 figures

SECTION 1

Historical Context & Motivation

The quest to relate the measurable properties of gases—pressure, volume, and temperature—spans nearly four centuries of experimental and theoretical work. Early natural philosophers recognized that gases behave in remarkably predictable ways under moderate conditions, and the mathematical relationships they uncovered laid the groundwork for modern thermodynamics and chemical engineering. Understanding how these empirical gas laws were synthesized into a single, elegant equation illuminates why the ideal gas law remains one of the most widely used equations of state in science and engineering today.

1662 • Boyle's Law

Robert Boyle demonstrated that the pressure and volume of a confined gas are inversely proportional at constant temperature, establishing PV = constant as the first quantitative gas law.

1787 • Charles's Law

Jacques Charles observed that the volume of a gas at constant pressure varies linearly with absolute temperature, formalizing the concept of thermal expansion of gases.

1811 • Avogadro's Hypothesis

Amedeo Avogadro proposed that equal volumes of gases at the same temperature and pressure contain equal numbers of molecules, linking the macroscopic volume to the molar quantity.

1834 • Clapeyron's Combined Equation

Émile Clapeyron unified Boyle's and Charles's laws into the single relation PV = nRT, introducing what we now call the universal gas constant R̄ and creating the classical ideal gas equation of state.

1857 • Kinetic Theory Foundation

Rudolf Clausius provided a molecular-kinetic interpretation, showing that the ideal gas law emerges naturally from statistical mechanics when intermolecular forces and molecular volumes are negligible.

While Clapeyron's formulation uses the universal gas constant R̄ (8.314 J·mol⁻¹·K⁻¹), engineers working with mass-based analyses frequently require a substance-specific form. This need gave rise to the specific gas constant R, which absorbs the molar mass of a particular gas into the constant itself. The central question this lesson addresses is: how do we move fluently between the molar and mass-based forms of the ideal gas law, and when is each form most appropriate for thermodynamic analysis?

SECTION 2

Core Principles & Definitions

The ideal gas law rests on a set of simplifying assumptions about molecular behavior that, despite their ideality, yield remarkably accurate predictions for many engineering applications. Before deriving the various forms of the equation, it is essential to understand the foundational concepts and the distinctions among the constants that appear in them.

1

Equation of State

An equation of state relates thermodynamic state variables—pressure (P), specific volume or molar volume (v or V̄), and temperature (T)—for a substance in equilibrium. The ideal gas law is the simplest such equation.
2

Universal Gas Constant (R̄)

R̄ = 8.314 J·mol⁻¹·K⁻¹ is a fundamental constant relating energy per mole per kelvin. It appears in the molar form PV̄ = R̄T and is the same for every gas, arising from Boltzmann's constant multiplied by Avogadro's number.
3

Specific Gas Constant (R)

R = R̄/M, where M is the molar mass of the gas. This substance-dependent constant (units: J·kg⁻¹·K⁻¹) enables the mass-based form Pv = RT, which is the preferred form in many engineering thermodynamics texts.
4

Ideal Gas Assumptions

The model assumes point-mass molecules with no intermolecular attractions or repulsions, and that the volume occupied by the molecules themselves is negligible compared to the container volume. Collisions are perfectly elastic.
5

Intensive vs. Extensive Forms

The total form PV = mRT involves extensive properties (V, m). Dividing by mass yields the intensive form Pv = RT, where v = V/m is the specific volume. Both forms are equivalent and used interchangeably depending on context.
✦

KEY TAKEAWAY

Think of the universal gas constant R̄ as a "currency exchange rate" that is the same at every bank in the world, converting between moles-kelvin and energy for any gas. The specific gas constant R is like a local conversion factor already adjusted for the "weight" (molar mass) of a particular gas—you trade convenience for universality. An engineer analyzing air (M ≈ 28.97 g/mol) uses R = 287 J·kg⁻¹·K⁻¹ directly, avoiding repeated division by M in every calculation.

SECTION 3

Visual Explanation — Forms of the Ideal Gas Law

The following diagram maps the relationships among the various forms of the ideal gas law and shows how the universal gas constant R̄ connects to the specific gas constant R through the molar mass M of the gas. Each pathway represents a legitimate form of the equation, and arrows indicate the algebraic operations that transform one form into another.

Forms of the Ideal Gas LawPV = nR̄TMolar Form (n = moles)÷ nPV̄ = R̄TMolar Intensive (V̄ = V/n)n = m/MPV = mR̄T/MMass SubstitutionR = R̄/MPV = mRTMass Form (specific R)÷ mPv = RTSpecific Volume Form (v = V/m)Key RelationshipR = R̄ / M(J·kg⁻¹·K⁻¹) = (J·mol⁻¹·K⁻¹) / (kg·mol⁻¹)
The diagram traces the transformation from the molar form PV = nR̄T (top, cyan) through mass substitution (pink) to the mass-based form PV = mRT (amber) and finally to the intensive specific-volume form Pv = RT (emerald). The key relationship R = R̄/M bridges the universal and specific constants.

Notice that the left branch of the diagram produces the molar intensive form PV̄ = R̄T by dividing total volume V by the number of moles n. The right branch proceeds by substituting n = m/M and then defining the specific gas constant R = R̄/M to arrive at the mass-based forms preferred in engineering practice. Both branches are algebraically equivalent and can be interconverted as needed.

SECTION 4

Mathematical Framework

This section presents the mathematical forms of the ideal gas law and derives the relationship between the universal and specific gas constants. Mastery of these equations enables rapid transitions between mole-based and mass-based analyses—a skill essential for solving thermodynamic problems in both physics and engineering contexts.

MOLAR FORM

PV=nRˉTPV = nR̄T

P = absolute pressure (Pa), V = total volume (m³), n = number of moles (mol), R̄ = 8.314 J·mol⁻¹·K⁻¹ (universal gas constant), T = absolute temperature (K).

SPECIFIC GAS CONSTANT DEFINITION

R=Rˉ/MR = R̄ / M

R = specific gas constant (J·kg⁻¹·K⁻¹), M = molar mass of the gas (kg·mol⁻¹). For example, for dry air: R = 8.314 / 0.02897 ≈ 287.0 J·kg⁻¹·K⁻¹.

MASS-BASED TOTAL FORM

PV=mRTPV = mRT

m = mass of the gas (kg), R = specific gas constant (J·kg⁻¹·K⁻¹). This form is obtained by substituting n = m/M and R = R̄/M into PV = nR̄T.

INTENSIVE SPECIFIC-VOLUME FORM

Pv=RTPv = RT

v = V/m = specific volume (m³/kg). Dividing PV = mRT by the mass m yields this intensive form, which is independent of the amount of gas and is widely used in property tables and thermodynamic cycle analysis.

ℹ

Derivation Note

Starting from PV = nR̄T, substitute n = m/M to obtain PV = (m/M)R̄T = m(R̄/M)T. Defining R ≡ R̄/M gives PV = mRT. Dividing both sides by m yields Pv = RT. Alternatively, one can also express density ρ = 1/v, giving P = ρRT, which is useful in fluid mechanics and atmospheric science.

SECTION 5

Specific Gas Constants for Common Gases

Because the specific gas constant R depends on the molar mass M of the substance, each gas has its own unique value. The table below compiles specific gas constants for gases frequently encountered in thermodynamic analysis, including those relevant to combustion, HVAC, and atmospheric sciences. All values are computed from R = R̄/M = 8.314/M, with M expressed in kg·mol⁻¹.

GasChemical FormulaM (kg/mol)R (J·kg⁻¹·K⁻¹)
Dry Airmixture0.02897287.0
NitrogenN₂0.02802296.8
OxygenO₂0.03200259.8
Carbon DioxideCO₂0.04401188.9
Water VaporH₂O0.01802461.5
HydrogenH₂0.002024124
HeliumHe0.004002079
ArgonAr0.03995208.1

Specific gas constants computed from R = 8.314 / M for common gases.

Specific Gas Constant R by Gas (J·kg⁻¹·K⁻¹)Lighter molecules → larger R (R = R̄ / M)H₂4124He2079H₂O461.5N₂296.8Air287.0O₂259.8Ar208.1CO₂188.9
Horizontal bar chart of specific gas constants for common gases. Lighter molecules like H₂ and He have dramatically larger R values because R is inversely proportional to molar mass M.

The bar chart makes a critical trend immediately apparent: the lighter the molecule, the larger its specific gas constant. Hydrogen (M = 2.02 g/mol) has a specific gas constant more than 20 times that of carbon dioxide (M = 44.01 g/mol). This inverse relationship R = R̄/M means that for a given pressure and temperature, a lighter gas occupies a proportionally larger specific volume—an important consideration in applications ranging from balloon buoyancy to gas turbine design.

SECTION 6

Worked Example — Determining Specific Volume of Air

Consider the following scenario: a rigid tank contains 2.5 kg of air at 350 kPa and 450 K. We wish to determine (a) the specific gas constant for air, (b) the total volume of the tank, and (c) the specific volume of the air. We will use the mass-based ideal gas law throughout.

Rigid Tank of Air at Elevated Temperature

  1. 1

    Step 1 — Compute the Specific Gas Constant

    The molar mass of dry air is M = 28.97 g/mol = 0.02897 kg/mol. Applying R = R̄/M: R = 8.314 J·mol⁻¹·K⁻¹ / 0.02897 kg·mol⁻¹.
    R = 286.9 J·kg⁻¹·K⁻¹ ≈ 287.0 J·kg⁻¹·K⁻¹
  2. 2

    Step 2 — Identify Known Values

    Given: P = 350 kPa = 350 × 10³ Pa, T = 450 K, m = 2.5 kg, R = 287.0 J·kg⁻¹·K⁻¹. We seek V (total volume) and v (specific volume). The equation to apply is PV = mRT.
  3. 3

    Step 3 — Solve for Total Volume

    Rearranging PV = mRT for V: V = mRT / P = (2.5 kg)(287.0 J·kg⁻¹·K⁻¹)(450 K) / (350 × 10³ Pa). Numerator = 2.5 × 287.0 × 450 = 322,875 J. Denominator = 350,000 Pa. Note that 1 J = 1 Pa·m³, so V has units of m³.
    V = 322,875 / 350,000 = 0.9225 m³
  4. 4

    Step 4 — Compute Specific Volume

    The specific volume is v = V/m = 0.9225 m³ / 2.5 kg. Alternatively, we could compute v directly from Pv = RT: v = RT/P = (287.0)(450) / (350 × 10³).
    v = 0.3690 m³/kg
  5. 5

    Step 5 — Verify with Molar Form

    As a cross-check, n = m/M = 2.5/0.02897 = 86.3 mol. Then V = nR̄T/P = (86.3)(8.314)(450) / (350,000) = 322,880/350,000 = 0.9225 m³. This confirms our answer—both forms of the ideal gas law are consistent, as expected.
    ✓ Cross-check confirmed: V = 0.9225 m³

SECTION 7

Strengths & Limitations of the Ideal Gas Model

The ideal gas law is a powerful tool, but understanding when it breaks down is just as important as knowing how to apply it. The model's accuracy depends on how closely the actual molecular behavior approximates the point-mass, no-interaction assumptions. The following table summarizes the conditions under which the ideal gas law performs well and where it begins to deviate significantly from real gas behavior.

AspectStrengthsLimitations
Pressure rangeAccurate at low to moderate pressures (P ≪ P_crit) where intermolecular spacing is large.Significant deviation at high pressures where molecular volume and repulsive forces become non-negligible.
Temperature rangeWorks well at temperatures much above the critical temperature (T ≫ T_crit).Fails near the saturation curve and critical point where phase changes and strong intermolecular attractions occur.
Mathematical simplicityLinear equation of state: explicit in any variable. Easy to invert for P, V, T, m, or n.Oversimplification may lead to errors of 5–30% near saturation conditions for refrigerants, steam, or CO₂.
Gas typeExcellent for monatomic and diatomic gases (He, N₂, O₂, air) at standard conditions.Poor for polar molecules (H₂O, NH₃) and large organic molecules at moderate temperatures due to dipole-dipole interactions.
Engineering useFirst-pass sizing, atmospheric calculations, ideal cycle analysis (Brayton, Otto), and combustion gas analysis.Must switch to real-gas equations (van der Waals, Redlich-Kwong, Peng-Robinson) or property tables for high-precision work.

Comparison of ideal gas law applicability versus limitations.

⚠

WHEN TO TRUST THE IDEAL GAS MODEL

A useful engineering heuristic is the reduced-property criterion: if the reduced pressure PrP_r = P/P_crit is below about 0.1 or the reduced temperature TrT_r = T/T_crit exceeds roughly 2, the ideal gas law typically yields errors of less than 1–2%. Think of it like a map projection—a flat Mercator map works well near the equator (low curvature) but distorts terribly near the poles (high curvature). Similarly, the ideal gas law "flattens" molecular interactions, and the distortion grows as you approach the critical point.

SECTION 8

Connection to Real Gas Models

The ideal gas law serves as the foundation upon which more sophisticated equations of state are built. Real gas models introduce correction terms that account for the finite size of molecules and the attractive forces between them. Understanding how these corrections modify the ideal gas framework provides a natural bridge to advanced thermodynamic analysis.

FeatureIdeal Gas LawVan der Waals EquationCompressibility Factor (Z)
EquationPv = RT(P + a/v²)(v − b) = RTPv = ZRT
Molecular volumeNeglectedAccounted for by parameter bEmbedded in Z
Intermolecular forcesNeglectedAttractive forces modeled by a/v²Embedded in Z
Ideal limitAlways Z = 1Recovers Pv = RT as a, b → 0Z → 1 at low P and high T
ComplexityAlgebraically trivialCubic in v; requires iterative solutionRequires generalized charts or correlations

Comparison of the ideal gas law with real-gas correction approaches.

The compressibility factor Z = Pv/(RT) quantifies how much a real gas deviates from ideality. For an ideal gas, Z = 1 at all states. Real gases exhibit Z < 1 when attractive forces dominate (pulling molecules closer, reducing volume) and Z > 1 when repulsive forces dominate at very high pressures. In future coursework, you will use generalized compressibility charts (Nelson-Obert charts) indexed by reduced pressure and reduced temperature to correct the ideal gas law for real-gas effects without needing substance-specific parameters.

💡

Looking Ahead

The ideal gas law is not merely a stepping stone to be discarded—it remains the starting point for engineering estimates, appears in entropy and enthalpy change expressions for ideal gases, and underpins the analysis of air-standard power and refrigeration cycles throughout your thermodynamics course.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

Explain why the specific gas constant R for hydrogen (H₂) is approximately 14 times larger than that of nitrogen (N₂), even though both are diatomic gases. What physical property of the molecule determines R, and does a larger R imply a stronger or weaker molecular interaction?
Show answer
The specific gas constant is defined as R = R̄/M, where R̄ is the universal gas constant (the same for all gases) and M is the molar mass. Since H₂ has a molar mass of about 2 g/mol compared to N₂ at 28 g/mol, R for H₂ is roughly 28/2 = 14 times larger. The value of R is determined entirely by the molar mass—not by whether the gas is monatomic or diatomic. A larger R does not imply stronger or weaker molecular interactions; it simply means less mass per mole, so each kilogram of gas contains more moles and thus exerts greater pressure (or occupies more volume) at a given temperature.

Question 2: BASIC CALCULATION

Compute the specific gas constant for methane (CH₄, M = 16.04 g/mol) and then determine the density of methane at 200 kPa and 300 K using the ideal gas law in the form P = ρRT.
Show answer
First, compute R: R = R̄/M = 8.314 / 0.01604 = 518.3 J·kg⁻¹·K⁻¹. Next, rearrange P = ρRT for density: ρ = P / (RT) = (200 × 10³) / (518.3 × 300) = 200,000 / 155,490 = 1.286 kg/m³. This density is reasonable for methane at moderate conditions, confirming that the ideal gas approximation is appropriate here since methane at 200 kPa and 300 K is well above its critical temperature (190.6 K) and well below its critical pressure (4.60 MPa).

Question 3: INTERMEDIATE

A 0.5 m³ rigid container holds a mixture of 1.2 kg of N₂ and 0.8 kg of O₂ at 400 K. Treating the mixture as an ideal gas, find: (a) the effective molar mass of the mixture, (b) the specific gas constant of the mixture, and (c) the total pressure in the container.
Show answer
The total mass is m = 1.2 + 0.8 = 2.0 kg. The number of moles of each component: n(N₂) = 1.2/0.02802 = 42.83 mol, n(O₂) = 0.8/0.03200 = 25.00 mol, so n_total = 67.83 mol. (a) The effective molar mass is M_mix = m/n_total = 2.0/67.83 × 10³ = 29.48 g/mol = 0.02948 kg/mol. (b) The mixture specific gas constant: R_mix = R̄/M_mix = 8.314/0.02948 = 282.0 J·kg⁻¹·K⁻¹. (c) Using PV = mR_mix T: P = mR_mix T / V = (2.0)(282.0)(400) / 0.5 = 225,600 / 0.5 = 451,200 Pa ≈ 451.2 kPa. This can be verified using Dalton's law: P = P(N₂) + P(O₂) = n(N₂)R̄T/V + n(O₂)R̄T/V = (67.83)(8.314)(400)/0.5 = 451.2 kPa ✓.

Question 4: APPLIED

An automotive tire has an internal volume of 0.025 m³ and is inflated to a gauge pressure of 220 kPa at a temperature of 25 °C. After highway driving, the tire temperature rises to 55 °C. Assuming the tire is rigid and the gas behaves ideally, find: (a) the new gauge pressure in the tire, and (b) the mass of air in the tire. Use R_air = 287.0 J·kg⁻¹·K⁻¹ and P_atm = 101.325 kPa.
Show answer
First convert to absolute quantities: T₁ = 25 + 273.15 = 298.15 K, T₂ = 55 + 273.15 = 328.15 K, P₁(abs) = 220 + 101.325 = 321.325 kPa. Since the tire is rigid (constant volume) and the mass is constant, Gay-Lussac's law applies: P₂/P₁ = T₂/T₁, so P₂(abs) = 321.325 × (328.15/298.15) = 321.325 × 1.1006 = 353.6 kPa. (a) The new gauge pressure = 353.6 − 101.325 = 252.3 kPa. (b) The mass of air: from PV = mRT at state 1, m = P₁V/(RT₁) = (321,325 × 0.025)/(287.0 × 298.15) = 8033.1/85,569 = 0.0939 kg ≈ 93.9 g. This is consistent with typical passenger car tire air masses.

Question 5: CRITICAL THINKING

A colleague proposes using the ideal gas law (Pv = RT with R = 461.5 J·kg⁻¹·K⁻¹) to compute the specific volume of steam at 10 MPa and 450 °C. The steam table value at this state is v = 0.02641 m³/kg. (a) Compute the ideal-gas prediction for v. (b) Calculate the percentage error relative to the steam table value. (c) Discuss whether the ideal gas approximation is appropriate here, referencing the critical properties of water (T_crit = 647.1 K, P_crit = 22.064 MPa) and the compressibility factor Z.
Show answer
T = 450 + 273.15 = 723.15 K, P = 10 × 10⁶ Pa. (a) v_ideal = RT/P = (461.5 × 723.15)/(10 × 10⁶) = 333,834/10,000,000 = 0.03338 m³/kg. (b) Error = (0.03338 − 0.02641)/0.02641 × 100% = 26.4%. This is a substantial overprediction. (c) The reduced properties are TrT_r = 723.15/647.1 = 1.118 and PrP_r = 10/22.064 = 0.453. With TrT_r only slightly above 1 and PrP_r ≈ 0.45, the state lies in a region where intermolecular attractive forces significantly reduce the actual volume below the ideal prediction. The compressibility factor Z = Pv_actual/(RT) = (10 × 10⁶ × 0.02641)/(461.5 × 723.15) = 264,100/333,834 = 0.791, confirming Z ≪ 1 and strong non-ideal behavior. The ideal gas law is not appropriate at this state; real-gas equations of state or steam tables should be used instead.

SUMMARY

Lesson Summary

Summary

The ideal gas law is the simplest equation of state relating pressure, volume, and temperature for a gas. In its molar form PV = nR̄T, the universal gas constant R̄ = 8.314 J·mol⁻¹·K⁻¹ applies to every gas. For mass-based engineering analyses, the specific gas constant R = R̄/M encodes the molar mass of the substance, yielding the forms PV = mRT and Pv = RT. Lighter molecules have larger R values because R is inversely proportional to M.

The ideal gas law is most accurate at low pressures and high temperatures relative to a substance's critical point. The compressibility factor Z = Pv/(RT) quantifies deviations from ideality; Z = 1 for a perfect ideal gas and departs from unity as intermolecular forces become significant. For precise work near saturation or at elevated pressures, engineers transition to real-gas equations of state or property tables, but the ideal gas law remains the indispensable first approximation in thermodynamic analysis.

Varsity Tutors • Thermodynamics • Ideal Gas Law — Use ideal gas law and specific gas constant relationships