Calculator

Volume of Pipe Calculator:Gallons from Inside Diameter and Length, With Copper Tube Bores by Type

Volume of pipe calculator: gallons, cubic feet and liters from inside diameter and length, using 231 cubic inches per gallon, with copper tube bores by type.

Updated 5 min read

A volume of pipe calculator gives the water a pipe holds from two measurements: its inside diameter and its length. The calculator on this page computes π ÷ 4 × inside diameter² × length in inches, then divides by 231 cubic inches per US gallon. It reports gallons, cubic feet, liters and gallons per foot.

FieldRanger, field service software that runs inside HubSpot, publishes the calculator among its free field service templates. It is free and needs no sign-up. The method is written out below with one sample, and a table of copper tube bores shows why the nominal size on the pipe is not the number to enter.

Pipe volume formula and the 231 cubic inch gallon

A pipe's bore is a cylinder. Its volume is the area of the circle inside the wall times the length of the run:

  1. Cross-section in square inches = π ÷ 4 × ID², with the inside diameter (ID) in inches.
  2. Volume in cubic inches = cross-section × length in feet × 12.
  3. Gallons = cubic inches ÷ 231; cubic feet = cubic inches ÷ 1,728; liters = gallons × 3.785411784.

The constants are definitions, not approximations. NIST Handbook 44 lists the US liquid gallon as 231 cubic inches, the cubic foot as 1,728 cubic inches and one gallon as 3.785 411 784 liters (NIST Handbook 44-2026, Appendix C: General Tables of Units of Measurement, 2026 edition). The factor 0.004329 that some calculators print is 1 ÷ 231, rounded.

Sample volume: 100 feet of pipe with a 2-inch bore

The sample uses the calculator's default inputs: an inside diameter of exactly 2 inches and a run of 100 feet. They are sample figures, not a measured pipe.

Sample pipe volume calculation (sample inputs, the calculator's defaults)
StepWorkingResult
Cross-sectionπ ÷ 4 × 2²3.1416 sq in
Length in inches100 ft × 121,200 in
Volume3.1416 × 1,2003,769.9 cu in
Gallons3,769.9 ÷ 23116.32 US gal
Cubic feet3,769.9 ÷ 1,7282.182 cu ft
Liters16.32 × 3.78541178461.78 L
Per foot16.32 ÷ 1000.1632 gal

The calculator returns these six figures for the defaults, and so does its JSON endpoint, fieldranger.ai/api/tools/volume-of-pipe-calculator, for insideDiameter=2 and length=100. The per-foot figure is the useful one to keep: multiplied by any length of the same pipe, it gives that run's volume without recomputing the circle.

Nominal pipe size against inside diameter

The size printed on a pipe is a name, not a measurement. The Copper Development Association states that Types K, L and M copper tube are designated by ASTM standard sizes, "with the actual outside diameter always 1/8-inch larger than the standard size designation", and that "all inside diameters depend on tube size and wall thickness" (Copper Development Association, Copper Tube Handbook, Section 1: Standard Tubes, checked November 13, 2026). Type K has the thickest wall, then L, then M.

Two-inch copper tube shows the spread. The bores below come from the association's dimension tables; the volumes are what the calculator on this page returns for each bore over 100 feet.

2-inch copper tube, inside diameter by type and volume of 100 feet (bores from CDA Tables 14.2a to 14.2c; volumes from the calculator)
2-inch tubeOutside diameterInside diameterCDA gallons per footCalculator, 100 ft
Type K2.125 in1.959 in.15615.66 gal
Type L2.125 in1.985 in.16116.08 gal
Type M2.125 in2.009 in.16516.47 gal
Nominal size entered as the bore2.000 in16.32 gal
Outside diameter entered as the bore2.125 in18.42 gal

Sources: CDA Table 14.2a, Type K, Table 14.2b, Type L and Table 14.2c, Type M, checked November 13, 2026.

Entering the nominal 2 inches overstates a Type L run by 1.5%; entering the outside diameter overstates it by 14.6%. The error grows at small sizes. Three-quarter-inch Type L tube has a bore of 0.785 inch, so 100 feet holds 2.51 gallons, while 0.75 entered as the bore gives 2.29 gallons, 8.7% low. The association's per-foot column, 0.0251 gallons for that tube, matches the calculator's result to four decimals.

Steel and plastic pipe follow their own schedules, so the bore comes from the dimension table for the material and schedule on the job, or from a caliper on a cut end.

Water outside the straight run

The formula covers straight pipe at one bore. Fittings, valves, strainers and equipment on the line hold water the calculator does not count: a boiler, a coil, a water heater or a tank each adds its own volume, taken from its data sheet. A run with several sizes is entered once per size and the results added, which is where the gallons-per-foot figure saves time.

The pipe volume says nothing about flow or pressure. Air systems belong to the duct calculator, which sizes round duct from airflow and friction rate, and equipment capacity for the space the pipe serves belongs to the HVAC calculator.

Pipe runs on FieldRanger work orders

FieldRanger does not size or measure pipe. It carries the job the measurement belongs to: digital work orders put job details, customer information and instructions on the technician's phone, so a fill volume can travel with the job as part of its instructions. Parts and materials used on each job, such as tube and fittings, are logged for job costing. Revenue reports then show job revenue and margin by customer or service type.

Frequently asked questions

How to calculate the volume of a pipe in gallons?

Multiply π ÷ 4 by the inside diameter in inches squared, multiply by the length in inches, and divide by 231. A 2-inch bore over 100 feet holds 3,769.9 cubic inches, or 16.32 gallons.

How many gallons are in 100 feet of 2-inch pipe?

16.32 gallons if the bore is exactly 2 inches. Two-inch Type L copper has a 1.985-inch bore and holds 16.08 gallons per 100 feet; Type K holds 15.66 and Type M 16.47.

Is pipe volume calculated with the inside or outside diameter?

The inside diameter. Entering the outside diameter of 2-inch copper, 2.125 inches, overstates a 100-foot Type L run by 14.6%.

How many cubic inches are in a gallon?

231, by definition of the US liquid gallon in NIST Handbook 44.

How much water is in a foot of 3/4-inch copper pipe?

0.0251 gallons for Type L, from its 0.785-inch bore. The Copper Development Association's table and the calculator on this page agree on that figure.

The 0.1632 gallon foot

A 2-inch bore holds 0.1632 gallons a foot, and a Type L tube of the same name holds 0.1608: the difference is the wall. Air-side sizing is in the duct calculator, one of the free field service templates. A repipe can be carried from HubSpot deal to invoice in the 14-day trial, which needs no card (Start free trial); per-technician plans are listed on pricing.

FieldRanger runs field service inside HubSpot

Estimates, scheduling and dispatch, a technician app and invoicing on the HubSpot records sales already keeps. Every plan starts with a free trial.

Book a demo