Maths

Volume Calculator

Calculate volume and total surface area for ten common solid shapes, with unit conversions.

By Nitin Raturi · Last reviewed

Choose a shape and dimensions

How to use this Volume Calculator

Choose a solid, enter its dimensions and read volume, total surface area and capacity conversions.

  1. Choose the shape you want to measure.
  2. Select the length unit and enter each labelled dimension.
  3. Read the volume, surface area and litre, millilitre and US gallon equivalents.
  4. Use the sketch to check which dimensions belong to the selected shape.

Good to know

  • Use semi-axis lengths for an ellipsoid and vertical height for a pyramid.
  • The spherical-cap height cannot exceed its parent sphere diameter.
  • Nothing you enter is sent from your browser.
  • Rectangular box example: 24 cm³, 52 cm².

Enter positive dimensions in one length unit. Your inputs stay in this browser.

Shape

Choose the solid whose volume and outside area you want to find.

How to fill it in

  • Select the closest listed shape, then fill in its dimensions.
  • A rectangular box and rectangular pyramid use separate length, width and height values.

Tip: The sketch changes with the selected shape.

Length unit

This is the unit used for every dimension you enter and for the displayed square and cubic results.

How to fill it in

  • Choose millimetres, centimetres, metres, inches, feet or yards.
  • Volume conversions to litres, millilitres and US gallons are shown as well.

Example

24 cm³ is 0.024 L for the example box.

Length

The longer horizontal measurement of a rectangular solid or its pyramid base.

How to fill it in

  • Enter a positive length in the selected unit.
  • Together with width and height, it defines the base or box proportions.

Example

24 cm³ for a 2 cm × 3 cm × 4 cm box.

Maximum 10,00,000 cm.

Width

The second horizontal measurement, across the rectangular base.

How to fill it in

  • Enter a positive width in the selected unit.
  • For a rectangular pyramid, this is the base dimension across from the length.

Maximum 10,00,000 cm.

Vertical height

The perpendicular distance from a base to the opposite face or apex.

How to fill it in

  • Enter a positive height in the selected unit.
  • For a pyramid, use vertical height, not the sloping face length.

Maximum 10,00,000 cm.

Rectangular box sketchA labelled outline showing the dimensions used for the rectangular box.
Rectangular box — dimension sketch, not to scale

Calculated volume and surface area

Volume

24 cm³

Total surface area

52 cm²

Volume conversions

Litres
0.024 L
Millilitres
24 mL
US gallons
0.00634 US gal

How this calculator works

Choose a solid, enter its dimensions, and read volume, total surface area and capacity equivalents. The default rectangular box has 24 cm³ volume and 52 cm² area.

  1. Step 1Choose a solid10 shapesfrom cube to spherical cap
  2. Step 2Enter dimensionsone length unitwith labels that change by shape
  3. Step 3Read the result24 cm³plus area and capacity conversions

Volume measures the space inside a solid. Surface area measures the area covering its outside. The formulas are evaluated in the selected length unit. Volume is also converted through cubic metres for capacity outputs. No intermediate rounding is performed.

Shape conventions

  • Total outside areaCylinder and cone include their circular bases. A spherical cap includes its flat disk.
  • Right solidsPyramid apices sit above the centre of the base; cone and cylinder axes meet their bases at right angles.
  • Approximate ellipsoid areaEllipsoid volume is exact. Its surface area is numerically integrated and labelled approximate.

The capsule’s straight-section length excludes its two rounded ends. A spherical cap can be no taller than its parent sphere’s diameter. The sketch is a guide to the labels, not a scale drawing.

Worked example

A 2 cm × 3 cm × 4 cm rectangular box
Volume
V = length × width × height
Total area
A = 2 × (length × width + length × height + width × height)
Capacity
litres = cubic metres × 1,000
  • lengthbox length 2 cm
  • widthbox width 3 cm
  • heightbox height 4 cm
  1. Volume2 × 3 × 424 cm³
  2. Surface area2 × (2 × 3 + 2 × 4 + 3 × 4)52 cm²
  3. Capacity24 cm³ ÷ 1,0000.024 L

