Volume Calculator
Calculate volume and surface area for 10 three-dimensional shapes — free, instant results with full step-by-step formula working. Covers cube, sphere, cylinder, cone, pyramid, torus, ellipsoid, capsule, and more.
Calculating...
Select a shape, enter its dimensions, and click Calculate.
3D Shape Formulas at a Glance
All ten shapes supported by this volume calculator, with their volume and surface area formulas.
Cube
V = a³
SA = 6a²
Rectangular Prism
V = a × b × c
SA = 2(ab+ac+bc)
Sphere
V = (4/3)πr³
SA = 4πr²
Cylinder
V = πr²h
SA = 2πr(r+h)
Cone
V = (1/3)πr²h
SA = πr(r+l)
Square Pyramid
V = (1/3)a²h
SA = a² + 2al
Triangular Prism
V = ½abc
SA = c(a+b+hyp)+ab
Torus
V = 2π²Rr²
SA = 4π²Rr
Ellipsoid
V = (4/3)πabc
SA ≈ Thomsen
Capsule
V = πr²(h+4r/3)
SA = 2πr(2r+h)
How to Use This Volume Calculator
Using this calculator is straightforward. First, click the shape button that matches your 3D solid. The dimension inputs update automatically to show only the fields relevant to that shape — so for a sphere you only see Radius (r), while for a rectangular prism you see three separate dimension fields.
Enter each dimension as a positive number (decimals are supported). Click Calculate and the results panel instantly shows the volume in cubic units and the surface area in square units, together with the formulas used and a complete step-by-step working breakdown.
Use the Presets to load a worked example for any shape with a single click. These preset values use clean numbers that demonstrate the formulas clearly and make it easy to check your own calculations.
All units are dimensionless — the calculator works with any unit system (centimetres, metres, inches, feet). If your inputs are in centimetres, the volume is in cubic centimetres (cm³) and the surface area is in square centimetres (cm²).
Volume Formulas for Every 3D Shape
Volume measures the amount of three-dimensional space enclosed by a surface, expressed in cubic units. Each formula is derived from the fundamental principle that volume equals the cross-sectional area integrated over the length of the solid.
| Shape | Variables | Volume Formula |
|---|---|---|
| Cube | a = side | V = a³ |
| Rectangular Prism | a, b, c = sides | V = a × b × c |
| Sphere | r = radius | V = (4/3)πr³ |
| Cylinder | r = radius, h = height | V = πr²h |
| Cone | r = radius, h = height | V = (1/3)πr²h |
| Square Pyramid | a = base, h = height | V = (1/3)a²h |
| Triangular Prism | a, b = tri legs, c = length | V = (1/2)abc |
| Torus | R = major r, r = minor r | V = 2π²Rr² |
| Ellipsoid | a, b, c = semi-axes | V = (4/3)πabc |
| Capsule | r = radius, h = cyl height | V = πr²(h + 4r/3) |
Surface Area Formulas and How They Work
Surface area is the total area of all outer faces of a 3D shape, measured in square units. It matters for real-world applications such as calculating the amount of material needed to wrap, coat, or manufacture an object.
For prisms and cylinders, surface area = lateral face area + 2 × base area. For cones and pyramids, surface area = lateral face area + base area, where the lateral area depends on the slant height l (the distance from the apex to the base edge — not the perpendicular height h).
The torus surface area formula SA = 4π²Rr is derived directly from Pappus's centroid theorem: revolve a circle of circumference 2πr through a distance of 2πR, giving (2πr)(2πR) = 4π²Rr. For the ellipsoid, no closed-form exact formula exists, so this calculator uses Thomsen's approximation with exponent p = 1.6075, which has a maximum error below 1.061% — accurate enough for any practical engineering or academic use.
The capsule combines a cylinder with two hemisphere caps. Since two hemispheres make one complete sphere, the surface area simplifies to: SA = 2πr(2r + h) = cylinder lateral area + sphere area.
Real-World Applications of Volume and Surface Area
Engineering & Manufacturing
Tanks, pressure vessels, and pipes are modelled as cylinders; moulded plastic parts use volume to determine material weight and cost. Surface area determines coating area, heat transfer rate, and painting cost.
Medicine & Pharmacology
Drug dosage is often proportional to body surface area (BSA). Tumour volumes are estimated as ellipsoids using the prolate spheroid formula. Capsule-shaped pills are — literally — capsules.
Architecture & Construction
Concrete volumes for columns (cylinders), domes (spheres or ellipsoids), and pyramidal roofs all reduce to these formulas. Cladding and painting costs are directly proportional to surface area.
Food & Packaging
Cans are cylinders; certain chocolate truffles are spheres; storage tanks are cylinders or spherical-cap tanks. Volume determines capacity; surface area determines material usage and label area.
Tips for Accurate Volume Calculations
Always use consistent units throughout a calculation. If your radius is in metres, your height must also be in metres — the resulting volume will be in cubic metres. Converting between units after calculating is safer than mixing units during calculation.
For the cone, the height h is the perpendicular height from the base to the apex, not the slant height. The calculator derives slant height internally as l = √(r² + h²).
For the torus, the minor radius r₂ must be strictly less than the major radius R. If r₂ ≥ R, the tube self-intersects and the torus formula no longer applies. The calculator validates this condition.
For the triangular prism, this calculator assumes a right triangle cross-section with legs a (base) and b (height). The hypotenuse is computed automatically. For a general (non-right) triangular prism, use the area & perimeter tool to compute the triangle area separately.
Frequently Asked Questions
How do you calculate the volume of a sphere?
The volume of a sphere is V = (4/3) × π × r³, where r is the radius. For a sphere with radius 7, V = (4/3) × π × 343 ≈ 1,436.755 cubic units. The surface area is SA = 4πr², which for r = 7 is ≈ 615.752 square units.
What is the difference between volume and surface area?
Volume measures how much space a 3D object occupies, expressed in cubic units (cm³, m³, ft³). Surface area measures the total area of the object's outer surface, expressed in square units (cm², m², ft²). They are independent quantities — a sphere can have a large volume but relatively small surface area compared to a flat sheet of equal "material."
Why does the cone volume formula have 1/3?
A cone has exactly one-third the volume of the cylinder with the same base radius and height. This can be proved using Cavalieri's principle or integration: the cross-sectional area of a cone at height y is πr²(1 − y/h)², and integrating from 0 to h gives (1/3)πr²h. The same 1/3 factor applies to pyramids with any polygon base.
What is Thomsen's approximation for ellipsoid surface area?
No exact closed-form formula exists for the surface area of a general ellipsoid (unlike the sphere). Thomsen's approximation, SA ≈ 4π × ((aᵖbᵖ + aᵖcᵖ + bᵖcᵖ) / 3)^(1/p) with p = 1.6075, is the most widely cited approximation because its maximum relative error is below 1.061%. This calculator uses Thomsen's formula and marks the result with ≈ to indicate it is approximate.
How is the torus volume formula derived?
The torus formula V = 2π²Rr² follows directly from Pappus's centroid theorem: the volume of a solid of revolution equals the cross-sectional area of the generating shape multiplied by the distance travelled by its centroid. For a circular cross-section of area πr² whose centroid travels a distance 2πR, V = πr² × 2πR = 2π²Rr².
How do I find the volume of a capsule?
A capsule is a cylinder of height h capped at each end by a hemisphere of radius r. Its total volume is the cylinder volume plus the sphere volume: V = πr²h + (4/3)πr³, which simplifies to V = πr²(h + 4r/3). Its surface area combines the cylinder's lateral face (2πrh) with the full sphere (4πr²): SA = 2πrh + 4πr² = 2πr(h + 2r).
Can I use this calculator for any units?
Yes — the calculator is unit-agnostic. It works with any consistent unit system: metric (mm, cm, m) or imperial (in, ft, yd). Enter all dimensions in the same unit and the volume will be in cubic of that unit, the surface area in square of that unit. To convert, use a unit conversion tool after calculating: 1 m³ = 1,000,000 cm³; 1 ft³ = 1,728 in³.
Related Calculators
Area & Perimeter Calculator
2D shape areas and perimeters for circles, rectangles, triangles, and more.
Pythagorean Theorem Calculator
Find missing side lengths using a² + b² = c² with full step-by-step working.
Triangle Calculator
Solve any triangle from sides and angles using the Law of Sines and Cosines.
Significant Figures Calculator
Count sig figs and round calculation results to the correct precision.
Slope Calculator
Find gradient, line equation, intercepts, and distance between two points.
System of Equations Solver
Solve 2×2 and 3×3 simultaneous equations with Gaussian elimination steps.