About Contact
Tools
1 Rep Max Calculator — Estimate Your 1RM From Any Set401(k) CalculatorAge Calculator — Your Exact Age in Years, Months & DaysAmortization CalculatorAsphalt CalculatorAsphalt Driveway Cost CalculatorAuto Loan CalculatorBarcode GeneratorBase64 EncoderBd Ft CalculatorBench Press Max Calculator — Estimate Your Bench 1RMBMR Calculator — Estimate Your Basal Metabolic RateBoard Foot CalculatorBrick CalculatorCalorie Deficit Calculator — Daily Target and TimelineCD Calculator (Certificate of Deposit)Cement CalculatorCircle Area Calculator — Area, Radius, Diameter, CircumferenceColor Palette GeneratorCompound Interest CalculatorConcrete Bag CalculatorConcrete Block CalculatorConcrete CalculatorConcrete Calculator with CostConcrete Footing CalculatorConcrete Mix CalculatorConcrete Pad CalculatorConcrete Price CalculatorConcrete Slab CalculatorConcrete Slab Cost CalculatorConcrete Volume CalculatorConcrete Weight CalculatorConcrete Yard CalculatorConduit Fill CalculatorCrushed Stone CalculatorDirt CalculatorDrywall CalculatorDue Date Calculator — Estimate Your Baby's Due DateFantasy Name GeneratorFavicon GeneratorFence CalculatorFill Dirt CalculatorFinal Exam Calculator — What Grade Do I Need on the Final?Fraction Calculator — Add, Subtract, Multiply, DivideFree Citation Generator (APA, MLA, Chicago, Harvard)GPA Calculator — Unweighted and Weighted, with Cumulative GPAGravel CalculatorHEIC to JPG ConverterHELOC CalculatorInsulation CalculatorLandscape Rock CalculatorMacro Calculator — Daily Protein, Carbs, and FatMean Calculator — Average of a List of NumbersMedian Calculator — Middle Value of a List of NumbersMeme GeneratorMetal Roof CalculatorMinute to Decimal ConverterMorse Code ConverterMortgage Payoff CalculatorMulch CalculatorOvulation Calculator — Find Your Fertile WindowPaver Base CalculatorPaver CalculatorPaver Sand CalculatorPea Gravel CalculatorPeptide CalculatorPercentage Calculator — Solve Any Percent QuestionPNG to PDF ConverterPuppy Weight CalculatorPythagorean Theorem Calculator — Solve Any Right TriangleQuadratic Formula Calculator — Roots, Vertex, Factored FormQuikrete Concrete CalculatorRaised Bed Soil CalculatorRandom Name GeneratorRiver Rock CalculatorRock CalculatorRoof Cost CalculatorRoof Pitch CalculatorRoof Shingle CalculatorRoof Slope CalculatorRoof Truss CalculatorRubik's Cube Solver — Solve Any Scrambled 3×3 CubeSakrete Concrete CalculatorSales Tax CalculatorSand CalculatorScrap Silver CalculatorSignature GeneratorSleep Calculator — Best Bedtimes & Wake Times by Sleep CycleSlope Calculator — Slope, Equation, Angle, GradeSnow Day CalculatorSod CalculatorSoil CalculatorSonotube Concrete CalculatorSquare Footage Calculator — Room and Floor AreaSquat Max Calculator — Estimate Your Squat 1RMStandard Deviation Calculator — Sample and PopulationStone CalculatorTDEE Calculator — Total Daily Energy ExpenditureTier List MakerTile CalculatorTime Calculator for WorkTop Soil CalculatorTopsoil CalculatorTriangle Calculator — Solve Any Triangle From 3 InputsUPC GeneratorUsername GeneratorVolume Calculator — 8 Shapes With Unit ConversionWebP to JPG ConverterWebP to PNG ConverterWordle Solver — Best Next Guess for Today's Puzzle
← All tools

Volume Calculator — 8 Shapes With Unit Conversion

Cube, box, sphere, cylinder, cone, pyramid, capsule, or tube. Pick a shape, enter dimensions, read the volume in any unit.

Linear unit
Volume
in³
ft³
yd³
cm³
liters
US gallons

What is volume calculator?

Volume is the amount of 3D space inside a closed shape, and the formulas vary by shape — but they share a common shape: a coefficient times the cubed characteristic length. A cube of side s has volume . A sphere of radius r has (4/3)π·r³. A cylinder takes the area of its circular base (π·r²) times its height. A cone or pyramid is one-third of the corresponding prism: a cone is one-third of the equivalent cylinder, a square pyramid is one-third of the box on the same base.

This calculator covers eight shapes that come up most often in homework, fabrication, and DIY: cube, rectangular prism (box), sphere, cylinder, cone, square pyramid, capsule, and annular tube. The capsule is a cylinder with hemispherical caps — like a medicine capsule — and the tube is the volume between two coaxial cylinders, which is what you want for pipe walls, drinking-glass walls, and similar hollow shapes.

