Using the Pipe Volume Calculator
The pipe volume on this page is the volume of a cylinder. Enter the inside diameter and the length, both in the same unit. The page halves the diameter to get the radius, multiplies pi by the radius squared, and multiplies that area by the length. A diameter of 2 and a length of 10 return 31.4159265359.
The result is in cubic units of whatever unit you typed. A diameter in inches and a length in inches produce cubic inches. The page does not convert to gallons, liters, or board feet, and it does not subtract the metal of the wall. If you type the outside diameter, the volume is larger than the hole inside the pipe.
What the Two Fields Mean
Inside diameter is the width of the empty hole, from one inner wall to the opposite inner wall, passing through the center. Length is how far that hole runs. Both numbers must be greater than zero. A blank field is rejected, and so is zero.
The page treats the pipe as a straight cylinder with a circular cross section. It does not model elbows, reducers, or a pipe that changes diameter along its length. If the real pipe changes size, split it into pieces that each have one diameter and one length, run each piece, and add the volumes yourself.
The headline is the volume. The lines show the radius, the length, and the value of pi used here, which is 3.14159265359. The summary sentence repeats the volume and the radius so a note can be checked without opening the form again.
How Diameter 2 and Length 10 Become the Headline
Half of 2 is 1. The radius squared is 1. Pi times 1 is still 3.14159265359. Times a length of 10, the volume is 31.4159265359. That is the number to quote when you are checking the page. A pocket calculator that uses a shorter pi will disagree in the last digits. The disagreement is the pi, not a different formula.
A diameter of 4 and the same length of 10 is not twice the volume. The radius is 2, the radius squared is 4, and the volume is four times 31.4159265359. Area grows with the square of the radius, so doubling the diameter quadruples the volume when the length stays the same.
A rectangular tank uses length times width times height. The Tank Volume Calculator also handles a standing cylinder, which is the same cylinder formula with a fill height. This page is the full pipe only. It has no fill field, because a pipe volume here means the whole internal cylinder.
A Second Pair of Measurements
Try a diameter of 1 and a length of 1. The radius is 0.5 and the radius squared is 0.25. Pi times 0.25 is 0.785398163398, and the length of 1 leaves that as the volume. If the headline is about 0.785398163398, the square of the radius is being applied. If it is about 1.57, the page forgot to square the radius and only multiplied pi by the radius.
Try a diameter of 2 and a length of 1. The volume should be one tenth of the first example, 3.14159265359, because only the length changed. Length is a straight multiplier. Diameter is not.
A negative diameter is rejected. A diameter typed as text is rejected. Fix the field rather than expecting the page to drop the bad character and continue.
Worked Notes for a Short Run of Pipe
Suppose the inside diameter is 2 inches and the run is 10 inches. The volume is 31.4159265359 cubic inches. A note that says “about 31.4 cubic inches, from diameter 2 and length 10, pi 3.14159265359” can be audited. A note that says “31” cannot, because 31 could be a rounded cylinder or a different shape that happened to land nearby.
If the length is 120 inches of the same pipe, multiply the headline by 12, because 120 is 12 times 10. The volume is 376.9911184308 cubic inches. You can also type 120 directly. Both routes should agree. If they do not, one of the multiplications used a rounded intermediate.
Lumber volume is a different product. The Board Foot Calculator turns thickness, width, and length of a board into board feet. A board is not a cylinder. Do not send a pipe diameter to that page and call the result a pipe volume.
Inside Diameter, Outside Diameter, and Wall
The formula uses the radius of the hole. A pipe sold by outside diameter has a wall that takes space. Subtract twice the wall thickness from the outside diameter before you type the diameter here. If the outside diameter is 2.5 inches and the wall is 0.125 inches, the inside diameter is 2.25 inches. Typing 2.5 counts metal as if it were empty.
The page will not ask for a schedule or a wall thickness. Those tables differ by material and by maker. Bring the inside diameter you already measured or computed. A caliper across the inside, or a known outside diameter minus twice the wall, is the input.
Ends matter only if you are excluding them. This page measures the cylinder between the two ends you chose as the length. A coupling that is wider than the pipe is a second piece. Add it only if you also know its inside diameter and its length.
Mistakes that Change the Volume
Using the diameter where the formula needs the radius doubles the radius and multiplies the volume by four. The page already halves the diameter. Do not halve it again before typing, or the volume will be one quarter of the pipe you measured.
Mixing units is silent. A diameter in centimeters and a length in inches produces a number with no physical meaning, and the page will still print it. Convert both fields to one unit first. The headline will not name the unit, because it never saw a unit label.
A hand check can use ordinary multiplication. The 4-Function Calculator multiplies the numbers you type. It will not square a radius or insert pi unless you type those steps. Use it to confirm 1 times 1, then pi times 10, and compare with the headline.
How the Volume Moves when One Field Changes
Doubling the length doubles the volume. Doubling the diameter multiplies the volume by four. Tripling the diameter multiplies the volume by nine. That is why a small error in diameter hurts more than the same error in length. A diameter that is 1 percent high makes the area about 2 percent high, because the radius is squared.
Halving the length halves the volume. Halving the diameter cuts the volume to a quarter. If a result looks four times too large, look at the diameter before you look at the length.
Pi is fixed on this page. Changing a digit of pi in your head will not change the headline. The printed pi line is the constant the page used, so a comparison with another tool should start by comparing that constant.
Writing the Result down
Record the inside diameter, the length, the unit, and the headline. “Inside diameter 2 in, length 10 in, volume 31.4159265359 cubic inches” is enough for someone else to repeat the run. Rounding belongs in a second sentence, with the unrounded headline kept beside it.
If you have several pieces, list them separately and add the headlines. Do not average the diameters and run once, unless every piece really has that average and the same total length. An average diameter understates the volume of the wider pieces because of the square.
A straight line between two measured points is a different question. The Linear Interpolation Calculator estimates a y between two known pairs. It does not compute a cylinder. Use it when you are filling a gap in a table, not when you are filling a pipe.
What the Page Does Not Do
It does not convert cubic inches to gallons or liters. A gallon conversion is a second factor you apply after the headline. Keep that factor written down, because the page will not remember it.
It does not estimate flow. Volume is how much the pipe holds when it is full. Flow is volume per time and needs a speed. This page has no speed field.
It does not price the pipe, choose a material, or check a pressure rating. Those depend on catalogs and codes. The arithmetic stops at the internal cylinder.
A Diameter, a Length, and the Volume
Write the inside diameter first, then the length, then the unit, then the headline. Add the pi value from the line under the result when the last digits matter. A later reader who uses 3.14 will not match 31.4159265359 exactly, and the note should show why. “pi 3.14159265359” next to the volume prevents a false mismatch.
Checking a Cylinder without Treating It as a Box
A box with a square end that is 2 by 2 and a length of 10 has volume 40. The pipe with diameter 2 and length 10 has volume 31.4159265359, which is smaller, because the circular end sits inside that square and leaves out the corners. If a pipe result comes out larger than the surrounding box, the radius was not squared or the diameter was used as a side. That comparison is a useful smell test before you copy the number into a purchase.
Checking the Arithmetic
Enter diameter 2 and length 10. Confirm the headline 31.4159265359, the radius 1, and pi 3.14159265359. Enter diameter 2 and length 1. Confirm the headline 3.14159265359. Enter diameter 0. Confirm the page rejects it. Those three runs cover the worked example, the length multiplier, and the zero check.
A percent gap between two volumes is a different page. The Percentage Difference Calculator compares two positive numbers as a percent of their average. It does not know which number is a pipe. Use it only after you already have two volumes you intend to compare.