Ideal Gas Law Calculator
Calculate pressure, volume, temperature or amount of gas using the ideal gas law PV = nRT.
Ideal Gas Law Calculator
Enter any three known values, select the quantity you want to calculate, choose the appropriate units, and calculate the missing gas-law variable.
What Is an Ideal Gas Law Calculator?
An Ideal Gas Law Calculator uses the ideal gas equation, PV = nRT, to calculate one unknown property of a gas when the other three properties are known. Depending on the calculation, it can determine pressure, volume, amount of gas or absolute temperature.
The calculator is useful for physics, chemistry and engineering calculations involving gases. It can help students, teachers, laboratory users, engineers and technicians solve ideal-gas problems without manually rearranging the equation or converting every value into SI units.
Why Use Ideal Gas Law Calculator?
The calculator handles the algebra and unit conversions automatically, allowing you to concentrate on the physical quantities involved in the problem.
Calculate Four Variables
Calculate pressure, volume, amount of gas or temperature when the other three quantities are known.
Pressure Units
Use Pa, kPa, MPa, bar, atm, mmHg or psi for pressure inputs and results.
Volume Units
Enter volume in cubic metres, litres, millilitres, cubic centimetres or cubic feet.
Temperature Conversion
Enter temperature in kelvin, Celsius or Fahrenheit with automatic conversion to absolute temperature.
Amount of Gas Units
Use moles, millimoles or kilomoles for the amount of gas.
Automatic Unit Conversion
Inputs are converted into compatible SI units before the ideal gas law is evaluated.
How to Use Ideal Gas Law Calculator
Enter three known properties of the gas and select the property you want the calculator to determine.
- Enter three known values — Provide values for pressure, volume, amount of gas and temperature, leaving the quantity you want to calculate empty.
- Select the input units — Choose the appropriate unit for each value. The calculator converts the inputs automatically.
- Choose the quantity to calculate — Select pressure, volume, amount of gas or temperature from the Calculate menu.
- Calculate the result — Choose the desired result unit and click Calculate to display the missing value.
Ideal Gas Law Formula
The ideal gas law is expressed as PV = nRT. P represents the pressure of the gas, V represents its volume, n represents the amount of gas in moles, R is the universal ideal gas constant, and T represents absolute temperature in kelvin. The universal gas constant used in the SI form of the equation is approximately 8.314462618 J/mol·K.
The equation can be rearranged to find any one of its four variables. For example, pressure can be calculated with P = nRT/V, volume with V = nRT/P, amount of gas with n = PV/RT, and absolute temperature with T = PV/nR.
How to Calculate Using PV = nRT
To calculate an unknown gas property, first identify the three known variables and convert them into compatible units. For example, if 1 mol of gas occupies 0.024465 m³ at 101,325 Pa, the ideal gas equation can be used to determine an absolute temperature of approximately 299.15 K, which corresponds to 26°C.
Pressure, Volume, Temperature and Amount of Gas
The four variables in the ideal gas law are related. For a fixed amount of gas, increasing temperature or decreasing volume increases pressure, provided the other conditions remain unchanged. Similarly, increasing volume reduces pressure at constant temperature and amount of gas. These relationships are described by the ideal gas equation when the gas behaves sufficiently close to ideal conditions.
Ideal Gas Law Calculator Accuracy and Limitations
The calculator uses the universal ideal gas constant and standard conversion factors to convert supported input units before applying PV = nRT. Results are mathematical calculations based on the ideal gas model, and displayed precision depends on the values entered.
Real gases do not behave perfectly ideally under all conditions. Deviations become more significant at high pressures and low temperatures, where intermolecular forces and molecular volume cannot always be neglected. The calculator does not apply real-gas equations of state, compressibility factors or other corrections for non-ideal behaviour. Temperature calculations use absolute temperature, and values at or below absolute zero are not physically valid.
James William Steven Parker
Creator & Developer of YesTools
James William Steven Parker is a web developer and technology professional with extensive experience in web development, web design, SEO, web hosting, systems analysis and cybersecurity. He created YesTools to provide fast, practical and free online tools for everyday tasks and technical work.
Learn more about James and YesToolsFrequently Asked Questions
Explore More Free Tools
Explore the YesTools collection of free online tools, calculators, converters, generators and utilities.
Browse All Categories

