My Calculator

Gay-Lussac's Law Calculator

Calculate final pressure, final temperature, initial pressure, or initial temperature of a gas at constant volume using P₁/T₁ = P₂/T₂. Includes worked steps, real-world presets, and a labelled sealed-container diagram.

Final pressure, P₂127.289783 kPa
Final pressure in atm1.256252 atm
Pressure ratio, P₂/P₁1.272898
Temperature ratio, T₂/T₁ (kelvin)1.272898
Volume conditionConstant volume

Gay-Lussac's Law Sealed-Container Diagram

Both tanks are the same fixed size. Heating a sealed gas raises its pressure, shown here by the gauge needle.

STATE 1: P₁ = 100 kPaT₁ = 20 °C (293.15 K)HEAT ADDEDV = constantSTATE 2: P₂ = 127.289783 kPaT₂ = 100 °C (373.15 K)

Step-by-Step Gay-Lussac's Law Solution

Here's exactly how this answer was calculated, one step at a time.

Given: P₁ = 100 kPa, T₁ = 20 °C, P₂ = 127.289783 kPa, T₂ = 100 °C

  1. Step 1: Convert both temperatures to kelvin

    Gay-Lussac's law needs absolute temperature. Celsius cannot be used directly because zero on the Celsius scale is not absolute zero.

    T₁ = 20 °C + 273.15 = 293.15 K; T₂ = 100 °C + 273.15 = 373.15 K
  2. Step 2: Write Gay-Lussac's law

    At constant volume, gas pressure is directly proportional to absolute temperature.

    P₁ / T₁ = P₂ / T₂
  3. Step 3: Rearrange for the unknown quantity

    P₂ = P₁T₂ / T₁
  4. Step 4: Substitute the known values

    P₂ = 100 × 373.15 / 293.15
  5. Step 5: Calculate the missing value

    Final pressure = 127.289783 kPa

The Gay-Lussac's law result is:

127.289783 kPa

Free Gay-Lussac's Law Calculator

This Gay-Lussac's Law Calculator works out the final pressure, final temperature, initial pressure, or initial temperature of a fixed amount of gas sealed in a container of constant volume. Choose which quantity you need, type in the other three values, and the calculator applies P₁/T₁ = P₂/T₂ instantly, converting Celsius to kelvin automatically. Every answer comes with the full rearrangement, the substitution, the pressure and kelvin temperature ratios, and a labelled sealed-container diagram with a gauge needle that moves as pressure changes.

It is built for physics and chemistry students, lab write-ups, quick homework checks, and anyone curious about why a sealed can gets more dangerous when heated. Four quick-fill examples, based on an aerosol can in sunlight, a car tyre on the highway, a pressure cooker on the stove, and a gas cylinder cooling overnight, let you see realistic numbers in action without typing anything yourself.

What Is Gay-Lussac's Law?

Gay-Lussac's law says that the pressure of a fixed amount of gas is directly proportional to its absolute temperature, as long as the volume of its container does not change. In plain words, heat a sealed gas and its pressure climbs; cool it down and the pressure drops. The relationship is named after the French chemist Joseph Louis Gay-Lussac, who published his findings on gas pressure and temperature in the early 1800s.

Gay-Lussac's law only applies to a fixed mass of gas in a rigid, sealed container. If the container can expand or contract, or if gas is added, removed, or leaks out, the pressure-temperature relationship described here no longer applies on its own, and a different gas law is needed instead.

Gay-Lussac's Law Formula

The Gay-Lussac's law formula is P₁/T₁ = P₂/T₂, where P₁ and T₁ are the pressure and absolute temperature at the starting state, and P₂ and T₂ are the pressure and absolute temperature at the final state. Temperature must always be in kelvin, never Celsius, because the formula is built around a scale that starts at absolute zero. Convert with T(K) = T(°C) + 273.15 before using any temperature in this equation.

The four rearranged forms are P₂ = P₁T₂ / T₁, T₂ = T₁P₂ / P₁, P₁ = P₂T₁ / T₂, and T₁ = P₁T₂ / P₂. This calculator supports all four, so it can answer the usual textbook question of finding a final pressure or temperature, and it can also work backward to find an unknown starting condition.

Solving for Final Pressure

This is the most common Gay-Lussac's law question: a sealed gas starts at a known pressure and temperature, gets heated or cooled to a new temperature, and the resulting pressure needs to be found. The formula becomes P₂ = P₁T₂ / T₁.

For example, a sealed can at 250 kPa and 25°C is left in the sun until it reaches 60°C. Converting to kelvin gives T₁ = 298.15 K and T₂ = 333.15 K. Then P₂ = 250 × 333.15 / 298.15 ≈ 279.3 kPa. The rising temperature pushed the pressure up by roughly 12 percent, which is exactly why warning labels tell you to keep aerosol cans away from heat.

