Volume and surface area calculator for 3D shapes

Volume, surface area, slant height and capacity in litres for 14 solids, including cylinders, cones, spheres, pyramids, prisms, tori and ellipsoids.

Drafted with AI writing toolsUpdated Checked examples: 13

Try
Volume
cm³
Volume: 282.7433 cm³
Maximum decimal places: 4; Nearest, ties away from zero
Total surface area
245.0442cm²
Lateral (curved) surface area
188.4956cm²
Base area
28.2743cm²
Capacity
0.282743L

The cylinder (r = 3 cm, h = 10 cm) holds 282.7433 cm³ (0.2827 litres) and its outside surface is 245.0442 cm².

Cylinder (r = 3 cm, h = 10 cm)

Drag to rotate
How it's calculated S
  1. Volume

    V=πr2h=π×32×10=282.743339 cm3V = \pi r^2 h = \pi \times 3^2 \times 10 = 282.743339\,\text{cm}^{3}
  2. Curved surface

    Sl=2πrh=188.495559 cm2S_l = 2\pi r h = 188.495559\,\text{cm}^{2}
  3. Total surface area (with both ends)

    S=2πr(r+h)=245.044227 cm2S = 2\pi r(r + h) = 245.044227\,\text{cm}^{2}
  4. Capacity

    282.743339 cm3=0.28274334 L282.743339\,\text{cm}^{3} = 0.28274334\,\text{L}

    1 L = 1000 cm³ = 0.001 m³.

About the volume and surface area calculator

Choose one of 14 solids and enter its dimensions to get the volume and total surface area, plus the curved (lateral) surface, base area, slant height and space diagonal where the solid has them. The volume is also given as a capacity in litres, using 1 L = 1,000 cm³. The formulas are the standard ones, for example V = πr²h for a cylinder, V = ⅓πh(R² + Rr + r²) for a frustum and V = 2π²Rr² for a torus.

The default cylinder, 3 cm in radius and 10 cm tall, holds 282.743 cm³ (0.283 L) and has 245.044 cm² of surface, of which 188.496 cm² is the curved side. Volume sizes tanks, containers and concrete pours; surface area sizes paint, insulation and sheet material.

The formulas are exact except the surface of a general ellipsoid, which uses Knud Thomsen's approximation, within about 1.06%; numerical results are rounded for display. The 3D model is drawn to the proportions entered; drag it to rotate. In the overview formula, V₁, V₂, V₃ and V₄ denote sphere, cone, frustum and torus volumes respectively. Sₗ is lateral or curved area and B is base area.

How to find the volume of a cylinder and other solids

Volume is the space inside a solid, in cubic units. For a cylinder or any prism it is the base area times the height, so a cylinder holds V = πr²h: a radius of 7 cm and a height of 10 cm give π × 7² × 10 = 490π ≈ 1,539.38 cm³, about 1.54 L.

Volume and surface area formulas

In these formulas r is a radius, h the perpendicular height and S the total surface area.

  • Cube: V = a³, S = 6a².
  • Cuboid (box): V = lwh, S = 2(lw + lh + wh) for length l, width w and height h.
  • Sphere: V = ⁴⁄₃πr³, S = 4πr².
  • Hemisphere: V = ⅔πr³, S = 3πr² including the flat base.
  • Cylinder: V = πr²h, S = 2πr(r + h).
  • Cone: V = ⅓πr²h, S = πr(r + l), where l = √(r² + h²) is the slant height.
  • Frustum (cone with its top cut off): V = ⅓πh(R² + Rr + r²) for end radii R and r.
  • Square pyramid: V = ⅓a²h for base edge a.
  • Prism: V = base area × height.
  • Torus: V = 2π²Rr², S = 4π²Rr.
  • Regular tetrahedron: V = a³/(6√2), S = √3a².
  • Ellipsoid: V = ⁴⁄₃πabc for semi-axes a, b and c.

A cone holds exactly one third of the cylinder with the same base and height, and a pyramid one third of the matching prism.

Curved surface area and total surface area (CSA and TSA)

Curved or lateral surface area counts only the rounded side; a spherical cap and a torus each have their own formula. Total surface area adds the flat ends, which is what a closed can, tank or solid has.

