Refrigeration Cycle Diagram Generator with P-h Diagram

Set the evaporating and condensing temperatures, or type your own state points. The schematic, the pressure-enthalpy diagram on real R-134a saturation data and the COP update as you type, ready to export as SVG, PNG or CSV.

R-134a cycle

Set the operating temperatures, or enter your own state points. The diagram, the P-h chart and the COP update as you type.

Assumes saturated vapor into the compressor, saturated liquid out of the condenser, isenthalpic expansion and no pressure drops. At 100% efficiency compression is isentropic.

Vapor-compression refrigeration cycleR-134a, evaporating −10.0 °C, condensing 40.0 °CCondenserEvaporatorExpansion valveCompressor1234High-pressure side (compressor outlet to valve)Condensing pressure 10.17 barLow-pressure side (valve to compressor inlet)Evaporating pressure 2.01 barSuperheated vaporT = 46.3 °CP = 10.17 barh = 426.45 kJ/kgSaturated vaporT = −10.0 °CP = 2.01 barh = 392.66 kJ/kgSaturated liquidT = 40.0 °CP = 10.17 barh = 256.41 kJ/kgLiquid-vapor, x = 0.34T = −10.0 °CP = 2.01 barh = 256.41 kJ/kgq_H = 170.04 kJ/kg rejectedq_L = 136.25 kJ/kg absorbedw = 33.79 kJ/kg in1001502002503003504004505000.5125102050Specific enthalpy h (kJ/kg, IIR reference state)Absolute pressure P (bar, log scale)Critical point 101.1 °C, 40.6 bar−40 °C−20 °C0 °C20 °C40 °C60 °CSubcooled liquidLiquid + vaporSuperheated vaporCondensing 10.17 barEvaporating 2.01 bar1h1 = 392.66 kJ/kgT = −10.0 °C2h2 = 426.45 kJ/kgT = 46.3 °C3h3 = 256.41 kJ/kgT = 40.0 °C4h4 = 256.41 kJ/kgT = −10.0 °C1 to 2 compression2 to 3 condensation3 to 4 throttling4 to 1 evaporationDome: R-134a saturation data from NIST, shown from -40 °C to the critical point. Compression is drawn as a straight line; the real path curves slightly.Refrigerating effect q_L = h1 − h4 = 392.66 − 256.41 = 136.25 kJ/kgCompressor work w = h2 − h1 = 426.45 − 392.66 = 33.79 kJ/kgHeat rejected q_H = h2 − h3 = 426.45 − 256.41 = 170.04 kJ/kgCOP (cooling) = q_L / w = 136.25 / 33.79 = 4.03COP (heating) = q_H / w = 5.03Ideal cycle: saturated vapor into the compressor, isentropic compression, saturated liquid out of the condenser, isenthalpic expansion, no pressuredrops.R-134a properties: NIST Chemistry WebBook (webbook.nist.gov), retrieved 2026-10-12, IIR reference state.Schematic is not to scale.

Scroll the diagram sideways, or use View image for a full-size look.

State points of the cycle
StateConditionT (°C)P (bar)h (kJ/kg)
1Saturated vapor−10.02.006392.66
2Superheated vapor46.310.166426.45
3Saturated liquid40.010.166256.41
4Liquid-vapor, x = 0.34−10.02.006256.41
q_L = h1 − h4 =
136.25 kJ/kg
w = h2 − h1 =
33.79 kJ/kg
q_H = h2 − h3 =
170.04 kJ/kg
COP (heating) = q_H / w =
5.03
Carnot COP at the same temperatures = T_e / (T_c − T_e) =
5.26

COP = q_L / w = 136.25 / 33.79 = 4.03

What is the refrigeration cycle?

The vapor-compression refrigeration cycle moves heat from a cold space to a warmer one using a refrigerant that is repeatedly evaporated and condensed. Four parts do the work: a compressor, a condenser, an expansion valve and an evaporator. Numbering the refrigerant states 1 to 4 around the loop turns the figure into a calculation: every heat and work quantity is a difference between two enthalpies.

The generator draws that loop as a schematic and, below it, as a pressure-enthalpy (P-h) diagram, the chart engineers use because the evaporator and condenser become horizontal lines and the throttling step a vertical one. The dome is drawn from tabulated R-134a saturation data, so the cycle sits where it really would for the temperatures you choose. For equipment and duct layouts rather than the cycle itself, use the HVAC diagram generator.

