MTO calculator
Enter each line's size, class, pipe length and the fittings, flanges and valves on it. The bill of material groups everything by size and adds pipe random lengths, gaskets and stud bolts for every flanged joint.
Calculation verification
Every result on this page can be checked by hand. For each calculator: the inputs, the formula, a worked example with real numbers, the units, the standard it comes from, and what it does not cover. Worked examples checked against the calculator output on 17 Nov 2026.
MTO calculatorASME B16.5 / B16.9 / B16.11 and counting rules
Input parameters
| Parameter | Symbol | Unit | Source |
|---|---|---|---|
| Per line: NPS, schedule, class, material, length | – | mm, m | Line list / isometric |
| Fittings, flanges, valves, nozzles | – | nos | Isometric or P&ID count |
| Random length | RL | m | 6 m SRL or 12 m DRL |
| Allowances | – | % | Pipe, fittings, gaskets, studs |
| Gasket type | – | – | Auto: sheet Class 150, spiral wound above |
Formula used
Pipe lengths = ceil( Σ length × (1 + pipe %) / RL ) Faces = flanges + blinds + 2 × flanged valves + equipment nozzles; joints = ceil(faces / 2) Gaskets = ceil( joints × (1 + gasket %) ) Studs = ceil( joints × bolts per flange × (1 + stud %) ) Stud length = 2·tf + 2·RF (Class ≥ 400) + gasket + 2·d + 2·3·p, rounded up to 5 mm
Worked example
NPS 6 Sch 40 carbon steel, Class 300: 48 m of pipe, 6 elbows, 4 weld neck flanges, 1 blind, 2 gate valves, 1 check valve, 2 nozzles. 6 m SRL, pipe +5%, gaskets +10%, studs +10%.
- Pipe: 48 × 1.05 = 50.4 m → 50.4 / 6 = 8.4 → 9 lengths
- Faces: 4 + 1 + (2 + 1) × 2 + 2 = 13 → 7 joints (one face meets a flange outside this list)
- Gaskets: 7 × 1.10 = 7.7 → 8 spiral wound, Class 300
- Studs: B16.5 NPS 6 Class 300 has 12 × 3/4″ per flange → 7 × 12 × 1.10 = 92.4 → 93
- Stud length: 2 × 35.1 + 4.5 + 2 × 19.05 + 6 × 2.54 = 127.9 → 130 mm
Result: 9 × 6 m pipe, 8 gaskets, 93 studs 3/4″ × 130 mm.
Units
- Pipe in metres and random lengths; other items in numbers (nos)
Standard or engineering basis
- ASME B16.9 butt-weld fittings (NPS 2 and up), B16.11 Class 3000 socket weld (NPS 1½ and below)
- ASME B16.5 flanges and bolting; ASME B16.20 / B16.21 gaskets
Assumptions and limitations
- A quick MTO for estimates and early ordering; the project piping class decides final descriptions, ends and materials.
- One gasket and one bolt set per joint; an odd face count is assumed to meet a flange outside the list.
- Pipe supports, small-bore vents and drains, and spares beyond the percentages you set are not added.
Contact & corrections
Questions, a value that differs from your edition of the code, or an idea for a new tool. For corrections, include the standard, table and size so the value can be checked.
Or email directly:
Isometric revision compare
Compare the issued (IFC) isometric against the latest from the model. Drop two PDFs for a linework overlay, or two PCF files for a component-by-component change list. Files stay in your browser.