For the cylinder with r = 7 cm and h = 10 cm, the curved side is 2πrh = 140π ≈ 439.82 cm². The two ends add 2πr² ≈ 307.88 cm², for a total of 2πr(r + h) = 238π ≈ 747.70 cm².

Answer keys that use π ≈ 22/7 give 1,540 cm³, 440 cm² and 748 cm² for the same cylinder. The method is identical; only the value of π differs.

A cone of radius 3 cm and height 4 cm has slant height √(9 + 16) = 5 cm. Its curved surface is πrl = 15π ≈ 47.12 cm², and the base brings the total to 24π ≈ 75.40 cm².

A hemisphere's curved surface is 2πr² and its total with the flat base is 3πr²: 56.55 cm² and 84.82 cm² for r = 3 cm. An open-topped tank has one end, so subtract one πr² from the cylinder's total.

Worked volumes and surface areas

All dimensions are in centimeters, volumes in cm³ and surfaces in cm². Radius means center to edge, half the diameter.

Solid and dimensionsVolume, cm³Total surface area, cm²
Cube, edge 5 cm125150
Box, 6 × 4 × 10 cm240248
Sphere, radius 3 cm113.097336113.097336
Hemisphere, radius 3 cm56.54866884.823002
Cylinder, radius 3 and height 10 cm282.743339245.044227
Cone, radius 3 and height 4 cm37.69911275.398224
Frustum, radii 5 and 3, height 10 cm513.1268363.118826
Square pyramid, base edge 6 and height 4 cm4896
Equilateral triangular prism, edge 6 and height 10 cm155.884573211.176915
Regular hexagonal prism, edge 6 and height 10 cm935.307436547.061487
Torus, major radius 10 and tube radius 3 cm1776.5287921184.352528
Capsule, radius 3 and straight length 5 cm254.469005207.345115
Regular tetrahedron, edge 6 cm25.45584462.353829

Doubling every dimension multiplies volume by 8 and surface by 4. The 5 cm cube holds 125 cm³ with 150 cm² of surface; a 10 cm cube holds 1,000 cm³ with 600 cm².

The sphere's two cells match because a sphere of radius 3 has both V and S equal to 36π, in cm³ and cm² respectively. The capsule is a 5 cm cylinder plus one whole sphere: 45π + 36π = 81π ≈ 254.47 cm³.

Liters, cubic meters and cubic feet

One liter is exactly 1,000 cm³, and one cubic meter is 1,000 liters. The 240 cm³ box in the table holds 0.24 L, and the 7 cm by 10 cm cylinder holds 1.539 L.

Cubic units convert with the cube of the length factor. A 2 × 3 × 4 ft box holds 24 ft³, which is 24 × 0.3048³ = 0.679604318208 m³, about 680 L. For a volume you already know, use the volume converter.

Common mistakes

  • Using the diameter as the radius. A ball 6 cm across has r = 3 cm and V = 36π ≈ 113.10 cm³. Plugging in 6 gives 904.78 cm³, eight times too much.
  • Using the slant height as the height. A cone with radius 3 cm and slant height 5 cm is 4 cm tall and holds 37.70 cm³; treating 5 cm as the height gives 47.12 cm³.
  • Averaging a frustum's radii. Radii of 5 and 3 cm with a height of 10 cm hold 513.13 cm³; a cylinder of the average radius, 4 cm, holds 502.65 cm³.
  • Outside dimensions for capacity. Walls take up space, so a tank's usable volume comes from its inside measurements.

Which dimensions each solid takes

  • Torus: the major radius R runs from the center of the hole to the center of the tube, and the tube radius r can be at most R.
  • Capsule: the length is the straight part only, between the two rounded ends; counting the ends there adds them twice.
  • Prisms: the triangular prism has an equilateral base and the hexagonal prism a regular one, each set by its edge length.
  • Ellipsoid: its surface has no elementary formula, so Knud Thomsen's approximation is used, within about 1.061%.

For a flat plan without depth, use the area calculator. For slabs, footings and bag counts, the concrete calculator adds waste allowances to the geometry.

Worked examples

Cylinder r = 3 cm, h = 10 cm

Solid
Cylinder
Radius
3 cm
Height
10 cm
Show results in
Centimetres (cm)
Volume
282.743339 cm³
Total surface area
245.044227 cm²
Lateral (curved) surface area
188.495559 cm²
Capacity
0.282743 L

