Home / Mechanical Engineering / Thermodynamics / Isothermal Work (Ideal Gas)

Formula & Calculator

Isothermal Work (Ideal Gas)

When an ideal gas expands or is compressed while its temperature stays constant, the process is called isothermal. The work done equals the number of moles times the gas constant times temperature times the natural log of the volume ratio. For example, slowly pulling a piston in a cylinder kept in an ice bath is roughly isothermal. It is used in thermodynamic cycle analysis and in understanding slow, controlled processes.

Mechanical Engineering Thermodynamics Calculator
VORZEP · THERMODYNAMICS TOOLS

Isothermal Work Calculator

Solve the isothermal expansion/compression work relation W = n · R · T · ln(V₂ / V₁) for any of its five unknowns — work, moles, temperature, initial volume, or final volume — with step-by-step math, a live piston schematic, and companion thermodynamic metrics.

W = n · R · T · ln( V₂ / V₁ )
Solve for
Isothermal Work (W) Work done by the gas during isothermal expansion (positive) or done on the gas during compression (negative). At constant temperature T, W = nRT ln(V₂/V₁). Typical: 1.7 kJ per mole at 300 K for a tenfold expansion.
J
Work must be a finite number (may be negative for compression).
= 5.744 kJ = 1.373 kcal = 4.236 ft·lbf
Moles of Gas (n) Amount of ideal gas in moles. 1 mole of any ideal gas occupies 22.414 L at STP (0°C, 1 atm). Typical: 0.04 mol for a syringe, 1 mol for a small cylinder, 44.6 mol for 1 m³ of air at STP.
mol
Moles must be greater than zero.
= 1.000 mol = 1.000 g-mol = 6.022×10²³ molecules
Absolute Temperature (T) Thermodynamic (absolute) temperature in kelvin. Must be absolute — never use Celsius or Fahrenheit directly. Typical: 273.15 K for ice point, 298.15 K for 25°C room, 373.15 K for boiling water, 1200 K for combustion gases.
K
Temperature must be greater than zero kelvin.
= 300.00 K = 26.85 °C = 80.33 °F
Final Volume (V₂) Volume of the gas after the isothermal process. Keep V₁ fixed at 1.000 L in this calculator and specify V₂ to define the compression ratio V₂/V₁. V₂ > V₁ gives expansion (positive work); V₂ < V₁ gives compression (negative work).
L
Volume must be greater than zero.
V₂/V₁ = 10.000 · V₁ = 1.000 L · ΔV = +9.000 L
ISOTHERMAL WORK (W)
5,744 J
5.744 kJ · 1.373 kcal · 4,236 ft·lbf
EXPANSION — WORK DONE BY GAS
W = n · R · T · ln( V₂ / V₁ )
Step-by-step solution
Work vs. volume ratio
Current n, T n,T × 0.5 n,T × 2.0
Work vs. temperature
Current n, V₂/V₁ n × 0.5 n × 2.0
Sensitivity
Companion thermodynamic metrics
Isothermal expansion — live schematic
ISOTHERMAL PROCESS · W = n · R · T · ln(V₂/V₁) expansion V₁ = 1.000 L V₂ = 10.000 L Q = W heat in W = 5,744 J n = 1.000 mol · T = 300.00 K · R = 8.314 J/(mol·K) W = 1.000 × 8.314 × 300.00 × ln(10.000) = 5,744 J
Isothermal gas (constant T) Piston expansion & volume Heat input Q = W
What the isothermal work relation really measures
Wisothermal work
=
nmoles
×
Rgas constant
×
Ttemperature
×
ln(V₂/V₁)volume ratio

Temperature must stay constant

An isothermal process keeps T constant while volume and pressure change. For an ideal gas, PV = nRT means pressure falls as volume rises, exactly compensating so that the product PV — and therefore T — stays fixed. In practice the process must be slow, or the cylinder must be in a large thermal bath, so that heat can flow in or out to maintain T. Fast processes are closer to adiabatic.

