Calculators.Life Calculator
Physics

Ideal Gas Law Calculator

Input Parameters

Scenarios
Absolute pressure exerted by the gas
Volume occupied by the gas
Molar quantity of the gas
Temperature of the gas

Computed Results

Calculated Value (in selected unit)
101,324.8623
Pressure (Pa)101,324.8623
Volume (m³)0.0224
Amount (moles)1
Temperature (K)273.15
Thermal Energy Factor (nRT, Joules)2,271.0955

The ideal gas law calculator determines the missing variable—pressure, volume, temperature, or amount of substance (moles)—in a hypothetical ideal gas system. By applying the PV = nRT equation, this tool helps physics and chemistry students quickly solve gas state problems across various measurement units without manual conversions.

Verified Calculation Scenarios

Here are examples of how the calculator processes different variables using the ideal gas law equation.

Calculate Volume for a Small Gas Sample

If you need to find the volume of a gas and know the pressure is 1.5 atm, the amount is 0.05 moles, and the temperature is 25 °C, set the calculator to solve for volume. The calculator converts these inputs to standard SI units internally and determines the volume is 815.513457 mL.

Determine Moles in a High-Pressure Tank

To find the amount of substance in a 50 L tank pressurized to 200 bar at 300 K, set the calculator to solve for the amount of substance (n). The result is 400.90785 moles, with a thermal energy factor of 1,000,000 Joules.

Calculate Required Temperature

If a system contains 10 moles of gas in a 2 cu_ft container at 30 psi, solving for temperature yields -206.067552 °F. The calculator handles the complex conversions from psi and cubic feet into standard SI units before calculating the final temperature.

Formula and Calculation Method

The calculator is built on the fundamental ideal gas law equation, which relates the pressure, volume, temperature, and amount of an ideal gas.

P × V = n × R × T

Where:

Depending on which variable you choose to calculate, the tool rearranges the formula:

All inputs are first converted to standard SI units (Pascals for pressure, cubic meters for volume, and Kelvin for temperature) to perform the calculation, and then converted back to your selected output unit.

How to Use the Calculator

Follow these steps to solve your gas law problem:

  1. Select the target variable: Use the "Calculate" dropdown to choose whether you want to solve for Pressure (p), Volume (v), Amount of Substance (n), or Temperature (t).
  2. Enter known values: Input the numbers for the remaining three variables.
  3. Select units: Choose the appropriate units for your inputs (e.g., atm, kPa, liters, Celsius). The calculator will handle all necessary conversions automatically.
  4. Review the results: The primary output will display the calculated value in your chosen unit. The tool also provides the SI unit equivalents and the thermal energy factor (nRT) in Joules.

Inputs and Outputs

Below is a summary of the data fields used in this calculator.

Field NameTypeDescription
CalculateInputThe variable to solve for (Pressure, Volume, Amount, or Temperature).
PressureInputThe absolute pressure exerted by the gas.
VolumeInputThe physical space occupied by the gas.
Amount of Substance (n)InputThe molar quantity of the gas.
TemperatureInputThe temperature of the gas.
Calculated ValueOutputThe final result for the selected missing variable, displayed in the chosen unit.
Thermal Energy FactorOutputThe product of n, R, and T (equivalent to P × V), expressed in Joules.

Practical Use Cases

The ideal gas law is a cornerstone of thermodynamics and physical chemistry. Common applications include:

Frequently Asked Questions

What value of the universal gas constant (R) does this calculator use?

The calculator uses the standard value of 8.31446261815324 J/(mol·K). To use this constant, the calculator internally converts all pressure inputs to Pascals and all volume inputs to cubic meters.

Do I need to convert Celsius or Fahrenheit to Kelvin manually?

No. You can input the temperature directly in Celsius or Fahrenheit. The calculator automatically converts these values to Kelvin (absolute temperature) before performing the ideal gas law calculation.

What does the Thermal Energy Factor output mean?

The Thermal Energy Factor represents the product of the amount of substance, the gas constant, and the temperature (n × R × T). According to the ideal gas law, this is mathematically equal to the pressure-volume product (P × V) and is expressed in Joules.

Author portrait
About the Author
Arnab Biswas

Calculator developer and SEO strategist who builds practical online calculators and tests calculation logic, input handling, and expected results using real-world scenarios.