Volume Calculator
Calculate the volume of a box, cylinder, sphere or cone.
Results update as you type.
About this calculator
A volume calculator finds how much space a 3D shape holds, and also its total surface area. Choose the shape, enter its dimensions, and only the fields that shape needs are used — the others are ignored.
Each solid has its own formula: a box is length × width × height, a cylinder is π × radius² × height, a sphere is 4/3 × π × radius³, and a cone is 1/3 × π × radius² × height — exactly a third of a cylinder with the same base and height. For a box 2 × 3 × 4 the volume is 24; a cylinder of radius 2 and height 4 holds π × 4 × 4 ≈ 50.27; a sphere of radius 3 holds 4/3 × π × 27 ≈ 113.1. A sphere needs only its radius, so the width and height fields do not apply to it.
Volume calculations size tanks and containers, concrete pours, packaging, and aquariums. Keep every dimension in the same unit and the volume comes out in that unit cubed.
Frequently asked questions
What is the volume of a cylinder?
Volume = π × radius² × height. A cylinder with radius 2 and height 4 holds π × 4 × 4 ≈ 50.27.
What is the formula for the volume of a sphere?
Volume = 4/3 × π × radius³. A sphere of radius 3 holds 4/3 × π × 27 ≈ 113.1.
How do you find the volume of a box?
Multiply length by width by height. A box measuring 2 by 3 by 4 holds 2 × 3 × 4 = 24.
What is the volume of a cone?
Volume = 1/3 × π × radius² × height — exactly a third of a cylinder that shares the same circular base and height.
Does the volume calculator also give surface area?
Yes. For each solid it returns the total outer surface area alongside the volume — for a box that is 2 × (lw + wh + lh).
Which measurements does a sphere need?
Only the radius. The width and height fields are ignored when you choose the sphere shape.
API — use this calculator from code
Call this calculator as a free JSON endpoint — no key required. Send the field values below as query parameters or JSON. Read the full API docs →
Endpoint
GET https://calculator.free/api/v1/volume-of-a-shape/
curl
curl "https://calculator.free/api/v1/volume-of-a-shape/?shape=box&a=2&b=3&h=4"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/volume-of-a-shape/?" + new URLSearchParams({
"shape": "box",
"a": "2",
"b": "3",
"h": "4"
}));
const data = await r.json();
console.log(data.results);
Results are estimates for general guidance only, not financial, medical or tax advice.