CalcaTools

Tube Calculator | Calculate Tube Volume From OD, ID, and Length

SPONSORED
Calculate the volume, surface area and wall thickness of a cylindrical tube from its outside and inside dimensions, with gallon and litre conversions. Perfect for pipes, hollow shafts and tubing in engineering and construction.

Last updated: July 2026 · Free · No sign-up required

SPONSORED
Results

Enter values above and click Calculate to see your result instantly.

How the Tube Calculator works

Behind the inputs above sits one rule: Volume = (π⁄4) × (OD² − ID²) × length. The tool evaluates it instantly with the values you enter.

The reference table below covers the most common tube volume calculator cases at a glance, the methodology section breaks the calculation into verifiable steps, and the FAQ tackles the edge cases.

Quick reference

QuantityFormula
Volume(π/4)(OD²−ID²)·L
Wall thickness(OD − ID) / 2
Cross-section(π/4)(OD²−ID²)

info Tube Calculator

Free math calculator — enter your numbers and get an instant, accurate result.

info Private by design

Everything runs locally in your browser. No uploads, no accounts, no tracking.

info Works everywhere

Fully responsive and mobile-friendly — calculate on any device, any time.

info Educational

Includes the formula and step-by-step explanation so you understand the math, not just the answer.

Interpretation guide

InputMeaningTip
Outer diameterFull outside widthMeasure across the pipe
Inner diameterBore width0 gives a solid rod
LengthAxial lengthSame unit as diameters

lightbulb Worked example — a 10 ft steel pipe, 4 in OD × 3.5 in ID

A fabricator has a 10-foot length of steel pipe with a 4-inch outside diameter and 3.5-inch inside diameter, and needs the wall thickness, the steel volume (for weight), and the internal capacity in gallons.

Result: Wall thickness = (4 − 3.5) ÷ 2 = 0.25 in. Ring cross-section = (π/4) × (4² − 3.5²) = 0.7854 × 3.75 = 2.945 in². Steel volume = 2.945 × 120 = 353.4 in³; at 0.284 lb/in³ that is about 100 lb. Internal volume = (π/4) × 3.5² × 120 = 1,154.5 in³ = 1,154.5 ÷ 231 = 5.00 gallons.

What this means: The 100 lb figure is what matters for handling and shipping, while the 5-gallon capacity matters for the fluid system design. Note the two volumes answer different questions: the ring volume is the material, the bore volume is the capacity — mixing them up is the classic tube-calculation mistake.

Formula & methodology

Formula: Volume = (π⁄4) × (OD² − ID²) × length

How tube measurements are calculated

A tube is a hollow cylinder: its material is the ring between the outer and inner circles, and its capacity is the inner cylinder alone. All diameters and the length must use the same unit.

  • Wall thickness = (outer diameter − inner diameter) ÷ 2.
  • Ring cross-section = (π/4) × (OD² − ID²).
  • Material volume = ring cross-section × length (multiply by the material’s density for weight).
  • Internal capacity = (π/4) × ID² × length, converted to gallons (÷ 231 for cubic inches) or litres.

Solid rod: set the inner diameter to 0 and the ring formula reduces to the plain cylinder volume (π/4) × OD² × length. Example: OD 6, ID 5, length 24 in → 207.3 in³ of steel and 471.2 in³ (2.04 gal) of internal capacity.

Authoritative source: Wolfram MathWorld

Frequently asked questions

How do I find the volume of a tube?
Enter the required values into the input fields and press the calculate button. The tool applies the formula Volume = (π⁄4) × (OD² − ID²) × length and returns the result with a short explanation of each step, so you can check the working yourself.
What if the tube is solid?
The Tube Calculator is free, private, and accurate: it runs entirely in your browser (no uploads, no accounts), applies the standard calculation, and explains each step so you can verify the result. Calculates tube volume using Volume = (π⁄4) × (OD² − ID²) × length, in real time in your browser. There is no limit on usage, and it works on any device.
How do I get wall thickness?
Wall thickness is the difference between the outside and inside radii: wall = (outer diameter − inner diameter) ÷ 2, or (outer radius − inner radius) directly. Measure both diameters with calipers and divide the difference by 2. The calculator accepts either the radii pair or diameters pair and derives the wall thickness from them.
Can I get gallons from a tube?
Yes — after computing the interior volume with the cylinder formula πr²h, the calculator converts to US gallons (÷ 231 for cubic inches) and litres. The interior volume uses the inside radius, so the wall thickness is subtracted first. This is useful for pipes, hollow shafts, and tubing where the liquid capacity is what you need.
How do I measure the inside diameter if I can’t reach inside?
Measure the outside diameter with calipers and the wall thickness at the pipe’s cut end, then ID = OD − 2 × wall. A 4-inch pipe with a 0.25-inch wall has an ID of 3.5 inches. If the end isn’t accessible, a bore gauge or telescoping gauge reaches inside and transfers the measurement to your calipers.
How do I find a pipe's circumference from its diameter?
Circumference = π × outside diameter. A 4.5 in OD pipe (nominal 4-inch steel) measures 14.14 inches around. This is also the practical way to measure OD in the field: wrap a tape around the pipe and divide the reading by π.
How do I get the diameter of a pipe I can't measure across?
Wrap a flexible tape (or a string you then measure) around the pipe and divide by π = 3.1416. A wrap of 7.85 inches means an OD of 2.50 inches. Note this gives the outside diameter — subtract twice the wall thickness for the true bore.
What does the 'perimeter' of a cylinder mean?
For a circular cross-section it's just the circumference, πd. If someone asks for the perimeter of the side profile (the rectangle you'd see from the side), that's 2 × (height + diameter) — a 10 cm tall, 6 cm wide cylinder has a 32 cm profile perimeter. The calculator's circumference output covers the usual case.
What is the difference between nominal pipe size and actual OD?
Nominal sizes are trade names, not measurements — a ‘4-inch’ steel pipe actually has an OD of 4.5 inches. Always measure the real outside diameter with calipers or a circumference tape (OD = circumference ÷ π) rather than trusting the nominal label, especially when ordering fittings.
How do I estimate a pipe’s weight from these results?
Multiply the material (ring) volume by the metal’s density: steel is about 0.284 lb/in³, aluminium 0.098, copper 0.324. The 10 ft steel pipe in the worked example holds 353.4 in³ of metal, so it weighs about 100 lb. Density figures are standard handbook values for common alloys.
Why do I need both OD and ID — isn’t one enough?
One diameter only describes a solid rod or an empty bore, not the wall between them. The ring volume (π/4)(OD² − ID²) needs both: OD sets the outer boundary, ID sets the hollow core. Wall thickness, material weight and burst strength all live in the difference between the two.
How accurate are the gallon conversions?
The conversion is exact by definition — 1 US gallon = 231 cubic inches — so any rounding comes only from the displayed decimals. The realistic error source is your measurement: a 1/16-inch error in diameter on a long pipe moves the volume far more than any rounding in the calculator.

Explore the full math toolkit

Every CalcaTools math calculator — algebra, geometry, trigonometry, statistics, sequences, and unit conversions — with step-by-step workings on every result.