Skip to tool
Resultant | Thermo Solver
Cycle
Working fluid
Pressure unit
Temperature unit
Assumptions
Isobaric boiler (P₂ = P₃)
Isobaric condenser (P₁ = P₄)
Isobaric reheat (P₄ = P₅)
Sat. liquid at pump inlet (x₁ = 0)
Ideal cycle (isentropic devices)
Isobaric evaporator (P₁ = P₄)
Isobaric condenser (P₂ = P₃)
Sat. vapor at compressor inlet (x₁ = 1)
Sat. liquid at condenser exit (x₃ = 0)
Ideal compressor (isentropic)
Isobaric heat addition (P₂ = P₃)
Isobaric heat rejection (P₄ = P₁)
Ideal compressor and turbine (isentropic)
Cold air-standard (constant specific heats)
Specific heat ratio k
Toggle off to use variable specific heats from tabulated air properties (u and vr), matching standard air tables.
Mass flow rate
kg/s
Set this to get net power and heat rates.
Cycle performance
Enter enough to fix all four states and the results show here.
State properties
No states solved yet.
T–s diagram
P–v diagram
Enter any two independent properties per state. Computed values show in teal.

Thermodynamics Cycle Solver

Nine cycles in one tool: the Rankine steam power cycle, with or without reheat, on IAPWS-IF97 water and steam data, the air-standard Brayton (with or without a regenerator), Otto, Diesel, dual and Atkinson cycles, and the R-134a vapor-compression refrigeration cycle. In every mode you enter the properties you already know at each state point and the solver fills in the rest, then closes the energy balances around each device.

Rankine cycle steam solver

This tool solves the Rankine steam power cycle using the IAPWS-IF97 formulation for water and steam properties. Enter any two independent properties at each state point and it fills in the rest by the same steps as a hand solution. Energy balances around the boiler, turbine, condenser, and pump then link the four states into a complete cycle, including thermal efficiency, back-work ratio, and net work output.

Works for ideal isentropic cycles and actual cycles with pump and turbine isentropic efficiencies. Over-specified or conflicting states are flagged. The reheat Rankine, Brayton, Otto, Diesel, dual, Atkinson and R-134a refrigeration cycles are described further down this page.

How to use the Rankine cycle solver

  1. Set pressure and temperature units using the segmented controls in the left sidebar. Options are kPa, MPa, bar, or psi for pressure; C or K for temperature.
  2. Toggle assumptions to match your problem. Isobaric boiler and condenser are on by default, which links P across each component. Enabling sat. liquid at pump inlet fixes x = 0 at State 1 automatically.
  3. Enter any two properties at each state. The green dots on the schematic indicate solved states. Teal fields are filled in by the solver; you can override any of them by typing a value directly.
  4. Read cycle performance in the right panel. Net work, heat input, heat rejected, thermal efficiency, and back-work ratio update as you type.
  5. Enter a mass flow rate (optional) to convert specific work and heat quantities into power and heat rates (kW).
  6. Export the full cycle summary using Copy (PNG to clipboard), PNG (download), or PDF. The property diagrams can be exported separately from their own buttons.
  7. Save or share. The address bar tracks the cycle, the units, the assumption switches and every value you typed, so a reload brings the same problem back and the link reproduces it for someone else. Values the solver worked out are not carried, since they follow from the rest.

The Rankine cycle: a quick review

The ideal Rankine cycle is the standard model for steam power plants. It consists of four processes:

  1. 1 to 2: Pump (isentropic compression). Sat. liquid from the condenser is pumped to boiler pressure. The pump work is small relative to turbine work, giving a low back-work ratio.
  2. 2 to 3: Boiler (isobaric heat addition). Water is heated, boiled, and typically superheated at constant pressure. This is where the bulk of heat input occurs.
  3. 3 to 4: Turbine (isentropic expansion). Superheated steam expands through the turbine, producing work. The turbine exit may be wet (two-phase) or superheated depending on inlet conditions and condenser pressure.
  4. 4 to 1: Condenser (isobaric heat rejection). Wet or superheated steam at low pressure condenses to sat. liquid, rejecting heat to the cooling medium.

Worked example: ideal Rankine cycle

Problem: Boiler at 8 MPa / 480 C, condenser at 8 kPa. Ideal isentropic cycle. Find thermal efficiency.

