Ideal gas · Work · Heat

Thermodynamic process & PV diagram calculator

Compute work, ΔU, and heat for ideal-gas processes and visualize the PV curve.

Runs entirely in your browser; nothing is uploaded.

How to use (3 steps)

  1. Enter the initial state (n, P₁, V₁, γ). Defaults show a 1 mol, 1 atm, room-temperature example.
  2. Select the process type (isothermal, isobaric, isochoric, adiabatic, polytropic) and fill V₂ or T₂ as required.
  3. Tap Compute to see W, ΔU, Q, the PV curve, and the calculation steps. Copy URL shares the exact setup.

Sign convention: work W is positive when the gas does work on the surroundings; Q is positive when heat flows into the gas.

Inputs

mol
kPa
L
L
K

Results

Initial and final states Pressure Volume Temperature Moles
Energy and work J

How it is calculated

    FAQ

    What assumptions does this calculator make?

    It assumes an ideal gas and quasi-static processes with constant γ. The state is always in equilibrium so the ideal gas law applies at each step.

    How is the sign of work W defined here?

    Work is positive when the gas does work on the surroundings (expansion gives W > 0). The first law is written as ΔU = Q − W.

    Why might Q for an adiabatic process be non-zero?

    Numerical rounding can leave tiny residuals even though the theoretical value is Q = 0. ΔU and W are consistent with ΔU = Q − W.

    Related calculators

    Comments

    Load comments only when you want to read/write them. It uses Giscus (GitHub Discussions).