Boyle's Law Calculator
Find the volume of a gas after a pressure change.
Result
How it is calculated
Boyle's law says that for a fixed amount of gas at constant temperature, pressure times volume stays constant: P₁ × V₁ = P₂ × V₂. The tool solves for the new volume, V₂ = P₁ × V₁ / P₂, and shows it with four decimals. The two pressures must use the same unit (atm, kPa, bar and so on) and the answer comes out in whatever volume unit you used for V₁. All three values must be greater than zero. Pressure here must be absolute pressure, not gauge pressure. The law holds for ideal gases; real gases deviate at high pressure or very low temperature, and the temperature and amount of gas must not change.
Worked example
A gas occupies 6 L at 2 atm. It is compressed to 3 atm at the same temperature. V₂ = (2 × 6) / 3 = 12 / 3 = 4.0000 L. Pressure rose by a factor of 1.5, so volume fell to 1/1.5 of its value, which is two-thirds, and 6 × 2/3 = 4.
Common mistakes
- Using gauge pressure (the reading on a tyre gauge) instead of absolute pressure, which adds about 1 atm.
- Mixing pressure units, such as P₁ in atm and P₂ in kPa.
- Applying the law when the temperature changes; then the combined gas law is needed.
- Mistaking the inverse relationship for a direct one and expecting volume to rise when pressure rises.
- Using it when gas is added or leaks out, since the amount must stay fixed.
Sources
- 9.2 Relating Pressure, Volume, Amount, and Temperature: The Ideal Gas Law (Chemistry 2e) — OpenStax, Rice University
About this calculator
Boyle's law states that for a fixed amount of ideal gas at constant temperature, pressure and volume are inversely proportional: P₁V₁ = P₂V₂. Compress the gas into a smaller volume and its pressure rises proportionally; let it expand and pressure falls — a relationship discovered by Robert Boyle in 1662 and one of the founding gas laws that later combined into the ideal gas law (PV = nRT).
Chemistry and physics students use it as an entry point into gas behavior, but it's also practically important for scuba divers (understanding how air in the lungs and tank expands or compresses with depth, which is why divers are taught never to hold their breath while ascending), and for engineers working with compressed gas systems, syringes, and pneumatics.
Was this helpful?
You can pick up to 3 reactions.
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
- Loan Calculator
- Profit Calculator
- Discount Calculator
- BMI Calculator
- Percentage Calculator
- Ideal Weight Calculator
- Age Calculator
- Pregnancy Due Date Calculator
- Compound Interest Calculator
- BMR Calculator (Basal Metabolic Rate)
- Tip Calculator
- Fuel Cost Calculator
- Date Difference Calculator
- Sleep Cycle Calculator
- Daily Water Intake Calculator
- Simple Interest Calculator
- Heart Rate Zones Calculator
- Running Pace Calculator
- Pet Age Calculator
- Calories Burned Calculator
- Macro Calculator
- TDEE Calculator (Total Daily Energy Expenditure)
- Waist-to-Hip Ratio Calculator
- Honor Roll Calculator
- One Rep Max (1RM) Calculator
- Ovulation Calculator
- Electricity Cost Calculator
- Unit Price Calculator
- Savings Goal Calculator
- Break-Even Point Calculator
- Paint Calculator
- Course Grade Average Calculator
- Business Days Calculator
- Time Duration Calculator
- Fuel Economy Calculator
- Temperature Converter
- Tile Calculator
- Aspect Ratio Calculator
- Roman Numeral Converter
- Goal Weight Timeline Calculator
- Salary Converter (Hourly to Annual)
- Credit Card Validator (Luhn)
- Body Surface Area (BSA) Calculator
- Feels-Like Temperature Calculator
- Ohm’s Law Calculator
- PPI (Pixel Density) Calculator
- Molar Mass Calculator
- Zodiac Sign Calculator (Western + Chinese)
- IBAN Validator
- Shoe Size Converter
- Country Info & Dialing Code Lookup
- Time Zone Difference (World Clock)
- CAGR (Compound Annual Growth Rate) Calculator
- Rule of 72 Calculator
- Blood Alcohol Content (BAC) Calculator
- Lean Body Mass (LBM) Calculator
- Pythagorean Theorem Calculator
- Speed Converter
- Download Time Calculator
- Date Calculator (Add/Subtract)
No calculators found
Comments (1)
A feel for it: a 10 L balloon at the surface (1 atm absolute) taken about 10 m under water, where the pressure is roughly 2 atm absolute, shrinks to 5 L. The tool only solves for the new volume. To find a missing pressure instead, rearrange to P2 = P1 × V1 / V2 yourself. Which situation are you modelling, a syringe, a diving problem or a lab experiment?