Ideal gas pressure:
from moles, temperature and volume to pascals
The equation is short, but units decide whether you get pascals or nonsense. Here is the clean route, with a worked case and the limits of the model.
Calcylator Editorial Team
Updated · 4 min read
Why pressure scales with moles and temperature
Gas pressure is the combined push of countless molecules striking the walls of their container. More molecules mean more strikes per second, so pressure rises with the amount of gas. Hotter molecules move faster and hit harder, so pressure rises with temperature as well. Give the same gas more room and the strikes thin out, which is why pressure falls as volume grows.
The ideal gas law packs all three relationships into one line. It treats molecules as points that do not attract or repel each other, an assumption that works well for common gases at moderate pressure and temperatures well above their boiling points, and degrades as gases are squeezed or cooled toward liquefaction.
The equation rearranged for pressure
- n:
- amount of gas in mol
- R:
- 8.314 J/(mol·K)
- T:
- absolute temperature in K
- V:
- volume in m³
The law is usually remembered as PV = nRT. Dividing both sides by V gives pressure directly. What matters in practice is that R carries its units with it: 8.314 J/(mol·K) is the same as 8.314 Pa·m³/(mol·K). That means the volume must be in cubic metres and the answer arrives in pascals.
Two unit habits cause most wrong answers. First, temperature must be on the kelvin scale, so add 273.15 to degrees Celsius. Second, a volume given in litres has to be divided by 1000 to reach cubic metres; 10 L is 0.010 m³.
| Quantity | Everyday unit | Convert to |
|---|---|---|
| Temperature | 25 °C | 298.15 K (add 273.15) |
| Volume | 10 L | 0.010 m³ (÷ 1000) |
| Volume | 250 mL | 0.000250 m³ (÷ 1,000,000) |
| Pressure result | 124,000 Pa | 124 kPa or 1.24 bar |
Worked example: 0.5 mol of gas in a 10 L vessel
A sealed 10 L vessel holds 0.5 mol of nitrogen at 298 K, about room temperature. Convert the volume to 0.010 m³, then substitute.
n
0.5 mol
R
8.314 J/(mol·K)
T
298 K
V
10 L = 0.010 m³
Pressure
≈ 123,900 Pa ≈ 124 kPa
Calculation: 0.5 × 8.314 × 298 ÷ 0.010 = 123,878.6 Pa.
Divide by 101,325 Pa per standard atmosphere and the same pressure is about 1.22 atm, or 1.24 bar. A pressure gauge on such a vessel would read the excess over the surrounding air, so about 0.22 atm if the room is at one atmosphere, because most gauges are calibrated against ambient pressure.
What happens when you change one thing at a time
Because every symbol sits in a simple product or ratio, it is easy to predict direction before touching numbers. Doubling the moles doubles the pressure when volume and temperature are held fixed. Doubling the kelvin temperature does the same. Doubling the volume halves it.
- Heat the 0.5 mol sample from 298 K to 596 K at constant volume and pressure climbs from about 124 kPa to about 248 kPa.
- Squeeze it into 5 L and pressure also doubles to about 248 kPa, assuming the temperature is held.
- Add another 0.5 mol at the original conditions and the vessel reaches about 248 kPa.
Mind the word kelvin in the temperature line: 25 °C to 50 °C is only an increase from 298 K to 323 K, about 8%, not a doubling. Pressure rises by that same 8%.
Rearranging for moles, volume or temperature
The same relationship is often needed the other way round. If pressure, volume and temperature are measured and the amount of gas is unknown, divide pressure times volume by R times T. If you need the volume a known amount will fill at a chosen pressure, multiply n, R and T and divide by pressure.
- Moles: n = pV ÷ (RT)
- Volume: V = nRT ÷ p
- Temperature: T = pV ÷ (nR)
A useful anchor is the molar volume. One mole of an ideal gas at 101,325 Pa and 298 K fills 8.314 × 298 ÷ 101,325 = 0.02445 m³, which is 24.45 L. So a 1 L flask of any ideal gas under those conditions contains about 1 ÷ 24.45 = 0.0409 mol, or 40.9 mmol. That quick figure is a good sanity check on any answer you obtain; if a litre of room-temperature gas comes out as several moles, a unit has slipped.
Pressure units you will meet
| Unit | Equal to | Where it appears |
|---|---|---|
| 1 atm | 101,325 Pa | Textbook standard conditions |
| 1 bar | 100,000 Pa | Many data sheets and weather maps |
| 1 mmHg | 133.3 Pa | Barometers and medical readings |
| 1 psi | 6,895 Pa | Tyres and compressors |
When a problem hands you pressure in a different unit, convert it to pascals before using the 8.314 constant, rather than trying to find a new gas constant for the unit. The gas in a mixture follows the same rule: add up the moles of every gas in the vessel, because the total pressure depends on the overall molecule count, not on the type of molecule.
A car tyre inflated to 32 psi gauge is at about 220 kPa above the atmosphere, roughly 320 kPa absolute. That distinction between gauge and absolute is exactly the one that decides whether a gas-law calculation matches the number on the dial.
Where the ideal gas law stops being reliable
Real molecules occupy space and attract one another. At pressures of tens of atmospheres, or near the temperature where a gas condenses, measured pressure departs from nRT/V by a visible margin. Steam near its boiling point, carbon dioxide in a high-pressure cylinder and refrigerants in a working compressor are typical cases where an equation of state with correction terms, such as the van der Waals equation, is the better tool.
For air, nitrogen, oxygen and helium at ordinary room conditions the ideal law is usually good to a fraction of a percent, which is accurate enough for most schoolwork, lab planning and rough engineering checks. When safety is involved, for example sizing a pressure vessel, use the code-approved method and the manufacturer's data rather than this shortcut.
A separate chemistry magnitude tool can keep related quantities tidy while you work through a set of problems, though the P = nRT/V step itself is simple enough to verify by hand with the unit conversions above.
Common questions
What is the formula for gas pressure?
For an ideal gas, pressure equals n × R × T divided by V. Use moles for n, 8.314 J/(mol·K) for R, kelvin for T and cubic metres for V, and the answer is in pascals. For 0.5 mol at 298 K in 0.010 m³, it is about 124 kPa.
Which value of R should I use?
Use 8.314 J/(mol·K) when pressure is in pascals and volume in cubic metres. If you work in litres and atmospheres, the equivalent constant is 0.08206 L·atm/(mol·K). Mixing the two sets of units is the most common reason answers come out wrong by a factor of 1000 or 101.
Why must temperature be in kelvin?
The law relates pressure to the absolute energy of molecules, which is zero at 0 K, not 0 °C. Using Celsius would give zero or negative pressure at ordinary temperatures. Convert by adding 273.15, so 25 °C becomes 298.15 K.
How do I convert pascals to atmospheres or bar?
Divide by 101,325 to get standard atmospheres, or by 100,000 to get bar. For 123,879 Pa that gives roughly 1.22 atm or 1.24 bar. One kilopascal is 1,000 Pa, so the same pressure is about 124 kPa.
When does the ideal gas law fail?
It becomes inaccurate at high pressure, typically tens of atmospheres, and near the temperature where a gas turns into liquid. Strongly attracting or large molecules deviate sooner. Under ordinary room conditions air and common gases follow it within a small fraction of a percent.
Was this guide helpful?
Continue reading
View all blogsMole Fraction Explained With a Water–Ethanol Mix
Mole fraction is one component's moles divided by all moles present. See it worked on 36 g of water and 46 g of ethanol, giving 0.667 and 0.333.
4 min read
How to Work Out Gas Density From Pressure and Temperature
Gas density follows ρ = pM/(RT). Air at 101,325 Pa and 300 K is about 1.177 kg/m³, while CO₂ under the same conditions is roughly 1.79 kg/m³.
4 min read
Percent Excess Reactant: Formula, Steps and a Worked Case
Percent excess = (fed − required) ÷ required × 100. Feeding 6 mol of N₂ where 5 mol is needed means a 20% excess; the steps tell you which species to use.
4 min read