State 3 (turbine inlet): P = 8 MPa, T = 480 C. IAPWS-IF97 gives h3 = 3349.5 kJ/kg, s3 = 6.661 kJ/kg·K.

State 1 (pump inlet): sat. liquid at 8 kPa. h1 = 173.9 kJ/kg, s1 = 0.593 kJ/kg·K.

State 4 (turbine exit): s4 = s3 at 8 kPa gives x4 = 0.795, h4 = 2083.4 kJ/kg.

State 2 (pump exit): s2 = s1 at 8 MPa gives h2 = 181.9 kJ/kg.

Result: w_net = (h3 - h4) - (h2 - h1) = 1258.1 kJ/kg; q_in = 3167.6 kJ/kg; thermal efficiency = 39.7%.

Key cycle quantities

QuantityExpressionNotes
Turbine workw_t = h3 - h4Per unit mass flow
Pump workw_p = h2 - h1Small for liquids
Heat inputq_in = h3 - h2Boiler
Heat rejectedq_out = h4 - h1Condenser
Thermal efficiencyeta = w_net / q_inFirst law
Back-work ratiobwr = w_p / w_tTypically 0.5-2%

Ways to improve Rankine cycle efficiency

  • Increase boiler pressure. Higher boiler pressure raises the mean temperature of heat addition, improving efficiency. Wet turbine exit quality decreases, which is the main constraint.
  • Superheat the steam. Superheating increases h3 and usually raises turbine exit quality, allowing higher boiler pressures in practice.
  • Decrease condenser pressure. Lower condenser pressure lowers the temperature of heat rejection. Condenser pressure is limited by the available cooling medium temperature.
  • Reheat cycle. Steam is expanded partway in the turbine, reheated in the boiler, then expanded again. Reduces moisture at exit while maintaining efficiency gains from high pressure. Solved by the Rankine Cycle with Reheat mode, below.
  • Regenerative feedwater heating. Extracted steam from the turbine heats the feedwater, reducing boiler heat input and improving cycle efficiency.

Rankine cycle with reheat

Switch the Cycle control to Rankine Cycle with Reheat for the six-state reheat cycle: 1 to 2 pump, 2 to 3 boiler, 3 to 4 high-pressure turbine, 4 to 5 reheat at constant pressure, 5 to 6 low-pressure turbine, 6 to 1 condenser. Each turbine has its own isentropic efficiency, and the heat input is the boiler and the reheater together: q_in = (h3 - h2) + (h5 - h4).

States can be fixed from either side of an ideal device. Textbook problems often give the turbine exit quality and ask for the reheat pressure: enter x6 with the condenser pressure and the reheat temperature, and the solver takes s5 = s6, finds P5 from T5 and s5, and carries P4 = P5 back to the high-pressure turbine exit.

Worked example: reheat Rankine cycle

Problem: Steam enters the high-pressure turbine at 15 MPa and 600 C and is reheated to 600 C. The condenser is at 10 kPa and the low-pressure turbine exit quality is 0.896. Ideal cycle. Find the reheat pressure and the thermal efficiency (Cengel and Boles, Example 10-4).

State 6: x6 = 0.896 at 10 kPa gives h6 = 2335.1 kJ/kg, s6 = 7.3689 kJ/kg·K.

State 5: s5 = s6 at 600 C gives P5 = 4.01 MPa, h5 = 3674.7 kJ/kg. The reheat pressure is 4 MPa.

State 4: s4 = s3 = 6.6797 kJ/kg·K at 4.01 MPa gives h4 = 3154.8 kJ/kg (h3 = 3583.3 kJ/kg).

Result: q_in = 3376.4 + 519.9 = 3896.3 kJ/kg; w_net = 1753.0 kJ/kg; thermal efficiency = 45.0%.

Air-standard Otto cycle

Switch the Cycle control to Otto Cycle to solve the ideal air-standard Otto cycle, the standard model for spark-ignition engines. The four states are: 1 at bottom dead center before compression, 2 after isentropic compression, 3 after constant-volume heat addition, and 4 after isentropic expansion. Enter any two independent properties per state (P, T, v, or u), plus the compression ratio or a heat or work quantity on the process chips, and the solver propagates the rest through the ideal gas law, the isentropic relations, and closed-system energy balances.

