Skip to main content
ponderloop

Volume Calculator

The volume of a cylinder is π × r² × h: with a radius of 2 ft and a height of 5 ft it holds ≈ 62.8319 cubic feet, which is ≈ 2.32711 cubic yards, ≈ 1.7792 cubic meters, ≈ 1,779.2 liters or ≈ 470.015 US gallons, and its surface area is ≈ 87.9646 square feet. Pick a cube, box, cylinder, sphere, hemisphere, cone, square pyramid, triangular prism or capsule, choose inches, feet, yards, centimeters or meters, and type the dimensions: the calculator shows the volume, the total surface area, the formula with your numbers, and the volume in cubic feet, yards, meters, liters and gallons.

Updated Runs in your browser: nothing you enter is uploadedHow this tool works

Round shapes take the radius (half the diameter). Every dimension is in the unit above.

Cylinder: radius 2 ft, height 5 ft

Volume ≈ 62.8319 cubic feet

Cubic feet (ft³)
≈ 62.8319
Cubic yards (yd³)
≈ 2.32711
Cubic meters (m³)
≈ 1.7792
Liters (L)
≈ 1,779.2
US gallons (gal)
≈ 470.015
Surface area (ft²)
≈ 87.9646
Square meters (m²)
≈ 8.17218

The formulas with your numbers

  • Volume: V = π × r² × h = π × 2² × 5 ≈ 62.8319 ft³
  • Surface area: A = 2πr(r + h) = 2 × π × 2 × (2 + 5) ≈ 87.9646 ft²
  • Cubic meters: 62.8319 ft³ × 0.028316846592 m³ per ft³ ≈ 1.7792 m³
  • Liters: 1.7792 m³ × 1,000 L per m³ ≈ 1,779.2 L
  • US gallons: 1,779.2 L ÷ 3.785411784 L per US gal ≈ 470.015 gal
  • Cubic feet and yards: 1.7792 m³ ÷ 0.028316846592 m³ per ft³ ≈ 62.8319 ft³; ÷ 0.764554857984 m³ per yd³ ≈ 2.32711 yd³

Volume and surface area formulas

Each example is the calculator’s own answer for the dimensions it starts with, in feet.
ShapeDimensionsVolumeSurface areaExample volume (ft³)Example area (ft²)
Cubeside aa³6a²6496
Rectangular boxlength l, width w, height hl × w × h2(lw + lh + wh)200220
Cylinderradius r, height hπ r² h2πr(r + h)≈ 62.8319≈ 87.9646
Sphereradius r4/3 π r³4π r²≈ 113.097≈ 113.097
Hemisphereradius r2/3 π r³3π r² (curved part plus flat base)≈ 56.5487≈ 84.823
Conebase radius r, height h1/3 π r² hπr(r + s), s = √(r² + h²)≈ 75.3982≈ 108.8
Square pyramidbase side a, height h1/3 a² ha² + 2as, s = √((a/2)² + h²)4896
Triangular prismtriangle sides a, b, c and length LB × L, B from Heron’s formula2B + (a + b + c) × L60132
Capsuleradius r, cylinder length hπ r² h + 4/3 π r³2πrh + 4π r²≈ 108.909≈ 125.664

Volume units and their exact conversions

One of each unit expressed in the others. The factors come from the exact definitions of the inch, foot, yard and US gallon (NIST), so only the display is rounded.
OneCubic feetCubic yardsCubic metersLitersUS gallons
1 cubic foot10.0370370.028316828.31687.48052
1 cubic yard2710.764555764.555201.974
1 cubic meter35.31471.3079511,000264.172
1 liter0.03531470.001307950.00110.264172
1 US gallon0.1336810.004951130.003785413.785411

Length units used by the calculator

Exact lengths: the international inch (1959) is 2.54 cm, and the foot and yard are defined from it.
UnitLength in metersCubed: cubic meters
inches (in)0.02540.000016387064
feet (ft)0.30480.028316846592
yards (yd)0.91440.764554857984
centimeters (cm)0.010.000001
meters (m)11

