Hydraulic Diameter Calculator
Hydraulic Diameter Calculator
D_h = 4A/P for a round pipe, a rectangular or square duct, an annulus, parallel plates, a part-full pipe, a trapezoidal channel or any section you can measure — with the hydraulic radius beside it, a plain statement of which of the two your next formula wants, and the exact laminar friction constant for the section, because it is not 64/Re unless the section is round. For engineers setting up an internal-flow simulation or checking one.
Hydraulic diameter, hydraulic radius and the section's laminar friction constant
A 200 × 100 mm rectangular duct running full
One definition, and the closed form it collapses to for each section
- A
- flow area — the open area normal to the flow, with tube walls, fins and blockage subtracted
- P
- wetted perimeter — every length of solid boundary touching the fluid. A free surface is not wetted. A symmetry plane is not wetted either, which is the commonest error in a hand-entered section
- D_h
- hydraulic diameter, 4A/P. The 4 exists for one reason: it makes D_h equal D for a round pipe, so the thresholds and correlations measured in round pipes carry over
- R
- hydraulic radius, A/P. Exactly D_h/4. Open-channel hydraulics is written entirely in R; pipe and duct work entirely in D_h
- θ
- the central angle subtended by the wetted arc of a part-full pipe, in radians. θ = 2π when the pipe runs full, π at half depth
- z
- trapezoidal side slope, horizontal run per unit vertical rise. The sloping side has length y√(1+z²) per side
- f·Re
- the laminar Darcy friction constant for the section, with the Reynolds number formed on D_h. 64 for a round pipe, 56.908 for a square duct, 96 between parallel plates. It is a pure function of shape and carries no fluid property at all
Worked example
A 200 × 100 mm rectangular duct running full
A = ab = 0.2 × 0.1 = 0.02 m² and P = 2(a+b) = 2 × 0.3 = 0.6 m, so D_h = 4 × 0.02/0.6 = 0.13333 m. The closed form 2ab/(a+b) = 2 × 0.02/0.3 gives the same thing, and it is the harmonic mean of the two sides — which is why a duct is always closer to its short side than to its long one
The hydraulic radius is R = A/P = 0.02/0.6 = 0.03333 m, exactly a quarter. If you take a threshold or a resistance formula from a hydraulics text, it wants this number; if you are computing a Reynolds number or a Nusselt number, it wants the one above it. The two differ by 4 and nothing in either number says which is which
Now the trap the page exists for. A round pipe of the same 0.02 m² area has diameter √(4 × 0.02/π) = 0.15958 m, which is 20 per cent larger than the hydraulic diameter. It looks plausible, it is easy to compute, and it is not the hydraulic diameter. Nor is the diagonal, 0.2236 m, nor the width, nor the height
AND THE LAMINAR FRICTION FACTOR IS NOT 64/Re. For a 2:1 rectangle the exact value is f·Re = 62.19, so 64/Re overpredicts the friction factor by 2.9 per cent — small. Go flatter and it inverts and grows: at 4:1 the constant is 72.93 and 64/Re is 12.2 per cent LOW, at 8:1 it is 82.34 and 64/Re is 22.3 per cent low, and between parallel plates it is exactly 96 and 64/Re is 33.3 per cent low. A square duct goes the other way: 56.908, so 64/Re reads 12.5 per cent HIGH. These are exact solutions of the Poisson equation for the section, not correlations, and no amount of mesh refinement changes them
THE ANNULUS is the one people get wrong. A 100 mm pipe with a 60 mm tube down the middle: A = π(0.1² − 0.06²)/4 = 0.0050265 m², P = π(0.1 + 0.06) = 0.50265 m, D_h = 0.04 m — which is exactly D_o − D_i, and therefore exactly TWICE the 20 mm radial gap. Using the gap halves the Reynolds number. The exact laminar constant here is f·Re = 95.59, close to the parallel-plate 96 rather than to 64, because an annulus with a fat inner tube is a curved slot
THE PART-FULL PIPE does something genuinely surprising, and it is worth seeing once. A 300 mm sewer running half full: θ = 2 arccos(1 − 2 × 0.15/0.3) = π, A = 0.03534 m², P = 0.4712 m, and D_h = 0.3 m — exactly the bore, because at half depth the area and the perimeter are both exactly half their full-pipe values. Raise the depth to 81.3 per cent and D_h peaks at 1.2172 × D, higher than the full-pipe value; fill it completely and it falls back to D. That peak is why a circular sewer carries its maximum velocity at 81.3 per cent depth and its maximum discharge at 93.8 per cent, both of which drop out of A·R^(2/3) with this same geometry
AND THE FREE SURFACE IS NOT WETTED. The same 300 mm pipe at half depth has P = 0.4712 m, not 0.4712 + 0.3 = 0.7712 m. Counting the surface would give D_h = 0.1833 m, a 39 per cent error, in the direction that makes the flow look more laminar than it is. Air above water exerts no shear worth counting, which is the whole reason the convention is what it is
Every section, its 4A/P, and its exact laminar friction constant
| Section | Flow area A | Wetted perimeter P | D_h = 4A/P | Laminar f·Re on D_h |
|---|---|---|---|---|
| Round pipe, bore D | πD²/4 | πD | D exactly | 64 (analytic) |
| Square duct, side a | a² | 4a | a exactly | 56.908 |
| Rectangle 2:1 | ab | 2(a+b) | 2ab/(a+b) | 62.192 |
| Rectangle 4:1 | ab | 2(a+b) | 2ab/(a+b) | 72.931 |
| Rectangle 8:1 | ab | 2(a+b) | 2ab/(a+b) | 82.339 |
| Parallel plates, gap h | hw | 2w | 2h exactly | 96 (analytic) |
| Annulus D_i/D_o = 0.1 | π(D_o²−D_i²)/4 | π(D_o+D_i) | D_o − D_i exactly | 89.372 |
| Annulus D_i/D_o = 0.5 | π(D_o²−D_i²)/4 | π(D_o+D_i) | D_o − D_i exactly | 95.250 |
| Equilateral triangle, side a | √3a²/4 | 3a | a/√3 = 0.5774a | 160/3 = 53.333 (analytic) |
| Part-full pipe, half depth | πD²/8 | πD/2 | D exactly | not reported — see note |
| Part-full pipe, 81.28 % depth | 0.6837D² | 2.2467D | 1.2172D — the maximum | not reported |
What the factor of four does to a threshold
| Quantity | On the hydraulic diameter D_h | On the hydraulic radius R | Used by |
|---|---|---|---|
| Laminar limit, internal flow | Re_Dh = 2,300 | Re_R = 575 | pipe and duct work uses the left column |
| Laminar limit, open channel | Re_Dh = 2,000 | Re_R = 500 | hydraulics uses the right column |
| Fully turbulent, open channel | Re_Dh = 8,000 | Re_R = 2,000 | hydraulics uses the right column |
| Friction term in Darcy–Weisbach | f·L/D_h | f·L/4R | both appear in print |
| Manning velocity | V = n⁻¹(D_h/4)^(2/3)S^(1/2) | V = n⁻¹R^(2/3)S^(1/2) | always written in R |
| Reynolds number for a 1 m channel 300 mm deep at 2 m/s | 1,494,000 | 373,500 | same flow, same regime |
How wrong the plausible substitutes are, for one 200 × 100 mm duct
| Length used | Value | As a fraction of D_h | Effect on Re | Effect on f·L/D at fixed f |
|---|---|---|---|---|
| Hydraulic diameter 2ab/(a+b) | 0.13333 m | 1.000 | correct | correct |
| Equal-area circle diameter | 0.15958 m | 1.197 | 20 % high | 16 % low |
| Diagonal √(a²+b²) | 0.22361 m | 1.677 | 68 % high | 40 % low |
| Long side a | 0.2 m | 1.500 | 50 % high | 33 % low |
| Short side b | 0.1 m | 0.750 | 25 % low | 33 % high |
| Hydraulic radius A/P | 0.03333 m | 0.250 | 75 % low | 300 % high |
Channel size classification, for readers working below a millimetre
| Class | Hydraulic diameter | What changes |
|---|---|---|
| Conventional channel | above 3 mm | everything on this page applies unchanged |
| Minichannel | 200 µm to 3 mm | 4A/P still correct; entrance and property-variation effects grow |
| Microchannel | 10 µm to 200 µm | 4A/P still correct; measured friction factors scatter, mostly from dimensional and roughness uncertainty rather than new physics |
| Transitional microchannel | 1 µm to 10 µm | continuum still holds for liquids; for gases check the Knudsen number |
| Nanochannel | below about 100 nm | continuum assumptions fail; 4A/P is geometry, not physics, here |
Which of D_h and R your next formula wants, and why 64/Re is the wrong laminar answer
The hydraulic diameter is 4A/P and nothing else, and almost every mistake made with it is one of three. Using the wrong perimeter, confusing it with the hydraulic radius, or forgetting that it is a similarity shortcut rather than an equivalence. The 4 is not decoration: it exists so that 4A/P collapses to D for a round pipe, and therefore so that the transition Reynolds number of 2,300 and every friction and heat-transfer correlation ever measured in a circular tube can be carried across to a duct. Take the 4 away and you have the hydraulic radius, which is a perfectly good quantity used by a different profession for the same job.
Which of the two your next formula wants, stated once and properly. Pipe and duct work — Reynolds numbers, Darcy–Weisbach f·L/D, Colebrook, Blasius, Dittus–Boelter, Gnielinski, y+ estimates, entrance lengths — is written in the hydraulic DIAMETER. Open-channel hydraulics — Manning, Chézy, the Darcy–Weisbach form used for channels, and the laminar and turbulent thresholds of 500 and 2,000 — is written in the hydraulic RADIUS. D_h = 4R exactly, for every section, with no exceptions and no approximations. So a Reynolds number quoted on R is a quarter of the same flow’s Reynolds number quoted on D_h, and a threshold moved from one convention to the other without the factor of 4 misplaces the regime by a whole band. It is the factor-of-four error that makes a turbulent channel look laminar, and someone then turns the turbulence model off. Both numbers are printed above, every time, for exactly this reason.
The wetted perimeter is where the arithmetic goes wrong. Three rules cover it. A free surface is not wetted: air above water exerts shear four orders of magnitude smaller than the bed does, so in a part-full pipe or a channel the surface width is simply not in P. A symmetry plane is not wetted: if you have cut your model in half you must not count the cut. And every solid surface IS wetted, including the inner tube of an annulus, both faces of a splitter, and the full developed length of a fin — which is why a finned passage can have a hydraulic diameter several times smaller than its apparent size. Get P wrong and D_h, the Reynolds number and the friction term are all wrong together, in the same direction, and none of them looks odd.
Now the honest part: D_h is a similarity shortcut, and in laminar flow it is a poor one. The claim being made when you substitute D_h into a round-pipe correlation is that the section’s shape does not matter once its area-to-perimeter ratio is fixed. In laminar flow that is measurably false, and the size of the error is not a matter of opinion — fully developed laminar flow satisfies ∇²u = (1/μ)dp/dx over the section, which has an exact solution for every shape on this page, and the friction factor that comes out of it is f = C/Re with C a pure number fixed by the shape alone. C is 64 for a circle. It is 56.908 for a square duct, so 64/Re reads 12.5 per cent HIGH there. It is exactly 96 between parallel plates, so 64/Re reads 33.3 per cent LOW. It is 72.93 for a 4:1 rectangle, 82.34 for 8:1, 95.25 for an annulus with a half-diameter inner tube, and 160/3 = 53.33 for an equilateral triangle, where 64/Re is 20 per cent high. Those are analytic results, so the error survives any mesh you like. This page prints C for the section you chose and the percentage error beside it.
Turbulent flow is far kinder, and it is worth knowing why. In a turbulent duct the velocity profile is set by the local wall shear over most of the section rather than by the global shape, so substituting D_h works much better — and the residual sensitivity is small for a reason you can quantify. The friction factor depends on the Reynolds number roughly as Re^−0.2 near Re = 10⁴ and more weakly still above it: the measured logarithmic slope of the Haaland correlation is −0.275 at Re = 10⁴ and −0.169 at Re = 10⁶ for a smooth wall. So even a 20 per cent error in the effective Reynolds number moves f by under 5 per cent, and the shape effects that cause a 33 per cent laminar error cause a few per cent turbulent one. The corners are the exception: secondary flows drive fluid into the corners of a rectangular duct and the local shear there is well below the section mean, which matters if you are predicting local heat transfer rather than a pressure drop.
The part-full pipe is the section with the counter-intuitive answer, and it is worth a moment. Sweep the depth of a circular pipe from empty to full and the hydraulic diameter does not rise monotonically. It equals the bore exactly at half depth, because both A and P are then exactly half their full-pipe values; it keeps rising to a maximum of 1.2172 D at 81.3 per cent depth; and then it falls back to exactly D when the pipe runs full and the whole circumference is wetted. Everything about circular-sewer hydraulics follows from that curve: the maximum velocity at 81.3 per cent depth is where R^(2/3) peaks, and the maximum discharge at 93.8 per cent depth is where A·R^(2/3) peaks. Both numbers drop out of the geometry in the table above, and both are worth checking against your own solver if you are modelling a partly filled pipe with a volume-of-fluid method.
Where this page fits. The hydraulic diameter it gives you is the length for the Reynolds number and flow regime calculator, the D_h in the pressure-drop calculation on the pipe friction factor and pressure drop page, and the length scale behind the turbulence inlet conditions on the turbulence inlet conditions calculator, which takes the mixing length as a fraction of D_h. It also sets the wall-normal spacing you will need, through the friction velocity, on the y+ first cell height calculator. Four pages, one number, and if it is wrong they are all wrong the same way.
Frequently asked questions
Which do I use, the hydraulic diameter or the hydraulic radius?
The hydraulic diameter for anything written about pipes and ducts: Reynolds numbers, Darcy–Weisbach f·L/D_h, Colebrook, Blasius, Dittus–Boelter, Gnielinski, y+ and entrance lengths. The hydraulic radius for anything written about open channels: Manning, Chézy, and the laminar and turbulent thresholds of 500 and 2,000. They are the same quantity a factor of four apart, D_h = 4R, exactly and for every section. If you cannot tell which convention a source is using, look at its threshold numbers: 2,300 and 4,000 mean it is using D_h, while 500 and 2,000 mean it is using R.
Is laminar friction really not 64/Re in a duct?
It really is not, and the correct value is exact rather than empirical. Fully developed laminar flow satisfies a Poisson equation over the section, and the Darcy friction factor that follows is f = C/Re with C a pure number set by the shape: 64 for a circle, 56.908 for a square, 62.19 for a 2:1 rectangle, 72.93 for 4:1, 82.34 for 8:1, exactly 96 between parallel plates, 95.25 for an annulus with D_i/D_o = 0.5, and 160/3 for an equilateral triangle. So 64/Re is 12.5 per cent high in a square duct and 33 per cent low between plates. Because these are exact solutions, refining the mesh does not help — the error is in the correlation you compared against, and your solver is probably right.
Why is the annulus hydraulic diameter D_o − D_i and not the gap?
Because 4A/P says so, with no approximation. A = π(D_o² − D_i²)/4 and P = π(D_o + D_i), so 4A/P = (D_o² − D_i²)/(D_o + D_i) = D_o − D_i exactly. That is twice the radial gap, and using the gap halves the Reynolds number, which is quite enough to move a real case across the transition band. The intuition that trips people is that the gap is what the fluid has to squeeze through, which is true and irrelevant: the hydraulic diameter is a ratio of area to perimeter, and an annulus has two walls bounding one gap.
Should a symmetry plane go into the wetted perimeter?
No, and this is the commonest error in a hand-entered section. A symmetry plane carries zero shear by construction — that is what makes it a symmetry plane — so it is not a wetted boundary. If you have modelled half a duct, either use the full section’s A and P, or use the half-model’s A and P with the cut excluded from P; both give the same hydraulic diameter, which is a useful check that you have done it right. Including the cut inflates P, shrinks D_h and understates the Reynolds number.
Does the free surface count in an open channel?
No. The air above the water exerts a shear stress some four orders of magnitude smaller than the bed and banks do, so the convention is to leave it out entirely, and every open-channel threshold and resistance formula was calibrated that way. The size of the mistake is not small: a 300 mm pipe at half depth has P = 0.471 m and D_h = 0.3 m, and counting the 0.3 m surface width would give P = 0.771 m and D_h = 0.183 m — a 39 per cent error, in the direction that makes the flow look more laminar than it is. The one case where the surface does matter is a closed conduit flowing nearly full with a trapped air pocket moving at a different speed, and that is not a hydraulic-diameter problem.
My part-full pipe has a hydraulic diameter larger than its bore. Is that a bug?
No, it is the geometry. D_h = 4A/P for a circular segment rises above D as the pipe fills past half depth, peaks at 1.2172 D at 81.3 per cent depth, and falls back to exactly D when the pipe runs full and the free surface disappears into the crown. The reason is that the last bit of area added near the crown comes with very little extra wetted perimeter. The same curve is why a circular sewer carries its maximum velocity at 81.3 per cent depth and its maximum discharge at 93.8 per cent, both of which you can read off the table on this page.
Can I use the diameter of a circle with the same area instead?
No, and it is the most dangerous of the wrong answers because it is dimensionally sensible and close enough to look right. For a 200 × 100 mm duct it gives 0.1596 m against a hydraulic diameter of 0.1333 m — a 20 per cent error in the Reynolds number and 16 per cent in f·L/D. The equal-area diameter matches the flow rate at a given velocity, which is not what a friction correlation needs; the hydraulic diameter matches the ratio of wall friction to momentum flux, which is. The two agree only for a circle.
Does D_h work for a bundle of tubes, a finned passage or a corrugated plate?
It is the right length to use, and you should expect less of it than you would in a simple duct. Use the last option on this page: put in the open flow area and the total wetted perimeter, counting every fin surface and every tube wall. The resulting D_h gives a defensible Reynolds number and a starting friction estimate, but the geometry-specific correlations for compact surfaces exist because 4A/P alone does not capture what a louvred fin or an offset-strip fin does to the flow. In laminar flow treat a D_h-based friction factor as a factor-of-1.5 estimate until you have data for your own surface.
What about compressible flow — does D_h change?
The geometry does not, so 4A/P is unchanged. What changes is that the density, and therefore the velocity and the Reynolds number, vary along the duct, so a single Reynolds number no longer characterises the whole run and the friction calculation has to be marched along the length rather than done once. The hydraulic diameter is the same length it always was; it is the flow, not the section, that has stopped being uniform.
Which number should I report in a paper?
Both, and label them. Write the hydraulic diameter with its definition — “D_h = 4A/P = 13.3 mm” — and write every Reynolds number with the length in the subscript, as Re_Dh. Someone reproducing a duct result cannot recover your characteristic length from a bare Reynolds number, and the five plausible choices for a rectangular duct span a factor of 6.7. If your section is unusual, give A and P themselves; they are what makes the result reproducible.
Related calculators
References
- R. K. Shah and A. L. London, Laminar Flow Forced Convention in Ducts, for the tabulated laminar friction constants f·Re on the hydraulic diameter. Not reproduced here. Every value on this page was recomputed from the governing equation instead: the rectangular-duct constants from the double sine-series solution of ∇²φ = −1 with f·Re = 2Dh²/̅φ, summed to 800 odd terms in each direction and checked for convergence to six figures; the annulus from the exact logarithmic solution; the equilateral triangle from the product of the three side distances, which gives 160/3 analytically. The recomputed values agree with the published tabulation to better than 0.07 per cent (square 56.9083, parallel plates 96 exactly, 2:1 rectangle 62.1922, 4:1 72.9311, 8:1 82.3386, annulus at Di/Do = 0.5 95.2502).
- The closed-form rectangular-duct fit used by this page, f·Re = 96(1 − 1.3657266α + 2.0664904α² − 2.2212156α³ + 1.9770629α⁴ − 1.1741859α⁵ + 0.3103697α⁶) with α = short side / long side, was fitted here to the exact series values under the constraints that it be exact at α = 1 (56.908308) and at α → 0 (96). Worst deviation from the exact series over the whole range 0 < α ≤ 1 is 0.0102 per cent. For comparison, Shah and London’s own published polynomial deviates from the same exact series by up to 0.063 per cent, so the two agree with each other to within 0.07 per cent everywhere — which is the cross-check that matters.
- V. T. Chow, Open-Channel Hydraulics, and standard open-channel teaching material, for the hydraulic radius convention R = A/P and the transition thresholds quoted on it (laminar below Re_R = 500, transitional to 2,000). Converted here to the hydraulic-diameter basis by the exact factor of four and both bases printed side by side, because mixing the two is the commonest error in this subject. The part-full circular-pipe geometry — A = D²(θ − sin θ)/8 and P = Dθ/2 with θ = 2 arccos(1 − 2y/D) — is elementary and was verified here against three identities that must hold: Dh = D exactly at y/D = 0.5 and again at y/D = 1, maximum Dh/D = 1.21723 at y/D = 0.8128 coinciding with the maximum of R^(2/3) and therefore with the maximum Manning velocity, and maximum A·R^(2/3) at y/D = 0.9382, the textbook maximum-discharge depth.
- S. G. Kandlikar and W. J. Grande, Evolution of Microchannel Flow Passages — Thermohydraulic Performance and Fabrication Technology (2003), for the channel size classification used in the last table: conventional above 3 mm, minichannel 200 µm to 3 mm, microchannel 10 to 200 µm, transitional microchannel 1 to 10 µm. These are conventions for describing size, not physical transitions, and the page says so — 4A/P is geometry and holds wherever the continuum does.
- B. S. Petukhov’s explicit smooth-tube friction factor and S. E. Haaland’s explicit Colebrook approximation, used on the companion pressure-drop page and quoted here only for the statement about how weakly turbulent friction depends on Reynolds number. The logarithmic slope d ln f / d ln Re of the Haaland form was differentiated numerically here at a smooth wall and comes out −0.275 at Re = 10⁴, −0.209 at 10⁵, −0.168 at 10⁶ and −0.141 at 10⁷, which is where the “a 20 per cent Reynolds-number error moves f by under 5 per cent” figure comes from.
- Y. A. Çengel and J. M. Cimbala, Fluid Mechanics: Fundamentals and Applications, and F. M. White, Fluid Mechanics, for the hydraulic diameter convention itself and the conventional internal-flow transition bands that make the factor of 4 matter. Cited, not reproduced.
Setup guidance, not validation. Correlations have ranges of validity and cell-count estimates are order-of-magnitude. A converged simulation is not a correct one. Full disclaimer at calcengines.com/disclaimer/
