anındahesapla

Ideal gas calculator

Find the number of moles and particles of an ideal gas from its pressure, volume and temperature.

· Updated:

WhatsApp X Facebook

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.

atm
L
K

Result

0.999926 mol

Number of moles (n): 0.999926 mol

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.

  1. Type the gas pressure in atm into the first field.
  2. Enter the volume occupied by the gas in litres.
  3. Add the absolute temperature in kelvin, converting any Celsius reading beforehand.
  4. Let the tool divide pressure times volume by 0.08206 times temperature.
  5. Read moles and the corresponding particle count in the results panel.
Pressure (P)Volume (V)Temperature (T)Moles (n)Number of particles
1 atm22.4 L273 K0.999926 mol602,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.

Frequently Asked Questions

How do you solve PV=nRT for n?
Rearranged, the equation reads n = PV ÷ RT. Pressure times volume is then divided by the product of the gas constant and the temperature.
What temperature unit does the ideal gas law use?
Kelvin, because the law relies on absolute temperature. Convert any Celsius value to kelvin before entering it.
Which value of R should I use?
With pressure in atm and volume in litres, R is 0.08206 L·atm/(mol·K). Other unit systems need the R value that matches them.
How many moles are in 22.4 liters of gas?
At 1 atm and 273 K, 22.4 L of ideal gas holds 0.999926 mol. Changing pressure or temperature changes the moles held in that same volume.
Is the ideal gas law accurate for real gases?
Only approximately. Under heavy compression and deep cooling, molecules crowd together, so attraction and finite size distort results and corrected equations of state are preferred there.

Related calculations