Solving for Final Temperature

When the final pressure is known instead of the final temperature, the formula rearranges to T₂ = T₁P₂ / P₁. This version answers questions like what temperature a sealed gas needs to reach in order to hit a target pressure, which is exactly how a pressure cooker's safety valve is designed.

As an example, a pressure cooker starts at 100 kPa and 20°C, and needs to reach 180 kPa before its valve releases steam. Converting 20°C to kelvin gives T₁ = 293.15 K. Then T₂ = 293.15 × 180 / 100 ≈ 527.7 K, which converts back to about 254.5°C. This shows how quickly a sealed pot's internal temperature can climb once pressure starts building.

Solving for Initial Pressure

Sometimes the final state is what was measured, and the original starting pressure is the unknown. Rearranging the formula gives P₁ = P₂T₁ / T₂, which is useful for working backward from a later reading to figure out what pressure a sealed gas started at.

For instance, if a gas cylinder ends up at 270 kPa after cooling overnight from 25°C to 10°C, then P₁ = 270 × 298.15 / 283.15 ≈ 284.3 kPa. The cylinder was at a slightly higher pressure the previous evening, before the drop in temperature brought it down.

Solving for Initial Temperature

In the same way, the initial temperature can be found from a known final temperature, final pressure, and initial pressure, using T₁ = P₁T₂ / P₂. This mode is helpful when a sealed container's final reading is known but the temperature it started at was never recorded.

As an example, a sealed tank finishes at 150 kPa and 80°C after starting at 130 kPa. Converting 80°C to kelvin gives T₂ = 353.15 K. Then T₁ = 130 × 353.15 / 150 ≈ 305.9 K, which is about 32.8°C, meaning the tank started slightly warmer than room temperature before cooling to its lower final pressure.

Why Heating a Sealed Gas Raises Its Pressure

Gas pressure comes from particles constantly colliding with the walls of their container. Heating a gas gives its particles more kinetic energy, so they move faster and strike the walls harder and more often. In a Boyle's law or Charles's law situation the container can expand, so some of that extra energy goes into pushing the walls outward instead of building pressure.

In a Gay-Lussac's law situation the walls are rigid and cannot move at all, so every bit of that extra particle energy shows up as higher pressure instead. This is exactly why sealed containers, from aerosol cans to gas cylinders, are far more sensitive to heat than containers that are free to expand.

Real-Life Examples of Gay-Lussac's Law

Gay-Lussac's law explains why certain everyday objects come with heat warnings, and recognising the pattern makes the formula feel a lot less abstract.

  • An aerosol can left in a hot car or in direct sunlight: the sealed gas inside heats up and its pressure rises, which is why cans carry warnings against heat exposure.
  • A car tyre after a long highway drive: friction heats the trapped air, raising pressure inside the sealed tyre even though its volume barely changes.
  • A pressure cooker on the stove: heating the sealed pot raises internal pressure until it reaches cooking temperature, with a valve designed to release gas if pressure climbs too high.
  • A compressed gas cylinder stored outdoors: pressure readings shift noticeably between a hot afternoon and a cold night, even though no gas has been used.
  • A sealed metal can thrown into a fire: the trapped air or liquid inside heats rapidly, and because the can cannot expand, pressure can build until the can ruptures.

Gay-Lussac's Law and Pressure Vessel Safety

Because Gay-Lussac's law describes exactly how much a sealed gas's pressure rises with temperature, it sits behind most of the safety warnings printed on pressurised containers. Manufacturers of aerosol cans, gas cylinders, and pressure cookers use this relationship to set safe temperature limits and to design pressure-relief valves that open before a container can fail.

This calculator's aerosol can, tyre, and pressure cooker presets are simplified educational illustrations of that same principle: a fixed volume of gas heating up and its pressure rising in direct proportion to the kelvin temperature. Real safety limits for pressurised equipment come from the manufacturer's ratings and relevant safety standards, not from a general-purpose calculator like this one.

Units and Problem-Solving Tips

Gay-Lussac's law only cares about the ratio between values, so any pressure unit works as long as both P₁ and P₂ use the same one. Temperature is the one place where a specific unit is mandatory: both T₁ and T₂ must be converted to kelvin before they go into the formula, since using Celsius directly produces a result that looks plausible but is actually wrong.

This calculator accepts pressure in kilopascals and temperature in Celsius, performs the kelvin conversion automatically, and also converts the pressure result into atmospheres for convenience. If your original pressure numbers are in a different unit, such as psi, atm, or mmHg, convert both pressures to the same unit first, using a dedicated pressure converter tool if needed, before entering them here.

