Gay-Lussac's Law Calculator

Introduction to Gay-Lussac's pressure-temperature relationship

Gay-Lussac's law is the pressure-and-temperature rule for a sealed gas sample whose volume does not change. If the gas is trapped in a rigid container and you warm it up, the molecules move faster and strike the walls harder, so the pressure goes up. If you cool that same sample, the pressure goes down. This calculator turns that idea into a quick practical tool by solving for one missing value when the other three are known.

That sounds simple, but most mistakes with this law come from units rather than algebra. Pressure should be entered in absolute units, here shown as pascals, and temperature must be entered in kelvin rather than Celsius. The calculator does not convert Celsius for you. If a thermometer reads 25°C, you would enter 298.15 K. Using absolute temperature matters because the law compares proportions, not just temperature differences.

People use Gay-Lussac's law to estimate what happens inside sealed tanks, gas cartridges, laboratory vessels, and other systems that stay close to constant volume. It is also a helpful teaching model because it shows a clean one-to-one relationship: when temperature in kelvin rises by a certain percentage, pressure rises by about the same percentage. The result on this page is therefore best read as a constant-volume estimate, not a full engineering simulation.

What problem does Gay-Lussac's law solve in a sealed gas sample?

Gay-Lussac's law solves a very specific question: if the amount of gas and the container volume remain fixed, how does a change in temperature affect pressure, or how hot or cold must the gas become to reach a target pressure? That is narrower than a general gas-law calculator, but the narrow scope is a strength because it tells you exactly which assumptions matter.

For example, suppose you know the starting pressure and temperature of a gas cylinder stored indoors and want to estimate the pressure after the cylinder warms in a hot vehicle. Or suppose you know the initial state of a rigid chamber in a classroom experiment and want to know what final temperature would produce a chosen pressure reading. In both cases, you are not changing the amount of gas, and you are not allowing the vessel to expand much. That is the situation this calculator is designed for.

Because the relationship is proportional, the tool is useful for quick scenario testing. You can check whether a higher storage temperature pushes pressure into a range that deserves more attention, or whether cooling a vessel would bring pressure back toward a safer target. It gives you a fast first-pass answer while making the assumptions transparent.

How to use the Gay-Lussac pressure-temperature calculator

This Gay-Lussac pressure-temperature calculator is meant to be used by leaving exactly one quantity blank. Enter the three values you know, click the button, and the script solves for the fourth. The result area below the form updates immediately with the missing pressure or temperature.

  1. Enter Initial Pressure P₁ (Pa) if you know the starting pressure of the sealed gas sample.
  2. Enter Initial Temperature T₁ (K) in kelvin for that same starting state.
  3. Enter Final Pressure P₂ (Pa) if the ending pressure is known, or leave it blank if you want the calculator to solve for it.
  4. Enter Final Temperature T₂ (K) in kelvin for the ending state, or leave it blank if that is the value you want.
  5. Submit the form only after confirming that exactly one field is empty and the other three values are positive.

A good habit is to say the problem out loud before typing anything: I know the starting pressure, I know the starting temperature, I know the final temperature, and I want the final pressure. That small pause prevents the most common data-entry mix-up, which is putting an ending value into a starting field or forgetting to convert Celsius to kelvin.

Inputs: choosing pressure and temperature values that match the law

The inputs in this calculator are short, but they carry important assumptions. Pressure values should refer to the same gas sample and should use the same pressure basis throughout. Since the labels show pascals, the safest interpretation is absolute pressure in Pa. Temperatures must be absolute temperatures in kelvin. If you have Celsius data, convert it first by adding 273.15.

The initial pair, P₁ and T₁, describe the state before heating or cooling. The final pair, P₂ and T₂, describe the state after the temperature change. You only need three of these four numbers because the law fixes the fourth once constant volume and constant amount of gas are assumed.

Be especially careful with values near zero or below zero on the kelvin scale. A kelvin temperature cannot be zero or negative in this model, and neither can absolute pressure. If an input does not make physical sense, the calculation should be treated as invalid even if a calculator can still perform the arithmetic. In real use, that means you should pause, confirm the measurement, and check that you are not mixing gauge pressure with absolute pressure.

One more practical note: the law is most believable when the container is genuinely rigid or nearly rigid. A thin balloon, an expanding tire under load, or a vessel that vents gas will not follow this simplified relationship as cleanly. The calculator still helps with intuition, but the result should be read as an approximation rather than a precise prediction.

Formulas: the Gay-Lussac relationship and rearrangements

The Gay-Lussac relationship states that pressure divided by absolute temperature stays constant for a fixed amount of gas at constant volume. Written in the form used by this calculator, the equation is:

P1 T1 = P2 T2

From that single proportion, you can solve for any missing variable. For instance, if the final pressure is missing, the rearranged form is:

P2 = P1 · T2 T1

If the final temperature is missing, the algebra simply flips:

T2 = P2 · T1 P1

The useful intuition behind all of these forms is the same. If T₂ is 20% higher than T₁, then P₂ will be 20% higher than P₁, provided the amount of gas and the volume really are unchanged. That is why kelvin matters so much: the comparison has to be made from absolute zero, not from an arbitrary Celsius zero point.

If you like to think about calculators in a more abstract way, the result can also be viewed as a function of several inputs. The page originally included the following general MathML expressions, and they still fit as a high-level description of calculator structure even though Gay-Lussac's law itself is more specific than a weighted-sum model:

