PhysSandbox
Classical MechanicsWaves & SoundElectricity & MagnetismOptics & LightGravity & OrbitsLabs
🌙Astronomy & The Sky🌡️Thermodynamics🌍Biophysics, Fluids & Geoscience📐Math Visualization🔧Engineering🧪Chemistry

Related simulators

Continue with similar topics in this category — or all 46 in Thermodynamics.

View category →
FeaturedSchool

Ideal Gas Simulator

Launch Simulator

Bouncing particles in a box. See PV=nRT in action.

NewSchool

Stirling Cycle

Launch Simulator

PV: two isotherms and two isochores; ideal η equals Carnot with a perfect regenerator.

NewSchool

Joule Expansion

Launch Simulator

Ideal gas into vacuum: Q = W = ΔU = 0; ΔS = nR ln 2 when volume doubles.

NewSchool

Gas Mixing & Entropy

Launch Simulator

Two species separated then mixed; ΔS = 2nR ln 2 for equal volumes and moles.

NewSchool

Joule–Thomson Throttling

Launch Simulator

Isenthalpic expansion: ideal gas ΔT = 0; toy μ_JT inversion for real gases.

NewSchool

Refrigeration Cycle (Reverse Carnot)

Launch Simulator

PV loop like Carnot but reversed; COP_R & COP_HP; T_C/T_H in K; symbolic fridge sketch.

PhysSandbox

Interactive physics, chemistry, and engineering simulators for students, teachers, and curious minds.

Physics

  • Classical Mechanics
  • Waves & Sound
  • Electricity & Magnetism

Science

  • Optics & Light
  • Gravity & Orbits
  • Astronomy & The Sky

More

  • Thermodynamics
  • Biophysics, Fluids & Geoscience
  • Math Visualization
  • Engineering
  • Chemistry

© 2026 PhysSandbox. Free interactive science simulators.

PrivacyTermsContact
Home/Thermodynamics/Gas Laws Interactive

Gas Laws Interactive

Boyle's, Charles's, Gay-Lussac's laws with interactive piston.

Law (ideal gas, nR = 1)

Boyle: PV = const at constant T. Charles: V/T = const at constant P. Gay-Lussac: P/T = const at constant V.

Variables

300
56

Measured values

P = nRT/V5.357
V56.0
T300
PV300.0
V/T0.187
P/T0.0179

About this model

The Gas Laws Interactive simulator visualizes the fundamental relationships between pressure, volume, and temperature for a fixed amount of an ideal gas. It centers on three core empirical laws: Boyle's Law (pressure inversely proportional to volume at constant temperature, P₁V₁ = P₂V₂), Charles's Law (volume directly proportional to absolute temperature at constant pressure, V₁/T₁ = V₂/T₂), and Gay-Lussac's Law (pressure directly proportional to absolute temperature at constant volume, P₁/T₁ = P₂/T₂). These are unified in the Combined Gas Law: (P₁V₁)/T₁ = (P₂V₂)/T₂. The simulation models an ideal gas confined in a cylinder by a movable, frictionless piston, allowing users to manipulate one variable while holding another constant and observing the system's response. Key simplifications include treating the gas as ideal (neglecting intermolecular forces and particle volume), assuming a fixed number of gas particles (closed system), and ignoring real-world effects like friction and heat loss. By interacting with the piston and temperature controls, students learn to predict and explain macroscopic gas behavior through particle-level reasoning, connecting the motion and collisions of molecules to measurable properties like pressure. The simulator reinforces the critical concept of absolute temperature (Kelvin) and provides a concrete foundation for understanding the Ideal Gas Law, PV = nRT.

Who it's for: This simulator is most beneficial for high school and introductory college physics or chemistry students first learning thermodynamic relationships, as well as educators seeking a dynamic visual aid for classroom demonstrations.

Key terms

  • Pressure
  • Volume
  • Absolute Temperature (Kelvin)
  • Ideal Gas
  • Boyle's Law
  • Charles's Law
  • Gay-Lussac's Law
  • Combined Gas Law

How it works

Ideal monatomic gas in model units with nR = 1, so PV = T. Boyle holds temperature and changes volume — pressure tracks like 1/V. Charles holds pressure and warms the gas — volume grows linearly with T. Gay-Lussac holds volume and heats — pressure grows linearly with T. The piston height tracks volume; gas color tracks temperature.

Key equations

PV = nRT ··· here nR ≡ 1
Boyle: PV = const · Charles: V/T = const · Gay-Lussac: P/T = const

Frequently asked questions

Why does the temperature have to be in Kelvin?
The gas laws are based on direct proportionality to absolute temperature. The Kelvin scale starts at absolute zero, where molecular motion theoretically ceases, ensuring that ratios like V/T or P/T are mathematically and physically valid. Using Celsius or Fahrenheit would give incorrect results.
What is being held constant in each law?
Boyle's Law holds temperature constant. Charles's Law holds pressure constant. Gay-Lussac's Law holds volume constant. The Combined Gas Law allows all three variables to change together for a fixed amount of gas.
What is an 'ideal gas' and is it realistic?
An ideal gas is a simplified model where gas particles have negligible volume and no intermolecular forces. Real gases behave similarly to ideal gases under many everyday conditions of moderate temperature and low pressure, but deviate at high pressure or low temperature.
How does pushing the piston down increase pressure?
Reducing the volume forces the same number of gas particles into a smaller space. This increases the frequency of their collisions with the container walls. Since pressure is force per area from these collisions, more frequent collisions result in higher pressure.