Ideal Gas Law Calculator
Solve the ideal gas law for P, V, n, or T with SI units. Runs locally in your browser.
Trust summary CVP VERIFIED · CVP protocol 1.0.0-proposed · Engineering assurance
- Input interpretation
- Enter values to calculate.
- Result
- —
- Assurance
- Engineering
- Declared partition coverage
- PASS · 2/2 declared partitions (ideal-gas, invalid-domain) · Matrix
- Known limitations
- Ideal gas; CODATA R default
- Core CVP does not include live graph, viewport, or pointer interaction.
- Model
- Ideal gas solve for P|V|n|T.
- Scope
- Ideal gas; SI R
- Verification
- Engine tested · Source checked · v1.0.0 · CVP VERIFIED · CVP protocol 1.0.0-proposed · Engineering assurance· View Manifest · CVP overview · Specification
- Versions
- Calculation 1.0.0 · CVP protocol 1.0.0-proposed
- CVP identity
- 1/1 property · digest 509cb6233acc
- Legacy regression
- 3/3 tests · Production surface contract 3/3
- Reference
- O1 model · O2 expected_values · O2 numerical_behavior
- Interfaces
- PASS · UI (SSR) / REST / MCP
- Supplemental domain review
- Internal · Pass
- Named expert review
- Not performed
- CVP suite
- 1/1 golden · 1/1 CVP boundary · 1/1 invalid · 1/1 property · 1/1 cross-interface · 1/1 CVP contract · Manifest
- Sources
- SI CODATA gas constant
- Intro thermodynamics / kinetic theory texts
- Evidence
- 1 legacy golden · 1 legacy boundary · legacy regression suite · 1/1 oracle-backed golden · 1/1 invalid · Artifact integrity PASS · CalculatorX electrical review
- Semantic contract
- PASS
Full verification
Formulas
Core equations used by this calculator.
How to use
Choose which variable to solve
Solve for P, V, n, or T from PV = nRT.
Enter the three known quantities
Use absolute temperature (K) and consistent SI pressure/volume units.
Read the unknown
R is the molar gas constant used by this tool’s unit set.
Example calculations
Common configurations with formula and result.
1 mol · 273.15 K · 0.022414 m³
≈1 atm
Ideal Gas Law calculator specification
Version 1.0.0 · Engine tested · Supplemental domain review · Internal · 2026-08-09
- Engine tested 3/3 tests · Production surface contract 3/3
- Supplemental domain review Internal · Pass · 2026-08-09
- Named expert review Not performed
- Calculation version 1.0.0
Review policy · Evidence · Reviewed by CalculatorX electrical review
- Definition
- PV = nRT with R = 8.314462618 J/(mol·K). Choose which quantity to solve for.
- What it calculates
- Ideal gas solve for P|V|n|T.
- Inputs
- mode
- P,V,n,T as needed
- Outputs
- solved quantity + state
- Formula
PV=nRT- Assumptions
- Ideal gas; SI R
- Units
- Pa, m³, mol, K
- Boundary conditions
- P,V,n,T ≤0 → VALUE_MUST_BE_POSITIVE
- Example
- n=1 T=273.15 V=0.022414 → ~1 atm
- Validation cases
1 published on this page · 3/3 tests · Production surface contract 3/3 · View evidence
- P n=1 T=273.15 V=0.022414 → P≈101325 Pa
- Sources
- SI CODATA gas constant — Ideal gas lawSupports: PV=nRT
- Intro thermodynamics / kinetic theory texts — Ideal gas lawSupports: PV = nRT
- SI CODATA gas constant — Ideal gas law
- Last reviewed
- 2026-08-09
- Reviewed by
- CalculatorX electrical review
- Calculation version
- 1.0.0
Background
Interpretation and common distinctions.
Solve the ideal gas law.
Supported and not supported
Supported — Four solve modes · API physics.thermo.ideal_gas
Not supported — Real-gas EOS, mixtures, humidity
Agent / API notes
Capability id: physics.thermo.ideal_gas · tool id: ideal-gas · pin 1.0.0.
Related tools
Other calculators in this family: Celsius↔Kelvin, PSI↔Bar .
Frequently asked questions
Key distinctions behind the calculation.
Which R?
Default is SI molar gas constant 8.314462618 J/(mol·K). Override with input R if needed.