{
  "version": "v1",
  "source": "https://craftquantities.com",
  "licence": "CC BY 4.0",
  "licenceUrl": "https://creativecommons.org/licenses/by/4.0/",
  "attribution": "Craft Quantities — craftquantities.com",
  "documentation": "https://craftquantities.com/api/",
  "versioning": "Fields are added, never removed or repurposed, within a version. A breaking change becomes /api/v2/ and v1 keeps being built.",
  "slug": "darcy-weisbach-friction-calculator",
  "category": "plumbing-hvac",
  "title": "Darcy–Weisbach Pressure Drop Calculator (Colebrook Friction Factor)",
  "description": "Pressure drop and head loss of water in a pipe or air in a round duct by Darcy–Weisbach, with the Colebrook and Swamee–Jain friction factors.",
  "url": "https://craftquantities.com/calculators/plumbing-hvac/darcy-weisbach-friction-calculator/",
  "json": "https://craftquantities.com/api/v1/calculators/darcy-weisbach-friction-calculator.json",
  "inputCount": 10,
  "testCaseCount": 6,
  "sourceCount": 6,
  "lastVerified": "2026-11-28",
  "citation": {
    "author": "Craft Quantities",
    "title": "Darcy–Weisbach Pressure Drop Calculator (Colebrook Friction Factor)",
    "version": "1.0.0",
    "sourcesChecked": "2026-11-28",
    "url": "https://craftquantities.com/calculators/plumbing-hvac/darcy-weisbach-friction-calculator/",
    "accessDate": null,
    "accessDateNote": "Add the date you retrieved this. It is deliberately absent: a static file cannot know when you read it, and the build date would be wrong.",
    "permanentVersionedUrl": null,
    "permanentVersionedUrlNote": "Not offered. This site keeps no archive of previous builds, so any such URL would resolve to the current page or to nothing. The version and sourcesChecked fields identify the calculation instead.",
    "formats": {
      "plain": "Craft Quantities. Darcy–Weisbach Pressure Drop Calculator (Colebrook Friction Factor). Version 1.0.0. Sources checked 2026-11-28. https://craftquantities.com/calculators/plumbing-hvac/darcy-weisbach-friction-calculator/",
      "apa": "Craft Quantities. (2026). Darcy–Weisbach Pressure Drop Calculator (Colebrook Friction Factor) (Version 1.0.0) [Web calculator]. Retrieved from https://craftquantities.com/calculators/plumbing-hvac/darcy-weisbach-friction-calculator/",
      "harvard": "Craft Quantities (2026) Darcy–Weisbach Pressure Drop Calculator (Colebrook Friction Factor) (Version 1.0.0). Available at: https://craftquantities.com/calculators/plumbing-hvac/darcy-weisbach-friction-calculator/",
      "bibtex": "@misc{craftquantities-calculators-plumbing-hvac-darcy-weisbach-friction-calculator,\n  author       = {{Craft Quantities}},\n  title        = {Darcy–Weisbach Pressure Drop Calculator (Colebrook Friction Factor)},\n  version      = {1.0.0},\n  year         = {2026},\n  howpublished = {\\url{https://craftquantities.com/calculators/plumbing-hvac/darcy-weisbach-friction-calculator/}},\n}"
    }
  },
  "inputs": [
    {
      "id": "fluid",
      "label": "Fluid",
      "type": "select",
      "defaultValue": "water",
      "options": [
        {
          "value": "water",
          "label": "Water in a pipe"
        },
        {
          "value": "air",
          "label": "Air in a round duct"
        }
      ],
      "help": "Water in a pipe, or air in a round duct."
    },
    {
      "id": "waterTemperature",
      "label": "Water Temperature",
      "type": "number",
      "dimension": "temperature",
      "defaultValue": 20,
      "min": 1,
      "max": 100,
      "step": 0.5,
      "help": "The temperature of the water flowing, above freezing and up to boiling."
    },
    {
      "id": "airTemperature",
      "label": "Air Temperature",
      "type": "number",
      "dimension": "temperature",
      "defaultValue": 20,
      "min": -40,
      "max": 100,
      "step": 0.5,
      "help": "The temperature of the air in the duct."
    },
    {
      "id": "pipeDiameter",
      "label": "Pipe Inside Diameter",
      "type": "number",
      "dimension": "length",
      "defaultValue": 0.025,
      "min": 0.002,
      "max": 3,
      "step": 0.0005,
      "help": "The bore of the pipe, from the maker's table."
    },
    {
      "id": "ductDiameter",
      "label": "Duct Inside Diameter",
      "type": "number",
      "dimension": "length",
      "defaultValue": 0.2,
      "min": 0.02,
      "max": 3,
      "step": 0.005,
      "help": "The inside diameter of the round duct."
    },
    {
      "id": "pipeLength",
      "label": "Straight Length",
      "type": "number",
      "dimension": "length",
      "defaultValue": 30,
      "min": 0,
      "max": 10000,
      "step": 0.5,
      "help": "The length of straight pipe or duct carrying this flow."
    },
    {
      "id": "waterFlow",
      "label": "Water Flow Rate",
      "type": "number",
      "dimension": "flow",
      "defaultValue": 15,
      "min": 0,
      "max": 100000,
      "step": 0.1,
      "help": "The volume of water per minute through this pipe."
    },
    {
      "id": "airflow",
      "label": "Airflow",
      "type": "number",
      "dimension": "airflow",
      "defaultValue": 200,
      "min": 0,
      "max": 100000,
      "step": 1,
      "help": "The volume of air through this duct."
    },
    {
      "id": "material",
      "label": "Pipe or Duct Material",
      "type": "select",
      "defaultValue": "plastic",
      "options": [
        {
          "value": "plastic",
          "label": "Plastic (PVC, CPVC, PE, PEX)"
        },
        {
          "value": "steel",
          "label": "Steel"
        },
        {
          "value": "galvanizedIron",
          "label": "Galvanized iron"
        },
        {
          "value": "castIron",
          "label": "Cast iron"
        },
        {
          "value": "galvanizedDuct",
          "label": "Galvanized sheet-metal duct"
        },
        {
          "value": "custom",
          "label": "Custom roughness"
        }
      ],
      "help": "Sets the surface roughness the friction factor uses."
    },
    {
      "id": "roughness",
      "label": "Absolute Roughness",
      "type": "number",
      "dimension": "length",
      "defaultValue": 0.000045719999999999996,
      "min": 0,
      "max": 0.01,
      "step": 0.00001,
      "help": "The surface's absolute roughness, from the maker or a handbook."
    }
  ],
  "sources": [
    {
      "label": "US EPA, EPANET 2.2 User Manual, chapter 3, Hydraulic Model: Darcy–Weisbach roughness for new pipe, ε in 10⁻³ ft: plastic 0.005, steel 0.15, galvanized iron 0.5, cast iron 0.85; Swamee and Jain approximation to Colebrook–White for fully turbulent flow (Re > 4,000), Hagen–Poiseuille for laminar flow (Re < 2,000), cubic interpolation from the Moody diagram between",
      "url": "https://github.com/USEPA/EPANET2.2/blob/master/User_Manual/docs/3_network_model.rst"
    },
    {
      "label": "Colebrook, C. F. (1939). Turbulent flow in pipes, with particular reference to the transition region between the smooth and rough pipe laws. Journal of the Institution of Civil Engineers, 11(4), 133–156"
    },
    {
      "label": "Swamee, P. K. and Jain, A. K. (1976). Explicit equations for pipe-flow problems. Journal of the Hydraulics Division, ASCE, 102(5), 657–664"
    },
    {
      "label": "ASHRAE Handbook — Fundamentals, chapter 21, Duct Design: absolute roughness of galvanized sheet-steel duct, 0.09 mm"
    },
    {
      "label": "IAPWS R12-08, Release on the IAPWS Formulation 2008 for the Viscosity of Ordinary Water Substance: the viscosity of liquid water used here, with the density from IAPWS-IF97 Region 1",
      "url": "https://www.iapws.org/release/Viscosity.html"
    },
    {
      "label": "U.S. Standard Atmosphere, 1976 (NOAA-S/T 76-1562, NASA-TM-X-74335): ideal-gas density and Sutherland's viscosity of dry air",
      "url": "https://ntrs.nasa.gov/citations/19770009539"
    }
  ],
  "testCases": [
    {
      "name": "15 L/min of 20 °C water in a 25 mm plastic bore over 30 m",
      "inputs": {
        "fluid": "water",
        "waterTemperature": 20,
        "airTemperature": 20,
        "pipeDiameter": 0.025,
        "ductDiameter": 0.2,
        "pipeLength": 30,
        "waterFlow": 15,
        "airflow": 200,
        "material": "plastic",
        "roughness": 0.000045719999999999996
      },
      "expected": 4.52,
      "toleranceDecimalPlaces": 2,
      "unit": "kPa",
      "confidence": "high",
      "steps": [
        {
          "label": "Head loss",
          "value": 0.46221465098868014,
          "unit": "m"
        },
        {
          "label": "Darcy friction factor (Colebrook)",
          "value": 29.125468007481224,
          "unit": "× 10⁻³"
        },
        {
          "label": "Friction factor by Swamee–Jain",
          "value": 29.15918461103538,
          "unit": "× 10⁻³"
        },
        {
          "label": "Reynolds number",
          "value": 12689.291753058797
        },
        {
          "label": "Mean velocity",
          "value": 0.5092958178940651,
          "unit": "m/s"
        },
        {
          "label": "Relative roughness",
          "value": 60.96000000000001,
          "unit": "× 10⁻⁶"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    },
    {
      "name": "400 CFM of 68 °F air in 100 ft of 8 in galvanized duct",
      "inputs": {
        "fluid": "air",
        "waterTemperature": 20,
        "airTemperature": 20,
        "pipeDiameter": 0.025,
        "ductDiameter": 0.2032,
        "pipeLength": 30.48,
        "waterFlow": 15,
        "airflow": 188.77897728000002,
        "material": "galvanizedDuct",
        "roughness": 0.000045719999999999996
      },
      "expected": 63.65,
      "toleranceDecimalPlaces": 1,
      "unit": "Pa",
      "confidence": "high",
      "steps": [
        {
          "label": "Head loss",
          "value": 5.390583335253364,
          "unit": "m"
        },
        {
          "label": "Darcy friction factor (Colebrook)",
          "value": 20.799959811140937,
          "unit": "× 10⁻³"
        },
        {
          "label": "Friction factor by Swamee–Jain",
          "value": 20.860896593988233,
          "unit": "× 10⁻³"
        },
        {
          "label": "Reynolds number",
          "value": 78543.37134088857
        },
        {
          "label": "Mean velocity",
          "value": 5.821251198529165,
          "unit": "m/s"
        },
        {
          "label": "Relative roughness",
          "value": 442.9133858267717,
          "unit": "× 10⁻⁶"
        }
      ],
      "basis": "cited",
      "sourceIndex": 3
    },
    {
      "name": "5 gpm of 68 °F water in 50 ft of 3/4 in bore new steel",
      "inputs": {
        "fluid": "water",
        "waterTemperature": 20,
        "airTemperature": 20,
        "pipeDiameter": 0.019049999999999997,
        "ductDiameter": 0.2,
        "pipeLength": 15.24,
        "waterFlow": 18.92705892,
        "airflow": 200,
        "material": "steel",
        "roughness": 0.000045719999999999996
      },
      "expected": 14.8,
      "toleranceDecimalPlaces": 1,
      "unit": "kPa",
      "confidence": "high",
      "steps": [
        {
          "label": "Head loss",
          "value": 1.5117810212474216,
          "unit": "m"
        },
        {
          "label": "Darcy friction factor (Colebrook)",
          "value": 30.258367173443894,
          "unit": "× 10⁻³"
        },
        {
          "label": "Friction factor by Swamee–Jain",
          "value": 30.613084108150787,
          "unit": "× 10⁻³"
        },
        {
          "label": "Reynolds number",
          "value": 21012.33356633543
        },
        {
          "label": "Mean velocity",
          "value": 1.1067564007080142,
          "unit": "m/s"
        },
        {
          "label": "Relative roughness",
          "value": 2400,
          "unit": "× 10⁻⁶"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    },
    {
      "name": "200 L/min of 60 °C water in 100 m of 50 mm galvanized iron",
      "inputs": {
        "fluid": "water",
        "waterTemperature": 60,
        "airTemperature": 20,
        "pipeDiameter": 0.05,
        "ductDiameter": 0.2,
        "pipeLength": 100,
        "waterFlow": 200,
        "airflow": 200,
        "material": "galvanizedIron",
        "roughness": 0.000045719999999999996
      },
      "expected": 76.6,
      "toleranceDecimalPlaces": 0,
      "unit": "kPa",
      "confidence": "high",
      "steps": [
        {
          "label": "Head loss",
          "value": 7.942651074830605,
          "unit": "m"
        },
        {
          "label": "Darcy friction factor (Colebrook)",
          "value": 27.026415500041026,
          "unit": "× 10⁻³"
        },
        {
          "label": "Friction factor by Swamee–Jain",
          "value": 27.213473469055423,
          "unit": "× 10⁻³"
        },
        {
          "label": "Reynolds number",
          "value": 179076.76203672294
        },
        {
          "label": "Mean velocity",
          "value": 1.6976527263135504,
          "unit": "m/s"
        },
        {
          "label": "Relative roughness",
          "value": 3048.0000000000005,
          "unit": "× 10⁻⁶"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    },
    {
      "name": "600 L/min of 10 °C water in 100 m of 100 mm cast iron",
      "inputs": {
        "fluid": "water",
        "waterTemperature": 10,
        "airTemperature": 20,
        "pipeDiameter": 0.1,
        "ductDiameter": 0.2,
        "pipeLength": 100,
        "waterFlow": 600,
        "airflow": 200,
        "material": "castIron",
        "roughness": 0.000045719999999999996
      },
      "expected": 21.5,
      "toleranceDecimalPlaces": 0,
      "unit": "kPa",
      "confidence": "high",
      "steps": [
        {
          "label": "Head loss",
          "value": 2.197562141640884,
          "unit": "m"
        },
        {
          "label": "Darcy friction factor (Colebrook)",
          "value": 26.58713854498125,
          "unit": "× 10⁻³"
        },
        {
          "label": "Friction factor by Swamee–Jain",
          "value": 26.82903744916857,
          "unit": "× 10⁻³"
        },
        {
          "label": "Reynolds number",
          "value": 97469.80237175246
        },
        {
          "label": "Mean velocity",
          "value": 1.2732395447351625,
          "unit": "m/s"
        },
        {
          "label": "Relative roughness",
          "value": 2590.7999999999997,
          "unit": "× 10⁻⁶"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    },
    {
      "name": "A custom roughness of 0.0015 mm reproduces the plastic case",
      "inputs": {
        "fluid": "water",
        "waterTemperature": 20,
        "airTemperature": 20,
        "pipeDiameter": 0.025,
        "ductDiameter": 0.2,
        "pipeLength": 30,
        "waterFlow": 15,
        "airflow": 200,
        "material": "custom",
        "roughness": 0.0000015240000000000001
      },
      "expected": 4.52,
      "toleranceDecimalPlaces": 2,
      "unit": "kPa",
      "confidence": "high",
      "steps": [
        {
          "label": "Head loss",
          "value": 0.46221465098868014,
          "unit": "m"
        },
        {
          "label": "Darcy friction factor (Colebrook)",
          "value": 29.125468007481224,
          "unit": "× 10⁻³"
        },
        {
          "label": "Friction factor by Swamee–Jain",
          "value": 29.15918461103538,
          "unit": "× 10⁻³"
        },
        {
          "label": "Reynolds number",
          "value": 12689.291753058797
        },
        {
          "label": "Mean velocity",
          "value": 0.5092958178940651,
          "unit": "m/s"
        },
        {
          "label": "Relative roughness",
          "value": 60.96000000000001,
          "unit": "× 10⁻⁶"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    }
  ]
}
