Free online volume calculator
Volume is the amount of 3-D space a shape occupies. This calculator finds volume and surface area for six common shapes in your choice of unit.
Volume (cm³)
—
Surface area (cm²)
—
How to use
- Choose a shape from the dropdown.
- Choose a unit (cm, m, in, ft).
- Enter the required dimensions — the form shows only the fields relevant to your shape.
- Volume and surface area appear instantly.
Formulas
Cube (side = s)
- Volume: V = s³
- Surface area: A = 6s²
Rectangular box (l × w × h)
- Volume: V = l × w × h
- Surface area: A = 2(lw + lh + wh)
Sphere (radius = r)
- Volume: V = (4/3)πr³
- Surface area: A = 4πr²
Cylinder (radius = r, height = h)
- Volume: V = πr²h
- Surface area: A = 2πr(r + h)
Cone (radius = r, height = h)
- Slant height: l = √(r² + h²)
- Volume: V = (1/3)πr²h
- Surface area: A = πr(r + l)
Rectangular pyramid (base l × w, height = h)
- Volume: V = (1/3) × l × w × h
- Slant heights: s₁ = √((l/2)² + h²), s₂ = √((w/2)² + h²)
- Surface area: A = lw + l × s₂ + w × s₁
Worked examples
Sphere, r = 5 cm: V = (4/3)π(5³) ≈ 523.5988 cm³, A = 4π(25) ≈ 314.1593 cm²
Cylinder, r = 4, h = 10 cm: V = π(16)(10) ≈ 502.6548 cm³, A = 2π(4)(14) ≈ 351.8584 cm²
Notes
- All results are rounded to four decimal places.
- Surface area for a cone includes the base circle and the lateral face.
- For a pyramid, surface area includes the rectangular base and all four triangular faces.
Frequently asked
Which shapes does this calculator support?
Cube, rectangular box, sphere, cylinder, cone, and rectangular pyramid. Select the shape from the dropdown and the relevant input fields appear automatically.
How is the volume of a sphere calculated?
V = (4/3) × π × r³, where r is the radius. Surface area = 4 × π × r².
How is the volume of a cylinder calculated?
V = π × r² × h, where r is the radius and h is the height. Surface area = 2 × π × r × (r + h).
How is the volume of a cone calculated?
V = (1/3) × π × r² × h. Surface area = π × r × (r + slant height), where slant height = √(r² + h²).
How is the volume of a rectangular pyramid calculated?
V = (1/3) × base length × base width × height. Surface area includes the base plus four triangular faces.
What units can I use?
Centimeters (cm), meters (m), inches (in), or feet (ft). Volume is shown in cubic units (e.g. cm³) and surface area in square units (e.g. cm²).
Related calculators
- Square footage calculator
Calculate room area in square feet, meters, or yards for any shape.
- Percentage change calculator
Find how much a value changed, or calculate a new value from a percent.
- Average calculator
Mean, median, mode, range, min, max, and sum for any list of numbers.
- Fraction calculator
Add, subtract, multiply, and divide fractions with automatic simplification.