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.
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
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 K | T = 298.15 K | T = 300 K | T = 373.15 K | T = 600 K |
|---|
Typical Isothermal Work by Application
Representative values for gas processes at constant temperature.
| Application | n (mol) | T (K) | V₂/V₁ | W (J) | Notes |
|---|---|---|---|---|---|
| Syringe withdrawal | 0.04 | 298 | 2 | 69 | Slow pull, near-isothermal |
| Balloon slow inflation | 0.05 | 300 | 3 | 137 | Human breath at body temperature |
| Bicycle pump slow stroke | 0.1 | 300 | 0.3 | −301 | Compression, negative work |
| Small gas cylinder discharge | 1 | 300 | 10 | 5,744 | Idealized slow release |
| Stirling engine (hot side) | 0.5 | 600 | 2 | 1,728 | Isothermal expansion phase |
| 1 m³ air at STP | 44.6 | 273 | 2 | 84,500 | Large volume, slow process |
| Industrial compressor intercooler | 1000 | 320 | 0.2 | −4.28×10⁶ | Compression with cooling |
Variable Reference
| Symbol | Meaning | Typical range | Units |
|---|---|---|---|
| W | Isothermal work | −10⁷ – 10⁷ | J |
| n | Amount of gas | 10⁻³ – 10⁴ | mol |
| R | Universal gas constant | 8.314462618 | J/(mol·K) |
| T | Absolute temperature | 1 – 3000 | K |
| V₁ | Initial volume (fixed 1 L) | — | L |
| V₂ | Final volume | 10⁻³ – 10⁴ | L |
| Q | Heat added (= W for isothermal ideal gas) | — | J |
| ΔS | Entropy 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:
Rearranged to solve for the other unknowns:
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:
Companion quantities for an ideal isothermal process:
ΔU = 0
ΔS = nR · ln( V₂ / V₁ ) (entropy change of the gas)
Isothermal Work Variables
| Symbol | Meaning | Notes |
|---|---|---|
| W | Isothermal work | Positive for expansion, negative for compression |
| n | Amount of gas in moles | 1 mol = 6.022×10²³ molecules |
| R | Universal gas constant | 8.314462618 J/(mol·K) |
| T | Absolute temperature | Must be in kelvin |
| V₁ | Initial volume | Volume before the process |
| V₂ | Final volume | Volume after the process |
| Q | Heat added to the gas | Q = W for an ideal isothermal process |
| ΔU | Change in internal energy | ΔU = 0 for an ideal gas at constant T |
| ΔS | Entropy 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
W = 1 × 8.314 × 300 × ln(10) = 1 × 8.314 × 300 × 2.3026 = 5,744 J
n = 5,744 / (8.314 × 300 × 2.3026) = 1 mol
T = 5,744 / (1 × 8.314 × 2.3026) = 300 K
V₂ = 1 × exp(5,744 / (1 × 8.314 × 300)) = 1 × exp(2.3026) = 10 L
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.
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| Parameter | Value |
|---|---|
| n | 1 mol |
| T | 300 K |
| V1 | 0.01 m³ |
| V2 | 0.02 m³ |
| Parameter | Value |
|---|---|
| n | 2 mol |
| T | 350 K |
| V1 | 0.04 m³ |
| V2 | 0.02 m³ |
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
Related calculators · Thermodynamics
Recently updated formulas
Suggest an improvement
Found a mistake? Have a better example? Let us know.
You may send up to 3 suggestions per 24 hours.