Mathematics
Volume of solids calculator
Calculate volume and surface area for a cube, cuboid, cylinder, cone, sphere or rectangular pyramid. Results also show litres and cubic metres.
Enter a number as you would write it, for example 1,250, −2.5 or 1e3. Downloads keep your entries and results; nothing is stored or sent.
Result
Formula / calculation:
Dimensions use the selected length unit. A rectangular pyramid has a rectangular base with sides a and b and a perpendicular height h. Litres and cubic metres are derived from the volume, not from a separate container fill estimate. Every required dimension must be positive, from 10⁻⁹ to 10⁶. Zero is refused.
Decimal results are approximate. Inputs stay in this browser tab.
How it works
Choose the solid before entering dimensions: cuboid a·b·h, cylinder πr²h, cone πr²h/3, sphere 4πr³/3.
Worked example
A cuboid measuring 2 cm × 3 cm × 4 cm has volume 24 cm³.
About this calculation
Choose the solid first, then give its dimensions in one length unit. The calculator uses a × b × h for a cuboid, πr²h for a cylinder, πr²h ÷ 3 for a cone and 4πr³ ÷ 3 for a sphere. A rectangular pyramid has a base with sides a and b and a perpendicular height h. Besides the volume, the result shows the surface area and converts the volume into litres and cubic metres.
Every required dimension must be positive, between 10⁻⁹ and 10⁶ in the chosen unit; zero is refused. The litre and cubic metre figures come straight from the geometric volume. They do not estimate how much a container really holds, as walls, fill level and material are not considered. Decimal results are approximate, and you can choose the number of decimal places and the display format.
Example: a cuboid of 2 cm × 3 cm × 4 cm has a volume of 24 cm³, which is 0.024 L or 0.000024 m³. Its total surface area is 52 cm² and its lateral surface area 40 cm².
Worked example
With these example values the calculator gives the result below. You can change any value in the form above.
Inputs
- Solid
- Cuboid
- a (edge / length)
- 2
- b (width)
- 3
- h (perpendicular height)
- 4
- Unit for every dimension
- cm
- Decimal places (0–12)
- 6
Result
- Volume
- 24 cm³
- Capacity in litres
- 0.024 L
- Volume in cubic metres
- 0.000024 m³
- Total surface area
- 52 cm²
- Lateral surface area
- 40 cm²
Frequently asked questions
How do I calculate the volume of a cuboid?
The volume of solids calculator uses V = a × b × h. A cuboid of 2 cm × 3 cm × 4 cm has a volume of 24 cm³, which is 0.024 L, and a total surface area of 52 cm².
How do I calculate the volume of a cylinder?
The cylinder volume is πr²h, where r is the radius and h the height, both in the selected length unit.
What is the formula for the volume of a cone?
A cone has the volume πr²h/3. The calculator also gives its surface area and converts the volume to litres and cubic metres.
How do I calculate the volume of a sphere?
The sphere volume is 4πr³/3, with r the radius. One of the built-in examples is a sphere with r = 3 cm.
Which shapes does the volume calculator support?
Cube, cuboid, cylinder, cone, sphere and rectangular pyramid. A rectangular pyramid has a base with sides a and b and a perpendicular height h.
What size limits apply to the volume calculator?
Every required dimension must be positive, from 10⁻⁹ to 10⁶ in the selected unit. Zero is refused.
Does the volume in litres show how much a container holds?
Litres and cubic metres are derived from the geometric volume, not from a separate container fill estimate. There is no wall, fill level or material assessment.