LogicCommons is in beta. If a result, label, or reference looks wrong, tell us here; we read every message.
Methodology
Purpose and model boundary
Boyle's law says that when a sealed gas is kept at one temperature, its pressure and its volume change in opposite directions: squeeze the gas into half the space and its pressure doubles. This lab puts a sealed sample of helium in a glass cylinder with a movable piston, held in a 300 K bath. You move the piston and read the pressure on a plot of pressure against volume.
The gas is ideal, the temperature and the amount of gas never change, and only the settled end state of each move counts.
The model is the calculation authority. The page sends the values you set to the model and shows only what it sends back. The page works out no pressure, product or volume itself, and the curve on the plot is drawn through points the model supplies. The cylinder, its moving particles and the plot are drawings of the same sample, not to scale.
Inputs and units
| Input | Meaning and unit |
|---|---|
| Initial absolute pressure | The sample's pressure when it is sealed, in bar, from 0.5 to 4 (default 1). |
| Initial volume | The sample's volume when it is sealed, in L, from 0.5 to 4 (default 2). |
| Final volume | Where you set the piston, in L, from 0.5 to 4 (default 1). |
| Intermediate volume | The first stop of a two-step compression, in L, from 0.5 to 4 (default 1.5). |
| Target pressure | A pressure you want to reach, in bar, from 0.5 to 4 (default 2.5). |
| Your prediction | Your answer to a challenge: a pressure in bar, the piston volume, or for the curve question one of three shapes (default Unanswered). |
| Challenge number | 0 to explore freely, or 1 to 5 for a saved setup (default 0). |
Where each input is set: everything is set on the lab itself. You drag the piston, or use the slider beside the cylinder, and in a pressure question you drag the amber prediction marker on the plot. The lab has no separate input form. In Explore the piston moves 0.05 L at a time, from 0.5 to 4 L, with the sample sealed at 2.00 L and 1.00 bar. In a worked example or a challenge the piston moves 0.05 L at a time and the marker 0.01 bar at a time; the sample is sealed at 2.00 L and 1.00 bar, and the two-step setup stops first at 1.5 L.
Governing relationships
A few words first:
- Absolute pressure: the pressure measured from a perfect vacuum, in bar. One bar is close to the air pressure at sea level.
- Isothermal: at one fixed temperature. The bath keeps the gas at 300 K the whole time.
- Sealed: no gas gets in or out, so the amount of gas stays the same.
The model uses one relationship. For a sealed ideal gas at a fixed temperature, the product of pressure and volume stays the same:
- The product: PV = initial pressure × initial volume, in bar·L.
- Final pressure: P = PV ÷ final volume.
- Intermediate pressure: PV ÷ intermediate volume.
- Volume for the target pressure: PV ÷ target pressure.
So doubling the volume halves the pressure, and halving it doubles the pressure. A plot of pressure against volume is a falling hyperbola, not a straight line.
Calculation sequence
- Check every input (see Validation and status logic).
- Multiply the initial pressure by the initial volume for the product PV.
- Divide PV by the final volume, by the intermediate volume and by the target pressure.
- Work out the curve: the pressure at fifteen piston volumes from 0.5 to 4 L, for the plot.
- If a challenge is loaded, compare your prediction with the model's answer and score the challenge.
- Write out the worked steps with your numbers.
Outputs and interpretation
- Pressure–volume product: PV, in bar·L. It is the same at every piston position.
- Final absolute pressure: the pressure at the piston's volume, in bar.
- Intermediate pressure: the pressure at the first stop, in bar.
- Volume at target pressure: the piston volume that gives the target pressure, in L.
- Pressure–volume curve: the shape of the plot.
- Worked steps: the sealed reference state, then the product held constant with your numbers.
- Challenge: the question, MET or NOT MET, the score, the model's answer and a line on how close you were.
The lab itself shows these readings. In Explore it shows the piston volume, the pressure, the temperature and the curve as you move the piston. In a challenge it shows the pressure reading, the curve, the model answer, the verdict and the score only after you check your answer (the curve question keeps its pressure readings, because you use them to judge the shape), so the results under the lab show only your sample's pressure in Explore and the challenge question, none of which gives the answer away. Neither the lab nor the results show the product PV in Explore.
Challenges
Each challenge asks one question about one setup and scores 100 when your answer is right and 0 when it is not. The five questions are the pressure after the volume doubles to 4 L, the piston volume that gives 2.50 bar, the shape of the pressure–volume curve, the pressure after two compression steps via 1.5 L to 0.75 L, and the pressure after the volume halves to 1 L. You may move the piston in a challenge; a pressure question then asks about the volume you set. A pressure is right within 0.015 bar, and the piston volume for 2.50 bar within 0.005 L, so only 0.80 L is right. The exact wording of each question comes from the model.
The big idea. Pressure comes from the gas particles striking the walls. Squeeze the same particles into half the space and they strike each square of wall twice as often, so the pressure doubles while the product of pressure and volume stays the same.
Validation and status logic
The model checks that the setup is a listed one and that each pressure and volume is a number from 0.5 to 4. If all pass, the status is OK. Otherwise the status reads NOT VALID with the reason, in the model's own words.
Assumptions and limitations
- The gas is ideal: its particles take up no room and do not attract each other. Real gases follow Boyle's law closely only at modest pressures.
- The temperature and the amount of gas are fixed: the piston moves slowly enough for the bath to keep the gas at 300 K, and no gas leaks.
- Only the settled end state of each move counts, not the moment of compression.
- The drawings are schematic: the cylinder, the particles and their motion are not to scale.
Restrictions and non-computing states
- When an input fails a check, the results are empty except for the status.
- In explore mode (challenge 0) the challenge reads No challenge selected and has no score.
- A challenge with no prediction yet reads NOT MET and asks you for your prediction.
Errors and warnings
The status explains each problem in plain words. The wording may change; the checks do not.
If the page cannot reach the model at all, it says so separately. That is a connection problem, not a result of the model.
References
This laboratory is an educational model of a sealed ideal gas at a fixed temperature. It multiplies the initial pressure by the initial volume and divides that product by each new volume (Boyle's law), so pressure and volume are inversely proportional along the isothermal path.
Sources and further reading
- Boyle's law and the pressure–volume relationship of a gas: OpenStax, Chemistry 2e, Rice University, section 9.2, Relating Pressure, Volume, Amount, and Temperature: The Ideal Gas Law. OpenStax
- Gas pressure and its units: OpenStax, Chemistry 2e, Rice University, section 9.1, Gas Pressure. OpenStax
No table or text from either publication is reproduced, and none of their authors or publishers has reviewed or endorses this laboratory.
This laboratory is for learning. Its gas is ideal, and the drawings of the cylinder, the particles and the plot are schematic, not to scale.
Links were current at build time. If one moves, search the document's title rather than reporting a broken link as a defect.
Found a problem, or have an idea?
Tell us if a result looks wrong, a label is unclear, or something is missing. We read every message.