Boyle's and Charles' Law Comparator

Select a gas law, fill three of the four fields, and the fourth is solved instantly. All unit conversions happen in the background.

See also: Ideal Gas Law Calculator (PV=nRT) - solve for Pressure, Volume, Moles, or Temperature in one unified equation.
Select Gas Law
P1V1 = P2V2
Initial State (1)
P1 - Pressure Solved
V1 - Volume Solved
Final State (2)
P2 - Pressure Solved
V2 - Volume Solved
Fill in three fields to solve for the fourth.
Direct vs. Inverse Visual Cheat Sheet

Boyle's Law

INVERSE Relationship
Like a seesaw: when Pressure goes up, Volume goes down. When one side rises, the other falls. They always move in opposite directions at constant temperature.
P up = V down | P down = V up
🔴

Charles's Law

DIRECT Relationship
Like an elevator: Temperature and Volume always travel together. Heat the gas and it expands. Cool it and it contracts. Both go the same direction at constant pressure.
T up = V up | T down = V down
Key Terms Explained
Boyle's Law
At constant temperature, pressure and volume in a closed gas system are inversely proportional: P1 x V1 = P2 x V2. Discovered by Robert Boyle in 1662.
Charles's Law
At constant pressure, volume and absolute temperature in a closed gas system are directly proportional: V1/T1 = V2/T2. Formalized by Jacques Charles around 1787.
Closed System
A container or setup where the amount of gas (number of molecules) stays fixed. No gas enters or leaves during the process. Both Boyle's and Charles's Law apply only to closed systems.
Isothermal Process
A change in which temperature remains constant throughout. Boyle's Law describes isothermal compression and expansion of a gas. "Iso" means same; "thermal" means heat.
Isobaric Process
A change in which pressure remains constant throughout. Charles's Law describes isobaric heating and cooling of a gas. "Baro" refers to pressure (as in barometer).
Absolute Zero
The lowest possible temperature: 0 Kelvin, equal to -273.15 degrees Celsius. At this point all molecular motion theoretically stops. Gas volumes and pressures cannot go below zero, so calculations approaching absolute zero are physically impossible.
Kelvin Scale
The absolute temperature scale used in all gas law calculations. It starts at absolute zero (0 K) and has the same degree size as Celsius. Convert: K = degrees C + 273.15. Never use Celsius or Fahrenheit directly in gas law formulas.
Direct Relationship
Two quantities that increase or decrease together by the same factor. Charles's Law is a direct relationship: doubling the Kelvin temperature doubles the volume. The ratio V/T stays constant.
Inverse Relationship
Two quantities where one increases as the other decreases by the same factor. Boyle's Law is an inverse relationship: doubling the pressure halves the volume. The product P x V stays constant.
Ideal Gas
A theoretical gas whose molecules occupy no volume and exert no forces on each other. Both Boyle's and Charles's Laws assume ideal gas behavior, which is accurate for most common gases at moderate temperatures and pressures.

The Complete Guide to Boyle's and Charles's Gas Laws

Before scientists unified all gas behavior into PV = nRT, two foundational laws were discovered separately by observing what happens when you isolate just one variable at a time. Boyle's Law isolates temperature. Charles's Law isolates pressure. Together they form the conceptual backbone of all thermodynamics.

How to Use This Comparator

Select the law you need at the top. The input grid automatically switches between the Pressure-Volume setup for Boyle's Law and the Volume-Temperature setup for Charles's Law. Fill in three of the four visible fields using whatever units match your problem - the calculator converts everything to base units (Liters, Atmospheres, Kelvin) before doing any math, then converts the answer back to your chosen output unit. The fourth field is solved and highlighted the moment the third value is entered.

To change which variable you want to solve for, simply clear that field and fill in the previously empty one. The engine recalculates in real time on every keystroke.

The History: Why Two Separate Laws?

Robert Boyle published his law in 1662 after using a J-shaped tube sealed with mercury to trap air and vary pressure by adding or removing mercury on the open end. He carefully measured that the product P x V stayed constant each time - the first quantitative gas law. Jacques Charles formulated his law around 1787 by measuring gas volumes at different temperatures in fixed-pressure balloons. He noted that all gases expanded by the same fraction per degree - a hint that a universal absolute zero existed, though Charles himself never published his findings. Joseph Louis Gay-Lussac credited Charles in his own 1802 publication, which is why the law sometimes appears as "Gay-Lussac's Law of Volumes."

