Energy balance calculator
This energy balance calculator applies the first law of thermodynamics to process equipment: the heat duty of a steady-flow stream with its enthalpy, kinetic and potential energy terms shown separately, the outlet temperature when two streams mix, and ΔU = Q − W for a closed system.
Steady-flow energy balance calculator: heat duty
Energy balance calculator for mixing two streams
Closed-system energy balance calculator: ΔU = Q − W
How to use the energy balance calculator
The first panel is for open systems at steady state: a stream flows through a heater, cooler, pump, turbine, pipe or nozzle. Enter the mass flow, the enthalpy change (either directly in kJ/kg or from cp and the two temperatures), the inlet and outlet velocities and elevations, and any shaft work. The energy balance calculator returns the heat that must be added, and lists the enthalpy, kinetic and potential energy terms separately so you can see which ones matter. The second panel mixes two streams with no heat loss and finds the outlet temperature, plus the heater or cooler duty to reach a target temperature. The third panel is the closed-system form of the first law for a fixed mass in a tank or piston-cylinder.
The first law of thermodynamics for process systems
Energy is conserved: whatever enters a system as heat, work or with flowing material either leaves or accumulates. For a steady-flow (open) system with one inlet and one outlet, the accumulation is zero and the balance per unit time is:
Q is the heat transfer rate into the stream (W), Ws the shaft work rate done by the stream on moving parts (W), ṁ the mass flow rate (kg/s), h the specific enthalpy (J/kg), v the velocity (m/s), z the elevation (m) and g = 9.80665 m/s². Enthalpy is used rather than internal energy because it already includes the flow work P·V needed to push fluid in and out. For a closed system there is no flow, and the balance reduces to:
NASA Glenn Research Center’s first law page gives a short introduction to the closed-system form. The derivation of the open-system equation and many worked process problems are in Felder and Rousseau, Elementary Principles of Chemical Processes (Wiley), chapters 7 and 8, the standard reference for this energy balance calculator.
Sign conventions in the energy balance calculator
| Quantity | Positive when | Examples |
|---|---|---|
| Q, heat | Heat flows into the system | Steam heater, reboiler, furnace: Q positive. Cooler, condenser: Q negative |
| Ws, shaft work | The system does work on the surroundings | Turbine, expander: Ws positive. Pump, compressor, fan: Ws negative |
| Δh, ΔU | The outlet (final) value is higher | Heating a liquid, evaporating it |
Some textbooks, including the IUPAC convention used in physical chemistry and some recent editions of chemical engineering texts, count work done on the system as positive and write ΔU = Q + W. Both forms give the same physics; just do not mix them. This energy balance calculator uses Q − Ws with Ws done by the system.
Worked example with the energy balance calculator: heating and pumping water
Water flows at 2 kg/s through a pump and heater. It enters at 20 °C, 1 m/s and ground level, and leaves at 80 °C, 3 m/s and 10 m higher. The pump puts 5 kW into the fluid, so Ws = −5 kW. With cp = 4.18 kJ/(kg·K):
Enthalpy term: ṁ·cp·ΔT = 2 × 4180 × 60 = 501,600 W. Kinetic term: 2 × (3² − 1²)/2 = 8 W. Potential term: 2 × 9.80665 × 10 = 196.1 W. Heat required: Q = −5000 + 501,600 + 8 + 196.1 = 496,804 W ≈ 496.8 kW. These are the default inputs of the energy balance calculator. The kinetic and potential terms together are only 0.04% of the enthalpy term, while the pump work reduces the heater duty by 1%.
Mixing example. 3 kg/s of water at 80 °C mixes with 2 kg/s at 20 °C. With equal cp, T = (3 × 80 + 2 × 20) / 5 = 56 °C. To bring the 5 kg/s blend to 60 °C needs Q = 5 × 4.18 × (60 − 56) = 83.6 kW. Because the mixing temperature is a weighted average, it can be computed in °C or K with the same result.
Why kinetic and potential energy are usually negligible
Compare the size of each term per kilogram of fluid. A temperature change of only 1 K in water is 4.18 kJ/kg; boiling it is 2257 kJ/kg. The mechanical terms are tiny by comparison:
| Change | Energy per kg | Equivalent temperature rise of water |
|---|---|---|
| Velocity 0 → 3 m/s (typical liquid line) | 0.0045 kJ/kg | 0.001 K |
| Velocity 0 → 30 m/s (gas line) | 0.45 kJ/kg | 0.11 K |
| Velocity 0 → 300 m/s (steam nozzle, turbine) | 45 kJ/kg | 10.8 K |
| Elevation +10 m | 0.098 kJ/kg | 0.023 K |
| Elevation +100 m | 0.98 kJ/kg | 0.23 K |
So for heaters, coolers, reactors and columns the energy balance reduces to Q = ṁ·Δh. Keep the kinetic term for nozzles, diffusers, turbines and high-velocity gas flow, and the potential term for pumps and hydraulic systems where there is little heat transfer, as in the Pump Power Calculator.
Common mistakes when using an energy balance calculator
Sign convention errors. Entering pump work as +5 kW instead of −5 kW changes the result by 10 kW. Decide the convention first and write it down. Mixing °C and K. Temperature differences are the same in both, so cp·ΔT works either way, but anything using an absolute temperature (ideal gas law, radiation, mixing of gases by volume) must be in kelvin. Forgetting latent heat. If the stream boils or condenses, cp·ΔT is wrong; enter Δh directly using the Enthalpy Calculator or steam tables. Units of v²/2. m²/s² equals J/kg, not kJ/kg; a factor of 1000 is a classic exam trap. No mass balance first. An energy balance needs the flows, so solve the Mass Balance Calculator first when outlet flows are unknown.
Where the energy balance calculator fits in process design
Energy balances size every heat transfer item on a flowsheet. The heat duty from the first panel is the Q you then use in the Heat Exchanger Duty Calculator and in the LMTD method to get an area. The mixing panel answers quick plant questions such as the return temperature of a blended cooling water line or the steam needed to warm a mixed feed tank. For adiabatic reactors, the same balance with heats of reaction gives the outlet temperature. Using an energy balance calculator for these checks keeps the arithmetic and the sign convention consistent across a whole design.
Related calculators
Start with the Mass Balance Calculator to fix the flows, then use this energy balance calculator for the duty. The Enthalpy Calculator gives Δh including latent and reaction heat, and the Temperature Converter switches between °C, °F and K.
- Mass Balance Calculator
- Enthalpy Calculator
- Heat Exchanger Duty Calculator
- Pump Power Calculator
- Ideal Gas Law Calculator
- All chemical engineering calculators
Frequently asked questions
What is the steady-flow energy equation?
Q − Ws = ṁ·[Δh + Δv²/2 + g·Δz], with Q heat into the stream and Ws shaft work done by the stream. For most heat exchangers it simplifies to Q = ṁ·Δh = ṁ·cp·ΔT.
Is pump work positive or negative in the energy balance?
With the convention used here (work done by the system positive), pump and compressor work is negative because work is done on the fluid. Turbine work is positive.
How do I calculate the temperature after mixing two streams?
If there is no phase change or heat loss, T = (ṁ₁cp₁T₁ + ṁ₂cp₂T₂) / (ṁ₁cp₁ + ṁ₂cp₂). The second panel of the energy balance calculator does this and also gives the heat needed to reach a target temperature.
When can I ignore kinetic and potential energy?
The energy balance calculator shows each term so you can judge, but as a rule whenever there is significant heating, cooling or phase change. A 30 m/s velocity change or 100 m elevation change is worth well under 1 kJ/kg, less than a quarter of a degree for water.
Is this energy balance calculator free?
Yes. It runs in your browser, needs no sign-up and does not store or send the values you enter.