Volume in the cube of the length unit used for the dimensions.
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
Results
Results show up to four significant digits for readability; internal calculations retain full precision.
See calculation details
01Volume V
V = L × W × h2 × 3 × 401Formulas and symbols
Formulas used
V = LWh
a³
πr²h
4πr³/3
πr²h/3
Volume formula selected for the chosen solid.
| Symbol | Meaning |
|---|---|
| L | Length L |
| W | Width W |
| h | Height h |
| a | Side a |
| r | Radius r |
| V | Volume V |
02Validation example
Reference numerical case
- 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
- Prealgebra 2e — volume and surface area — OpenStax