Gas Law Calculator
Solve before/after two-state gas problems — pick your law and enter the known values.
Use this for before/after two-state problems at held-constant conditions. For relating P, V, n, and T directly with a single state, use the Ideal Gas Law Calculator instead.
Free Gas Law Calculator
Working through a before-and-after gas problem — pressure changing at constant temperature, or volume changing as temperature rises? Our free gas law calculator covers Boyle's, Charles's, Gay-Lussac's, Avogadro's, and the Combined Gas Law in one place. Pick the law that matches your held-constant conditions, enter your known state 1 and state 2 values, and solve for whatever's missing.
All common pressure, volume, and temperature units are supported with automatic conversion, and temperature is always checked against absolute zero. Every answer comes with the specific law's formula shown, rearranged and substituted with your numbers.
Built for chemistry and physics coursework, it runs entirely in your browser. No sign-up, no downloads, no limits.
About the Gas Law Calculator
How It Works & Methodology
The Gas Law Calculator solves before/after two-state gas problems across five classic laws — Boyle's, Charles's, Gay-Lussac's, Avogadro's, and the Combined Gas Law — each valid under different held-constant conditions. It's a companion to the Ideal Gas Law Calculator, which instead relates P, V, n, and T within a single state.
Features
Five laws in one tool
Pick the law matching your problem's held-constant conditions.
Solve for any missing variable
Leave one value blank across the two states and it's solved.
Unit conversion
Common pressure, volume, and temperature units, auto-converted.
Absolute-zero validation
Temperatures below 0 K are rejected as physically impossible.
Mathematical Basis & Practical Verification
The Gas Law Calculator is built on IUPAC atomic weights, stoichiometric mole-ratio conservation, ideal and non-ideal gas state equations, and aqueous equilibrium expressions (pH, pKa, Henderson-Hasselbalch, and Ksp). A multi-law gas calculator covering Boyle's Law, Charles's Law, Gay-Lussac's Law, Avogadro's Law, and the Combined Gas Law for before/after two-state problems. Key capabilities built into this tool include boyle's law, charles's law, gay-lussac's law, avogadro's law, and combined gas law.
All computations for the Gas Law Calculator follow the definitions established in IUPAC Compendium of Chemical Terminology ( the "Gold Book" ) (International Union of Pure and Applied Chemistry (IUPAC)) and Standard Atomic Weights & Physical Reference Data (NIST Physical Measurement Laboratory / CIAAW). Because the solver evaluates inputs locally in IEEE 754 double-precision arithmetic (53-bit significand, ~15–17 significant decimal digits) and is regression-tested against deterministic reference fixtures in tests/gas-laws.spec.ts, you can inspect boundary conditions, verify dimensional consistency across chemistry units, and cross-check each intermediate step against textbook solutions.
Related Calculators & Tools
Calculate the molar mass of any chemical formula with a per-element breakdown, percent composition, and mass-to-moles conversion.
Find the empirical and molecular formula of a compound from percent composition or mass data.
Find the limiting reactant, theoretical yield, and leftover excess reagent for any balanced chemical reaction.
Balance any chemical equation instantly using linear algebra, with an atom-count verification table.
Authoritative Sources & Standards
- IUPAC Compendium of Chemical Terminology ( the "Gold Book" ) — International Union of Pure and Applied Chemistry (IUPAC)
- Standard Atomic Weights & Physical Reference Data — NIST Physical Measurement Laboratory / CIAAW
Frequently Asked Questions
Which gas laws does this cover?
Boyle's, Charles's, Gay-Lussac's, Avogadro's, and the Combined Gas Law.
How is this different from the Ideal Gas Law Calculator?
This tool solves before/after two-state problems at constant conditions; the Ideal Gas Law Calculator relates P, V, n, and T directly with a single state.
What units are supported?
Pressure (atm, kPa, mmHg, bar, psi), volume (L, mL, m³, ft³), and temperature (°C, °F, K), all auto-converted.
Does it convert Celsius to Kelvin automatically?
Yes, temperature is always converted to Kelvin internally before solving.
How do I know which law to use?
Pick the law matching what's held constant in your problem (e.g. Boyle's for constant temperature).
Does it show the steps?
Yes, the specific law's rearranged formula with substituted values is shown.
What if I enter a temperature below absolute zero?
It's rejected as physically impossible.