QuestionStates of matter
What Is Boyle's Law? Formula, Graph and Examples

Boyle’s law says that, at constant temperature, the pressure of a fixed amount of gas is inversely proportional to its volume. If the volume is halved, the pressure doubles. Robert Boyle published the relationship in 1662, and it is written as P1V1 = P2V2.
Contents
The full answer
Boyle’s law describes what happens when a gas is squeezed or allowed to expand while its temperature stays the same. Pressure (P) and volume (V) move in opposite directions by the same factor. The product of pressure and volume stays constant, so P × V has the same value before and after the change.
The law is written as follows.
P1 × V1 = P2 × V2
P1 and V1 are the starting pressure and volume, and P2 and V2 are the final values. The same amount of gas and the same temperature must apply to both states. Pressure may be in kilopascals or atmospheres, and volume in liters or milliliters, as long as each side uses matching units.
Example: a syringe holds 20 mL of air at 100 kPa. When the plunger is pushed in so the volume becomes 10 mL, the equation gives 100 kPa × 20 mL = P2 × 10 mL, so P2 = 200 kPa. The pressure doubled because the volume halved. The same reasoning works in reverse for expansion. If the plunger is then pulled back to 40 mL, the pressure falls to 50 kPa, because 100 kPa × 20 mL = P2 × 40 mL gives P2 = 50 kPa. Doubling the volume halves the pressure, and the product of pressure and volume never changes.
Boyle’s law is a model that works well for real gases at ordinary conditions. Real gases deviate when they are compressed very hard, because the particles then take up a noticeable share of the space and attract one another. For school calculations the simple law is accurate enough, and it is the first step in understanding the wider gas laws.
The science behind it
Gas pressure comes from particles colliding with the walls of their container. Each collision pushes a tiny amount of force against the wall, and the total force divided by the wall area is the pressure. At a fixed temperature the particles keep the same average speed, so the size of each collision stays the same.
When the gas is compressed into a smaller volume, the particles have less room to travel before they reach a wall. They therefore hit the walls more often each second. More collisions per unit area means higher pressure. Expanding the gas has the opposite effect: collisions become less frequent and the pressure falls.
This explains the shape of the graphs. A graph of pressure against volume is a curve that falls steeply and then flattens out, because the product PV is constant. A graph of pressure against 1/V, the inverse of volume, is a straight line through the origin, which is the easiest way to show that the relationship is inverse.
An everyday example
Boyle’s law shows up in many everyday places. A syringe is the classic example: pulling the plunger out increases the volume and lowers the pressure inside, which lets fluid be drawn in. Pushing the plunger in does the opposite, and the air inside feels springy because its pressure rises. This is also why a bicycle pump needs more effort near the end of each stroke.
A sealed snack bag swells when it is taken on a plane. The air outside the bag is at lower pressure at cruising altitude, so the gas inside pushes the bag outward until its pressure balances again. Air bubbles rising through a lake also grow as they go up, because the water pressure around them falls, and the air inside expands to match.
Breathing uses the same principle. When the chest muscles enlarge the chest, the volume of the lungs increases and the pressure inside drops below the outside air pressure. Air then flows in. The reverse happens when the chest gets smaller during breathing out.
Who discovered Boyle’s law?
Robert Boyle, an Irish-born chemist and natural philosopher, published the law in 1662. He used a J-shaped glass tube closed at the short end, trapped air in the tube, and added mercury to change the pressure. His assistant Robert Hooke helped build the apparatus. The French physicist Edme Mariotte found the same relationship independently in 1676, which is why many textbooks give both names.
Common misconceptions
Misconception 1: Boyle’s law works at any temperature. It works only when the temperature is held constant. If the temperature rises during compression, the pressure rises more than the law predicts, and Charles’s law also comes into play.
Misconception 2: Pressure and volume rise together. They move in opposite directions. Students sometimes write P × V on one side and P ÷ V on the other, so check the direction of the change before calculating.
Misconception 3: The law applies to liquids and solids. Gases can be squeezed a long way, but liquids and solids barely change volume under pressure. Boyle’s law is a property of gases. The reason is that gas particles are far apart, so compressing a gas removes empty space. Liquid and solid particles already touch, so there is little space to remove.
Frequently asked questions
What is Boyle’s law in simple words?
Boyle’s law says that if you squeeze a gas at a constant temperature, its pressure goes up. If you let it expand, the pressure goes down. Pressure and volume always change in opposite directions.
What is the formula for Boyle’s law?
The formula is P1V1 = P2V2, where P is pressure and V is volume before (1) and after (2) the change. The temperature and the amount of gas must stay the same. Both pressure units and volume units must match on each side.
Who discovered Boyle’s law?
Robert Boyle published the law in 1662 after experiments with a J-shaped glass tube and mercury. The French physicist Edme Mariotte found the same relationship independently in 1676. Many textbooks call it Mariotte’s law as well.
What does a Boyle’s law graph look like?
A graph of pressure against volume is a curve that falls steeply and then flattens out. A graph of pressure against 1/volume is a straight line through the origin. The straight line shows the inverse relationship most clearly.
Why does a balloon get bigger when you go up a mountain?
At higher altitude the air pressure outside the balloon is lower. The gas inside pushes outward and expands until its pressure matches the outside pressure again. This is Boyle’s law at constant temperature.
Sources and further reading
- OpenStax, "Chemistry 2e"
- IUPAC, "Gold Book" (Compendium of Chemical Terminology)
Cite this page
“What Is Boyle's Law? Formula, Graph and Examples.” Atoms & Forces, https://science.bigworldlist.com/questions/what-is-boyles-law/.
More about Gas laws
- ChemistryGas Laws: Boyle's, Charles's and the Ideal Gas Law Explained
- QuestionWhat Is Avogadro's Law? Formula, Meaning and Examples
- QuestionWhat Is Charles's Law? Formula and Real-Life Examples
- QuestionWhat Is STP in Chemistry? Standard Temperature and Pressure
- QuestionWhat Is the Ideal Gas Law? PV = nRT Explained With Examples