The Unit Conversion Requirement: Kelvin Only

Charles's Law (V1/T1 = V2/T2) is a ratio of volumes to temperatures. For this ratio to be mathematically valid, temperature must start at true zero - the point of zero molecular energy. That is exactly what the Kelvin scale provides. If you use Celsius, then 0 degrees C is 273.15 K, not zero energy. Plugging 0 degrees C directly into the denominator T1 would create a division-by-zero error. Even using Celsius values that are not zero will produce wrong answers because the ratio of Celsius temperatures does not equal the ratio of actual molecular energies. This calculator automatically converts all Celsius and Fahrenheit entries to Kelvin before calculation, then converts the result back for display.

Frequently Asked Questions

Gas laws like Charles's Law are proportional relationships: volume is directly proportional to temperature. This proportionality only holds on an absolute scale that starts at true zero molecular energy, which is what the Kelvin scale provides. At 0 K, a gas theoretically has zero molecular kinetic energy and zero volume. The Celsius scale starts at the freezing point of water, and Fahrenheit starts at an arbitrary historical reference. If you plug 0 degrees Celsius directly into V1/T1 = V2/T2, you divide by zero, which breaks the math entirely. Converting to Kelvin (0 degrees C = 273.15 K) produces a valid, positive denominator and gives physically correct results. This calculator handles the conversion automatically so you never have to think about it.

A direct relationship means two quantities increase or decrease together. If one doubles, the other doubles. Charles's Law is a direct relationship: when temperature (in Kelvin) doubles, volume doubles, because the ratio V/T must stay constant. An inverse relationship means one quantity increases as the other decreases. If one doubles, the other halves. Boyle's Law is an inverse relationship: when pressure doubles, volume halves, because the product P x V must stay constant. Students often remember this with two analogies: direct relationships are like an elevator (both variables go the same direction together), and inverse relationships are like a seesaw (when one side goes up, the other goes down).

Your diaphragm and rib muscles increase the volume of your chest cavity when you inhale. Because body temperature stays roughly constant inside the thorax, Boyle's Law applies: P1V1 = P2V2. The increased volume lowers the air pressure inside your lungs below atmospheric pressure outside. Air flows from high pressure to low pressure, filling your lungs. When you exhale, the muscles relax, the chest volume decreases, pressure inside rises above atmospheric pressure, and air is pushed back out. Every breath you take is a live demonstration of Boyle's inverse pressure-volume relationship. Conditions like pneumothorax (collapsed lung) are Boyle's Law failures where the sealed chest cavity is breached.

A hot air balloon envelope is open at the bottom, so the pressure inside equals atmospheric pressure outside - constant pressure, exactly the condition Charles's Law requires. When the burner heats the air inside the envelope, the Kelvin temperature increases. Charles's Law says that at constant pressure, V1/T1 = V2/T2: the heated air expands. Some air spills out the open bottom, so the same volume of envelope now contains fewer, less-dense molecules. The balloon's total mass (envelope plus air inside) drops below the mass of the cooler, denser air it displaces. Buoyancy lifts it upward. To descend, the pilot allows the air to cool, reversing the Charles's Law expansion and increasing the density back toward ambient air.

Absolute zero (0 K, -273.15 degrees C) is the theoretical point where all molecular motion would completely stop and a gas would have zero volume and zero pressure. In practice, no real substance has ever reached exactly 0 K. Scientists have cooled matter to within billionths of a degree above 0 K in laboratory settings, but the Third Law of Thermodynamics states that absolute zero can be approached but never fully reached. Real gases also condense into liquids and then solids long before reaching 0 K - nitrogen liquefies at 77 K, and helium, the hardest to solidify, remains liquid down to about 4 K. The gas laws stop being accurate well before absolute zero because the substance is no longer a gas. If this calculator shows a warning about absolute zero, it means the combination of inputs you entered would require a physically impossible negative temperature or volume.

This calculator applies Boyle's Law (P1V1 = P2V2) and Charles's Law (V1/T1 = V2/T2) under ideal gas assumptions. Results are mathematically exact for the inputs provided. Real gas behavior deviates from these models at extreme pressures, very low temperatures, or near condensation points.