Understanding Density at STP
Density at STP describes the mass of a gas in a fixed volume under standard conditions. Chemists use it to compare gases fairly. Temperature and pressure change gas volume. A shared reference removes that problem.
Why STP Matters
STP is useful in gas law work, lab reports, and quick molecular checks. Many classes use 0 °C and 1 atm. Some references use 0 °C and 100 kPa. This calculator lets you select either convention. It also supports custom conditions when your problem uses another pressure or temperature.
Role of Molar Mass
For an ideal gas, density depends strongly on molar mass. A heavier molecule gives a higher density at the same conditions. Helium stays light because its molar mass is small. Carbon dioxide is denser because its molar mass is larger. The calculator divides molar mass by molar volume. It also uses the ideal gas equation when pressure and temperature are entered directly.
Corrections and Limits
Real gases can deviate from ideal behavior. The compressibility factor helps adjust the result. A value near one means the gas behaves almost ideally. Values above or below one show attraction, repulsion, or high pressure effects. For most classroom STP problems, one is acceptable. For engineering work, use measured values or trusted property tables.
Measured Density Option
Sometimes you have mass and volume from a sample. That gives measured density. The tool can also correct that density to STP using pressure and temperature ratios. This is helpful when data were collected in a room, not at standard conditions.
Using the Result
The final result appears in grams per liter and kilograms per cubic meter. These units are numerically equal for gas density. The table also shows molar volume and moles per liter. Use the notes to explain your method. Use CSV for spreadsheets. Use PDF for a printable record.
Good Practice
Always write the chosen STP definition. State all units. Round only at the end. Compare your answer with common gas values. Big differences often mean the wrong pressure unit, temperature unit, or molar mass was entered. For mixtures, enter the average molar mass. Estimate it from mole fractions, then multiply each gas fraction by its own molar mass carefully.