molecalculator

Moles & Molar Mass

How to Find Enthalpy of a Gas

Calculator No. 01-7783 · Updated · Formula and assumptions shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

This calculator finds the enthalpy change of an ideal gas when its temperature changes from one value to another at constant pressure. You enter the number of moles, the constant-pressure heat capacity (Cp), and the initial and final temperatures; the calculator returns the enthalpy change in joules (or kilojoules). This is the practical way to find the enthalpy of a gas for heating, cooling, and flow processes, because for an ideal gas enthalpy depends only on temperature, not on pressure or volume.

Formula

For a gas that behaves ideally, the change in enthalpy when it is heated or cooled at constant pressure is:

ΔH = n × Cp × (T₂ − T₁)

where:

  • ΔH = change in enthalpy (joules, J)
  • n = amount of gas (moles, mol)
  • Cp = molar heat capacity at constant pressure (J/(mol·K))
  • T₁ = initial temperature (kelvin, K)
  • T₂ = final temperature (kelvin, K)

Because the temperature difference in kelvin equals the temperature difference in degrees Celsius, you can use °C values directly in the subtraction. The calculator does exactly that. If you need the absolute enthalpy (H) rather than the change, you must know a reference enthalpy (usually taken as 0 at 298.15 K for elements in their standard state). This page focuses on the change, which is what most practical problems ask for.

Worked Example

Using the default values from the calculator: n = 1.00 mol, Cp = 29.10 J/(mol·K), T₁ = 25.0 °C, T₂ = 125.0 °C.

Step 1: Find the temperature difference.

ΔT = T₂ − T₁ = 125.0 − 25.0 = 100.0 °C = 100.0 K

Step 2: Multiply by the amount of gas and the heat capacity.

ΔH = 1.00 mol × 29.10 J/(mol·K) × 100.0 K = 2910 J

Step 3: Convert to kilojoules.

ΔH = 2910 J / 1000 = 2.910 kJ

The calculator shows ΔH = 2910 J and ΔH in kJ = 2.910 kJ. Note that the default Cp of 29.10 J/(mol·K) is close to the value for nitrogen gas at room temperature (about 29.1 J/(mol·K)). For a monatomic ideal gas like helium or argon, Cp is about 20.8 J/(mol·K); for a diatomic gas like oxygen, it is about 29.4 J/(mol·K) at 25 °C.

Assumptions

  • The gas behaves ideally (no intermolecular forces, negligible molecular volume).
  • The heat capacity Cp is constant over the temperature range. In reality, Cp varies with temperature, so this is an approximation for moderate temperature changes.
  • The process occurs at constant pressure, which is the definition of enthalpy change.
  • No phase change (condensation or vaporization) occurs within the temperature range.
  • No chemical reaction occurs; the gas is the same substance before and after.

When to Use This Calculation

Use this formula whenever you need the enthalpy change of a gas for heating or cooling at constant pressure. Common applications include:

  • Calculating the heat required to raise the temperature of a gas in a heater or heat exchanger.
  • Estimating the enthalpy change in a compressor or turbine when the gas is treated as ideal.
  • Solving thermodynamics homework problems involving ideal gases.
  • Preliminary energy balance for a process stream.

Remember that for an ideal gas, enthalpy is a function of temperature only. This means that even if the pressure changes, as long as the initial and final temperatures are known, the enthalpy change is the same as for a constant-pressure process between those temperatures. That is why this simple formula works for many real-world flow processes.

How to Read the Result

A positive ΔH means the gas absorbs heat (endothermic), which happens when you heat it. A negative ΔH means the gas releases heat (exothermic), which happens when you cool it. The magnitude tells you how much energy is transferred. For example, heating 1 mole of nitrogen from 25 °C to 125 °C requires about 2.91 kJ of heat. If you have a flow rate of gas, you would multiply by the molar flow rate to get the heat duty in watts (J/s).

