Study guide
12.9 Ideal Gas Law, Gas Mixtures, and the Real Gas Law
FE Other Disciplines Fundamentals of Engineering
Track your progress as you read
Finished sections get a check mark.
1 Introduction & Exam Strategy
About the FE Other Disciplines Exam How to Use This Study Guide
2 Chapter 1: Mathematics
1.1 Analytic Geometry, Trigonometry, and Vector Operations 1.2 Differential and Integral Calculus 1.3 Ordinary Differential Equations and Laplace Transforms 1.4 Linear Algebra, Matrices, and Systems of Equations 1.5 Numerical Methods, Root-Finding, and Numerical Integration
3 Chapter 2: Probability and Statistics
2.1 Probability Distributions, PMFs, and PDFs 2.2 Expected Value, Mean, Variance, and Descriptive Statistics 2.3 Estimation, Confidence Intervals, and Sample Sizes 2.4 Hypothesis Testing, Goodness of Fit, and Linear Regression
4 Chapter 3: Chemistry
3.1 Stoichiometry, Chemical Reactions, and Solutions 3.2 Chemical Equilibrium, Acids/Bases, and Ideal Gas Laws 3.3 Oxidation-Reduction, Electrochemistry, and Corrosion Basics
5 Chapter 4: Instrumentation and Controls
4.1 Sensors, Transducers, and Signal Conditioning 4.2 Data Sampling, Accuracy/Precision, and A/D Conversion 4.3 Logic Diagrams, Boolean Algebra, and Control Logic
6 Chapter 5: Engineering Ethics and Societal Impacts
5.1 NCEES Model Rules of Professional Conduct and Codes of Ethics 5.2 Public Protection, Licensure Boards, and Professional Liability 5.3 Societal Impacts: Sustainability, Life-Cycle Analysis, and Public Safety
7 Chapter 6: Safety, Health, and Environment
6.1 OSHA Regulations, Industrial Hygiene, and PPE 6.2 Hazard Assessment, Risk Management, and Environmental Rules 6.3 Gas Detection and Monitoring 6.4 Electrical Safety 6.5 Confined Space Entry and Ventilation Rates
8 Chapter 7: Engineering Economics
7.1 Time Value of Money, Interest Formulas, and Cash Flow Diagrams 7.2 Capital Budgeting: Present Worth, Annual Worth, IRR, and B/C Ratio 7.3 Depreciation Methods, Income Taxes, and Breakeven Analysis 7.4 Cost Analysis, Uncertainty, Expected Value, and Decision Trees
9 Chapter 8: Statics
8.1 Statics Equilibrium, Free-Body Diagrams, and Force Systems 8.2 Distributed Loads, Resultants, and Equivalent Force-Couple Systems 8.3 Internal Forces in Rigid Bodies: Trusses, Frames, Machines, and Friction 8.4 Three-Dimensional Equilibrium, Cables, and Pulley Systems 8.5 Area Properties: Centroids, Moments of Inertia, and Radius of Gyration 8.6 Weight, Mass, and Force Units: slug, lbm, lbf, and g_c
10 Chapter 9: Dynamics
9.1 Kinematics of Particles and Rigid Bodies 9.2 Newton's Second Law for Particles and Rigid Bodies 9.3 Angular Motion, Torque, and Mass Moment of Inertia 9.4 Work-Energy Principle, Power, and Efficiency 9.5 Impulse-Momentum, Impact, and Coefficient of Restitution 9.6 Dynamic Friction and Vibrations: Natural Frequency and Damping
11 Chapter 10: Strength of Materials
10.1 Stress Types, Axial Stress-Strain, and Thermal Deformation 10.2 Torsion of Circular Shafts, Polar Moment, and Angle of Twist 10.3 Shear and Moment Diagrams 10.4 Flexural Bending Stress and Transverse Shear Stress 10.5 Stress Transformations, Principal Stresses, and Mohr's Circle 10.6 Beam Deflections and Combined Axial/Bending Loading 10.7 Column Buckling (Euler Formula) and Yield/Failure Criteria
12 Chapter 11: Materials
11.1 Crystal Structure, Phase Diagrams, and Material Processing 11.2 Mechanical Properties, Fatigue, Fracture, and Corrosion 11.3 Thermal Properties of Materials 11.4 Electrical and Chemical Properties of Materials 11.5 Material Selection for Engineering Design
13 Chapter 12: Fluid Mechanics
12.1 Fluid Properties, Hydrostatic Pressure, and Manometry 12.2 Dimensionless Numbers and Flow Regimes 12.3 Continuity Equation, Bernoulli Equation, and Energy Equation 12.4 Impulse-Momentum Equation and Forces on Control Volumes 12.5 Flow in Pipes, Friction Factors (Moody Diagram), and Head Losses 12.6 Turbomachinery: Pumps, Turbines, Fans, and Compressors 12.7 Open-Channel Flow, Manning's Equation, and Drag 12.8 Fluid Transport Systems and Flow Measurement 12.9 Ideal Gas Law, Gas Mixtures, and the Real Gas Law
14 Chapter 13: Basic Electrical Engineering
13.1 Electrical Fundamentals, Ohm's Law, and DC Circuits 13.2 AC Circuits, Phasors, Impedance, and Three-Phase Power 13.3 Magnetic Fields, Induction, Transformers, and Motor Efficiency 13.4 Electrical Measuring Devices: Voltmeter, Ammeter, and Wattmeter
15 Chapter 14: Thermodynamics and Heat Transfer
14.1 First & Second Laws of Thermodynamics and Pure Substance Properties 14.2 Thermodynamic Processes and Property Diagrams (T-s, P-h, P-v) 14.3 Heat Transfer: Conduction, Convection, and Radiation 14.4 Ideal Gas Processes and Power/Refrigeration Cycles 14.5 Mass and Energy Balances on Control Volumes 14.6 Combustion and Combustion Products 14.7 Psychrometrics: Relative Humidity, Wet-Bulb Temperature, and the Psychrometric Chart
12.9 Ideal Gas Law, Gas Mixtures, and the Real Gas Law
Key Takeaways Explain This Topic AI
NCEES lists the ideal gas law with nonreactive gas mixtures and the real gas law with the z factor as two separate Fluid Mechanics sub-topics.
The ideal gas law in specific-gas form is Pv = RT, where R is the universal gas constant divided by the molar mass, and absolute temperature is mandatory.
Dalton's law of partial pressures makes each component's partial pressure equal to its mole fraction times the total pressure.
The compressibility factor z corrects the ideal gas law to Pv = zRT and is read from a generalized chart using reduced pressure and reduced temperature.
Gases behave nearly ideally at low reduced pressure and high reduced temperature, so z approaches 1 far from the critical point.
Last updated: August 2026
12.9 Ideal Gas Law, Gas Mixtures, and the Real Gas Law
The NCEES Fluid Mechanics specification ends with two gas sub-topics: "Ideal gas law (e.g., mixtures of nonreactive gases)" and "Real gas law (e.g., z factor)." They sit in Fluid Mechanics rather than Thermodynamics because they supply the density that every fluid calculation needs when the working fluid is a gas.
The Ideal Gas Law in Its Several Forms P V = n R u T (molar form) PV = nR_uT \qquad\text{(molar form)} P V = n R u T (molar form) P V = m R T and P v = R T (specific form, v = V / m ) PV = mRT \qquad\text{and}\qquad Pv = RT \qquad\text{(specific form, } v = V/m) P V = m RT and P v = RT (specific form, v = V / m ) ρ = P R T (the form fluid mechanics actually uses) \rho = \frac{P}{RT} \qquad\text{(the form fluid mechanics actually uses)} ρ = RT P (the form fluid mechanics actually uses)
Constant Value
Universal gas constant R u R_u R u 8.314 J/mol·K = 8{,}314 J/kmol·K = 1{,}545 ft·lbf/(lbmol·°R) = 10.73 psia·ft³/(lbmol·°R)
- Specific gas constant R = R u / M R = R_u/M R = R u / M
- Air ( M = 28.97 M = 28.97 M = 28.97 ) R = 287 R = 287 R = 287 J/kg·K = 53.35 ft·lbf/(lbm·°R)
- Nitrogen ( M = 28.01 M = 28.01 M = 28.01 ) R = 297 R = 297 R = 297 J/kg·K
- Oxygen ( M = 32.00 M = 32.00 M = 32.00 ) R = 260 R = 260 R = 260 J/kg·K
- Carbon dioxide ( M = 44.01 M = 44.01 M = 44.01 ) R = 189 R = 189 R = 189 J/kg·K
- Helium ( M = 4.003 M = 4.003 M = 4.003 ) R = 2,077 R = 2{,}077 R = 2 , 077 J/kg·K
- Water vapor ( M = 18.02 M = 18.02 M = 18.02 ) R = 462 R = 462 R = 462 J/kg·K
Two non-negotiable rules. Temperature must be absolute — kelvin or degrees Rankine, never Celsius or Fahrenheit. And pressure must be absolute , not gauge: P abs = P gauge + P atm P_{\text{abs}} = P_{\text{gauge}} + P_{\text{atm}} P abs = P gauge + P atm . These two substitutions account for more wrong answers on gas problems than any conceptual error, and both produce results that look plausible.
Worked Example: Gas Density for a Fluid Calculation
Air at 350 kPa gauge and 40 °C flows in a duct. Local atmospheric pressure is 101 kPa. Find the density. P abs = 350 + 101 = 451 kPa , T = 40 + 273 = 313 K P_{\text{abs}} = 350 + 101 = 451\ \text{kPa}, \qquad T = 40 + 273 = 313\ \text{K} P abs = 350 + 101 = 451 kPa , T = 40 + 273 = 313 K ρ = P R T = 451,000 287 ( 313 ) = 451,000 89,831 = 5.02 kg/m 3 \rho = \frac{P}{RT} = \frac{451{,}000}{287(313)} = \frac{451{,}000}{89{,}831} = \boxed{5.02\ \text{kg/m}^3} ρ = RT P = 287 ( 313 ) 451 , 000 = 89 , 831 451 , 000 = 5.02 kg/m 3
Compare with air at standard conditions, 1.20 kg/m³ — 4.2 times denser . Since dynamic pressure is 1 2 ρ V 2 \tfrac{1}{2}\rho V^2 2 1 ρ V 2 , every velocity head, pressure drop, and drag force in this duct is 4.2 times larger than the standard-air value. Using 1.20 kg/m³ out of habit understates the pressure drop by a factor of four.
Mixtures of Nonreactive Gases
Dalton's Law of Partial Pressures P total = ∑ P i , P i = y i P total P_{\text{total}} = \sum P_i, \qquad P_i = y_i P_{\text{total}} P total = ∑ P i , P i = y i P total
where y i y_i y i is the mole fraction . For ideal gases, mole fraction equals volume fraction, so the composition of air by volume is directly its composition by moles.
Apparent (Average) Molar Mass and Mixture Constant M mix = ∑ y i M i , R mix = R u M mix M_{\text{mix}} = \sum y_i M_i, \qquad R_{\text{mix}} = \frac{R_u}{M_{\text{mix}}} M mix = ∑ y i M i , R mix = M mix R u
Converting between mass and mole fractions: y i = w i / M i ∑ ( w j / M j ) , w i = y i M i M mix y_i = \frac{w_i/M_i}{\sum(w_j/M_j)}, \qquad w_i = \frac{y_iM_i}{M_{\text{mix}}} y i = ∑ ( w j / M j ) w i / M i , w i = M mix y i M i
Worked Example: Mixture Properties
A nonreactive mixture is 70% nitrogen and 30% carbon dioxide by volume at 500 kPa absolute and 300 K. Find the partial pressures, apparent molar mass, mixture gas constant, and density.
Partial pressures (Dalton, with mole fraction = volume fraction): P N 2 = 0.70 ( 500 ) = 350 kPa , P CO 2 = 0.30 ( 500 ) = 150 kPa P_{\text{N}_2} = 0.70(500) = 350\ \text{kPa}, \qquad P_{\text{CO}_2} = 0.30(500) = 150\ \text{kPa} P N 2 = 0.70 ( 500 ) = 350 kPa , P CO 2 = 0.30 ( 500 ) = 150 kPa
Apparent molar mass: M mix = 0.70 ( 28.01 ) + 0.30 ( 44.01 ) = 19.61 + 13.20 = 32.81 kg/kmol M_{\text{mix}} = 0.70(28.01) + 0.30(44.01) = 19.61 + 13.20 = 32.81\ \text{kg/kmol} M mix = 0.70 ( 28.01 ) + 0.30 ( 44.01 ) = 19.61 + 13.20 = 32.81 kg/kmol
Mixture gas constant: R mix = 8,314 32.81 = 253.4 J/kg ⋅ K R_{\text{mix}} = \frac{8{,}314}{32.81} = 253.4\ \text{J/kg}\cdot\text{K} R mix = 32.81 8 , 314 = 253.4 J/kg ⋅ K
Density: ρ = P R mix T = 500,000 253.4 ( 300 ) = 500,000 76,020 = 6.58 kg/m 3 \rho = \frac{P}{R_{\text{mix}}T} = \frac{500{,}000}{253.4(300)} = \frac{500{,}000}{76{,}020} = \boxed{6.58\ \text{kg/m}^3} ρ = R mix T P = 253.4 ( 300 ) 500 , 000 = 76 , 020 500 , 000 = 6.58 kg/m 3
Mass fractions , for completeness: w N 2 = 0.70 ( 28.01 ) 32.81 = 0.598 , w CO 2 = 0.30 ( 44.01 ) 32.81 = 0.402 w_{\text{N}_2} = \frac{0.70(28.01)}{32.81} = 0.598, \qquad w_{\text{CO}_2} = \frac{0.30(44.01)}{32.81} = 0.402 w N 2 = 32.81 0.70 ( 28.01 ) = 0.598 , w CO 2 = 32.81 0.30 ( 44.01 ) = 0.402
Note the divergence: 30% CO₂ by volume is 40% by mass, because CO₂ is 57% heavier than N₂. Confusing mass and mole fractions is the standard mixture error, and problems deliberately state one and ask for the other.
The Real Gas Law and the Compressibility Factor
Real gases deviate from ideal behavior when molecules are close enough for their finite volume and intermolecular attraction to matter — that is, at high pressure and low temperature . The correction is a single multiplicative factor: P v = z R T ⟹ ρ = P z R T \boxed{Pv = zRT} \qquad\Longrightarrow\qquad \rho = \frac{P}{zRT} P v = z RT ⟹ ρ = z RT P z = v actual v ideal z = \frac{v_{\text{actual}}}{v_{\text{ideal}}} z = v ideal v actual
- z z z Meaning
- z = 1 z = 1 z = 1 Ideal behavior
z < 1 z < 1 z < 1 Attractive forces dominate; the gas occupies less volume than ideal (the common case at moderate pressure)
- z > 1 z > 1 z > 1 Repulsion / finite molecular volume dominates; more volume than ideal (very high pressure)
- Reduced Properties and the Generalized Chart
The principle of corresponding states says that z z z is nearly the same function of reduced properties for all gases: P r = P P c , T r = T T c P_r = \frac{P}{P_c}, \qquad T_r = \frac{T}{T_c} P r = P c P , T r = T c T
Enter the generalized compressibility chart with P r P_r P r and T r T_r T r , and read z z z .
- Gas T c T_c T c (K) P c P_c P c (MPa)
- Air 132.5 3.77
- Nitrogen 126.2 3.39
- Oxygen 154.6 5.04
- Carbon dioxide 304.1 7.38
- Methane 190.6 4.60
- Water 647.1 22.06
- Helium 5.19 0.227
Rules of thumb worth memorizing:
P r ≪ 1 P_r \ll 1 P r ≪ 1 (say P r < 0.1 P_r < 0.1 P r < 0.1 ): ideal behavior is excellent regardless of temperature
T r > 2 T_r > 2 T r > 2 : nearly ideal even at moderate pressure
Near the critical point ( T r ≈ 1 T_r \approx 1 T r ≈ 1 , P r ≈ 1 P_r \approx 1 P r ≈ 1 ): z z z can fall to 0.2–0.3 — errors of 70%+ from assuming ideality
- T r T_r T r between about 1 and 1.5 with P r P_r P r near 1 is the danger zone
- Worked Example: When Ideality Fails
Carbon dioxide at 8.0 MPa and 320 K. Assess whether the ideal gas law is acceptable, given z = 0.32 z = 0.32 z = 0.32 from the generalized chart at these conditions.
Reduced properties: P r = 8.0 7.38 = 1.08 , T r = 320 304.1 = 1.05 P_r = \frac{8.0}{7.38} = 1.08, \qquad T_r = \frac{320}{304.1} = 1.05 P r = 7.38 8.0 = 1.08 , T r = 304.1 320 = 1.05
Both near unity — this is essentially at the critical point , the worst case for ideal-gas assumptions.
Ideal prediction: ρ ideal = P R T = 8.0 × 10 6 189 ( 320 ) = 8.0 × 10 6 60,480 = 132.3 kg/m 3 \rho_{\text{ideal}} = \frac{P}{RT} = \frac{8.0\times10^6}{189(320)} = \frac{8.0\times10^6}{60{,}480} = 132.3\ \text{kg/m}^3 ρ ideal = RT P = 189 ( 320 ) 8.0 × 1 0 6 = 60 , 480 8.0 × 1 0 6 = 132.3 kg/m 3
Real density: ρ real = P z R T = 132.3 0.32 = 413 kg/m 3 \rho_{\text{real}} = \frac{P}{zRT} = \frac{132.3}{0.32} = \boxed{413\ \text{kg/m}^3} ρ real = z RT P = 0.32 132.3 = 413 kg/m 3
The ideal gas law understates the density by a factor of 3.1 — a 68% error. Any pressure drop, mass flow, or vessel-inventory calculation based on it would be badly wrong. This is not a contrived case: it is ordinary supercritical CO₂ service in enhanced oil recovery and supercritical extraction.
Contrast with air at 200 kPa and 300 K: P r = 0.20 3.77 = 0.053 , T r = 300 132.5 = 2.26 P_r = \frac{0.20}{3.77} = 0.053, \qquad T_r = \frac{300}{132.5} = 2.26 P r = 3.77 0.20 = 0.053 , T r = 132.5 300 = 2.26
Low P r P_r P r and high T r T_r T r give z ≈ 1.00 z \approx 1.00 z ≈ 1.00 , and the ideal gas law is accurate to a fraction of a percent. This is why ordinary air-handling problems never need z z z — ambient air sits far from its critical point on both axes.