Work depends on the logarithm of the ratio

The work done by the gas is W = nRT ln(V₂/V₁). It depends on the volume ratio, not on the absolute volumes. Doubling the volume from 1 L to 2 L gives the same work as doubling from 10 L to 20 L. Because of the logarithm, work grows slowly with expansion: expanding 100-fold does not do 100 times the work of a 2-fold expansion, only about 6.6 times as much (ln 100 / ln 2 ≈ 6.64).

Expansion and compression are symmetric

For an ideal gas, expanding from V₁ to V₂ does +W of work; compressing back from V₂ to V₁ requires exactly −W. The process is reversible in the ideal limit: the same path run backwards returns both the gas and the surroundings to their original states. Real processes are irreversible because of friction, turbulence, and finite temperature differences, and require more work for compression than they return during expansion.

First law: Q = W for isothermal

For an ideal gas the internal energy depends only on temperature: ΔU = nCᵥΔT. Since T is constant, ΔT = 0, so ΔU = 0. The first law ΔU = Q − W then gives Q = W. All the heat added to the gas during isothermal expansion is converted to work, and all the work done on the gas during compression is rejected as heat. This makes the isothermal process the most efficient possible for converting heat to work between two given volumes.

How to Use This Calculator

The isothermal work relation links five quantities: W, n, R, T, and the volume ratio V₂/V₁. R is fixed at 8.314 J/(mol·K), and V₁ is fixed at 1.000 L; pick which of the other quantities you want the tool to solve.

1. Choose what to solve for

Pick W, n, T, or V₂ from the toggle. The calculator rearranges W = nRT ln(V₂/V₁) automatically for whichever you choose.

2. Use realistic presets

Presets cover typical values: work from 100 J to 500 kJ, moles from 0.04 mol (syringe) to 1,000 mol, temperature from 273 K (ice) to 1,200 K, and volume ratio from 0.1 (10:1 compression) to 100 (100:1 expansion).

3. Match units carefully

Use SI units throughout: W in J, n in mol, T in K, V in L. Temperature must be absolute (kelvin) — never Celsius or Fahrenheit. R = 8.314 J/(mol·K). The hint under each field shows the value in alternative units.

4. Read the result and verdict

The result card shows the solved value plus equivalent units. A colour-coded verdict flags whether the process is expansion (positive W), compression (negative W), or no change (V₂ = V₁).

5. Check the schematic and charts

The schematic shows the cylinder, gas, piston, heat input Q = W, and work output. The chart plots work against volume ratio for three nT values.

6. Switch to Advanced for depth

Advanced mode adds a chart of W vs. T, a sensitivity check on a +1% input change, and companion metrics including heat, ΔU, entropy change, and the isothermal PV curve.

What This Tool Offers

Built around the isothermal work relation W = nRT ln(V₂/V₁), the fundamental link between gas amount, temperature, volume ratio, and work in an isothermal process.

Four-way solving

Solve for work, moles, temperature, or final volume. The calculator rearranges the formula for whichever variable you choose.

Clean piston schematic

A cylinder-piston diagram with the gas, molecules, volume dimensions V₁ and V₂, heat input Q = W, and work output arrow.

Expansion/compression verdict

Each result is flagged as expansion (positive work), compression (negative work), or no change, with a coloured badge.

Multi-unit hints

Each field shows the value converted to related units — kJ and kcal for work; molecules for moles; °C and °F for temperature.

Dual comparison charts

W vs. volume ratio for three nT values, plus an advanced W vs. T chart for three n values.

Reference tables

Typical work values by application, unit conversions, and a full variable reference table.

Reference Tables & Conversions

An energy unit converter, a work lookup grid, and typical values.

Energy unit converter

J
kJ
cal
kcal
ft·lbf
kW·h
= 5,744 J = 5.744 kJ = 1,372.7 cal = 1.3727 kcal = 4,236.5 ft·lbf = 0.001596 kW·h

