Volume Calculator

Calculate volume and surface area for spheres, cylinders, cones, cubes, rectangular prisms, and pyramids. Step-by-step formulas included.

Ad
Ad

About Volume Calculator

Calculate the volume and surface area of six common 3D shapes: sphere, cylinder, cone, cube, rectangular prism, and pyramid. Select a shape, enter the dimensions in your chosen unit, and see the results with formulas shown step by step.

Volume and Surface Area Formulas

ShapeVolumeSurface Area
Sphere(4/3)πr³4πr²
Cylinderπr²h2πr² + 2πrh
Cone(1/3)πr²hπr² + πr√(r² + h²)
Cube6s²
Rectangular prismlwh2(lw + lh + wh)
Pyramid(1/3)lwhlw + l√((w/2)² + h²) + w√((l/2)² + h²)

Worked Examples

Sphere (r = 8 cm):

  • Volume = (4/3) x π x 8³ = (4/3) x π x 512 = 2,144.66 cm³
  • Surface area = 4 x π x 64 = 804.25 cm²

Cylinder (r = 5 cm, h = 12 cm):

  • Volume = π x 25 x 12 = 942.48 cm³
  • Surface area = 2π(25) + 2π(5)(12) = 157.08 + 376.99 = 534.07 cm²

Cone (r = 4 cm, h = 9 cm):

  • Volume = (1/3) x π x 16 x 9 = 150.80 cm³
  • Slant height = √(16 + 81) = √97 = 9.849
  • Surface area = π(16) + π(4)(9.849) = 50.27 + 123.72 = 173.98 cm²

Volume Relationships Between Shapes

There are elegant relationships between the volumes of shapes that share the same base and height:

RelationshipFactorExample (r=5, h=10)
Cylinder1x (baseline)πr²h = 785.40 cm³
Cone (same base and height)1/3 of cylinder(1/3)πr²h = 261.80 cm³
Sphere (diameter = h = 2r)2/3 of cylinder(4/3)πr³ = 523.60 cm³

A cone is exactly 1/3 the volume of a cylinder with the same base and height. A sphere fitting exactly inside a cylinder (diameter = height = 2r) takes up exactly 2/3 of the cylinder's volume. This relationship was proved by Archimedes and he considered it his greatest mathematical achievement.

Everyday Volume Reference

ObjectApproximate ShapeDimensionsVolume
Tennis ballSpherer = 3.35 cm157 cm³
Soda canCylinderr = 3.3 cm, h = 12.2 cm418 cm³ (355 mL usable)
BasketballSpherer = 12.1 cm7,415 cm³
Swimming poolRectangular prism12m x 6m x 1.5m108 m³ (108,000 L)
EarthSpherer = 6,371 km1.083 x 10¹² km³

Unit Conversions for Volume

FromToMultiply by
cm³mL1 (they are equal)
cm³litres0.001
litres1,000
in³cm³16.387
ft³litres28.317
US gallonlitres3.785

Practical Applications

  • Shipping: Package volume (l x w x h) determines shipping cost and container fit
  • Aquariums: A 60 x 30 x 40 cm tank holds 72,000 cm³ = 72 litres of water
  • Concrete: A cylindrical pier footing (r=15cm, h=60cm) needs πr²h = 42,412 cm³ = 0.042 m³ of concrete
  • Storage: A 10 x 10 x 8 ft storage unit has 800 ft³ of space (about 22.7 m³)

For 2D shape areas, the area calculator covers rectangles, triangles, circles, and more. For surface area specifically, the surface area calculator provides additional shape options.

All calculations run entirely in your browser. No data is sent anywhere.

Frequently Asked Questions

What shapes does this volume calculator support?

It supports six common 3D shapes: sphere, cylinder, cone, cube, rectangular prism (box), and pyramid. Each shape has its own input fields and formulas.

How do I calculate the volume of a sphere?

Use the formula V = (4/3) times pi times r cubed. Just enter the radius and the tool does the rest. For a sphere with radius 5 cm, the volume is about 523.6 cubic cm.

Does it also calculate surface area?

Yes. Every shape shows both the volume and the surface area alongside the formulas used. The surface area uses the appropriate formula for each shape.

Can I change the measurement unit?

Yes. Select your unit (cm, m, inches, feet, mm, or yards) from the dropdown. The results display in the matching cubic and squared units. The math is the same regardless of unit.

What is the difference between a cone and a pyramid?

A cone has a circular base and tapers to a point, using V = (1/3) times pi times r squared times h. A pyramid has a rectangular base and uses V = (1/3) times length times width times height.

Link to this tool

Copy this HTML to link to this tool from your website or blog.

<a href="https://toolboxkit.io/tools/volume-calculator/" title="Volume Calculator - Free Online Tool">Try Volume Calculator on ToolboxKit.io</a>