Checked against: 90*pi, 78*pi, 60*pi; 282.743… cm³ ÷ 1000 = L

Box 6 × 4 × 10 m

Solid
Cuboid (box)
Length
6 m
Width
4 m
Height
10 m
Show results in
Metres (m)
Volume
240 m³
Total surface area
248 m²
Space diagonal
12.328828 m
Capacity
240,000 L

Checked against: 6·4·10; 2(24 + 60 + 40); 1 m³ = 1000 L

Cone r = 3, h = 4 (slant 5)

Solid
Cone
Radius
3 cm
Height
4 cm
Show results in
Centimetres (cm)
Slant height
5 cm
Volume
37.699112 cm³
Lateral (curved) surface area
47.12389 cm²
Total surface area
75.398224 cm²

Checked against: Independent calculation

Frustum R = 5, r = 3, h = 4

Solid
Frustum of a cone
Bottom radius (R)
5 cm
Top radius (r)
3 cm
Height
4 cm
Show results in
Centimetres (cm)
Slant height
4.472136 cm
Volume
205.25072 cm³
Total surface area
219.211186 cm²

Checked against: sqrt(20), pi*4*(25+15+9)/3, pi*8*sqrt(20) + 34*pi

Questions

How do you calculate the volume of a cylinder?

Multiply the area of the circular end by the height: V = πr²h. A radius of 3 cm and a height of 10 cm give 90π ≈ 282.74 cm³, or 0.283 L. Use the radius, not the diameter: a tank 1 m across and 1.5 m tall has r = 0.5 m and holds π × 0.25 × 1.5 ≈ 1.178 m³, which is 1,178 L.

How do you find the surface area of a cylinder?

Add the curved side, 2πrh, to the two circular ends, 2πr²: S = 2πr(r + h). For r = 3 cm and h = 10 cm the curved side is 60π ≈ 188.50 cm² and the total is 78π ≈ 245.04 cm². An open-topped tank has only one end, so subtract πr², here 28.27 cm², to get 216.77 cm².

How many litres are in a cubic metre?

1,000. A litre is exactly one cubic decimetre, 1,000 cm³, a definition fixed by the General Conference on Weights and Measures (CGPM) in 1964. Divide cubic centimetres by 1,000 to get litres. In US units, one gallon is exactly 231 in³, or 3.785411784 L, and one cubic foot is 28.316846592 L.

What is the formula for the volume of a sphere?

V = ⁴⁄₃πr³, which is two thirds of the cylinder that just encloses the sphere, as Archimedes showed. A sphere of radius 3 cm holds 36π ≈ 113.10 cm³, and a ball 1 m across holds 0.5236 m³, or 523.6 L. Volume grows with the cube of the radius, so doubling the diameter multiplies the volume by 8.

How do you calculate the volume of a cone or a pyramid?

Take one third of the base area times the height: V = ⅓Bh. A cone of radius 3 and height 4 has V = ⅓π × 9 × 4 = 12π ≈ 37.70, and a square pyramid with a 6 × 6 base and height 4 has V = ⅓ × 36 × 4 = 48. A cone holds exactly one third of the cylinder with the same base and height.

About this calculator

V1=43πr3,V2=13πr2hV3=13πh(R2+Rr+r2),V4=2π2Rr2\begin{gathered} V_1 = \tfrac{4}{3}\pi r^3,\quad V_2 = \tfrac{1}{3}\pi r^2 h \\ V_3 = \tfrac{1}{3}\pi h(R^2 + Rr + r^2),\quad V_4 = 2\pi^2 R r^2 \end{gathered}

Sources

  1. Zwillinger, D. (ed.) CRC Standard Mathematical Tables and Formulas, 33rd ed., §4.6 (solids)
  2. Weisstein, E. W. “Torus”, “Spherical Cap”, “Ellipsoid” — MathWorld
  3. Thomsen, K. (13 May 2004) — ellipsoid surface approximation, correspondence published by G. P. Michon (Numericana)

Checked against references

This calculator includes 13 worked examples with independently sourced answers. They run in the test suite, and you can run them here too.

Put this calculator on your site

Paste this where you want the calculator to appear. It is free to use, it stays in step with corrections made here, and the credit line below it links back so your readers can find the full version.

Height
Preview the embed

Keep the credit line. It is the only condition, and it is what keeps these calculators free.