Volume Calculator

Find the volume and surface area of a cube, cuboid, prism, cylinder, cone, pyramid, sphere or ellipsoid, or solve the inverse problem: what size a solid must have for a given volume. The answer is written exactly, in terms of π, and every result comes with a step-by-step solution and a diagram.

Enter data

Education
Solid
Numbers, decimals (2.5) or fractions (5/2). The chosen solid defines which sizes are needed; variants (full or frustum cone, solid or hollow cylinder, spherical cap) appear below the solid's name.

Settings

Length unit
Volume unit
Value of π
Decimal places
The volume unit works when a length unit is chosen: then the answer is converted exactly (for example 1 m³ = 1000 L).

Result

CalcCore
Enter your data — the result will appear here.

What the volume calculator does

The calculator finds the volume and surface area of eight solids: a cube, a cuboid, a prism, a cylinder (also hollow, that is a pipe), a cone (also a frustum), a pyramid, a sphere (also a spherical cap) and an ellipsoid. The answer is written exactly, with π and radicals such as 256π/3, and a decimal approximation is shown beside it. There is also an inverse problem: from a known volume find an edge, radius or height.

Volume of a cube and a cuboid

A cube with edge a has volume V = a³ and surface S = 6a²: for a = 5 we get V = 125 and S = 150. A cuboid with dimensions a, b, c has V = abc, S = 2(ab + bc + ca) and diagonal d = √(a² + b² + c²): for 3 × 4 × 12 the volume is 144 and the diagonal 13.

Volume of a prism and a pyramid

For any prism V = S₀ · h, where S₀ is the base area and h the height. For a pyramid V = S₀ · h / 3, a third of the matching prism. For a regular n-gon with side a the base area is S₀ = n·a² / (4·tan(180°/n)); for a triangle, a square and a hexagon it comes out exactly. A pyramid with a 6 × 6 square base and height 4 has V = 36 · 4 / 3 = 48.

Volume of a cylinder and a pipe

Cylinder: V = π · r² · h, lateral area 2πrh, total 2πr(r + h). For r = 3 and h = 10 we get V = 90π ≈ 282.7433. For a hollow pipe with outer radius R and inner radius r the material volume is V = π(R² − r²)h and the capacity is πr²h. A barrel of radius 0.5 m and height 1.2 m holds 0.3π ≈ 0.9425 m³, about 942.4778 litres.

Volume of a cone and a frustum

Cone: V = π · r² · h / 3, slant height l = √(r² + h²), lateral area πrl. For r = 3 and h = 4 we get l = 5, V = 12π, lateral area 15π, total 24π. A frustum with radii r₁ and r₂ and height h: V = π · h · (r₁² + r₁r₂ + r₂²) / 3; for 3, 2 and 6 we get V = 38π.

Volume of a sphere, a cap and an ellipsoid

Sphere: V = 4πr³ / 3, surface 4πr². For r = 4 we get V = 256π/3 ≈ 268.0826. A spherical cap of height h in a sphere of radius r has V = πh²(3r − h)/3 and curved surface 2πrh. An ellipsoid with semi-axes a, b, c has V = 4πabc / 3; there is no closed formula for its surface, so the calculator does not compute it.

Litres, cubic metres and gallons

1 m³ = 1000 litres, 1 litre = 1 dm³ = 1000 cm³, 1 mL = 1 cm³. A US gallon is 231 cubic inches, about 3.7854 L, and a UK gallon is 4.54609 L. A 5 × 3 m pool 1.5 m deep has a volume of 22.5 m³ = 22 500 L. Choose a length unit and a volume unit in the settings and the answer is converted exactly.

Size from a known volume

In the «Size from volume» tab enter V and, where needed, one size. For a cube a = ∛V (for V = 125 it is 5), for a sphere r = ∛(3V / (4π)); for a cylinder r = √(V / (πh)) and h = V / (πr²); for a cone r = √(3V / (πh)) and h = 3V / (πr²). If the volume is entered with π, for example 256π/3, the result is often exact: for the sphere it is 4.

All entered numbers are handled exactly (fractions are not rounded) and the answer is written with π and radicals: for example the volume of a sphere of radius 4 is 256π/3.

FAQ

How do I find the volume of a cube?

V = a³, where a is the edge. For a = 5 the volume is 125.

How do I find the volume of a cuboid?

V = a · b · c. For 3 × 4 × 12 it is 144.

How do I find the volume of a cylinder?

V = π · r² · h. For r = 3 and h = 10 it is 90π ≈ 282.7433.

How do I find the volume of a cone?

V = π · r² · h / 3. For r = 3 and h = 4 it is 12π.

How do I find the volume of a sphere?

V = 4πr³ / 3. For r = 4 it is 256π/3 ≈ 268.0826.

How do I find the volume of a pyramid?

V = S₀ · h / 3, where S₀ is the base area. For a 6 × 6 square base and height 4 it is 48.

How do I find the volume of a prism?

V = S₀ · h: the base area times the height.

How do I find the volume of a frustum?

V = π · h · (r₁² + r₁r₂ + r₂²) / 3. For r₁ = 3, r₂ = 2 and h = 6 it is 38π.

How many litres are in a cubic metre?

1 m³ = 1000 litres. And 1 litre = 1 dm³ = 1000 cm³.

How do I find a size from a volume?

Use the «Size from volume» tab: for a cube a = ∛V, for a sphere r = ∛(3V / (4π)), for a cylinder r = √(V / (πh)).

Why is the answer written with π?

Because π is a number, not an approximation: 256π/3 describes the volume of a sphere of radius 4 exactly. A decimal value is always shown beside it, and its precision is set by the decimal places and the chosen π.

Can I enter fractions and decimals?

Yes: 2.5 or 5/2. The numbers are handled exactly without rounding, and the volume may even be entered with π, for example 36π.