The linear unit (in / ft / yd / cm / m) determines how the calculator interprets your dimension inputs. The result is reported in the cubed input unit as the headline, plus six cross-conversions in the stats list: in³, ft³, yd³, cm³, m³, liters, and US gallons. The liters and gallons lines are most useful for fluid-capacity questions (tank volumes, aquariums, drink containers).

Privacy is simple: every calculation runs in your browser. The values you type never leave your device. The only saved state is your shape and unit preference in localStorage.

When to use a volume calculator

  • Geometry homework — sphere, cone, or cylinder volume — Pick the shape from the dropdown, enter the dimensions, and read the volume in the same unit you typed (e.g., enter cm and get cm³). The stats list shows the same volume in six other units — in³, ft³, yd³, cm³, m³, liters, US gallons — so you can match whichever unit the assignment asks for.
  • Fabrication — tank or pipe capacity — For a cylindrical water tank: select Cylinder, enter the radius and the height, choose the unit (typically ft). The volume appears in ft³ with cross-conversions to liters and gallons — the two units most often used for tank capacity.
  • Aquarium or fish-tank volume — Rectangular prism volume is the same math as length × width × height. Enter the three dimensions in inches, read the volume in US gallons in the stats list. (Most US aquarium sites list capacity in gallons.)

How to use the Volume Calculator — 8 Shapes With Unit Conversion

  1. Pick a shape from the dropdownEight options: cube, rectangular prism (box), sphere, cylinder, cone, pyramid (square base), capsule, and tube. The input fields swap to match the shape. Your last choice persists across visits.
  2. Type the dimensionsAll dimensions must be positive numbers. For the tube, the inner radius must be strictly less than the outer radius. The calculator validates as you type and shows a hint if any field is missing or invalid.
  3. Pick the linear unitInches, feet, yards, centimeters, or meters. The unit determines how all your dimension inputs are interpreted; switching it does not convert numbers you already typed.
  4. Read the volume in 7 units at onceThe headline shows the volume in the cubed input unit (e.g., ft³). The stats list shows the same volume converted to in³, ft³, yd³, cm³, m³, liters, and US gallons — useful when the next step in your project uses a different unit system.

Worked examples

Cube, side 2 ft

Input:  Shape Cube, side 2, unit ft
Output: Volume = 8 ft³ (≈ 226.5348 liters, ≈ 59.8442 US gallons)

Cylinder, r = 2 ft, h = 5 ft

Input:  Shape Cylinder, r=2, h=5, unit ft
Output: Volume ≈ 62.8319 ft³ (≈ 1779.293 liters, ≈ 470.0876 US gal)

20π ≈ 62.8319.

Sphere, radius 3 cm

Input:  Shape Sphere, r=3, unit cm
Output: Volume ≈ 113.0973 cm³ (= 113.0973 mL, ≈ 0.1131 liters)

36π ≈ 113.0973. 1 cm³ = 1 mL.

Frequently asked questions

How do I calculate the volume of a cylinder?
V = π·r²·h, where r is the radius and h is the height. A cylinder of radius 2 ft and height 5 ft has volume π·4·5 = 20π ≈ 62.8319 ft³. Pick Cylinder from the shape dropdown and enter the two dimensions.
How do I calculate the volume of a sphere?
V = (4/3)·π·r³. A sphere of radius 3 has volume (4/3)·π·27 = 36π ≈ 113.0973 in whatever cubed unit you supplied the radius in.
What's the difference between a capsule and a cylinder?
A capsule is a cylinder with hemispherical caps on both ends — like a pill. Its volume is the cylinder volume plus a full sphere's worth (two hemispheres): V = π·r²·h + (4/3)·π·r³. The 'cylindrical height' input is the length of just the straight section (not the total length of the capsule).
Why does the tube calculator reject inner ≥ outer?
A tube (annular cylinder) is the volume between two coaxial cylinders. Its volume is V = π·(R² - r²)·h where R is the outer radius and r is the inner radius. If r ≥ R, the result would be zero or negative — physically meaningless. The calculator hints you to make outer strictly greater than inner.
How do cm³, mL, and liters relate?
1 cm³ = 1 mL. So a sphere of volume 113.0973 cm³ is also 113.0973 mL, which equals 0.1131 liters (since 1 L = 1000 mL). The stats list shows the liters figure directly. For metric volumes the conversion is exact; the gallon conversion uses the US liquid gallon (3.785411784 L).
Are these formulas exact or approximate?
The formulas themselves are mathematically exact. The displayed numbers are rounded to 4 decimal places for readability. Internally the calculator uses JavaScript's full Math.PI precision (about 15 significant digits), so chained conversions don't accumulate visible rounding error.
Imperial or US gallon?
US liquid gallon. The conversion factor used is exactly 3.785411784 liters per US gallon. The UK imperial gallon (4.54609 L) is not currently supported — if you need it, convert liters to imperial gallons by dividing by 4.54609 outside the tool.
Are my numbers stored or sent anywhere?
No. The calculation runs entirely in your browser. The values you type never leave your device. The only saved state is your shape and linear-unit preference in localStorage so the toggles remember your last choice.