Refrigeration cycle schematic and R-134a pressure-enthalpy diagram for an ideal cycle between minus 10 and 40 degrees Celsius with a COP of 4.03
Exported from the generator above: ideal R-134a cycle, evaporating at −10 °C and condensing at 40 °C, no machine design implied.

The four stages, state by state

  1. 1

    Compression, 1 to 2

    Low-pressure vapor from the evaporator is compressed to the condensing pressure. Its pressure, temperature and enthalpy rise, and the work input is w = h2 − h1. An ideal compressor is isentropic; a real one needs more work, which the efficiency field models.

  2. 2

    Condensation, 2 to 3

    The hot vapor gives up heat to the outside air or water. It cools to saturated vapor, condenses at constant pressure and leaves as saturated or slightly subcooled liquid. The heat rejected is q_H = h2 − h3.

  3. 3

    Expansion, 3 to 4

    The expansion valve (or capillary tube) drops the pressure to the evaporator level. No heat or work is exchanged, so the enthalpy does not change: h4 = h3. Part of the liquid flashes to vapor, which is why state 4 is a liquid-vapor mixture.

  4. 4

    Evaporation, 4 to 1

    The cold mixture absorbs heat from the space being cooled and boils at constant pressure. The refrigerating effect is q_L = h1 − h4. An ideal cycle ends this step as saturated vapor.

How to calculate COP, with a worked example

Coefficient of performance for cooling is the useful cooling divided by the work you pay for: COP = q_L / w, with q_L = h1 − h4 and w = h2 − h1 (kJ/kg of refrigerant). The heat rejected is q_H = h2 − h3, and an energy balance gives q_H = q_L + w.

Take an ideal R-134a cycle evaporating at −10 °C (2.006 bar) and condensing at 40 °C (10.166 bar). The NIST table gives saturated vapor at −10 °C h1 = 392.66 kJ/kg and saturated liquid at 40 °C h3 = 256.41 kJ/kg, so h4 = 256.41. Isentropic compression of state 1 to 10.166 bar ends at h2 = 426.45 kJ/kg (46.3 °C). Then:

  • q_L = 392.66 − 256.41 = 136.25 kJ/kg
  • w = 426.45 − 392.66 = 33.79 kJ/kg
  • q_H = 426.45 − 256.41 = 170.04 kJ/kg = 136.25 + 33.79
  • COP = 136.25 / 33.79 = 4.03; heating COP = 170.04 / 33.79 = 5.03

The Carnot limit between the same temperatures is T_e / (T_c − T_e) = 263.15 / 50 = 5.26, so the ideal vapor-compression cycle reaches about 77% of it. Enter a cooling capacity in the tool to get the refrigerant mass flow and compressor power: for 10 kW, 10 / 136.25 = 0.0734 kg/s and 0.0734 × 33.79 = 2.48 kW.

Refrigeration cycle schematic and R-134a pressure-enthalpy diagram for a freezer with a 70 percent efficient compressor and a COP of 1.89
Same condenser, a colder evaporator (−25 °C) and a 70% efficient compressor: the lift is bigger, the work longer and the COP falls to 1.89.

How to read a P-h diagram

Enthalpy runs left to right and absolute pressure runs up, usually on a log scale so low and high pressures both fit. Inside the dome the refrigerant is a liquid-vapor mixture; left of it is liquid, right of it is vapor. The cycle is a rectangle with a slanted top-right corner: the bottom line (4 to 1) is the evaporator, the top line (2 to 3) is the condenser, the vertical line (3 to 4) is the expansion valve, and the slanted line (1 to 2) is the compressor. Because energy is read off the horizontal axis, q_L is the width of the bottom line, w is the horizontal run of the slanted one, and a longer compression line at the same q_L means a lower COP.

R-134a saturation table (every 5 °C)

The values behind the dome, from the NIST Chemistry WebBook fluid properties for R-134a, retrieved 2026-10-12. IIR reference state: h = 200 kJ/kg for saturated liquid at 0 °C. Pressures are absolute; hf is saturated liquid and hg saturated vapor.

