Ideal Gas Law Calculator

Answer—
P × V (joules)—
n × R × T (joules)—

How Ideal Gas Law Calculator is calculated: P × V = n × R × T with R = 8.314 J/(mol·K); temperature must be in kelvin

What is the Ideal Gas Law for?

A ideal gas law calculator is a free online tool that solves the ideal gas law for whichever of pressure, volume, moles, or temperature you do not know. It uses PV = nRT with R = 8.314 joules per mole-kelvin, and the temperature must be in kelvin. It gives the answer instantly as you type, with the main result shown first and the supporting figures underneath, so you can check the headline number and the working behind it in one glance.

It is used by school physics and chemistry students, teachers checking gas-law problems, and anyone working with cylinders, balloons, or engines. If you are working through a set of problems, a pressure converter is often the next step once this answer is in hand, because the two quantities feed into each other.

To use it, enter which quantity to find, then the pressure in kilopascals, the volume in litres, the amount in moles, and the temperature in kelvin. The calculator runs entirely in your browser: nothing you type is uploaded, stored, or shared, and there is no sign-up. You can change any value and the results update at once, which makes it easy to test what happens when one input moves.

How to work out Ideal Gas Law by hand

The ideal gas law ties together the four things that describe a gas: pressure, volume, amount, and temperature. Double the temperature and the pressure doubles, if the volume stays fixed. Double the amount of gas and the volume doubles at fixed pressure and temperature. The constant R is 8.314 joules per mole-kelvin, and the law is called ideal because it assumes the gas particles have no size and never attract each other, which is a good approximation for most gases at ordinary pressures. The formula the calculator uses is: P × V = n × R × T with R = 8.314 J/(mol·K); temperature must be in kelvin. Every symbol in that formula has one meaning and one unit, and keeping the units straight is most of the work in getting a right answer.

By hand, the steps are: convert the pressure to pascals and the volume to cubic metres, then rearrange PV equals nRT for the unknown and divide or multiply as needed. The calculator does the same steps in the same order, so a hand check on one example should land on the same number the page shows, allowing for the rounding in the display.

Pressure goes in kilopascals, volume in litres, and temperature in kelvin, and the calculator converts to pascals and cubic metres internally. The temperature is the one that must be in kelvin: 293 kelvin is 20 degrees Celsius, and entering 20 instead gives an answer about fifteen times too small. The calculator is an estimate in the sense that it trusts the numbers you enter: it cannot tell whether a measurement was read correctly, so a wrong input gives a wrong-looking answer with no warning. Always check the units before trusting a result.

One more check: the formula above is the one the page uses, so a textbook that writes it differently is usually just rearranging the same relation or using different symbols. Match the symbols by their meaning, not by their shape, and the numbers will agree. If your book gives the answer in different units, convert at the end rather than in the middle, so a conversion slip cannot hide inside the working.

Temperature must be in kelvin, always

Temperature in the gas law must be in kelvin, with no exceptions. The law involves ratios of temperatures, and ratios only make sense from absolute zero. Doubling the temperature from 293 kelvin to 586 kelvin doubles the pressure, but doubling from 20 degrees Celsius to 40 degrees Celsius is not a doubling at all: it is 293 kelvin to 313 kelvin, a rise of only 7 percent.

Pressure and volume must be in matching units inside the calculation. This calculator takes kilopascals and litres and converts them to pascals and cubic metres, where the product is in joules. A pressure entered in atmospheres or a volume in millilitres without conversion gives an answer wrong by a large factor.

One mole of any ideal gas at 0 degrees Celsius and 1 atmosphere occupies about 22.4 litres. That single number is a useful check: if your answer for a mole of gas at room temperature is far from 24 litres, one of the inputs is wrong.

A worked example

Take this example: 101.3 kPa, 24 L, 1 mol. One mole of gas sits at 101.3 kilopascals in a volume of 24 litres. Put those numbers into the calculator and it returns Answer 292.42 ; P × V (joules) 2431.2 ; n × R × T (joules) 2436 .

Working it through by hand: T = (101300 × 0.024) ÷ (1 × 8.314) = 2431.2 ÷ 8.314 = 292.42 K. The hand result matches the calculator exactly, which is the point of the check: if your own working gives a different number, one of the inputs was typed in the wrong unit or the wrong box.

Try a second set to see how the answer moves: the same gas at 293 kelvin, solved for the pressure instead. P = (1 × 8.314 × 293) ÷ 0.024 = 2436 ÷ 0.024 = 101.5 kPa, confirming the starting pressure Changing one input at a time and watching the result is the fastest way to build a feel for the formula, and it is how most students spot a typing error before it reaches their homework.

