Mathematics · Geometry

Volume calculator — cube, box, cylinder, sphere and cone

Choose a common 3D shape, enter its dimensions in one consistent length unit and calculate the enclosed volume.

Created v1.0

By Thibaut Grzelak, Mechanical Analysis Engineer

Geometry
01

Calculation inputs

All lengths use the same arbitrary unit u; areas use u² and volumes use u³. Angles are in degrees.

03

Results

Results show up to four significant digits for readability; internal calculations retain full precision.

See calculation details

01Volume V

FormulaV = L × W × h
Substitution2 × 3 × 4
Result
24
01Formulas and symbols

Formulas used

V

V = LWh

a³

πr²h

4πr³/3

πr²h/3

Volume formula selected for the chosen solid.

SymbolMeaning
LLength L
WWidth W
hHeight h
aSide a
rRadius r
VVolume V
02Validation example

Reference numerical case

  1. A 2×3×4 rectangular prism has V = 24 u³; a sphere of radius 3 has V = 36π ≈ 113.097 u³.
03Volume formulas by shape

A box multiplies three perpendicular dimensions. Circular solids use πr² as the base area; a cone uses one third of the corresponding cylinder volume, and a sphere uses 4πr³/3.

04Limits and conventions

The calculator assumes exact ideal shapes and does not subtract holes, wall thickness, fillets or partial fills.

05Common mistakes

Do not mix centimetres and metres in the same calculation. Remember that volume units are cubed.

06Practical questions

Which unit does the result use?

If every dimension is entered in the same unit u, the result is in u³: for example cm³ for centimetres or m³ for metres.

Is diameter accepted instead of radius?

The cylinder, sphere and cone modes use radius. Divide a known diameter by two before entering it.

07Technical references