Skip to content
Chemistry Simple #ideal-gas

Ideal Gas Law

PV = nRT. The combined statement of all simple gas behavior.

A free, animated ideal gas law you can read here or embed on any website, from Scrollchart.

Ideal Gas Law

Ideal Gas Law: PV = nRTPV is linear in T for fixed n. Slope = nR (R = 8.314 J mol⁻¹ K⁻¹). All three classical laws follow.n=0.5n=1n=1.5n=2PV = nRT unifies Boyle (PV const), Charles (V/T const), and Avogadro (V/n const) into one equation. Real gases deviate at high P or low T.

Available in: 日本語

PV vs T at constant n with curves at different molar amounts. Boyle, Charles, Avogadro derive as special cases.

Good for

  • Introductory gas-law lessons unifying Boyle, Charles, and Avogadro
  • Explaining STP molar volume (22.4 L/mol at 273 K, 1 atm)
  • Engineering thermodynamics: real-gas deviations from ideal behavior

Source & accuracy

This ideal gas law is an editorial illustration built to represent the concept accurately. Where it shows figures, they are typical or representative values chosen to make the relationship clear, not a single underlying dataset. The diagram and its explainer are reviewed and maintained centrally, and updated over time as understanding improves.

How ideal gas combines Boyle, Charles, and Avogadro

The ideal gas law, PV = nRT, is a unified statement of three earlier observations. Boyle's law says pressure and volume are inversely related at constant temperature; Charles's law says volume increases with temperature at constant pressure; Avogadro's law says volume is proportional to the number of moles. The ideal gas law wraps all three into one equation where R is a universal constant (0.0821 L atm/mol K), and temperature must be in Kelvin.

Real gases deviate from ideality at high pressure or low temperature when molecules are forced close enough that their size becomes significant, or when intermolecular forces (van der Waals attractions) matter. The ideal gas law is highly accurate for most gases at room temperature and atmospheric pressure, which is why it is so widely used.

Using PV = nRT to solve problems

The law is algebraically flexible. Rearrange to find any unknown: n = PV/RT to find moles, P = nRT/V to find pressure, or T = PV/nR to find temperature. Units must be consistent; if you want pressure in atmospheres and volume in liters, use R = 0.0821. If you want pressure in pascals and volume in cubic meters, use R = 8.314 J/(mol K). A common pitfall is forgetting to convert Celsius to Kelvin; subtracting 273 or 274 is essential.

Practical limits and corrections

At very high pressures (above 10 atm) or very low temperatures (approaching liquefaction), the van der Waals equation is more accurate because it accounts for molecular volume and intermolecular attractions. For most lab and real-world scenarios with air, nitrogen, oxygen, or other common gases at moderate conditions, the ideal gas law is sufficient. Understanding when it breaks down helps avoid calculation errors in engineering and industrial applications.

Embed this diagram

Add this animated ideal gas law to your own site. Copy one line of HTML, or use the embed builder for theme and sizing options.

Reference

What this is
A free, embeddable, animated ideal gas law for any website.
Who uses it
Chemistry educators.
How to embed
Copy one line of HTML. No signup. No watermark. Works in WordPress, Webflow, Ghost, Substack, plain HTML.
File size
iframe embed, ~80 KB gzipped (loads on demand, does not block your page paint).
License
Free forever. Editorial explainer text included; updated centrally over time.

Embed format options

Copy the universal HTML snippet, the WordPress shortcode, or an iframe fallback - see the WordPress plugin page for details. Any format keeps the same Core Web Vitals profile and the same explainer text.

Embed snippet
<div data-scrollchart="gas-laws-chemistry" data-scrollchart-v="1"></div>
<script src="https://scrollchart.com/embed.js" async></script>

Frequently asked questions

Where can I get a free animated "Ideal Gas Law" for my website?
Scrollchart provides "Ideal Gas Law" as a free, embeddable animated diagram you can add to any website with one line of HTML. No signup is required and there is no watermark. The diagram and its explainer text are served from scrollchart.com, so the embed stays current without any maintenance on your end.
How do I embed a ideal gas law in WordPress or a static site?
Paste the HTML snippet from the Scrollchart diagram page into your WordPress post (in HTML/code view), your Webflow embed block, or directly into a static HTML file. No plugin is needed. The diagram loads from scrollchart.com and paints in as the reader scrolls.