Boyle’s Law Calculator

Calculate pressure or volume instantly using P₁V₁ = P₂V₂. Choose units, adjust sliders, and view a live PV curve. Add uncertainty, presets, and non‑ideal Z/vdW. Export results, print, or share a permalink. Includes Combined Gas Law, batch CSV mode, sig‑fig formatting, and unit conversions. Accessible design works offline and supports screen readers. Mobile friendly.

Inputs

Context only for Boyle; used in Combined Law & vdw.



Units consistent with a (L²·bar·mol⁻²) and b (L·mol⁻¹).
vdw solves only when unknown is P₂ or V₂ (isothermal). Requires n and T.

Batch mode (CSV)

Upload CSV with headers: P1,V1,P2,V2,Punit1,Vunit1,Punit2,Vunit2,Unknown. Leave the unknown column empty for the value to compute. (Ideal or Z mode only.)

Results

PV = —
Unknown solved
Value
PV check
% change
Insight
PVRatio
Initial
Final

Step‑by‑step derivation

Enter values to see the algebra and unit cancellation.

Uncertainty (±, basic % method)

Provide ±% inputs to estimate result uncertainty.

Isotherm plot (P vs V)

Pressure conversions (P₁)

    Volume conversions (V₁)

      Applicability & limitations: Boyle’s Law assumes constant temperature and moles (isothermal, closed system). Real gases deviate at high pressure / low temperature. Use the Z option for a first‑order correction or the van der Waals panel for advanced cases.

      How this Boyle’s Law Calculator Works

      This tool applies the isothermal gas relationship P₁V₁ = P₂V₂, which holds for a fixed amount of gas at constant temperature. Enter any three known values and select the unknown (P₂, V₂, P₁, or V₁). The calculator converts all inputs into consistent SI units behind the scenes, performs the algebra, and then displays the result in your chosen units. Because pressure and volume are inversely related at constant temperature and moles, increasing pressure compresses the gas (smaller volume), while decreasing pressure allows expansion (larger volume).

      Formula, Variables, and Units

      Boyle’s Law is typically written as P₁V₁ = P₂V₂. Here, P represents pressure and V volume. Common pressure units include Pa, kPa, MPa, bar, atm, Torr/mmHg, and psi. Volume units include m³, L, mL, ft³, and in³. The calculator is unit-aware: it accepts any combination and ensures proper conversion before solving. You can optionally display results in scientific notation and control significant figures, including trailing zeros for lab-style reporting.

      SymbolQuantityTypical UnitsNotes
      P₁, P₂Pressure (initial/final)atm, bar, kPa, Pa, psi, TorrUse the unit selectors; conversions are automatic.
      V₁, V₂Volume (initial/final)L, mL, m³, ft³, in³Works with both metric and imperial units.
      TTemperature (context)K, °CConstant for Boyle’s Law; used if switching to the Combined Gas Law.
      ZCompressibility factorFirst-order non-ideal correction when gases deviate from ideal behavior.

      Using the Interface Efficiently

      Choose the unknown, type known values, and adjust the sliders for quick “what-if” exploration. The PV badge shows the product (or PV/(TZ) in Combined mode), helping you verify internal consistency. The isotherm plot updates in real time and displays tooltips with the current P, V, and PV product at the cursor point. Scenario presets (SCUBA, syringe, balloon, lung, piston) instantly populate realistic values. Uncertainty fields (±%) propagate a basic percentage estimate into the final answer for quick error awareness.

      Worked Example

      Suppose P₁ = 1.00 atm and V₁ = 2.00 L. If the gas is compressed to P₂ = 1.33 atm, Boyle’s Law predicts the new volume: V₂ = (P₁V₁)/P₂ = (1.00 × 2.00)/1.33 ≈ 1.50 L. The calculator performs this with correct unit handling and lets you compare ratios P₂/P₁ and V₂/V₁.

      StatePressureVolumePV ProductRatios
      Initial1.00 atm2.00 L2.00 atm·L
      Final1.33 atm1.50 L2.00 atm·LP₂/P₁ = 1.33, V₂/V₁ = 0.75

      Beyond the Ideal Assumption

      At high pressures or low temperatures, real gases deviate from ideal behavior. Use the Z toggle for a simple correction, or enable the van der Waals option (requires n and T) to compute P₂ or V₂ under isothermal conditions with the vdW equation. If temperature changes are significant, switch to the Combined Gas Law mode to incorporate T₁ and T₂ properly.

      Saving and Sharing Your Work

      Use the export buttons to download input data, a batch CSV of results, and the PV plot image. Print to PDF for a clean report of inputs, steps, and outputs. The permalink encodes your settings so the exact scenario can be reopened or shared with classmates or colleagues.

      Related Calculators

      Picture Frame CalculatorHR Software ROITRIRVA DisabilityPension Present ValueAuto Loan CalculatorPercent Error CalculatorEmpirical Formula CalculatorMolecular Weight (ChemCalc.org)pKa Prediction Tool (Chemicalize)

      Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.