Volume of cubes, boxes, spheres, cylinders, cones and pyramids — plus surface area where it is direct — in your browser.
Volume measures how much space a solid occupies, and each family of solids has its own formula. The prisms are the easy ones: a cube is a³ and a rectangular box is length × width × height. The round solids bring π into it: a sphere is (4 ÷ 3) × π × r³ and a cylinder is π × r² × h. And the pointed ones are exactly one third of the prism with the same base and height, which is why a cone is (π × r² × h) ÷ 3 and a pyramid is (base area × h) ÷ 3. This calculator covers those six and shows every substitution it makes.
Surface area is offered where a single measurement set is enough for it: 6a² for the cube, 2(lw + lh + wh) for the box, 4πr² for the sphere and 2πr(r + h) for the cylinder. The cone and the pyramid are deliberately left out of that column — a cone needs the slant height g, so the tool computes g = √(r² + h²) with the Pythagorean theorem and shows it, letting you finish with S = πr(r + g); a rectangular pyramid needs a slant height per pair of faces, which the form does not ask for. Every measurement must be greater than zero, decimals accept a comma or a dot, and results are rounded to four decimals.
This is the calculation behind everyday questions with an answer in litres: a cylindrical water tank, an aquarium, a pot, a pool. The bridge is simple — 1000 cm³ equals 1 litre, and 1 m³ equals 1000 litres — so a cylinder of radius 30 cm and height 100 cm holds about 282,743 cm³, roughly 283 litres. The same formulas price concrete by the cubic metre, size shipping boxes and check whether a package fits a carrier limit. Everything runs locally in JavaScript, so no measurement ever leaves your device.
Cube: V = a³, S = 6a² · Rectangular box: V = l × w × h, S = 2(lw + lh + wh) · Sphere: V = (4 ÷ 3)πr³, S = 4πr² · Cylinder: V = πr²h, S = 2πr(r + h) · Cone: V = πr²h ÷ 3, slant height g = √(r² + h²) · Pyramid: V = (base area × h) ÷ 3.
Divide cubic centimetres by 1000, or multiply cubic metres by 1000: 1000 cm³ = 1 litre and 1 m³ = 1000 litres. Measure everything in centimetres and the conversion is a single division.
V = (4 ÷ 3) × π × r³. With a radius of 3, that is (4 ÷ 3) × π × 27 ≈ 113.10 — and the surface area of that same sphere, 4πr², happens to be the same number.
Because they need slant heights, not just the height. The tool computes the cone slant height g = √(r² + h²) and shows it, so you can finish with S = πr(r + g); a rectangular pyramid would need one slant height per pair of faces.
Yes, as long as they share the same base radius and the same height. The same relationship holds between any pyramid and the prism with its base and height.
The one you typed. Use the same unit for every field and the volume comes out cubed: centimetres give cm³, metres give m³.
No. All the maths runs in JavaScript on your device — nothing is sent to a server, stored or logged.
Vai.la turns any URL into a short link with click statistics, QR Code and your own biolink.
Vai.la is not responsible for how the tools are used or for decisions made based on their results.