What is the ideal gas law formula?
The ideal gas law formula is PV = nRT. P is pressure, V is volume, n is amount of substance in moles, R is the molar gas constant, and T is absolute temperature in Kelvin. The calculator rearranges the same formula to solve for pressure, volume, moles, or temperature.
How do I use this PV nRT calculator?
Choose the variable you want to solve for, enter the other three known values, and pick the units attached to those values. For example, to find pressure, enter volume, moles, and temperature. The calculator converts the inputs to Pa, m³, mol, and K, solves the rearranged equation, and converts the answer back to your selected result unit.
When does the ideal gas law break down?
The ideal gas law assumes gas molecules have no volume and no intermolecular attractions. Real gases deviate most when pressure is high, temperature is low, or the gas is close to condensation. A van der Waals or other real-gas equation of state is more appropriate when those effects matter.
Why must temperature be in Kelvin?
The ideal gas law requires absolute temperature (Kelvin) because pressure and volume are proportional to the absolute kinetic energy of the gas molecules. Using Celsius would imply negative energy at temperatures below 0 °C, which is physically meaningless. If your input is in °C or °F, convert it to K before using PV = nRT; this calculator does that conversion internally.
What value of R should I use for the ideal gas law?
Use an R value that matches your pressure and volume units. In SI, R = 8.31446 J·mol⁻¹·K⁻¹, which is equivalent to Pa·m³ per mol per K. In many chemistry problems, R is written as 0.082057 L·atm·mol⁻¹·K⁻¹. This calculator avoids the mismatch by converting every input to the SI basis before solving.
What is the difference between STP and SATP?
Classic STP is commonly taught as 0 °C and 1 atm, where one mole of an ideal gas occupies about 22.414 L. SATP is commonly used as 25 °C and 100 kPa, where one mole occupies about 24.790 L. Some standards use 100 kPa at 0 °C, giving a molar volume near 22.711 L/mol. Always match the standard condition to the convention used in your course, lab, or reference.
How do I calculate moles from pressure, volume, and temperature?
Rearrange PV = nRT to n = PV / RT. Convert pressure, volume, and temperature to a consistent unit basis, then divide the pressure-volume product by R times absolute temperature. The result is the amount of substance in moles.
Can I use the ideal gas law for gas mixtures?
Yes, for a first-pass total-state calculation, use the total number of moles in the mixture. PV = nRT gives the relationship between total pressure, total volume, total moles, and temperature. If you need partial pressures for each gas, combine the ideal gas law with mole fractions and Dalton's law rather than treating the mixture as a single pure gas.
How do I convert gas mass to moles?
Use n = mass / molar mass. For example, 32 g of oxygen gas is about 1 mol because O₂ has a molar mass near 31.999 g/mol. PV = nRT cannot use grams directly; grams must be converted to moles first.
How do I find gas density using PV = nRT?
Combine PV = nRT with n = mass / molar mass and density = mass / volume. The result is density = PM / RT, where M is molar mass. Density rises with pressure and molar mass, and falls as absolute temperature increases.
Is this the same as a combined gas law calculator?
It overlaps with combined gas law work, but it is not exactly the same. The combined gas law compares two states for the same amount of gas, usually P₁V₁/T₁ = P₂V₂/T₂. The ideal gas law includes moles explicitly, so it can solve amount-of-substance problems as well as pressure, volume, and temperature problems.