Two property models are available. Cold air-standard uses constant specific heats with an editable ratio k (1.4 by default), matching the closed-form relations T2 = T1 r^(k-1) and eta = 1 - r^(1-k). Turning the toggle off switches to variable specific heats using tabulated air properties (u and relative specific volume vr), referenced to match standard air tables so intermediate values can be checked against a textbook table directly.

Worked example: ideal Otto cycle

Problem: Compression ratio 8, air at 100 kPa and 290 K before compression, 800 kJ/kg of heat added. Variable specific heats. Find the state properties, net work, thermal efficiency, and MEP.

State 2: vr2 = vr1 / 8 gives T2 = 652 K, P2 = 1799 kPa.

State 3: u3 = u2 + 800 kJ/kg gives T3 = 1575 K, P3 = 4345 kPa.

State 4: vr4 = 8 vr3 gives T4 = 795 K.

Result: w_net = 418.3 kJ/kg; thermal efficiency = 52.3%; MEP = 574 kPa. Cold air-standard with k = 1.4 gives 56.5% for comparison.

Key Otto cycle quantities

QuantityExpressionNotes
Compression ratior = v1 / v2Also equals v4 / v3
Heat inputq_in = u3 - u2Constant volume
Heat rejectedq_out = u4 - u1Constant volume
Thermal efficiencyeta = 1 - q_out / q_inCold air: 1 - r^(1-k)
Mean effective pressureMEP = w_net / (v1 - v2)Constant pressure that would produce w_net over one stroke

Air-standard Diesel cycle

Switch the Cycle control to Diesel Cycle to solve the ideal air-standard Diesel cycle, the model for compression-ignition engines. It differs from the Otto cycle in one process: heat is added at constant pressure while the piston starts moving down, so 1 to 2 is isentropic compression, 2 to 3 is heat addition at constant pressure, 3 to 4 is isentropic expansion and 4 to 1 is heat rejection at constant volume. Each state carries P, T, v, u and h. Enter the compression ratio on the Compression chip and either the cutoff ratio rc = v3 / v2 or the heat added on the Heat addition chip, or give temperatures and pressures directly, and the solver works forward or backward from whatever you know.

Heat added at constant pressure is q_in = h3 - h2, and part of it leaves as boundary work P2 (v3 - v2) during the same process. The results list that work separately, so net work is not just expansion minus compression. Cold air-standard gives the closed form eta = 1 - r^(1-k) (rc^k - 1) / (k (rc - 1)). With the toggle off, u, h and vr come from the same air table as the Otto cycle.

Worked example: Diesel cycle

Problem: Compression ratio 16, cutoff ratio 2, air at 95 kPa and 27 °C before compression. Variable specific heats. Find the temperature after heat addition, the thermal efficiency and the MEP.

State 2: vr2 = vr1 / 16 gives T2 = 862 K, P2 = 4368 kPa.

State 3: P3 = P2 and v3 = 2 v2, so T3 = 2 T2 = 1724 K and q_in = h3 - h2 = 1019.0 kJ/kg.

State 4: vr4 = (16 / 2) vr3 gives T4 = 882 K, and q_out = u4 - u1 = 445.6 kJ/kg.

Result: w_net = 573.4 kJ/kg; thermal efficiency = 56.3%; MEP = 675 kPa. Cold air-standard with k = 1.4 gives 61.4%.

Air-standard Atkinson cycle

Switch the Cycle control to Atkinson Cycle to solve the ideal Atkinson cycle, in which the expansion stroke is longer than the compression stroke. 1 to 2 is isentropic compression, 2 to 3 is heat addition at constant volume, 3 to 4 is isentropic expansion all the way down to the starting pressure, and 4 to 1 is heat rejection at constant pressure. The expansion ratio re = v4 / v3 is larger than the compression ratio r = v1 / v2, which is where the efficiency gain over the Otto cycle comes from. Enter r and either re, the heat added, or a temperature, and the rest follows.

Heat is rejected at constant pressure, so q_out = h4 - h1, and the piston does work on the gas P1 (v4 - v1) during that process. The results list it as boundary work in. Cold air-standard gives eta = 1 - k (re - r) / (re^k - r^k). With the toggle off, the expansion uses the Pr column of the air table and the compression uses vr.

Worked example: Atkinson cycle

