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.
Boyle's Law
Charles's Law
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.