Isothermal Work Lookup at n = 1 mol, T = 300 K, V₁ = 1 L

Computed from W = nRT ln(V₂/V₁). Values in J.

V₂ / V₁T = 273.15 KT = 298.15 KT = 300 KT = 373.15 KT = 600 K

Typical Isothermal Work by Application

Representative values for gas processes at constant temperature.

Applicationn (mol)T (K)V₂/V₁W (J)Notes
Syringe withdrawal0.04298269Slow pull, near-isothermal
Balloon slow inflation0.053003137Human breath at body temperature
Bicycle pump slow stroke0.13000.3−301Compression, negative work
Small gas cylinder discharge1300105,744Idealized slow release
Stirling engine (hot side)0.560021,728Isothermal expansion phase
1 m³ air at STP44.6273284,500Large volume, slow process
Industrial compressor intercooler10003200.2−4.28×10⁶Compression with cooling

Variable Reference

SymbolMeaningTypical rangeUnits
WIsothermal work−10⁷ – 10⁷J
nAmount of gas10⁻³ – 10⁴mol
RUniversal gas constant8.314462618J/(mol·K)
TAbsolute temperature1 – 3000K
V₁Initial volume (fixed 1 L)—L
V₂Final volume10⁻³ – 10⁴L
QHeat added (= W for isothermal ideal gas)—J
ΔSEntropy change (= nR ln(V₂/V₁))—J/K

What Does W = n · R · T · ln(V₂ / V₁) Measure?

The isothermal work relation gives the work done by (or on) an ideal gas during a reversible process at constant temperature. Because the temperature is constant, the gas's internal energy does not change, and by the first law all the heat added is converted to work. This is the most efficient possible conversion of heat to work between two given volumes and the basis for comparing real processes to an ideal limit.

Isothermal Work Formula

The defining relationship is:

W = n · R · T · ln( V₂ / V₁ )

Rearranged to solve for the other unknowns:

n = W / ( R · T · ln( V₂ / V₁ ) )
T = W / ( n · R · ln( V₂ / V₁ ) )
V₂ = V₁ · exp( W / ( n · R · T ) )

The work can also be written in terms of pressure, using PV = nRT and the fact that PV is constant during an isothermal process:

W = nRT · ln(V₂/V₁) = nRT · ln(P₁/P₂) = P₁V₁ · ln(V₂/V₁)

Companion quantities for an ideal isothermal process:

Q = W (first law with ΔU = 0)
ΔU = 0
ΔS = nR · ln( V₂ / V₁ ) (entropy change of the gas)

Isothermal Work Variables

SymbolMeaningNotes
WIsothermal workPositive for expansion, negative for compression
nAmount of gas in moles1 mol = 6.022×10²³ molecules
RUniversal gas constant8.314462618 J/(mol·K)
TAbsolute temperatureMust be in kelvin
V₁Initial volumeVolume before the process
V₂Final volumeVolume after the process
QHeat added to the gasQ = W for an ideal isothermal process
ΔUChange in internal energyΔU = 0 for an ideal gas at constant T
ΔSEntropy changeΔS = nR ln(V₂/V₁) for the gas

How Each Variable Affects Isothermal Work

Work is directly proportional to the amount of gas n, to the absolute temperature T, and to the logarithm of the volume ratio. Doubling n or doubling T doubles the work at the same volume ratio. The volume ratio enters logarithmically: expanding 10-fold (ln 10 ≈ 2.303) does 2.303 units of work per nRT, while expanding 100-fold (ln 100 ≈ 4.605) does exactly twice as much, and expanding 1000-fold (ln 1000 ≈ 6.908) does exactly three times as much. This is why compressing a gas the last few percent is so expensive: the logarithm flattens out.