Common Mistakes When Using Gay-Lussac's Law

A handful of errors show up again and again in Gay-Lussac's law homework and lab work, and most of them are easy to avoid once you know what to check for.

  • Using Celsius directly in the formula instead of converting both temperatures to kelvin first.
  • Forgetting to convert one of the two temperatures while correctly converting the other.
  • Mixing pressure units between the two states, such as entering P₁ in kPa and P₂ in psi without converting first.
  • Applying Gay-Lussac's law to a container that can actually expand or contract, where volume changes instead of staying fixed.
  • Applying Gay-Lussac's law when gas has been added, removed, or has leaked out, which calls for the ideal gas law instead.

Gay-Lussac's Law vs Boyle's Law vs Charles's Law

Gay-Lussac's law, Boyle's law, and Charles's law are the three classic gas laws, and each one holds a different quantity fixed. Gay-Lussac's law, P₁/T₁ = P₂/T₂, applies when volume is constant and only pressure and temperature change. Boyle's law, P₁V₁ = P₂V₂, applies when temperature is constant and only pressure and volume change. Charles's law, V₁/T₁ = V₂/T₂, applies when pressure is constant and only volume and temperature change.

The combined gas law, P₁V₁/T₁ = P₂V₂/T₂, merges all three relationships into one formula that works even when pressure, volume, and temperature are all changing at once, as long as the amount of gas stays fixed. If a problem involves a volume change alongside the pressure and temperature change, the combined gas law calculator on this site is the better tool to reach for instead of Gay-Lussac's law alone.

When Gay-Lussac's Law Does Not Apply

Gay-Lussac's law assumes an ideal gas: particles with no real volume of their own and no attraction or repulsion between them. Real gases follow this closely at ordinary pressures and temperatures, but they start to deviate at very high pressure or very low temperature, especially as a gas approaches the point where it would condense into a liquid.

The law also assumes the container genuinely cannot change size. A container that flexes, a valve that opens before the calculated pressure, or a leak that lets gas escape will all cause real behaviour to differ from the simple prediction. For pressurised equipment, gas cylinders, or any sealed system involving safety risk, professional guidance and proper engineering standards should be used instead of a general calculator like this one.

How to Use This Calculator

Start by choosing which of the four quantities you need to find from the dropdown menu: final pressure, final temperature, initial pressure, or initial temperature. Then fill in the three values you already know, or click one of the quick-fill example buttons to load a realistic scenario automatically. The result, both ratios, the sealed-container diagram, and the full step-by-step working all update immediately as you type.

This tool is meant for education, revision, and quick estimation. It does not replace professional calculations for pressurised equipment, gas cylinders, aerosol product design, or industrial vessels, all of which need to follow proper engineering standards and certified guidance rather than a general-purpose web calculator.

Gay-Lussac's Law Calculator FAQ Summary

Gay-Lussac's law is P₁/T₁ = P₂/T₂ for a fixed amount of gas held at constant volume, and both temperatures must be in kelvin. This calculator can solve for any one of the four quantities, includes real-world presets, converts pressure results into atmospheres alongside kilopascals, and shows both the pressure ratio and the kelvin temperature ratio as a built-in check on the answer.

Frequently Asked Questions

What is Gay-Lussac's law formula?

P₁/T₁ = P₂/T₂, for a fixed amount of gas at constant volume.

Why must temperature be in kelvin for Gay-Lussac's law?

The formula uses absolute temperature, so convert Celsius by adding 273.15 before calculating.

What must stay constant for Gay-Lussac's law to apply?

Volume and the amount of gas must both stay fixed.

Does pressure increase when temperature increases?

Yes, at constant volume, pressure is directly proportional to absolute temperature.

Can this calculator find the initial pressure or temperature, not just the final ones?

Yes, it has four modes: final pressure, final temperature, initial pressure, and initial temperature.

What units does this calculator use?

Kilopascals for pressure and Celsius for temperature input, with kelvin and atmospheres shown automatically.

Why do aerosol cans warn against heat exposure?

Heating the sealed gas raises its pressure, and enough of a rise can rupture the can.

Why does tyre pressure rise after driving?

Friction heats the sealed air inside a tyre, and since its volume barely changes, pressure climbs instead.

What is the difference between Gay-Lussac's law and Charles's law?

Gay-Lussac's law holds volume constant and relates pressure to temperature; Charles's law holds pressure constant and relates volume to temperature.

When is Gay-Lussac's law inaccurate?

Near condensation, at very high pressure, or whenever volume or the amount of gas is also changing.