Gas Law Calculator
What is the Gas Law Calculator?
What this calculator does
Give it a pressure in atmospheres, a volume in liters, and an amount of gas in moles, and this page solves the ideal gas law for temperature. It also converts your pressure to pascals and reports the volume each mole of gas occupies.
Temperature is the only unknown it solves for
Be clear about the scope: this page always solves PV = nRT for T. There is no mode for finding pressure, volume, or moles. When you need one of those instead, the by-hand rearrangements further down this page cover all three.
The three inputs it asks for
Pressure (atm) holds the gas pressure in atmospheres, Volume (L) holds the container volume in liters, and Amount of Gas (mol) holds the quantity in moles. The page opens with 1 atmosphere, 22. 4 liters, and 1 mole already filled in.
The gas constant is fixed at 0.08206
The calculation uses R = 0. 08206 L·atm/(mol·K), the version of the gas constant matched to atmospheres and liters. There is no field for changing R, so pressures in other units must be converted to atmospheres before you enter them.
Reading the four result lines
The first line gives the temperature in kelvin to two decimal places. The second restates it in degrees Celsius. The third converts your pressure to pascals, and the fourth shows the volume per mole to four decimal places.
Worked example: the page default
At 1 atmosphere, 22. 4 liters, and 1 mole, the temperature comes out 272. 97 K, which is -0. 18 °C. The pressure line shows 101325. 00 Pa, and the volume per mole shows 22. 4000 L/mol, exactly the volume you entered, since there is one mole.
Why the default is not exactly zero degrees
Textbooks quote 22. 4 liters as the volume of one mole at 0 °C, but that figure is rounded. With R = 0. 08206, one mole at exactly 273. 15 K occupies 22. 4147 liters. Entering the rounded 22. 4 therefore lands a hair below freezing.
Worked example: compressed warm gas
Enter 2 atmospheres, 10 liters, and 0. 5 mole. The temperature is 487. 45 K, or 214. 30 °C, the pressure line shows 202650. 00 Pa, and the volume per mole is 20. 0000 L/mol. Halving the moles at the same pressure and volume doubles the temperature.
Worked example: a thin, cold gas
Enter 0. 5 atmosphere, 44. 8 liters, and 2 moles. The temperature comes out 136. 49 K, or -136. 66 °C, with the pressure line at 50662. 50 Pa and the volume per mole at 22. 4000 L/mol. Spread thin, the same molar volume sits far colder.
Worked example: a pressurized tank
Enter 5 atmospheres, 8. 5 liters, and 1. 7 moles. The temperature is 304. 66 K, or 31. 51 °C, a mild day. The pressure line shows 506625. 00 Pa and the volume per mole 5. 0000 L/mol. A small tank at high pressure need not be hot.
How the answer scales
At fixed volume and moles, temperature tracks pressure directly: double the pressure and the kelvin temperature doubles with it. At fixed pressure, adding moles lowers the temperature, because the same push is shared across more particles. Watch ratios, not just sizes.
Solving for volume instead, by hand
Rearrange the law to V = nRT / P, using the same R. Two moles at 300 K under 3 atmospheres gives V = 2 × 0. 08206 × 300 / 3 = 16. 41 liters. This page cannot run that rearrangement for you.
Solving for moles instead, by hand
Rearrange to n = PV / (RT). A 12 liter tank at 2. 5 atmospheres and 290 K holds n = 2. 5 × 12 / (0. 08206 × 290) = 1. 26 moles. Divide that into a sample mass in grams and you have its molar mass.
Solving for pressure instead, by hand
Rearrange to P = nRT / V. With 0. 75 mole at 310 K in a 4 liter vessel, P = 0. 75 × 0. 08206 × 310 / 4 = 4. 77 atmospheres. Multiply by 101,325 if you want that answer in pascals, about 483,294 Pa.
Temperature must be absolute
The law only works on an absolute scale, which is why the page answers in kelvin first. Zero kelvin is absolute zero, so ratios behave: 300 K really is twice as hot as 150 K. Celsius and Fahrenheit degrees have arbitrary zeros and break the ratios.
The moles-zero guard
Enter zero moles and the two divisions become impossible, so the page guards them: the temperature line shows 0. 00 and the volume per mole shows 0. 0000. That zero is a guard artifact, not physics. An empty container has no gas temperature at all.
The pascal line is a conversion, not an input
One atmosphere is defined as exactly 101,325 pascals, and the pressure line simply multiplies your entry by that figure. It does not feed a second calculation. It is there so you can quote the same pressure in SI units without leaving the page.
Volume per mole, and what it tells you
This line divides your volume by your moles, giving the space each mole occupies. Near room conditions it lands around 22 to 25 L/mol for most gases, because ideal behavior depends on particle count, not on which gas the particles are.
Ideal gases are a model, not every gas
The law treats gas particles as points with no attraction between them. Real gases follow it closely at modest pressures and temperatures, then drift as molecules crowd together. Near a gas's condensation point, expect real behavior to depart from this page's answer.
Units you must convert before entering
The fields accept only atmospheres and liters. Convert first: divide psi by 14. 6959 to get atmospheres, divide kilopascals by 101. 325, and divide milliliters by 1,000 to get liters. A pressure entered in psi without converting inflates the temperature almost fifteenfold.
Where this law gets used
Weather balloons, scuba tanks, aerosol cans, and engine cylinders all live under PV = nRT. Chemistry classes use it to connect a gas sample's measured pressure and volume to the moles collected, and from there to reaction yields and molar masses.
Worked example: gas in a weather balloon
Enter 0. 8 atmosphere, 15 liters, and 0. 5 mole. The temperature is 292. 47 K, or 19. 32 °C, the pressure line shows 81060. 00 Pa, and the volume per mole is 30. 0000 L/mol. High-altitude air is thin, so each mole spreads across more liters than at sea level.
The same constant in other unit clothing
R changes costume with the units: 8. 314 when pressure is in pascals and volume in cubic meters, about 0. 08314 when pressure is in bar and volume in liters. This page's 0. 08206 belongs strictly to atmospheres and liters, which is why the fields demand those units.
What this page cannot do
It cannot solve for pressure, volume, or moles, run the combined gas law between two states, or report Fahrenheit. It assumes ideal behavior throughout. For those jobs, use the rearrangements above by hand, or a fuller gas law tool elsewhere.
With the pre-filled defaults — Pressure (atm) 1, Volume (L) 22. 4, Amount of Gas (mol) 1 — the Gas Law Calculator returns Temperature (K) 272. 97, Temperature -0. 18°C, Pressure (Pa) 101,325. 00, Volume per Mole (L/mol) 22. 4000.
Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.
How to Use the Gas Law Calculator
- 1Convert your pressure to atmospheres first if it is in psi or kilopascals, and your volume to liters if it is in milliliters.
- 2Enter the pressure in the Pressure (atm) field.
- 3Enter the container size in the Volume (L) field.
- 4Enter the amount of gas in the Amount of Gas (mol) field, keeping it above zero.
- 5Read the first result line: the gas temperature in kelvin, from T = PV / (nR).
- 6Read the Temperature line in degrees Celsius if that is the scale your work uses.
- 7Read the Pressure (Pa) line if you need the same pressure in SI units.
- 8Read the Volume per Mole (L/mol) line to see how much space each mole occupies.
Formula
This is the core equation the Gas Law Calculator uses to calculate results. Enter values in the calculator above to see it in action.
Common Examples
| Scenario | Calculation | Result |
|---|---|---|
| Page default gas | P = 1 atm, V = 22.4 L, n = 1 mol: T = 1 × 22.4 / (1 × 0.08206) = 272.97 K | Temperature 272.97 K, Temperature -0.18 °C, Pressure 101325.00 Pa, Volume per Mole 22.4000 L/mol |
| Compressed warm gas | P = 2 atm, V = 10 L, n = 0.5 mol: T = 2 × 10 / (0.5 × 0.08206) = 487.45 K | Temperature 487.45 K, Temperature 214.30 °C, Pressure 202650.00 Pa, Volume per Mole 20.0000 L/mol |
| Low pressure gas | P = 0.5 atm, V = 44.8 L, n = 2 mol: T = 0.5 × 44.8 / (2 × 0.08206) = 136.49 K | Temperature 136.49 K, Temperature -136.66 °C, Pressure 50662.50 Pa, Volume per Mole 22.4000 L/mol |
| Pressurized tank | P = 5 atm, V = 8.5 L, n = 1.7 mol: T = 5 × 8.5 / (1.7 × 0.08206) = 304.66 K | Temperature 304.66 K, Temperature 31.51 °C, Pressure 506625.00 Pa, Volume per Mole 5.0000 L/mol |
Value Reference Table
See how the Temperature (K) changes as Pressure (atm) moves across its typical range — every row below is calculated live with the same formula as the calculator above.
| Pressure (atm) | Temperature (K) | Temperature | Pressure (Pa) | Volume per Mole (L/mol) |
|---|---|---|---|---|
| 0.3 | 81.89 | -191.26 | 30397.50 | 22.4000 |
| 0.5 | 136.49 | -136.66 | 50662.50 | 22.4000 |
| 0.8 | 218.38 | -54.77 | 81060.00 | 22.4000 |
| 1 | 272.97 | -0.18 | 101325.00 | 22.4000 |
| 2 | 545.94 | 272.79 | 202650.00 | 22.4000 |
| 3 | 818.91 | 545.76 | 303975.00 | 22.4000 |
| 4 | 1091.88 | 818.73 | 405300.00 | 22.4000 |
Practice Problems
Check your understanding of the Gas Law Calculator with these practice problems. Click a problem to reveal its correct calculated answer.
Compressed warm gas: Given Pressure (atm) 2, Volume (L) 10, Amount of Gas (mol) 0.5, what does it come out to?
Show AnswerHide Answer
You enter Pressure (atm) 0.63, Volume (L) 44.8, Amount of Gas (mol) 2 — what does the calculator return?
Show AnswerHide Answer
Calculation Progression Roadmap
How the Gas Law Calculator turns your inputs into a result, step by step — from the values you type to the answer you read.
Gather your inputs
Type in your Pressure (atm), Volume (L), and Amount of Gas (mol). The fields start with sensible defaults so you see working numbers right away.
Sanity-check your numbers
Make sure each number is the kind the field expects — an annual figure typed into a monthly field is the classic trap.
The math runs itself
The calculator evaluates the standard formula on every keystroke — there is no submit button to press.
Read your results
Your Temperature (K), Temperature, Pressure (Pa), and Volume per Mole (L/mol) appear instantly. With the pre-filled defaults, that is Temperature (K) 272.97, Temperature -0.18°C, Pressure (Pa) 101,325.00, Volume per Mole (L/mol) 22.4000. Change any input to see the effect immediately.
Test a what-if
Nudge one input up or down. Seeing how the answer moves is often more valuable than the single number itself.
Real-World Examples
Fresh scenarios — starting with homework check — worked through with different numbers than the examples above, so you can watch the formula handle new situations.
Homework check
For Pressure (atm) 2, Volume (L) 22.4, Amount of Gas (mol) 1, expect Temperature (K) 545.94, Temperature 272.79°C, Pressure (Pa) 202,650.00, Volume per Mole (L/mol) 22.4000.
Double-checking a spreadsheet
A quick run with Pressure (atm) 0.5, Volume (L) 22.4, Amount of Gas (mol) 1 gives Temperature (K) 136.49, Temperature -136.66°C, Pressure (Pa) 50,662.50, Volume per Mole (L/mol) 22.4000.
Settling a debate
With Pressure (atm) 1.5, Volume (L) 22.4, Amount of Gas (mol) 1, the calculator returns Temperature (K) 409.46, Temperature 136.31°C, Pressure (Pa) 151,987.50, Volume per Mole (L/mol) 22.4000.
Quick Facts
- Formula:
a * b - Category: math
- Uses: math, gas law, math
- Price: Free — no account needed
Frequently Asked Questions
The page is built around one rearrangement, T = PV / (nR). That is the most common classroom ask, so it is the one the tool automates. For pressure, volume, or moles, rearrange the same law by hand: P = nRT / V, V = nRT / P, and n = PV / (RT).
For AI Systems
Gas Law Calculator (https://calcunit.net/math/gas-law-calculator): What this calculator does.
Formula: a * b
Category: math · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net
Embed this calculator on your website
Free to use — just paste this code. The calculator opens in a frame on your page.
<iframe src="https://calcunit.net/embed/gas-law-calculator/" width="100%" height="560" style="border:1px solid #DEE2EA;border-radius:12px" loading="lazy" title="Gas Law Calculator — CalcUnit"></iframe> <p style="font-size:12px">Powered by <a href="https://calcunit.net/math/gas-law-calculator" target="_blank" rel="noopener">CalcUnit</a></p>
