Conservation of Mass (Continuity Equation)
The conservation of mass principle gives you a way to track fluid as it moves through a system. Because mass can't be created or destroyed, any fluid entering a control volume must either accumulate inside it or leave through an outlet. The continuity equation is the mathematical statement of this balance, and it's one of the most-used tools in fluid mechanics for analyzing pipes, nozzles, ducts, and branching flow networks.
Conservation of Mass Equation
A control volume is a fixed region in space that you define for analysis. Fluid flows into and out of this region through its boundary, called the control surface. Think of it like drawing an invisible box around a section of pipe: you don't track individual fluid particles, you just monitor what crosses the boundaries.
The mass balance for a control volume says: the rate of change of mass stored inside the control volume, plus the net mass flux leaving through the control surface, equals zero.
Here's what each term means:
- โ fluid density (kg/mยณ)
- โ velocity vector of the fluid (m/s)
- โ outward-pointing unit normal vector on the control surface
- โ differential volume element (mยณ)
- โ differential area element on the control surface (mยฒ)
The first integral tracks how much mass is accumulating (or depleting) inside the control volume over time. The second integral sums up the mass flux across every part of the control surface. The dot product is positive where flow leaves (outflow) and negative where flow enters (inflow), which is why this single integral captures the net mass flow.

Continuity Equation Simplification
Two assumptions dramatically simplify the general equation:
Steady-state flow means flow properties at any fixed point don't change with time. The storage term drops out:
Incompressible flow means density is constant throughout the fluid. Since doesn't vary, you can pull it out of the surface integral and then cancel it entirely.
With both assumptions, the continuity equation reduces to:
For a control volume with one inlet and one outlet where velocity is uniform across each cross-section, this becomes:
where is the cross-sectional area (mยฒ) and is the average velocity (m/s). Both sides represent the volume flow rate (mยณ/s), so you can also write this as .
This relationship is why fluid speeds up when it enters a narrower section of pipe. If the area shrinks by half, the velocity must double to maintain the same volume flow rate. A venturi meter exploits exactly this effect to measure flow speed.

Mass Flow Rate Calculations
The mass flow rate is the mass of fluid passing through a cross-section per unit time (kg/s):
For steady, incompressible flow with multiple inlets and outlets (like a branching pipe junction), conservation of mass requires:
Since is constant and cancels, this is equivalent to:
Solving a typical problem follows these steps:
- Sketch the control volume and identify all inlets and outlets.
- Write the continuity equation: .
- Substitute for each inlet and outlet.
- Plug in known values (densities, areas, velocities) and solve for the unknown.
Example: Water flows into a T-junction through a 0.1 mยฒ pipe at 3 m/s. It exits through two branches: one with area 0.06 mยฒ at 2 m/s, and one with area 0.04 mยฒ. Find the velocity in the second branch.
The key takeaway for area-velocity relationships: in steady, incompressible flow, . A decrease in cross-sectional area always produces a proportional increase in velocity, and vice versa. This inverse relationship between area and velocity shows up constantly in nozzle design, pipe sizing, and flow measurement devices.