R-134a saturation properties every 5 °C
T (°C)P (bar abs.)hf (kJ/kg)hg (kJ/kg)
-400.512148.14374.00
-350.661154.44377.17
-300.844160.79380.32
-251.064167.19383.45
-201.327173.64386.55
-151.639180.14389.63
-102.006186.70392.66
-52.433193.32395.66
02.928200.00398.60
53.497206.75401.49
104.146213.58404.32
154.884220.48407.07
205.717227.47409.75
256.654234.55412.33
307.702241.72414.82
358.870249.01417.19
4010.166256.41419.43
4511.599263.94421.52
5013.179271.62423.44
5514.915279.47425.15
6016.818287.50426.63
6518.898295.76427.82
7021.168304.28428.65
7523.641313.13429.03
8026.332322.39428.81

Source: NIST Chemistry WebBook, R-134a. The tool uses the full 1 K table.

Superheat and subcooling on the diagram

Superheat is how far the vapor leaving the evaporator is above its saturation temperature at that pressure. It moves state 1 to the right of the dome and keeps liquid out of the compressor. Subcooling is how far the liquid leaving the condenser is below its saturation temperature. It moves state 3 to the left of the liquid line, which also moves state 4 left, because h4 = h3. Both need a pressure converted to a saturation temperature, which is what the table above is for.

A quick estimate with the numbers from the worked example: subcool the 40 °C condenser outlet by 5 K, so the liquid is at 35 °C. Taking its enthalpy as that of saturated liquid at 35 °C (a common approximation, good to a fraction of a percent here), h3 = 249.01 kJ/kg. The refrigerating effect becomes 392.66 − 249.01 = 143.65 kJ/kg, up from 136.25, while the compressor work is unchanged, so COP rises from 4.03 to 4.25. Enter those values in the enthalpy mode to see the shifted states. The temperature mode itself draws the ideal cycle without superheat or subcooling.

Ideal cycle versus a real system

The temperature mode draws the textbook cycle: saturated vapor enters the compressor, saturated liquid leaves the condenser, the valve is isenthalpic and there are no pressure drops. Real systems add superheat at the evaporator outlet, subcooling at the condenser outlet, line losses and a compressor below 100% isentropic efficiency, and they draw their evaporating and condensing temperatures from the heat exchangers and the air or water temperatures. Use the efficiency field for a first look at the penalty, and the enthalpy mode when you have measured or tabulated states.

Common mistakes

  • Mixing enthalpy references. Tables and software use different zero points, so an h from one source cannot be subtracted from an h in another. This page uses the IIR reference (200 kJ/kg for saturated liquid at 0 °C); differences between h values are what matter, and they only work within one table.
  • Using gauge pressure on the P-h diagram. The axis is absolute pressure. Add about 1.01 bar to a gauge reading before you type it into the manual mode.
  • Treating the ideal COP as a machine rating. The ideal cycle has no pressure drops, no superheat or subcooling and a perfect compressor. Measured COP is lower, and the efficiency field only shows the direction.
  • Putting state 4 on the saturated liquid line. After the valve the refrigerant is a mixture, so state 4 sits inside the dome at the same enthalpy as state 3.
  • Reading the isentropic line as straight. On a log-pressure chart the true compression path curves slightly; this tool draws a straight line between 1 and 2.

Using it responsibly

The tool is for teaching, homework, reports and quick estimates. It covers one refrigerant and one simple cycle, and it does not size equipment or replace manufacturer data and refrigerant handling rules. For equipment drawings, see the HVAC diagram generator or the schematic maker, and see how to make an HVAC diagram for the system-level figure.

Refrigeration Cycle Examples

Exact exports from the generator above, computed from NIST R-134a data

View:

Ideal R-134a Cycle: -10 °C Evaporating, 40 °C Condensing

Exact render: saturated vapor into the compressor, isentropic compression, saturated liquid out of the condenser. COP = 136.25 / 33.79 = 4.03.

ideal cycleR-134aP-h diagram

R-134a Freezer Cycle with a 70% Efficient Compressor

Exact render: the same condenser temperature at a colder evaporator and a 70% efficient compressor. COP = 127.04 / 67.31 = 1.89.

freezercompressor efficiencyCOP

Frequently Asked Questions