Choose what to calculate: the state of a gas by pV = nRT, a change between two states by the combined gas law, or an isoprocess (isobaric, isochoric, isothermal). Fill in all the values but one: the calculator finds it, shows the solution as Given, SI, Solution, Answer and draws the graphs. Heat engines and cycles are on the heat engine efficiency page, engineering gas processes are in the hydraulics section.
The ideal gas equation
The ideal gas equation relates the pressure, volume and temperature of a gas: p·V = n·R·T. Here n is the amount of substance in moles, R = 8.314 J/(mol·K) is the molar gas constant, and T is the absolute temperature in kelvin: T = t + 273.15. The amount of substance is found from the mass, n = m / M, or from the number of molecules, n = N / N_A, where N_A = 6.022·10²³ 1/mol. At standard conditions (273.15 K and 101 325 Pa) one mole takes 22.4 litres. A 10 L cylinder with 2 mol of gas at 27 °C has the pressure p = nRT/V = 2·8.314·300 / 0.01 ≈ 499 kPa, about 5 atmospheres.
The combined gas law and isoprocesses
If the mass of the gas does not change, p₁V₁ / T₁ = p₂V₂ / T₂: the ratio pV/T is kept because it equals nR. Three special cases carry the names of scientists. At constant temperature pV = const is Boyle's law (an isotherm, a hyperbola on the p–V diagram). At constant pressure V/T = const is Gay-Lussac's law (an isobar, a straight line through the origin on the V–T diagram). At constant volume p/T = const is Charles's law (an isochore, a straight line through the origin on the p–T diagram). The temperature in these formulas is always in kelvin: the ratio of 27 °C to 54 °C is not 1 to 2 but 300 to 327.
Graphs and the work of the gas
On a p–V diagram the work of the gas equals the area under the graph of the process: positive for expansion and negative for compression. For an isobar A = p·(V₂ − V₁), for an isochore A = 0, for an isotherm A = nRT·ln(V₂/V₁). The straight lines V(T) and p(T) extended pass through 0 K, which is the basis of the Kelvin scale. The calculator draws the graphs and shades the work when the constant quantity of the process is given.
FAQ
How do I find the pressure of a gas in a cylinder from temperature and amount of substance?
By the ideal gas equation: p = nRT/V. Convert the temperature to kelvin and the volume to cubic metres, and the pressure comes out in pascals. For example, 2 mol at 27 °C in a 10 L vessel give about 499 kPa. In the State of a gas mode leave the pressure field empty.
Why must the temperature be in kelvin in the gas laws?
The pressure and volume of an ideal gas are proportional to the absolute temperature: zero Celsius is not a physical zero. Substituting degrees Celsius would give zero pressure at 0 °C, which never happens. The calculator accepts 27 °C and converts it to 300.15 K itself, and reads a number without a symbol as kelvin.
What is the difference between Boyle's, Gay-Lussac's and Charles's laws?
It is one law, pV/T = const, under different conditions. Boyle: T is constant, p·V = const. Gay-Lussac: p is constant, V/T = const. Charles: V is constant, p/T = const. The Isoprocess mode solves any of them: enter three values and find the fourth.
How do I find the mass of a gas or the number of molecules from the equation of state?
Find n = pV/(RT), then m = n·M, where M is the molar mass of the gas in kg/mol, or N = n·N_A. Pick a gas from the list (air, nitrogen, oxygen, helium and others) or set M yourself. The calculator also shows the gas density ρ = pM/(RT).
When is the ideal gas equation inaccurate?
At high pressures and low temperatures, when molecules cannot be taken as non-interacting points, and near liquefaction. For air and other gases at about atmospheric pressure and room temperature the error is under one percent. Accurate engineering calculations of real gases need the van der Waals equation or tables.