Problem: Compression ratio 10, air at 100 kPa and 27 °C before compression, 1000 kJ/kg added at constant volume. Variable specific heats. Find the expansion ratio and the thermal efficiency.

State 2: vr2 = vr1 / 10 gives T2 = 730 K, P2 = 2433 kPa.

State 3: u3 = u2 + 1000 kJ/kg gives T3 = 1852 K, P3 = 6173 kPa.

State 4: isentropic expansion to P4 = 100 kPa gives T4 = 666 K and v4 = 1.913 m³/kg, so re = 22.2.

Result: q_out = h4 - h1 = 377.3 kJ/kg; w_net = 622.7 kJ/kg; thermal efficiency = 62.3%. An Otto cycle with the same compression ratio and heat input reaches 55.1%.

Key Diesel and Atkinson cycle quantities

QuantityExpressionNotes
Cutoff ratio (Diesel)rc = v3 / v2Equals T3 / T2, since P3 = P2
Expansion ratio (Atkinson)re = v4 / v3Larger than r
Heat inputDiesel: h3 - h2; Atkinson: u3 - u2Constant P or constant v
Heat rejectedDiesel: u4 - u1; Atkinson: h4 - h1Constant v or constant P
Net workw_net = q_in - q_outIncludes the boundary work of the constant-pressure process
Mean effective pressureMEP = w_net / (v_max - v_min)v_max is v1 for Diesel, v4 for Atkinson

Air-standard dual cycle

The dual (limited pressure) cycle splits heat addition between constant volume and constant pressure, which fits a real compression-ignition engine better than either the Otto or the Diesel cycle alone. The five states are 1 before compression, 2 after isentropic compression, 3 after constant-volume heat addition, 4 after constant-pressure heat addition, and 5 after isentropic expansion back to v1. Enter the compression ratio r = v1/v2, the pressure ratio rp = P3/P2 and the cutoff ratio rc = v4/v3, or the two heat amounts, or any state properties you have.

Setting rc = 1 gives the Otto cycle and rp = 1 gives the Diesel cycle. For cold air-standard the efficiency is eta = 1 - (rp rc^k - 1) / (r^(k-1) [(rp - 1) + k rp (rc - 1)]).

Worked example: dual cycle

Problem: Compression ratio 16, air at 100 kPa and 300 K, pressure ratio 1.5 during constant-volume heat addition, cutoff ratio 1.6. Cold air-standard, k = 1.4. Find the heat input and thermal efficiency.

State 2: T2 = 300 × 160.4 = 909.4 K, P2 = 4850 kPa.

State 3: P3 = 1.5 P2 = 7275 kPa at v3 = v2, so T3 = 1364.1 K and q23 = cv(T3 - T2) = 326.3 kJ/kg.

State 4: v4 = 1.6 v3 at P4 = P3, so T4 = 2182.6 K and q34 = cp(T4 - T3) = 822.2 kJ/kg.

Result: isentropic expansion to v1 gives T5 = 868.9 K and q_out = 408.2 kJ/kg; w_net = 740.2 kJ/kg; thermal efficiency = 64.5%, matching the closed form.

Air-standard Brayton cycle

Switch the Cycle control to Brayton Cycle to solve the air-standard gas turbine cycle, drawn as the closed loop used in textbooks: 1 to 2 compressor, 2 to 3 heat addition at constant pressure, 3 to 4 turbine, 4 to 1 heat rejection at constant pressure. Enter P, T or h at each state, plus the pressure ratio, a work or heat quantity, or the compressor and turbine isentropic efficiencies, and the solver runs the steady-flow energy balance around each device.

The same two property models as the Otto cycle apply. Cold air-standard uses constant specific heats with cp = kR/(k - 1), which gives the closed forms T2 = T1 rp^((k-1)/k) and eta = 1 - rp^((1-k)/k). With the toggle off, enthalpy and the isentropic relation come from tabulated air properties (h and s0, equivalent to the Pr column of a standard air table). When the compressor or turbine is not isentropic, the T–s and P–v diagrams also mark the ideal exit states 2s and 4s.

Worked example: Brayton cycle

Problem: Pressure ratio 8, air enters the compressor at 100 kPa and 300 K, turbine inlet 1300 K. Variable specific heats. Find the back work ratio and thermal efficiency.