Common Mistakes

  • Using Cp instead of Cv: For enthalpy, you must use the heat capacity at constant pressure (Cp), not at constant volume (Cv). For an ideal gas, Cp − Cv = R, so mixing them up gives a large error.
  • Forgetting to convert moles: If you have mass instead of moles, you must divide by the molar mass first. The formula uses moles, not grams.
  • Using temperatures in °C without realizing kelvin difference works: The difference is the same, but if you ever use absolute temperatures in a ratio (like in the ideal gas law), you must use kelvin. Here, only differences matter, so °C is fine.
  • Assuming Cp is constant over huge temperature ranges: For a 1000 °C change, Cp can vary significantly. Use tabulated average Cp values or integrate if accuracy is critical.
  • Ignoring phase changes: If the gas condenses or the liquid vaporizes, the enthalpy change includes the latent heat, and this simple formula no longer applies.

Tips

  • Look up the Cp value for your specific gas at the average temperature of the process. Many reference tables list Cp at 25 °C, 100 °C, etc.
  • For a mixture of gases, use the mole-fraction-weighted average Cp.
  • If you are doing an energy balance on a flowing gas, multiply ΔH (per mole) by the molar flow rate to get power (J/s = W).
  • For rough estimates, you can use Cp ≈ (5/2)R for monatomic gases and Cp ≈ (7/2)R for diatomic gases at moderate temperatures.
  • Always check your units: J/(mol·K) × mol × K = J.

Troubleshooting

Result seems too small or too large: Check that you entered moles, not grams. If you have grams, divide by molar mass first. Also verify the Cp units – some tables give Cp in kJ/(mol·K) instead of J/(mol·K).

Getting a negative ΔH when you expect positive: Swap the initial and final temperatures. The calculator subtracts T₁ from T₂, so if T₂ is lower, ΔH will be negative, which is correct for cooling.

Calculator shows “Cannot compute”: This happens if the temperature difference is negative in a way that the formula cannot handle (e.g., if you set T₂ below T₁ and the expression includes a square root). Here, the formula is linear, so it should always compute. If you see an error, check that your inputs are within the allowed ranges.

Result differs from a reference table: Real gases deviate from ideality at high pressures or near the critical point. Also, Cp varies with temperature, so a table that uses a temperature-dependent Cp will give a different value. For precise work, use real-gas equations of state or tabulated enthalpy data.

Frequently Asked Questions

What is the difference between enthalpy and internal energy?

Enthalpy (H) is defined as H = U + PV, where U is internal energy. For a gas, enthalpy includes the energy needed to displace the surroundings to make room for the gas. At constant pressure, the heat added equals the enthalpy change, while at constant volume it equals the internal energy change.

Why does enthalpy of an ideal gas depend only on temperature?

For an ideal gas, the internal energy depends only on temperature (not pressure or volume), and PV = nRT, so H = U + nRT also depends only on temperature. Therefore, the enthalpy change is simply nCpΔT, regardless of pressure changes.

Can I use this for real gases like steam or refrigerants?

Only as an approximation at low pressures and temperatures well above the boiling point. For accurate results with real gases, use steam tables or a real-gas equation of state. The ideal gas assumption is reasonable for many gases at atmospheric pressure and moderate temperatures.

What is the standard enthalpy of formation?

It is the enthalpy change when one mole of a compound is formed from its elements in their standard states at 1 bar and a specified temperature (usually 25 °C). It is used to calculate reaction enthalpies, not the enthalpy change of heating a gas.

How do I find Cp for my gas?

Look up Cp in a thermodynamics reference or use the ideal gas heat capacity equations (Shomate equation) available in NIST databases. For simple gases, you can also estimate Cp from the degrees of freedom using the equipartition theorem.

What if the temperature change is very large?

For large temperature changes, Cp is not constant. You should integrate ∫Cp(T)dT over the temperature range, using a polynomial expression for Cp(T). Many textbooks provide these polynomials.

Related

Formula used
in n | Amount of gas | mol | 1.00 | 0
in cp | Heat capacity at constant pressure (Cp) | J/(mol·K) | 29.10 | 0
in t1 | Initial temperature | °C | 25.0 | -273.15
in t2 | Final temperature | °C | 125.0 | -273.15
out dH | Enthalpy change (ΔH) | J | n * cp * (t2 - t1) | 2
out dH_kJ | Enthalpy change in kilojoules | kJ | dH / 1000 | 3

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →