Continuity Equation Calculator
- The continuity equation is mass conservation for a flowing fluid: what enters a pipe section each second must leave it, so A1 x v1 = A2 x v2 for an incompressible flow.
- Section 1: a diameter of 10.0 cm gives an area of 78.54 cm²; at 2.0 m/s the flow rate is 15.71 L/s.
- Section 2 narrows or widens to 5.0 cm, an area of 19.63 cm².
- Velocity in section 2 = 15.71 L/s / 19.63 cm², which works out to 8.00 m/s — equivalently, v1 x (d1/d2)² = 2.0 x 4.
- The squared diameter ratio is the whole intuition: halve the diameter and the same flow moves four times as fast — the garden-hose effect. The equation assumes steady, incompressible flow, a good model for liquids at ordinary speeds.
This continuity equation calculator applies the principle of mass conservation for a flowing fluid: A1 x v1 = A2 x v2. In plain terms, what flows in each second must flow out. For an incompressible fluid, the volume flow rate Q = A x v stays the same at every section. Enter any three of the four values for two points in a pipe or channel and the calculator returns the missing one. Because area scales with diameter squared, velocity scales with the inverse square: halving the diameter from 10 cm to 5 cm quadruples the speed from 2 to 8.00 m/s. Widening does the reverse: from 4 cm to 8 cm the same flow slows from 3 to 0.75 m/s. The calculator also handles unit conversions, using L/s from m³/s by 1,000, and m³/h by 3,600 — so 15.71 L/s equals 56.55 m³/h.
The continuity equation assumes steady, incompressible flow, which makes it an excellent model for liquids at ordinary speeds. It is the accepted standard behind why nozzles, venturis, and garden-hose thumbs work: squeeze the area and the fluid must speed up to keep the same flow rate. This page shows the formula, step-by-step workings, worked examples, and sources so you can verify every result and apply the method with confidence.
Worked examples
A nozzle halving the diameter
Primary result: 8.00 m/s — Halve the diameter and the flow quadruples in speed: 8.00 m/s through the nozzle. (10 · 2 · 5)
| Velocity in section 2 | 8.00 m/s |
| Flow rate | 15.71 L/s |
| Flow rate per hour | 56.55 m³/h |
| Area ratio (A1/A2) | 4 |
Into a wider main
Primary result: 0.75 m/s — Widening from 4 cm to 8 cm quarters the velocity to 0.75 m/s at the same flow rate. (4 · 3 · 8)
| Velocity in section 2 | 0.75 m/s |
| Flow rate | 3.77 L/s |
| Flow rate per hour | 13.57 m³/h |
| Area ratio (A1/A2) | 0.25 |
A gentle contraction
Primary result: 2.70 m/s — A 15-to-10 cm contraction raises 1.2 m/s to 2.70 m/s. (15 · 1.2 · 10)
| Velocity in section 2 | 2.70 m/s |
| Flow rate | 21.21 L/s |
| Flow rate per hour | 76.34 m³/h |
| Area ratio (A1/A2) | 2.25 |
How the continuity equation is used
The continuity equation is mass conservation for a flowing fluid: A1 x v1 = A2 x v2. In plain terms, what flows in each second must flow out. For an incompressible fluid, the volume flow rate Q = A x v is the same at every section, which is why a continuity equation calculator can solve for any one unknown once the other three values are supplied. The equation assumes steady, incompressible flow — an excellent model for liquids at ordinary speeds, and the reason nozzles, venturis and garden-hose thumbs work.
Because area scales with diameter squared, velocity scales with the inverse square. The first worked example shows this clearly: halving the diameter from 10 cm to 5 cm quadruples the speed from 2 to 8.00 m/s. The calculator first derives each cross-sectional area from the given diameters, then applies the shared flow rate to solve for the second velocity. In this case the volume flow rate is 15.71 L/s, which the tool converts using standard flow rate conversions: L/s from m³/s by 1,000, and m³/h by 3,600 — 15.71 L/s is 56.55 m³/h.
Widening does the reverse. From 4 cm to 8 cm the same flow slows from 3 to 0.75 m/s. Doubling the diameter quadruples the area, so the speed drops to one quarter. The continuity equation calculator handles both directions the same way: it takes the known diameter and velocity at one section, computes the area, carries the shared flow rate to the second section, and solves for the unknown velocity from the second diameter.
These three steps — deriving areas from diameters, using the shared flow rate, and solving for the second velocity — cover the vast majority of real applications. Whether the pipe narrows or widens, the same mass must pass through every section each second, so the velocity adjusts to keep Q constant.
The squared-diameter shortcut
The continuity equation is mass conservation for a flowing fluid: A1 x v1 = A2 x v2 — what flows in each second must flow out. For an incompressible fluid the volume flow rate Q = A x v is the same at every section. That gives you 15.71 L/s in the first worked example, which converts to 56.55 m³/h. But here is the practical insight that makes a continuity equation calculator genuinely useful in the field: you almost never need to compute areas at all.
Because area scales with diameter squared, velocity scales with the inverse square. The shortcut formula is v2 = v1 x (d1/d2)². Halving the diameter from 10 cm to 5 cm quadruples the speed from 2 to 8.00 m/s. Widening does the reverse: from 4 cm to 8 cm the same flow slows from 3 to 0.75 m/s. Plumbers and nozzle designers think in diameter ratios, not areas, because pipes and fittings are specified by diameter. You read the diameter off the part, square the ratio, and you have your velocity change — no pi, no radius, no area step.
The equation assumes steady, incompressible flow — an excellent model for liquids at ordinary speeds, and the reason nozzles, venturis and garden-hose thumbs work. Water at normal pressures and velocities changes density so little that treating it as incompressible introduces negligible error. When you put your thumb over a garden hose, you reduce the exit diameter, and the squared-diameter shortcut tells you exactly how much faster the water leaves. The same logic governs a fire nozzle, a kitchen faucet aerator, and a venturi flow meter.
- Shortcut formula: v2 = v1 x (d1/d2)²
- Halving diameter quadruples velocity: 10 cm to 5 cm takes speed from 2 to 8.00 m/s
- Doubling diameter quarters velocity: 4 cm to 8 cm takes speed from 3 to 0.75 m/s
- Flow rate conversions: L/s from m³/s by 1,000; m³/h by 3,600
Where the assumptions bend
A continuity equation calculator relies on the assumption that the fluid is incompressible and the flow is steady. For liquids at ordinary speeds, that model is excellent, and it is the reason nozzles, venturis and garden-hose thumbs work so predictably. The math is simply mass conservation for a flowing fluid: A1 x v1 = A2 x v2 — what flows in each second must flow out. For an incompressible fluid the volume flow rate Q = A x v is the same at every section, as shown by the 15.71 L/s value in the first worked example. Because area scales with diameter squared, velocity scales with the inverse square: halving the diameter from 10 cm to 5 cm quadruples the speed from 2 to 8.00 m/s, while widening from 4 cm to 8 cm slows the same flow from 3 to 0.75 m/s. Those clean ratios hold only while density stays constant and nothing pulses.
The first assumption to fail is incompressibility, and gases are the usual culprit. At low speeds air behaves nearly like a liquid, and the simple equation still gives useful answers. Once a gas accelerates, its density drops as pressure falls, so the same mass must occupy more volume. The relationship A1 x v1 = A2 x v2 no longer holds in its basic form because the volume flowing through each section is no longer equal. A nozzle pushing air to high speed shrinks in area far less than the liquid equation would predict, since the gas stretches as it thins. Any tool built on the incompressible model will understate the exit area or overstate the velocity once compressibility matters.
The second assumption is steadiness, meaning the flow rate at a given point does not change with time. Pulsatile flow breaks this directly. In a beating heart or a peristaltic pump, the velocity at one section swings from near zero to a peak and back, so the value you read at one instant is not the value a moment later. The continuity equation still describes mass conservation at each instant, but a single steady Q no longer captures the system. Averaging over a cycle helps, yet the peak velocities — which often matter most for stress or noise — can be far higher than the average suggests.
Leaks and side paths break the model in a quieter way. The equation assumes that everything entering the first section leaves through the second, with no fluid added or removed along the way. A cracked pipe, a branch fitting, or a worn seal lets mass escape between sections, so A2 x v2 will be smaller than A1 x v1 by the amount lost. Users who notice a mismatch sometimes blame the arithmetic when the real cause is an unmeasured exit. Flow rate conversions used here — L/s from m³/s by 1,000, and m³/h by 3,600 — will not fix that gap: 15.71 L/s is 56.55 m³/h, but only if no fluid is missing.
Continuity at work
The continuity equation is mass conservation for a flowing fluid: A1 x v1 = A2 x v2. In plain terms, what flows in each second must flow out. For an incompressible fluid the volume flow rate Q = A x v is the same at every section, which is why the equation appears in so many practical settings. A continuity equation calculator can show the effect in seconds, but the underlying principle is the same whether the fluid is water in a pipe, air in a carburettor, or blood in an artery.
Because area scales with diameter squared, velocity scales with the inverse square. Halving the diameter from 10 cm to 5 cm quadruples the speed from 2 to 8.00 m/s. That is why a garden hose sprays farther when you partly cover the opening. Widening does the reverse: from 4 cm to 8 cm the same flow slows from 3 to 0.75 m/s. A river narrows and the current quickens; a river widens and it eases. The first worked example gives a volume flow rate of 15.71 L/s, which converts to 56.55 m³/h.
The same principle explains a venturi meter, where a deliberate constriction creates a pressure drop that engineers can measure to find flow rate. A carburettor uses a narrower passage to speed air past a fuel jet, drawing fuel into the airstream. In medicine, blood flow through a stenosis — a narrowed artery — speeds up at the restriction, which can raise shear stress on the vessel wall. One equation, many costumes.
The equation assumes steady, incompressible flow. That is an excellent model for liquids at ordinary speeds, and the reason nozzles, venturis, and garden-hose thumbs work as well as they do. Gases at high speed or pulsing flow may call for a more complete treatment, but for the cases above the continuity equation is all you need. Flow rate conversions used here: L/s from m³/s by 1,000, and m³/h by 3,600.
FAQs
What is the continuity equation?
The continuity equation states A1 x v1 = A2 x v2. For incompressible flow, the product of cross-sectional area and velocity is constant along a pipe. This means that when a pipe narrows, the fluid velocity increases proportionally so that the same volume of fluid passes through each section every second.
How do you find the velocity in a narrower pipe?
Multiply by the squared diameter ratio. For example, if the diameter halves from 10 to 5, the velocity becomes 2 m/s x (10/5)² = 8.00 m/s. Because area scales with the square of diameter, halving the diameter quadruples the velocity in the narrower section.
What is the flow rate in the examples?
Using Q = A x v, the flow rate is 15.71 L/s (56.55 m³/h) in the first example. It is identical in both sections — that is the point of the equation. The continuity equation ensures that whatever enters one section of the pipe must exit the other, keeping flow rate constant throughout.
Why does fluid speed up in a narrow section?
Because the same volume per second must pass a smaller area — the fluid has nowhere else to go. When the pipe contracts, the cross-sectional area decreases, so the velocity must increase to maintain the same flow rate. This keeps the total volume passing through each section equal over time.
Does continuity apply to gases?
In its density-weighted form, yes. The simple A1v1 = A2v2 form assumes incompressibility, which fails for fast gas flow. At high speeds, gases compress and their density changes, so you must account for density variation. For slow-moving gas where density stays nearly constant, the simple form still works reasonably well.
What is the area ratio for a 15 cm to 10 cm contraction?
The area ratio is (15/10)² = 2.25, so the velocity rises by that factor. Starting at 1.2 m/s, the velocity becomes 2.70 m/s in the narrower section. The diameter ratio is squared because area depends on diameter squared, making the velocity increase more than the diameter ratio alone would suggest.