Ideal gas law Created 2026-10-14 Updated 2026-10-14
The ideal gas law is the equation of state relating the absolute pressure , volume , particle count , and absolute thermodynamic temperature of a classical ideal gas:
Here is the Boltzmann constant, is the Avogadro constant, is the molar gas constant, and is the amount of substance in moles. The distinct symbol avoids confusing amount of substance with the number density , measured in : the same law can be written . Use absolute pressure, relative to a vacuum, rather than an unconverted gauge pressure. [ref]
The exact SI definitions of the Avogadro constant and Boltzmann constant give
This numerical value is exact; the applicability of the ideal gas model to a real gas is an approximation. [ref] [ref]
For , , and , direct substitution gives
At fixed temperature and particle count, doubling the volume to halves the pressure to approximately : this is Boyle's law. At fixed volume and particle count, doubling the temperature from to doubles the pressure to approximately . These ratios use kelvins, not readings in the degree Celsius scale: is , and is .
Figure 1.
Ideal gas law: pressure versus volume at fixed temperatures, and pressure versus absolute temperature at fixed volume
. Details.
The curved slices show Boyle's law at three temperatures; the straight slice shows proportionality to absolute temperature at one fixed volume. They are relations among equilibrium states, rather than a prescribed process history. Compression could hold the temperature fixed through heat transfer, or raise it during adiabatic compression. To calculate a process's heat or work, supplement the ideal gas law with the process constraint, the first law of thermodynamics, and the relevant internal energy or heat capacity information. The graph's extrapolation toward is mathematical; it does not assert that a real gas remains classical or gaseous there.
For a stellar mixture with fixed mean molecular weight, the ideal gas law can be written , where is mass density and is the stellar gas constant. It assumes negligible interaction corrections and a nondegenerate gas; excitation or ionization can change the particle count and thermodynamic response.
In his 1834 memoir on the motive power of heat, Émile Clapeyron combined gas laws into a relation between pressure, volume, and temperature while analysing heat engines (printed page 164). The equation above uses modern SI notation and absolute thermodynamic temperature; it is not a transcription of his historical temperature convention. [ref]
Use for the stellar gas constant, reserving for the stellar radius. The specific internal energy of a monatomic gas obeying the ideal gas law is . At fixed enclosed mass, the first law of thermodynamics gives the heat available to the outgoing luminosity as when there is no stellar nuclear fusion heating. Therefore
The second coefficient includes both the mass density dependence of and pressure work. This is gravitational energy generation in a homologously contracting ideal-gas star.
Write the characteristic scales as
Then , , , and . Since , direct substitution in the stellar hydrostatic equation and mass conservation gives
For radiative diffusion in a star, dividing the temperature equation by gives
In particular the fourth power here is of , not of the radius.
Because is fixed and is constant, a fixed mass label has fixed . Thus stellar homology gives and . The heating rate reduces to , positive during Kelvin-Helmholtz contraction. Substitution in now yields
The dimensionless profiles fix and . In a common stellar homology family with fixed stellar composition and opacity normalization, the expression for implies
It is independent of radius and constant in time for a particular fixed-mass star. The formula for gives , which integrates to
When the initial-radius term is negligible,
This is the Kelvin-Helmholtz contraction time law in the prescribed stellar homology model. Infinite initial radius is a limiting idealization; a finite initial radius retains the first term.
At main sequence arrival, CNO cycle heating with fixed stellar composition has luminosity
The integral is dimensionless and fixed within the stellar homology family. The constant-opacity radiative scaling still gives . Equating the stellar nuclear fusion and transported luminosities gives
Finally the Kelvin-Helmholtz contraction law evaluated at gives . In a coeval star cluster, the mass just arriving at the main sequence consequently satisfies
These results comprise constant-opacity homologous contraction to CNO ignition; their mass exponents compare fixed-composition models with common dimensionless profiles.
Use radiative homology with proton-proton burning and inverse-fourth-power opacity, retaining the composition factors throughout. To distinguish the stellar radius from the stellar gas constant, write them as and . With gas pressure alone, introduce the scale factors
The ideal gas equation gives , and . Substitution into hydrostatic equilibrium and mass conservation gives
so and .
Set . The radiative diffusion in a star equation, with the stipulated opacity, becomes
Here . Thus
The luminosity equation follows from the specific heating rate of the Proton–proton chain:
Consequently
These give all four dimensionless stellar structure equations with their numerical coefficients.
The stellar homology assumption means the dimensionless profiles are shared across the models, not merely that an individual model can be written in dimensionless coordinates. The displayed equations then require and to be fixed. Holding the universal constants and fixed gives
Equating the two cancels and yields . Therefore the radius and mass-luminosity relation are
The mass-independent radius is a consequence of the particular heating and opacity exponents in this model; it is not a general radius law for main-sequence stars.
Initially is the same for all stars. The adopted mean molecular weight also has the same initial value, neglecting its small direct dependence on . Thus . At fixed luminosity, the Stefan–Boltzmann law gives
The stars compared here can have different masses; the luminosity law adjusts the mass to keep fixed.
For the evolution, take the stellar mass as constant and maintain homogeneous composition. The available energy in the remaining hydrogen is , so conservation of energy in the nuclear-powered model gives
This includes the entire mixed hydrogen reservoir, not just the mass in a central burning region.
To determine the turnoff mass of a homogeneously mixed proton-proton-burning population, write the luminosity law as , where
Separating variables, the time to evolve from to is
For a common and , this integral is a positive finite constant independent of . It follows that the turning-off stars satisfy
The integration retains the evolving luminosity and mean molecular weight; replacing by its initial value is unnecessary.
Stellar gas constant 2026-10-14
In stellar ideal gas equations, the stellar gas constant converts a dimensionless mean molecular weight into the specific thermal relation . Here is the reference atomic mass unit, commonly approximated by the proton mass in simplified hydrogen-helium models. It has units of energy per mass per temperature. It is the molar gas constant divided by the molar mass corresponding to , rather than the molar gas constant used with a dimensional molar molecular weight.