# Plumbing & Pipe Flow Calc – Hazen-Williams Pressure Loss

> Plumbing & Pipe Flow Calc – Hazen-Williams Pressure Loss is a paid API for AI agents from plumbing-calc.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-30).

Calculates friction pressure loss in PSI (and feet of head) over a pipe run using the Hazen-Williams formula, given flow rate, pipe size, length, and C factor.

## Facts

- Endpoint: GET https://plumbing-calc.x402tookit.com/pressure-loss?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/plumbing-pipe-flow-calc-hazen-williams-pressure-loss-09a84cac
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EfFQwk8MCXJQVppS6h9sR

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability plumbing-pipe-flow-calc-hazen-williams-pressure-loss-09a84cac
```

Example prompt: What's the friction pressure loss in a 3/4-inch copper Type L pipe that's 80 feet long with a flow of 4 GPM — give me the total PSI loss and feet of head?

## When to prefer this

Use this endpoint when you need a quick, formula-based Hazen-Williams friction pressure loss calculation for a straight or equivalent-length pipe run in common residential or light commercial materials (copper Type L, PVC Schedule 40). It is ideal for plumbing design checks, verifying adequate pressure at fixtures, or sizing runs without needing full hydraulic simulation software.

## Known failure modes

- Missing required flowGpm or lengthFeet parameters returns an error
- Invalid or unrecognized nominalSize string for the chosen material returns an error
- Providing neither nominalSize nor insideDiameterInches results in missing pipe geometry error
- Extremely high flow rates or very small diameters may produce physically unrealistic results without a warning
- Service unavailability due to x402 payment failure or network issues

## How this service works

Friction pressure loss in psi (and feet of head) over a pipe run by the Hazen-Williams formula, from flow, size and C factor.

## Output

Returns total friction pressure loss in PSI, PSI per foot, PSI per 100 feet, feet of head loss, kilopascals loss, inside pipe diameter used, C factor applied, a scenario where flow is doubled, a plain-language summary, and any warnings or disclaimer notes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "flowGpm",
      "lengthFeet"
     ],
     "properties": {
      "cFactor": {
       "type": "number",
       "description": "Hazen-Williams C: 140 copper, 150 PVC (defaults), 100 old steel"
      },
      "flowGpm": {
       "type": "number",
       "description": "Flow in US gallons per minute"
      },
      "material": {
       "type": "string",
       "description": "copper-l or pvc-40 (default copper-l)"
      },
      "lengthFeet": {
       "type": "number",
       "description": "Pipe length in feet (add equivalent length of fittings if you know it)"
      },
      "nominalSize": {
       "type": "string",
       "description": "Nominal size such as 3/4 (with material), or insideDiameterInches"
      },
      "insideDiameterInches": {
       "type": "number",
       "description": "Inside diameter in inches"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "pipe": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "cFactor": {
       "type": [
        "null",
        "number"
       ]
      },
      "flowGpm": {
       "type": [
        "null",
        "number"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "lengthFeet": {
       "type": [
        "null"
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/plumbing-pipe-flow-calc-hazen-williams-pressure-loss-09a84cac/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from plumbing-calc.x402tookit.com](https://www.zero.xyz/host/plumbing-calc.x402tookit.com/llms.txt)