A cubic centimetre is one millilitre, so this box holds 24 mL. The example dimensions are 2 cm × 3 cm × 4 cm. Capacity conversions use exact unit factors; displayed figures may be rounded for readability.

Reading the result

  • Volume24 cm³The amount of three-dimensional space inside.
  • Surface area52 cm²The area across the outer faces.
  • Capacity24 mLThe same volume expressed as liquid measure.
Square units describe area; cubic units describe volume. Do not compare the numbers without their units.

The page shows volume in the selected cubic length unit and in litres, millilitres and US gallons. Its area result uses the corresponding square length unit. US gallons mean US liquid gallons, not imperial gallons.

From volume to materials

Volume is the first step for many practical estimates, from concrete to tanks and parcels.

For a slab, footing or column, the concrete calculator adds wastage and material quantities. To convert litres, cubic feet or gallons, use the unit converter.

If you know a material’s density, the density calculator turns a volume into a mass. For flat surfaces, the area calculator covers six common shapes.

Common mistakes

  • Mistake: Entering a diameter where a radius is requested.

    Instead: Divide the diameter by two; the radius runs from the centre to the edge.

  • Mistake: Using a pyramid face slope as its height.

    Instead: Enter vertical height from the base plane to the apex.

  • Mistake: Using the complete capsule length for the straight section.

    Instead: Subtract two radii; the field excludes both rounded ends.

  • Mistake: Treating ellipsoid surface area as exact.

    Instead: Use it as an estimate; the ellipsoid volume remains exact.

These formulas describe ideal regular solids. Real objects can differ because of thickness, uneven surfaces or measurement error. The calculator does not infer those properties from the dimensions.

Sources and method

The equations are standard geometry formulas; the unit factors follow NIST conversion references.

The ellipsoid surface area is approximated by numerical integration of its parametric surface-area integral. All other listed surface areas use their stated closed forms.

The unit conversion factors are documented in NIST’s Guide to the SI, Appendix B.8. Additional formula references are Wolfram MathWorld’s sphere, cylinder, cone, pyramid, ellipsoid, spherical cap and capsule entries.

Read how we test our calculators, or browse more maths calculators.

Frequently asked questions

Which shapes can this calculator measure?

It covers a cube, rectangular box, sphere, cylinder, cone, square pyramid, rectangular pyramid, ellipsoid, capsule and spherical cap.

What is the difference between volume and surface area?

Volume measures the three-dimensional space inside a solid. Surface area measures the area covering its outside; this calculator reports total area, including the base for a spherical cap.

Which length units can I enter?

Enter dimensions in millimetres, centimetres, metres, inches, feet or yards. Volume and area are shown in the corresponding cubic and square unit.

How does the capacity conversion work?

The volume is converted through cubic metres: one cubic metre is 1,000 litres, and one US liquid gallon is exactly 3.785411784 litres.

Is the ellipsoid surface area exact?

No. The ellipsoid volume is exact for the entered dimensions, but its surface area uses the numerical integration of the standard ellipsoid surface-area integral. The result is labelled as approximate.

Does the spherical cap area include its flat base?

Yes. Its displayed total surface area combines the curved surface with the circular flat base.

What does a capsule length mean?

It is the length of the straight cylindrical middle, not the complete end-to-end length. Add twice the radius to get the complete length.

Are my measurements stored or sent anywhere?

No. The calculation runs in your browser, and this tool does not send or store the dimensions you enter.

Sources and methodology

The formulas are standard time-value-of-money results. We check every figure against golden values worked out independently, by closed form and by month-by-month simulation; see the methodology.

Written and maintained by Nitin Raturi, a software engineer (about the author). Last reviewed 22 Oct 2026; next review due by . Found an error? Tell us.

Changelog

  • : First release. Example Rectangular box: 24 cm³ volume and 52 cm² total surface area.