Moody Chart Calculator – Interactive Diagram & Friction Factor

Related: Newton’s Law of Viscosity Calculator – Dynamic Viscosity

Related: Bernoulli’s Equation Calculator / Solver – Interactive Python Code

Related: Stoke’s Law Calculator for Terminal Velocity – Derivation and Python Code

Related: Head Loss or Pressure Loss Calculator using Darcy-Weisbach Equation

friction factor form moody's diagram
Fig. Moody’s Diagram for friction factor used in commercial pipes

Download python code to plot the Moody’s Diagram – click here

Related: Froude Number Calculator – Significance and Applications

Table: Moody’s Diagram description with flow regimes

Related: Read More about Dimensionless Number

Table: Darcy Friction Factor calculation

Related: Head Loss or Pressure Loss Calculator using Darcy-Weisbach Equation

Related: Centrifugal Pump Sizing Calculation – TDH, NPSHa vs Flow Rate curve & Power Required

Colebrook-White Equation

Table: Commonly used Roughness values for commercial pipes

Also Read: Area of Cross-Section Calculator for Hollow Sections, Beams & Shapes

Data Analysis and Visualization Foundations
📈 Data Analysis & Visualization Foundations
Learn to analyze, visualize, and communicate data using tools like Excel. Build dashboards, create charts, and gain skills for real-world analytics.
Offered by IBM | Coursera Approved

Swamee-Jain Equation

The Colebrook-White equation is implicit – the friction factor appears on both sides, so it has to be solved iteratively. Swamee and Jain published an explicit approximation in 1976 that avoids the iteration entirely:

\[f = \frac{0.25}{\left[ \log_{10}\left( \frac{\varepsilon/D}{3.7} + \frac{5.74}{Re^{0.9}} \right) \right]^2}\]

where ε/D is the relative roughness and Re the Reynolds number.

Because it is explicit, it can be evaluated directly in a spreadsheet or by hand, which is why it appears in most piping design references.

Validity: 10⁻⁶ ≤ ε/D ≤ 10⁻² and 5000 ≤ Re ≤ 10⁸. Within this window it agrees with Colebrook-White to within about 1–3%; checked across the full Moody chart, the largest deviation is close to 3%. For most engineering work that difference is smaller than the uncertainty in the roughness value itself.

Haaland Equation

Haaland proposed a similar explicit approximation in 1983, arranged so the friction factor can be found in a single step:

\[\frac{1}{\sqrt{f}} = -1.8 \log_{10}\left[ \left( \frac{\varepsilon/D}{3.7} \right)^{1.11} + \frac{6.9}{Re} \right]\]

The 1.11 exponent is what lets a single logarithm reproduce the shape of the Colebrook curve so closely.

Validity: turbulent flow, roughly 4000 < Re < 10⁸. It is typically quoted as accurate to within 2% of Colebrook-White, and is slightly closer than Swamee-Jain across most of the chart — measured over the full range, its worst deviation is about 1.3%.

Which should you use? Colebrook-White is the reference and what the Moody chart is drawn from – use it when accuracy matters. Swamee-Jain and Haaland are for when you need a direct calculation without iteration. All three are available in the calculator above, so you can switch between them and see the difference for your own case.

Related: Hagen-Poiseuille Equation Calculator / Poiseuille’s Law Solver

Related: Weber Number Calculator – Significance and Calculation

Data Analytics with Python
📊 Data Analytics with Python
Learn Python, Pandas, NumPy & Matplotlib by solving real-world data problems. Ideal for beginners & data enthusiasts.
Powered by SimpliLearn | Coursera Approved
darcy friction factor vs reynolds number for different diameters
  1. “Fluid Mechanics” by Frank M. White
  2. “Introduction to Fluid Mechanics” by Robert W. Fox, Alan T. McDonald, and Philip J. Pritchard
  3. “Principles of Heat and Mass Transfer” by Frank P. Incropera and David P. DeWitt
  4. Python.org – The official Python website offers tutorials, documentation, and resources for learning Python.

Disclaimer: The Solver provided here is for educational purposes. While efforts ensure accuracy, results may not always reflect real-world scenarios. Verify results with other sources and consult professionals for critical applications. Contact us for any suggestions or corrections.

📋 About the Authors
Nikita Aggarwal
✍️ Written by

Nikita Aggarwal

Nikita Aggarwal is a Computer Science Engineer and co-founder of ChemEnggCalc, an engineering education platform dedicated to making chemical engineering calculations accessible to students and professionals worldwide. With over 6 years of teaching experience at ABSS Engineering College, India, she has developed a deep understanding of how engineers learn and apply technical concepts in practice. At ChemEnggCalc, Nikita leads the development of interactive calculators and digital learning tools that bridge the gap between theoretical engineering education and real-world application. Her work focuses on simplifying complex engineering methodologies into accurate, easy-to-use computational resources for the global chemical engineering community.

Nitish Gupta
✅ Technically Verified by

Nitish Gupta

M.Tech Chemical Engineering | 7+ Years Experience in R&D and Process

Practicing Chemical Engineer with 7+ years of industry experience in R&D and Process. Technically verifies all calculations and engineering content on ChemEnggCalc for real-world accuracy.

1 thought on “Moody Chart Calculator – Interactive Diagram & Friction Factor”

  1. This is a fantastic breakdown of using Moody’s Diagram! I appreciate the clarity in explaining how to differentiate between smooth and rough pipes. The friction factor calculator links are incredibly helpful for practical applications. Looking forward to more posts like this!

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top