Skip to content

Interactive STEM simulation

Ideal Gas Law Simulator — PV, TV, PT Diagrams Interactive

Explore the ideal gas law with this free online simulator. Adjust pressure, volume, temperature, and moles for helium, nitrogen, and CO₂. Plot PV, TV, and PT diagrams in real time.

⚛️Ideal Gas Law Simulator

⚙️ Controls

1.00 mol
6.02e+23 molecules
300 K
26.9°C
1.00 atm
101.3 kPa
📊 Graph
IDEAL GAS LAW
PV = nRT
1.00 × 24.63 = 1.00 × 0.0821 × 300
24.63 = 24.63 L·atm
⚡ Molecular Data
Internal U:6236 J
v_rms:517 m/s
Degrees of Freedom:5

Community Feedback
0 Comments

Share Your Experience

Loading comments...

Ideal Gas Law Simulator — PV, TV, PT Diagrams Interactive

This ideal gas simulator lets you explore PV = nRT with five gas types — helium, nitrogen, oxygen, CO₂, and water vapor — using animated particles in a resizable piston-cylinder container. Lock any variable (P, V, or T) and adjust the others to observe the corresponding gas law: Boyle's, Charles's, or Gay-Lussac's. A live graph traces state history as PV, TV, or PT diagrams. The bottom panel shows the ideal gas equation with calculated values and molecular properties including internal energy U, v_rms, and degrees of freedom.

What you can do in this simulation

  • Choose from 5 gases: He, N₂, O₂, CO₂, H₂O
  • Lock pressure, volume, or temperature to explore each gas law
  • Adjust amount (0.1–5 mol) and temperature (50–1000 K) or pressure (0.1–10 atm)
  • Switch between PV, TV, and PT diagram views
  • View molecular data: internal energy, v_rms, and degrees of freedom

Concepts covered

ideal gas law · Boyle's law · Charles's law · Gay-Lussac's law · kinetic molecular theory · root mean square speed

Related simulations

Browse all Physics simulations →

Free to use in your browser — no signup required. Found a bug or have an idea to make it better? Tell us.

Finished experimenting?

Save one completion to this browser's signed guest ledger, or directly to your account when signed in.