How to calculate the volume of a shape

  1. Pick the shape and the unit. Choose the solid that matches the object, and the length unit you measured in: inches, feet, yards, centimeters or meters. All dimensions use the same unit.
  2. Measure the dimensions. Enter the length, width and height of a box, or the radius of anything round. A radius is half the diameter, so a 4 ft wide tank has a radius of 2 ft.
  3. Read the volume. The result appears as you type. For the example cylinder, Volume: V = π × r² × h = π × 2² × 5 ≈ 62.8319 ft³.
  4. Convert if you need another unit. The same volume is listed in cubic feet, cubic yards, cubic meters, liters and US gallons: the example is ≈ 1,779.2 liters and ≈ 470.015 US gallons.
  5. Check the surface area. The surface area is the total area of every face, base included, in square units: ≈ 87.9646 ft² for the example. It is the amount of paint, liner or wrap to cover the outside.

Frequently asked questions

How do I find the volume of a cylinder?
Multiply the area of the circular end, π × r², by the height: V = π r² h. With r = 3 in and h = 10 in, V = π × 3² × 10 ≈ 282.743 cubic inches, which is ≈ 4.63333 liters. If you know the diameter, halve it first.
What is the difference between volume and surface area?
Volume is the space inside a solid, in cubic units: how much it holds. Surface area is the area of its outside, in square units: how much paint or wrap covers it. A 12 in cube has a volume of 1,728 cubic inches and a surface area of 864 square inches. This calculator gives the total surface area, bases included; a hemisphere's includes its flat circle.
How do I convert cubic feet to cubic yards?
Divide by 27, because a yard is 3 feet and 3 × 3 × 3 = 27. A 12 ft × 10 ft slab about 4 in (0.33 ft) thick is 39.6 cubic feet, or ≈ 1.46667 cubic yards. That is the figure concrete and gravel are ordered by; see the cubic yards to bags and cubic yards to tons pages for the next step.
How many gallons are in a cubic foot?
A US gallon is exactly 231 cubic inches, and a cubic foot is 1,728 cubic inches, so a cubic foot holds 1,728 ÷ 231 ≈ 7.48052 US gallons, or ≈ 28.3168 liters. Use the US gallon figure for US liquids; an imperial (UK) gallon is 4.54609 liters and is not used here.
Do I enter the radius or the diameter?
The radius, which is half the diameter. For a sphere with a diameter of 6 ft, enter 3: its volume is ≈ 113.097 cubic feet and its surface area ≈ 113.097 square feet. Using the diameter by mistake makes a sphere’s volume 8 times too big.
How do I get the height of a cone or pyramid?
Use the vertical height from the base to the point, not the slanted side. The calculator finds the slant height itself, as √(r² + h²) for a cone: a cone with r = 3 ft and h = 8 ft has a volume of ≈ 75.3982 cubic feet and a surface area of ≈ 108.8 square feet. A cone or pyramid holds exactly one third of the cylinder or box with the same base and height.
Why does the triangular prism ask for three sides?
The surface area of a prism depends on all three sides of its triangle, and Heron’s formula gives the triangle’s area from them without needing a height. The sides must be able to close into a triangle: the longest must be shorter than the other two added together. The prism length is the distance between the two triangular ends.
How do I find the volume of an irregular or combined shape?
Split it into the shapes above, work out each volume, and add them (or subtract a hollow). A capsule is already a cylinder plus a sphere; a silo is a cylinder plus a hemisphere; a tent might be a prism. Use the same unit for every piece. For a hollow object, subtract the inside volume from the outside.

How it works

Dimensions are read as plain positive numbers (1,250.5 is accepted) in the unit you choose and must be at most 1,000,000. Volume and total surface area use the standard formulas in the table above, with π as the double-precision value, and every result is a number of cubic or square units of the length unit chosen. The volume is then converted through cubic meters using exact factors: an inch is exactly 0.0254 m, a foot 0.3048 m, a yard 0.9144 m, so a cubic foot is 0.028316846592 m³ and a cubic yard 0.764554857984 m³; a liter is exactly 1/1,000 of a cubic meter; and a US gallon is exactly 231 cubic inches, which is 3.785411784 liters. Only the display is rounded, to six significant digits, and a result shown with ≈ is rounded. The triangular prism takes the three sides of its triangle and finds the base area with Heron's formula. The capsule is a cylinder of the given length with a hemisphere on each end, so its total length is the cylinder length plus two radii. Surface area is the total, bases included. The calculator treats solids as perfect geometric shapes: real tanks, tapered cones and rounded edges differ slightly, and no allowance for wall thickness, fill level or settling is made. Everything runs in your browser; nothing you type is sent anywhere.

Sources

More: Geometry and measurementAll math & numbersAll toolsHome & DIY calculators