# Volume Calculator

> Volume and surface area of 11 solids — cube, box, cylinder, cone, frustum, sphere, pyramid, prism, capsule, torus — in m³, litres, ft³ and US gallons.

Interactive calculator: https://calculatorsplatform.com/c/volume-shapes/
Category: Math & Statistics Calculators
Calculations run in the browser; inputs can be prefilled through URL parameters and shared with the Share button.

## Volume and surface area formulas

Volume is the space a solid occupies; surface area is the total area of all its faces. The calculator uses these standard formulas (r = radius, h = perpendicular height):

| Solid | Volume | Surface area |
|---|---|---|
| Cube (edge a) | a^3 | 6a^2 |
| Rectangular prism | l × w × h | 2(lw + lh + wh) |
| Cylinder | πr^2h | 2πr(r + h) |
| Cone | ⅓πr^2h | πr(r + l), l = √(r^2 + h^2) |
| Frustum | ⅓πh(R^2 + Rr + r^2) | π(R + r)l + πR^2 + πr^2 |
| Sphere | ⁴⁄₃πr^3 | 4πr^2 |
| Hemisphere | ⅔πr^3 | 3πr^2 (with base) |
| Square pyramid | ⅓a^2h | a^2 + 2as |
| Triangular prism | base area × L | 2 × base + perimeter × L |
| Capsule | πr^2a + ⁴⁄₃πr^3 | 2πr(2r + a) |
| Torus | 2π^2Rr^2 | 4π^2Rr |

Two patterns are worth remembering. Any **prism or cylinder** has volume = base area × height. Any **pyramid or cone** has exactly one third of that, which is why a cone holds a third of the cylinder with the same base and height.

## Worked example: a cylindrical tank

The calculator opens with a cylinder of radius r = 0.5 m and height h = 1.2 m, about the size of a small water tank.

1. Base area = πr^2 = π × 0.5^2 = 0.7854 m².
2. Volume = base area × height = 0.7854 × 1.2 = **0.9425 m³**.
3. Since 1 m³ = 1,000 litres, the tank holds about **942.5 L**, or 942.5 ÷ 3.785 ≈ **249 US gallons**.
4. Surface area = 2πr(r + h) = 2π × 0.5 × 1.7 = **5.34 m²** — useful for estimating paint or insulation. Of that, the curved side is 2πrh = 3.77 m².

In US units the default is r = 1.5 ft, h = 4 ft: V = π × 1.5^2 × 4 = 28.27 ft³ ≈ 211.5 US gallons. Remember that r is the **radius**: if you measured a diameter of 1 m, enter 0.5 m. Doubling the radius makes the volume four times larger.

## Cones, frustums, pyramids and rings

For a **cone** the surface area needs the slant height l = √(r^2 + h^2), not the vertical height. A 3-4-5 cone (r = 3, h = 4) has l = 5, volume 12π ≈ 37.7 and total surface area 24π ≈ 75.4.

A **frustum** is a cone with its tip cut off — a bucket, lampshade or flower pot. Its volume formula ⅓πh(R^2 + Rr + r^2) is exactly the large cone minus the small cone that was removed; setting r = 0 gives a cone and r = R a cylinder.

For a **square pyramid** the calculator reports the slant height of a face, s = √(h^2 + (a/2)^2), and the lateral edge from a base corner to the apex. A pyramid with a 6 m base and 4 m height has volume 48 m³ and surface area 96 m².

The **torus** (a doughnut or O-ring) follows Pappus's theorem: volume = area of the tube's cross-section πr^2 × distance travelled by its centre 2πR. A **capsule** is a cylinder with two hemispherical ends, the shape of pills and many pressure tanks.

## Units and practical tips

Measure every dimension in the same unit; the calculator converts the result for you. Key exact relations:

- 1 m³ = 1,000 L, and 1 L = 1,000 cm³ = 1,000 mL
- 1 ft = 0.3048 m, so 1 ft³ = 28.3168 L
- 1 US gallon = 231 in³ = 3.785411784 L, so 1 ft³ ≈ 7.48 US gallons
- 1 yd³ = 27 ft³ ≈ 0.7646 m³ (concrete, soil and mulch are sold by the cubic yard)

For containers, the inside dimensions give the capacity; the outside dimensions give the space taken up. Real tanks are rarely filled to the brim, so allow some headroom. For materials such as concrete or gravel, see the [concrete calculator](https://calculatorsplatform.com/c/concrete/) and [cubic yards calculator](https://calculatorsplatform.com/c/cubic-yards/), and use the [volume converter](https://calculatorsplatform.com/c/volume-converter/) for other units.

## Frequently asked questions

### How do I calculate the volume of a cylinder in litres?

Compute πr²h in cubic metres and multiply by 1,000. A cylinder with r = 0.5 m and h = 1.2 m holds 0.9425 m³ = 942.5 L.

### Why is a cone one third of a cylinder?

Slicing both into thin discs, the cone's discs shrink in proportion to height, and summing their areas (integration) gives exactly ⅓ of the cylinder with the same base and height. The same holds for any pyramid and prism.

### Does the surface area include the bottom?

Yes — the figure shown is the total area of all faces. The curved or lateral area is listed separately for cylinders, cones, frustums and hemispheres, for open containers.

### How many gallons are in a cubic foot?

About 7.48 US gallons (exactly 1728 ÷ 231), or 6.23 imperial gallons.

## Related calculators

- [Area Calculator](https://calculatorsplatform.com/c/area-shapes/index.md)
- [Volume Converter](https://calculatorsplatform.com/c/volume-converter/index.md)
- [Cubic Yards Calculator](https://calculatorsplatform.com/c/cubic-yards/index.md)
- [Concrete Calculator](https://calculatorsplatform.com/c/concrete/index.md)
- [Circle Calculator](https://calculatorsplatform.com/c/circle/index.md)
- [Unit Converter](https://calculatorsplatform.com/c/unit-converter/index.md)

---
Source: CalculatorsPlatform (https://calculatorsplatform.com/c/volume-shapes/). Last reviewed 2026-11-25. Please link to the calculator page when citing.