State 2: isentropic compression by a factor of 8 in pressure gives T2 = 539.8 K, h2 = 544.17 kJ/kg (h1 = 300.17 kJ/kg).

State 4: isentropic expansion from h3 = 1395.92 kJ/kg gives T4 = 770.4 K, h4 = 789.60 kJ/kg.

Result: compressor work 244.0 kJ/kg, turbine work 606.3 kJ/kg, back work ratio = 40.2%; q_in = 851.7 kJ/kg, thermal efficiency = 42.5%. With 80% compressor and 85% turbine efficiencies the efficiency drops to 26.6%. Cold air-standard with k = 1.4 gives 44.8% for the ideal case.

Key Brayton cycle quantities

QuantityExpressionNotes
Pressure ratiorp = P2 / P1Also P3 / P4 when heat transfer is isobaric
Compressor workw_c = h2 - h1Actual: (h2s - h1) / eta_c
Turbine workw_t = h3 - h4Actual: eta_t (h3 - h4s)
Thermal efficiencyeta = (w_t - w_c) / (h3 - h2)Cold air: 1 - rp^((1-k)/k)
Back work ratiobwr = w_c / w_tTypically 40 to 60%

Brayton cycle with regeneration

When the turbine exhaust is hotter than the compressor exit, a regenerator can use it to preheat the compressed air and cut the fuel heat. The Regenerative Brayton mode has six states: 1 to 2 compressor, 2 to 3 regenerator cold side, 3 to 4 heat addition, 4 to 5 turbine, 5 to 6 regenerator hot side, 6 to 1 heat rejection. The regenerator effectiveness is ε = (h3 - h2) / (h5 - h2), and an energy balance across it gives h3 - h2 = h5 - h6. Enter ε, or a temperature on either side of the regenerator and ε is computed. If the turbine exit is colder than the compressor exit the panel says so, since regeneration is then not possible.

Worked example: regenerative Brayton cycle

Problem: The Brayton cycle above with 80% compressor and 85% turbine efficiencies, plus a regenerator with an effectiveness of 80%. Variable specific heats. Find the thermal efficiency (Cengel and Boles, Example 9-7).

Compressor and turbine: h2 = 605.17 kJ/kg and h5 = 880.55 kJ/kg (h4 = 1395.92 kJ/kg).

Regenerator: h3 = h2 + 0.80(h5 - h2) = 825.48 kJ/kg, so the heat added drops to h4 - h3 = 570.4 kJ/kg.

Result: w_net = 515.4 - 305.0 = 210.4 kJ/kg; thermal efficiency = 36.9%, up from 26.6% without the regenerator.

Vapor-compression refrigeration cycle (R-134a)

Switch the Cycle control to Refrigeration (R-134a) to solve the vapor-compression cycle. Refrigerant properties come from a Helmholtz equation of state for R-134a (Tillner-Roth and Baehr), with enthalpy and entropy referenced to saturated liquid at -40 C, matching the convention in standard refrigerant tables. The four states are linked the same way as the Rankine cycle: enter any two properties at each state and the rest are computed.

  1. 1 to 2: Compressor. Saturated (or superheated) vapor leaving the evaporator is compressed to condenser pressure. Set an isentropic efficiency, or leave the ideal compressor toggle on for an isentropic compression.
  2. 2 to 3: Condenser (isobaric heat rejection). Superheated vapor is cooled and condensed at constant pressure, usually leaving as saturated liquid.
  3. 3 to 4: Expansion valve (isenthalpic throttle). The liquid is throttled to evaporator pressure. Enthalpy is constant across the valve, so h4 = h3.
  4. 4 to 1: Evaporator (isobaric heat absorption). The low-pressure mixture absorbs heat from the cold space and evaporates, completing the loop.

The coefficient of performance is the useful effect over the compressor work. For cooling, COP = (h1 - h4) / (h2 - h1). For heating (a heat pump), COP = (h2 - h3) / (h2 - h1), which is always one greater than the cooling COP for the same cycle. Enter a mass flow rate to convert the refrigeration effect into cooling capacity in kW and tons of refrigeration.

Problem: R-134a cycle, evaporator at 140 kPa, condenser at 800 kPa. Saturated vapor enters the compressor, saturated liquid leaves the condenser, isentropic compressor. Find the COP for cooling.

