Ideal gas calculator
Find the number of moles and particles of an ideal gas from its pressure, volume and temperature.
anındahesapla Editör Ekibi · Updated:
Every sealed flask holds a countable amount of gas. This calculator rearranges PV = nRT so that n stands alone on one side, then applies that form to whatever readings are typed into its three input fields without any manual algebra. Two outputs appear together. Moles come first, then a particle count.
Chemistry homework, lab preparation and quick container estimates all lean on this calculation. Real gases follow the equation only approximately. Their behaviour stays close to prediction at low pressure and moderately high temperature, and it drifts further away whenever a sample is squeezed hard or cooled toward the point where it starts to condense. Consistent units keep a hand calculation and the tool in agreement down to the last displayed digit.
Result
0.999926 mol
Number of moles (n): 0.999926 mol
Result in all units
Step-by-step solution
PV = nRT
What is the ideal gas law?
Four properties of a gas meet in one relationship: pressure, volume, amount in moles and temperature. Written as PV = nRT, it uses P for pressure, V for volume, n for moles, T for absolute temperature and R for the universal gas constant that links the other four quantities. Molecules are pictured as points. They take up no space and feel no attraction toward one another. Such a simplification keeps the algebra short. It still predicts ordinary laboratory conditions well enough for most classroom and bench problems, which explains why textbooks introduce it before any corrected model of gas behaviour.
Inside this tool, pressure goes in as atm, volume as litres and temperature as kelvin. Matching those units, the gas constant equals 0.08206 L·atm/(mol·K), and that figure drives every result shown in the panel. Kelvin is required. Absolute temperature is what the law depends on, so Celsius readings must be converted first. Pressures recorded in other units also need converting to atm before entry, or the answer will be off by the ratio between the two scales.
Stoichiometry problems use this calculation constantly. It also helps when working out how much gas a reaction produces or consumes, and when estimating what a storage cylinder contains before a lab session begins. Engineers reach for it as a first approximation in ventilation, combustion and vessel design. Balloons, aquarium aeration and diving tanks offer everyday examples. Once moles are known, mass follows from molar mass. Particle count follows from the number of particles in one mole, and here the tool performs that last step automatically, reporting molecules alongside moles.
How to calculate moles with PV=nRT
Solving for moles means rewriting the law as n = PV ÷ RT. Multiply pressure by volume, multiply the gas constant by temperature, then divide the first product by the second. With default values, (1 × 22.4) ÷ (0.08206 × 273) = 0.999926 mol, and the particle figure in the table comes from that same amount.
- Type the gas pressure in atm into the first field.
- Enter the volume occupied by the gas in litres.
- Add the absolute temperature in kelvin, converting any Celsius reading beforehand.
- Let the tool divide pressure times volume by 0.08206 times temperature.
- Read moles and the corresponding particle count in the results panel.
| Pressure (P) | Volume (V) | Temperature (T) | Moles (n) | Number of particles |
|---|---|---|---|---|
| 1 atm | 22.4 L | 273 K | 0.999926 mol | 602,169,425,532,270,350,958,592 |
Gauge readings cause frequent slips. Tyre dials and many tank meters show values above surrounding air, so atmospheric load has to be added back before entry, otherwise the computed amount comes out too small. Millilitres create a similar trap. A flask labelled in mL needs converting to litres first, and a reading in degrees Celsius left unconverted will distort everything that follows.