Who uses a Ideal Gas Law and why

The first group is students. A student finds the temperature of 1 mole of gas at 101.3 kilopascals in 24 litres: about 292 kelvin, near room temperature.

The second is teachers and tutors. A teacher checks a balloon problem, where heating the gas at fixed pressure must expand the volume in proportion to the kelvin temperature. A temperature converter is a natural companion here, since lessons often pair the two quantities in the same problem set.

The third is anyone doing practical work. A diver works out how much gas a cylinder holds at pressure, to plan how long the air will last underwater. None of these uses needs an account or an install: the page opens, the numbers go in, and the answer is there.

Exam and homework use is the common thread across all three groups. A calculator gives the number, but the marks come from the working: write the formula, substitute the values with units, and then the answer. A bare number with no working earns little credit even when it is right, while a shown method with one small slip usually earns most of the marks.

Ideal Gas Law Calculator vs Density Converter

A density converter answers a different question: it finds density from mass and volume, which is a different property of matter from the pressure, volume, and temperature of a gas.. The two tools look similar because they share inputs, but they solve for different unknowns, and picking the wrong one is the most common source of confusion between them.

Use this Ideal Gas Law when the quantity you need is the one named in the title above. Use the Density Converter when your unknown is the one it is named for instead. If a problem gives you the answer this page produces and asks for something else, that something else is usually the job of the companion tool.

In practice the two are used back to back: work out the first quantity here, then carry it into the second tool as an input. Keeping the chain in that order, and writing each intermediate answer down, stops small rounding slips from growing into a wrong final answer.

Common mistakes with a Ideal Gas Law

The first mistake is entering the temperature in Celsius instead of kelvin, which makes the answer wrong by a large factor.

The second is mixing litres with cubic metres or kilopascals with pascals without converting.

The third is using the law at very high pressures or very low temperatures, where real gases stop behaving ideally and the answer is only an estimate. A quick habit that catches all three: work one example by hand, compare it with the calculator, and only then trust the page for the rest of the set.

How to use this Ideal Gas Law

Step one, enter which quantity to find, then the pressure in kilopascals, the volume in litres, the amount in moles, and the temperature in kelvin. Step two, check the units beside each box match the units in your problem. Step three, read the main result at the top of the results box, then the supporting figures below it.

For the most accurate results, use the most precise inputs you have, and keep the same unit system all the way through a problem: mixing centimetres with metres, or milliamps with amps, is the single biggest cause of answers that are out by a factor of ten or a hundred. Remember the landmark: 1 mole at 0 °C and 1 atm is about 22.4 litres. At room temperature it is about 24 litres.

The calculator is free, works on a phone or a computer, and needs no sign-up. Everything runs in your browser, so your numbers never leave your device, and closing the page leaves nothing behind.

If the answer looks wrong, change one input at a time and watch which one moves the result. A result that jumps by a factor of ten usually means a unit slipped, centimetres for metres or grams for kilograms, while a result that barely moves when an input changes usually means that input matters less than expected, often because it sits under a square root. Both patterns are worth knowing before an exam.

Frequently Asked Questions

The formula is P × V = n × R × T with R = 8.314 J/(mol·K); temperature must be in kelvin. The ideal gas law ties together the four things that describe a gas: pressure, volume, amount, and temperature. Double the temperature and the pressure doubles, if the volume stays fixed. Double the amount of gas and the volume doubles at fixed pressure and temperature. The constant R is 8.314 joules per mole-kelvin, and the law is called ideal because it assumes the gas particles have no size and never attract each other, which is a good approximation for most gases at ordinary pressures. Put the values in with matching units and the calculator applies the formula directly, with no hidden adjustments.

The ideal gas law is P times V equals n times R times T, where P is pressure, V is volume, n is the amount in moles, R is 8.314 joules per mole-kelvin, and T is the temperature in kelvin. It describes how the four quantities move together for an ideal gas, one whose particles have no size and never attract each other. Real gases follow it closely at ordinary pressures and temperatures.

The temperature is Answer 292.42 ; P × V (joules) 2431.2 ; n × R × T (joules) 2436 . The calculation is 101300 pascals times 0.024 cubic metres, divided by 1 times 8.314, giving about 292.4 kelvin, which is about 19 degrees Celsius, near room temperature.

The gas law uses ratios of temperatures, and a ratio only has its proper meaning when measured from absolute zero. Zero kelvin is the point where molecular motion stops, so 293 kelvin is genuinely twice as hot as 146.5 kelvin in the sense the law needs. Zero degrees Celsius is not absolute zero, so Celsius ratios do not work: 40 degrees is not twice as hot as 20 degrees.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.