State 1 (compressor inlet): sat. vapor at 140 kPa. h1 = 239.2 kJ/kg, s1 = 0.9446 kJ/kg·K.

State 2 (compressor exit): s2 = s1 at 800 kPa gives T2 = 39.0 C, h2 = 275.4 kJ/kg.

State 3 (condenser exit): sat. liquid at 800 kPa. h3 = 95.5 kJ/kg.

State 4 (evaporator inlet): throttle from State 3, so h4 = h3 = 95.5 kJ/kg.

Result: refrigeration effect = h1 - h4 = 143.7 kJ/kg; compressor work = h2 - h1 = 36.2 kJ/kg; COP_cooling = 3.97, COP_heating = 4.97.

Checking method

Each cycle's math is checked against an independent reference before release.

  • Steam (Rankine). 22 states entered by P and T, P and x, P and s, and P and h, from 8 kPa to 20 MPa, compared with CoolProp's IAPWS-95 water model. All h, s, T and v values agree within 0.02%, which is the expected gap between IF97 and IAPWS-95.
  • R-134a (refrigeration). 11 states compared with CoolProp on the same reference state as standard R-134a tables. All values agree within 1 part in 109.
  • Otto. Cold air-standard results against the closed forms, and variable specific heats against CoolProp's ideal-gas specific heat for air, integrated separately. T2, T3, T4, net work and efficiency agree within 0.003%.
  • Brayton. 102 checks against CoolProp, the closed forms, and Cengel and Boles Examples 9-5 and 9-6, including backward solving (outputs in, inputs out).
  • Diesel and Atkinson. 250 checks against the closed forms, CoolProp and Cengel and Boles Example 9-3, including backward solving.
  • Dual, regenerative Brayton and reheat Rankine. 33 checks of a separate reference solution against the dual cycle closed form, the Otto and Diesel limits of the dual cycle, the plain Brayton limit of the regenerator, Cengel and Boles Examples 9-7 and 10-4, and CoolProp steam, then 393 values from the tool compared with that reference, including backward solving.

Limits: Rankine with at most one reheat and no regeneration (feedwater heaters), IF97 Regions 1, 2 and 4 only (no Region 3, the area around the critical point, and no steam above 800 C), and R-134a as the only refrigerant.

Frequently asked questions

What is IAPWS-IF97?

IAPWS-IF97 is the International Association for the Properties of Water and Steam industrial formulation from 1997. It covers water and steam from 0 to 800 C and up to 100 MPa using region-based equations for enthalpy, entropy, and specific volume. This solver implements Regions 1 (compressed liquid) and 2 (superheated steam) along with the saturation curve (Region 4).

What does "two independent properties fix a state" mean?

For a pure substance with one phase (liquid or vapor), specifying any two intensive properties (P, T, h, s, v) fully determines the thermodynamic state. In the two-phase region, P and T are no longer independent, so you need quality x as one of the two inputs instead. The solver detects which region a state is in and uses the appropriate equations.

Why is my turbine exit quality below 0.85?

Low exit quality means a large fraction of the steam is liquid droplets at the turbine exit, which erodes turbine blades. The practical lower limit is usually around x = 0.85. To increase exit quality, superheat the steam further or add a reheat stage. Raising the boiler pressure at the same turbine inlet temperature does the opposite: it raises efficiency but lowers the exit quality, which is why high-pressure plants use reheat.

Can I use this for refrigeration cycles?

Yes. Switch the Cycle control in the sidebar to Refrigeration (R-134a) and the tool solves the vapor-compression cycle using a Helmholtz equation of state for R-134a. The same fill-what-you-know approach applies: enter any two properties at each state and it propagates the rest, then reports COP for cooling and heating. Other refrigerants are not included.

Related tools

  • Equation of motion and transfer function solver, for mechanical vibration and transfer functions.
  • All Resultant tools, free body diagrams, beams, sections, stress transformation and more.

Part of Resultant, free browser tools for engineering coursework. Every tool with a calculation is checked against an independent reference; the verification page lists each one.

Cite as: Resultant, “Thermodynamics Cycle Solver,” resultant.tools/thermodynamics-solver, updated Sep 21, 2026.

Resultant  ·  Verification  ·  Privacy  ·  Updated Sep 21, 2026