R = f ( x1 , x2 , , xn ) T = i=1 n wi · xi

For this calculator, though, the key takeaway is simpler than the abstract notation: the ratio P/T stays constant across the two states.

Worked example: heating a sealed tank from 300 K to 360 K

This Gay-Lussac worked example shows why the law is so intuitive once the units are set up correctly. Imagine a rigid container with an initial pressure of 100000 Pa and an initial temperature of 300 K. You heat the sealed gas to 360 K and want to know the final pressure.

Using the rearranged equation for final pressure:

P₂ = P₁ × T₂ / T₁ = 100000 × 360 / 300 = 120000 Pa

The result tells you that the pressure rises by the same fraction as the absolute temperature. Temperature increased from 300 K to 360 K, which is a 20% increase, so pressure also rose by 20%, from 100000 Pa to 120000 Pa. That one-to-one proportional change is exactly what Gay-Lussac's law predicts for a constant-volume sample.

You can also run the problem in reverse. If you know the pressure climbed from 150000 Pa to 180000 Pa while volume stayed fixed and the starting temperature was 290 K, then the final temperature must be 348 K. Reverse examples are a useful way to check that you understand which variable is unknown before you use the form.

Comparison table: how final temperature changes final pressure

This Gay-Lussac comparison keeps the initial state fixed at P₁ = 100000 Pa and T₁ = 300 K, then changes only the final temperature. The pattern is the whole point of the law: warmer gas means higher pressure in the same proportion.

Scenario Initial state Final temperature T₂ Computed final pressure P₂ Interpretation
Cooler sample 100000 Pa at 300 K 270 K 90000 Pa A 10% drop in kelvin temperature causes about a 10% drop in pressure.
Baseline 100000 Pa at 300 K 300 K 100000 Pa No temperature change means no pressure change in this idealized constant-volume model.
Heated sample 100000 Pa at 300 K 360 K 120000 Pa A 20% rise in kelvin temperature causes about a 20% rise in pressure.

Tables like this are useful for sanity checks. If your result moves in the opposite direction from the temperature change, or if the percentage change is wildly different, revisit the units first. In most cases, the issue is a Celsius entry that should have been converted to kelvin or a pressure value that was not on an absolute basis.

How to interpret a Gay-Lussac result safely

A Gay-Lussac result is best interpreted as a proportional estimate for a sealed gas sample, not as a guarantee of how a real device will behave under every condition. Start by checking the unit in the answer. If the calculator returns pressure, it will be in pascals. If it returns temperature, it will be in kelvin. Then ask whether the direction of change matches physical intuition: heating should raise pressure, and cooling should lower it.

Next, compare percentages rather than just raw numbers. If the final kelvin temperature is 15% above the initial kelvin temperature, the final pressure should be about 15% above the initial pressure. This percentage check is often the fastest way to catch a typo. It also helps you communicate results clearly to someone else because you can explain the change without redoing the algebra.

Finally, remember what the answer does not include. The calculator does not model vessel deformation, gas loss, non-ideal behavior at extreme conditions, or chemistry. Those effects can matter in advanced work. For everyday learning, planning, and quick estimates, however, the proportional result is exactly the right level of detail.

Limitations of this constant-volume gas estimate

This constant-volume Gay-Lussac estimate depends on several assumptions, and each one has a practical meaning. First, the volume is assumed not to change. A rigid steel chamber fits that assumption much better than a flexible bag. Second, the amount of gas is assumed to stay fixed. If gas leaks, vents, or is added during the process, the simple pressure-temperature proportion no longer tells the whole story.

Third, the relationship is usually treated with the ideal gas model in mind. Many real gases behave close enough to ideal for moderate classroom and everyday engineering estimates, but not all gases under all conditions do. Very high pressures, very low temperatures, and phase changes can all push the real system away from the neat textbook proportion used here.

There is also an interpretation limit. The calculator can tell you what missing value is implied by the law, but it cannot decide whether that value is acceptable for safety, design, or compliance. If the result will influence a critical decision, use this page as a first check and then confirm with equipment specifications, procedures, or an expert review that matches the actual system.

Use absolute pressure in pascals and absolute temperature in kelvin. Leave exactly one field blank. If you only know Celsius, convert with K = °C + 273.15 before entering the value.

Leave exactly one field blank to compute it from the others.

Mini-game: tune temperature to hit the target pressure

This optional arcade challenge turns the same pressure-temperature idea into a quick lab game. Each round gives you a sealed sample with a starting pressure and temperature. Your job is to heat or cool it until the live pressure lands inside the target band and stays there long enough to lock the sample. The calculator above remains the source of the real answer; the game below is just a fun way to build intuition for how kelvin and pressure move together.

Score0
Time75.0s
Streak0
Best0
Samples0
Your browser does not support the game canvas.

Pressure Tuner Lab

Match each target pressure by heating or cooling a sealed gas sample. The pressure follows the Gay-Lussac rule, so changing the temperature in kelvin moves pressure in the same direction.

Hold or tap the right half of the game to heat. Hold or tap the left half to cool. Keyboard works too: use D or → to heat, and A or ← to cool. Keep the needle inside the green target band until the stabilize meter fills.

Best score is saved on this device. Quick reminder: at constant volume, a 10% rise in kelvin temperature means about a 10% rise in pressure.

Embed this calculator

Copy and paste the HTML below to add the Gay-Lussac's Law Calculator for Pressure and Temperature at Constant Volume to your website.