For an ideal gas, the isothermal work is the maximum work obtainable between two volumes at a given temperature: any real (irreversible) process produces less work on expansion and requires more work on compression. The difference is the lost work, which appears as entropy generation. In engineering practice, isothermal processes are approximated by slow processes with excellent heat transfer, such as the compression stroke of a reciprocating compressor with intercooling, or the expansion phase of a Stirling engine.

Isothermal Work Calculation Examples

Given: n = 1 mol, T = 300 K, V₁ = 1 L, V₂ = 10 L — solve for W
W = 1 × 8.314 × 300 × ln(10) = 1 × 8.314 × 300 × 2.3026 = 5,744 J
Given: W = 5,744 J, T = 300 K, V₂/V₁ = 10 — solve for n
n = 5,744 / (8.314 × 300 × 2.3026) = 1 mol
Given: W = 5,744 J, n = 1 mol, V₂/V₁ = 10 — solve for T
T = 5,744 / (1 × 8.314 × 2.3026) = 300 K
Given: W = 5,744 J, n = 1 mol, T = 300 K, V₁ = 1 L — solve for V₂
V₂ = 1 × exp(5,744 / (1 × 8.314 × 300)) = 1 × exp(2.3026) = 10 L
Given: n = 1 mol, T = 300 K, V₁ = 1 L, V₂ = 0.5 L — solve for W (compression)
W = 1 × 8.314 × 300 × ln(0.5) = 1 × 8.314 × 300 × (−0.6931) = −1,728 J

Frequently Asked Questions

Temperature is held constant by allowing heat to flow between the gas and a thermal reservoir (a large body at fixed T, such as a water bath or the atmosphere). If the gas expands and does work, its internal energy would tend to fall, but heat flows in from the reservoir to keep T constant. If the gas is compressed, heat flows out to the reservoir. The process must be slow enough that the gas remains in thermal equilibrium with the reservoir at all times — this is the meaning of "reversible" in the context of isothermal processes.

Because the pressure changes continuously as the volume changes. For an ideal gas at constant T, P = nRT/V, so as V increases the pressure falls hyperbolically. The work is the integral of P dV from V₁ to V₂, which is ∫(nRT/V)dV = nRT ln(V₂/V₁). The logarithm arises because each successive increment of volume is pushed against a lower pressure, so the work per unit volume decreases as the gas expands. This is why isothermal expansion produces finite work even as V → ∞.

By the standard sign convention, W is the work done by the gas. If the gas expands (V₂ > V₁), then ln(V₂/V₁) > 0 and W is positive — the gas does work on the surroundings. If the gas is compressed (V₂ < V₁), then ln(V₂/V₁) < 0 and W is negative — work is done on the gas by the surroundings. Some textbooks use the opposite convention for W (work done on the gas); always check the convention before applying the formula.

For an ideal gas at constant temperature, the internal energy depends only on T, so ΔU = 0. The first law ΔU = Q − W then gives Q = W. All the heat added to the gas is converted to work, and all the work done on the gas is rejected as heat. This is why the isothermal process is the most efficient possible: no energy is wasted on changing the internal energy of the gas. In a real gas with non-zero ΔU on isothermal expansion, Q and W differ slightly, but for most engineering purposes the ideal-gas approximation is excellent.

In an adiabatic process there is no heat transfer (Q = 0), so the work done by the gas comes entirely from its internal energy, and the temperature falls during expansion. The adiabatic work formula is W = nCᵥ(T₁ − T₂) = (P₁V₁ − P₂V₂)/(γ − 1). For the same volume ratio, adiabatic expansion does less work than isothermal because the pressure falls faster (P ∝ V^−γ with γ > 1). The isothermal process is the upper bound on work for a given expansion; the adiabatic process is the lower bound for a fast process with no heat exchange.

