Explore gas compression, expansion, and process-dependent work. Switch formulas for isobaric, isothermal, and polytropic cases. See calculated work trends with clean inputs and charts.
| Case | Process | Given values | Expected focus |
|---|---|---|---|
| Example 1 | Isothermal | n = 1 mol, T = 300 K, V₁ = 10 L, V₂ = 25 L | Reversible work from volume ratio |
| Example 2 | Isobaric | P = 200 kPa, V₁ = 0.02 m³, V₂ = 0.05 m³ | Constant-pressure rectangular P-V area |
| Example 3 | Polytropic | P₁ = 300 kPa, V₁ = 12 L, V₂ = 6 L, n = 1.3 | Pressure rise during compression path |
| Example 4 | Adiabatic | P₁ = 150 kPa, V₁ = 18 L, V₂ = 9 L, γ = 1.4 | Work without heat-transfer assumption |
This calculator focuses on boundary work for idealized quasi-static gas processes. The P-V area represents the mechanical work transfer between the gas and its surroundings.
W = P(V₂ − V₁)
Pressure stays constant. Expansion gives positive work by the gas, while compression gives negative work by the gas.
W = 0
Because volume does not change, the gas does no boundary work even if pressure rises or falls.
W = nRT ln(V₂ / V₁)
Temperature remains constant. The ideal gas law is used to determine pressure along the path.
PVⁿ = constant
W = (P₂V₂ − P₁V₁) / (1 − n), for n ≠ 1
If n = 1, the path becomes isothermal and the logarithmic formula is used.
PVᵞ = constant
W = (P₂V₂ − P₁V₁) / (1 − γ)
This model assumes no heat transfer and uses the heat capacity ratio γ.
Gas work is the mechanical energy transfer caused by volume change against external pressure. On a P-V diagram, it equals the area under the process curve for a quasi-static path.
Boundary work depends on volume change. If volume remains constant, then dV is zero everywhere, so the integral of P dV is also zero.
For a reversible isothermal ideal gas, pressure varies as 1/V. Integrating that inverse-volume relationship produces the natural logarithm term in the work expression.
Adiabatic means no heat transfer and commonly uses γ. Polytropic is broader and uses a general exponent n, which can represent many real compression or expansion behaviors.
Use the same convention as your class, textbook, or engineering standard. Physics often treats work done by the gas as positive, while some engineering contexts track work on the gas as positive.
No. This version uses idealized process relations and ideal-gas assumptions where needed. Real-gas corrections require an equation of state or experimentally fitted property data.
If the amount of gas is not provided, the calculator cannot infer temperature from pressure and volume. Add moles to enable ideal-gas temperature estimates.
The plot shows the pressure-volume path for the selected process. Its shape helps explain why different thermodynamic paths can produce different work values between similar states.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.