A thermodynamic processes calculator works out the work, the heat and the change in internal energy of an ideal gas in four basic processes: constant volume, constant pressure, constant temperature and no heat exchange. Choose the process and the gas, enter the amount of gas and the starting temperature, then the final temperature or the volume ratio.
How to use the thermodynamic processes calculator
- Choose the process and the gas.
- Enter the amount of gas and the starting temperature.
- Enter the final temperature or the volume ratio.
- Press Calculate.
The first law
The first law is ΔU = Q − W, where ΔU is the change in internal energy, Q the heat added to the gas and W the work done by the gas [1]. The calculator also uses ΔU = C_v n ΔT and C_p = C_v + R, with C_v the molar heat capacity at constant volume, n the amount of gas and R = 8.3144598 joules per mole kelvin [2]. The calculator follows these conventions.
Heat capacity of the gas
The tool uses C_v = 3/2 R for a monatomic gas, 5/2 R for a diatomic gas and 3 R for a polyatomic gas. The heat capacity ratio γ is C_p ÷ C_v, and adding R gives 5/3 for monatomic and 7/5 for diatomic gases, the values given for ideal gases [2]. The 3 R and 4/3 figures for a polyatomic gas are our own working for a gas with six active degrees of freedom. You can also enter your own C_v, for example 20.814 for nitrogen.
Isochoric process
At constant volume the gas does no pressure-volume work, so W = 0 and Q = ΔU = C_v n ΔT [4]. The ideal gas law gives p₁ ÷ T₁ = p₂ ÷ T₂. Heating one mole of a monatomic gas from 300 to 375 kelvin takes 935.38 joules, and the pressure rises by a factor of 1.25. A pressure rise from 100 to 125 kilopascals at 300 kelvin likewise gives a final temperature of 375 kelvin.
Isobaric process
At constant pressure the volume follows V₁ ÷ T₁ = V₂ ÷ T₂, the work is W = p ΔV [5], the heat is Q = C_p n ΔT and ΔU = C_v n ΔT. We write W = n R ΔT, using the ideal gas law, which is our own step. A nitrogen example has 24.375 moles heated from 250 to 300 kelvin with C_v = 20.814: ΔU is 25.367 kilojoules, W is 10.133 kilojoules and Q is 35.500 kilojoules.
Isothermal process
At constant temperature, an ideal gas has ΔU = 0 and Q = W [3], with p₁ V₁ = p₂ V₂, and the work done by the gas is W = n R T ln(V₂ ÷ V₁). Doubling the volume of one mole at 300 kelvin gives W = 1,728.9 joules, all of it taken in as heat, and halves the pressure. A ratio below 1 is a compression, and the work and the heat are then negative.
Adiabatic process
With no heat exchange, Q = 0, so W = −ΔU, and p₁ V₁^γ = p₂ V₂^γ [6]. Combined with the ideal gas law, that gives T V^(γ−1) constant [6], which is how the calculator finds the final temperature. One mole of a diatomic gas at 300 kelvin that is doubled in volume cools to 227.36 kelvin, and its internal energy falls by 1,510 joules.
Signs and conventions
Work is counted as positive when the gas does work on its surroundings, that is when it expands. Heat is positive when it flows into the gas. A negative ΔU means that the gas has lost internal energy. Because ΔU = Q − W, any two of the three results fix the third, and the calculator prints all three so that you can check the sum.
Choosing the inputs
You need the amount of gas in moles. If you only know the pressure, volume and temperature, the ideal gas law n = p V ÷ (R T) gives it. For example, 101.325 kilopascals, 0.5 cubic metres and 250 kelvin make about 24.375 moles. The ideal gas law calculator on this site can do the same step before you use this page.
Limits
The model is an ideal gas with constant heat capacities and a reversible process. Real heat capacities change with temperature, and a fast, irreversible process loses work to friction and turbulence. Polyatomic values depend on the gas. Use the results for study and estimates, and use gas tables and a full model for engines, compressors and design.
A quick check of the first law
For every process, the three results must obey ΔU = Q − W [1]. In the nitrogen example, 35.500 kilojoules of heat less 10.133 kilojoules of work leaves 25.367 kilojoules of internal energy, which is what the calculator prints. In the isochoric case, the work is zero and the heat equals the energy change. In the isothermal case, the energy change is zero and the heat equals the work. These patterns help you spot a wrong input.
Which process to choose
Choose the isochoric option for a gas in a rigid, closed container that is heated or cooled. Choose the isobaric option for a gas under a freely moving piston at constant pressure. Choose the isothermal option for a slow expansion or compression in contact with a heat bath, and the adiabatic option for a fast one, or one in a well-insulated cylinder. Real devices lie between the last two, and the volume ratio you enter fixes the end state.
Related rows
Searches for an isothermal process calculator, an adiabatic process calculator or an isobaric process calculator all lead to the same four relations, which are collected in this one page, with the heat capacity set by the type of gas or by your own C_v.
Common mistakes
- Using Celsius. Enter the temperatures in kelvin.
- Entering the final volume instead of the ratio. Give V₂ divided by V₁.
- Mixing the sign of the work. Work done by the gas is positive.
- Using a monatomic gas for air. Air is nearly diatomic.
What next
Use this often? Add Thermodynami to your Home screen.
Frequently asked questions
What is a thermodynamic processes calculator?
A tool that finds work, heat and internal energy change of an ideal gas in four basic processes.
What is the first law of thermodynamics?
ΔU = Q − W: the change in internal energy equals the heat added minus the work done by the gas.
What is work in an isothermal process?
W = n R T ln(V₂ ÷ V₁), and the heat equals the work.
What happens to heat in an adiabatic process?
No heat is exchanged, Q = 0, so the work equals the fall in internal energy.
Which heat capacities does the calculator use?
3/2 R, 5/2 R and 3 R for monatomic, diatomic and polyatomic gases, or your own C_v.
Sources
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.