For moderate pressures and temperatures well above the critical point, real gases behave nearly ideally and the formula is accurate. At high pressures or near condensation, real-gas effects become significant: the internal energy changes even at constant T, and the work is no longer simply nRT ln(V₂/V₁). In those cases one must use an equation of state such as van der Waals or Redlich–Kwong and integrate P dV numerically. The ideal-gas formula is the starting point and remains a good first estimate in most engineering contexts.

For an ideal gas at constant T, the entropy change of the gas is ΔS = nR ln(V₂/V₁). This is positive for expansion and negative for compression. The entropy change of the thermal reservoir is −ΔS (since the heat Q = W is transferred reversibly to or from the gas), so the total entropy change of gas + reservoir is zero — the process is reversible. For a real irreversible isothermal process (e.g., free expansion into a vacuum), the gas entropy change is the same, but the total entropy increases because no work is extracted.

Calculating...

Variables

Symbol Quantity Unit
W Work done by the gas J
n Moles of gas mol
R Universal gas constant 8.314 J/mol.K
T Absolute temperature (constant) K
V1, V2 Initial and final volumes m3

What it means

For an ideal gas undergoing a reversible isothermal process (constant temperature), the work done by the gas is given by W = nRT ln(V₂/V₁), where n is the number of moles, R is the universal gas constant, T is the absolute temperature, and V₁ and V₂ are the initial and final volumes. This expression is obtained by integrating PdV with P = nRT/V. Since the temperature is constant, the internal energy change is zero (ΔU = 0) for an ideal gas, so all heat added goes into work. This process is important in many engineering applications, such as compressors, turbines, and refrigeration cycles. The natural logarithm indicates that more work is required to compress a gas at high volume ratios. The isothermal work is the maximum work that can be extracted from a gas between two volumes at a given temperature. In practice, isothermal processes are approximated by slow processes with heat exchange to maintain constant temperature.

Worked example

Isothermal Work – Two Examples

Real‑World
Scenario 1 – Expansion: 1 mol of gas expands from 0.01 m³ to 0.02 m³ at 300 K. Find work done (isothermal).
ParameterValue
n1 mol
T300 K
V10.01 m³
V20.02 m³
1W = nRT ln(V2/V1) = 1×8.314×300×ln(2) = 2494×0.693 ≈ 1729 J
ResultW ≈ 1729 J✓ work output
Scenario 2 – Compression: 2 mol at 350 K compressed from 0.04 m³ to 0.02 m³. Find work (on gas).
ParameterValue
n2 mol
T350 K
V10.04 m³
V20.02 m³
1W = 2×8.314×350×ln(0.02/0.04) = 5819×ln(0.5) = 5819×(−0.693) ≈ −4034 J (work done on gas)
ResultW ≈ −4034 J✓ input
Key insight: For isothermal process, work depends on the logarithm of volume ratio.

Common mistakes

  • Temperature in Kelvin: T must be absolute (Kelvin).
  • Natural log: Use ln(V₂/V₁), not log₁₀.
  • Isothermal condition: This assumes constant temperature throughout the process – not always true.
  • Ideal gas: Only for ideal gases; real gases deviate.
  • Work sign: If expansion (V₂ > V₁), W is positive (work done by the gas).

Applications

Isothermal work for an ideal gas is the work done during a constant‑temperature expansion or compression, expressed as nRT ln(V₂/V₁). This process is encountered in many practical applications, such as in isothermal compressors, gas storage, and certain chemical reactions. In the petroleum industry, isothermal compression is used in natural gas pipelines to transport gas efficiently. In pneumatic systems, isothermal expansion can be approximated in slow processes. The formula also plays a role in the analysis of heat engines and refrigeration cycles that involve isothermal heat transfer. By understanding isothermal work, engineers can design processes that minimise energy losses and improve the efficiency of gas handling systems.

  • Design of isothermal compressors and expanders
  • Natural gas pipeline compression and storage
  • Thermodynamic cycle analysis (Carnot, Stirling)
  • Biological and chemical processes at constant temperature
  • Pneumatic system design and analysis