Ideal gas law calculator

Calculate ideal-gas pressure with P = nRT/V using kelvin, cubic meters and moles.

Privacy: runs in your browser

This tool processes your input in this browser. Inputs and results are excluded from analytics. Draft saving is optional and stays on this device; delete saved text with the draft controls. Loading text from a URL is optional and contacts that server; its URL and your IP address are visible to the server. When a button sends your result to another tool, it waits in this tab until that tool opens it, for up to a minute, and is then deleted.

Copy link includes the inputs you choose to share in the address. Anyone with that link can reopen them. Files and generated results are excluded. Password and key tools share settings only.

Example: 1 mol of gas at 273.15 K in 0.0224 m³. Type your own numbers over it.

More options

Pressure (Pa)

101388

More results
Compare with other numbers

Save the current answer, then change an input to compare. This clears when you leave.

Rounding and decimal places

Rounding changes how numbers are shown, not how they are calculated.

Automatic precision rounds answers for reading: up to six significant digits, with whole numbers kept in full. Thousands separators such as 1,000 are accepted; use a dot for decimals.

More
Quick calculator

Use +, −, ×, ÷, parentheses and %. This doesn’t change the tool above.

Keyboard shortcuts

Sharing and starting over

A copied link includes what you entered and your settings, so anyone with it can see them. Leave private text out. Files and results are not included; random draws are made again.

Start over puts the tool back to its starting values and closes any open file or device. Drafts you saved stay on this device until you delete them.

How it works

Ideal gas relation PV = nRT, using R = 8.31446261815324 J/(mol·K). Pressure mode uses cubic meters; amount mode converts liters to cubic meters by dividing by 1,000. Temperature and volume must be positive.

Uses R = 8.31446261815324 J/(mol K), derived from SI defining constants. Pressure is absolute, not gauge. The ideal model can fail for real gases at high density or near condensation.

Next: Pressure calculator

Next: Atoms to moles calculator

Worked example

1 mol of an ideal gas at 273.15 K in a volume of 0.0224 m³ is at a pressure of 101.4 kPa (101,388 Pa).

How the pressure changes with amount

Other inputs keep their starting values: Absolute temperature (K): 273.15; Volume (m³): 0.0224; Input mode: Pressure from amount and volume. Examples only, not recommendations.

Amount (mol)Pressure (Pa)
0.550,694.095182
1101,388.190364
2202,776.380728
Cite this page

ToolOctopus. “Ideal gas law calculator.” Updated . https://tooloctopus.com/ideal-gas-law-calculator.

Add an access date if your instructions require one.

Citation formatting uses citeproc-js by Frank Bennett and Citation Style Language styles. License and source code.

Find a tool

Type a task, a unit pair, a sum or a time zone. ↓ to choose, Enter to open.