Skip to main content

Volume Calculator – Rectangular Prism, Cylinder, Sphere & Cone

Source: NIST Special Publication 811, Appendix B.9 (exact inch, foot, and yard to metre conversion factors) · Source verified August 13, 2026

Blake Boege
Written by Blake Boege · Founder, Calculator Answers

A volume calculator computes the three-dimensional space enclosed by a solid shape, such as a sphere, cylinder, cone, cube, rectangular prism, or pyramid. It utilizes geometric formulas corresponding to the selected shape, using parameters like radius or diameter, height, length, and width. Dimensions can be entered in inches, feet, yards, centimeters, or meters, and the volume is returned in the matching cubic unit, alongside the equivalent in cubic feet, cubic yards, and cubic meters wherever those differ from it. Builders, engineers, and landscapers use it to determine material requirements and container capacities.

Pick a shape to find its volume. This tool computes cylinder volume, rectangular prism, sphere, cone, and pyramid volume with formulas and cubic unit conversions.

Quick Answer

Calculate the volume of various three-dimensional geometric shapes. Select your shape and input the dimensions to see volume calculations in multiple units.

Shape

Measurement unit

LWH
Dimensions this shape asks for
ft
ft
ft

Switch the shape to update the inputs. All dimensions use the same unit; the result also shows the equivalent volume in cubic feet, cubic yards, and cubic metres wherever those differ from it.

Rectangular prism volume

Volume

480 ft³

V = 10 × 8 × 6 = 480 ft³

FormulaV = L × W × H
Base area80 sq ft
Cubic yards17.7778
Cubic meters13.5921

Steps

  1. Multiply length by width to get the base area: 10 × 8 = 80 square feet.
  2. Multiply the base area by the height: 80 × 6 = 480 ft³.

This box holds 480 ft³ of space. Doubling any single dimension doubles the volume; doubling all three multiplies it by eight.

Volume measures three-dimensional space, so the answer is in cubic units: one ft³ is the space inside a cube measuring one foot on every edge.

Was this helpful?

Examples

Box 10 × 8 × 6 ft

= 480 ft³

Cube with side 5 ft

= 125 ft³

Cylinder r=5 ft, h=10 ft

≈ 785.40 ft³

Sphere r=5 in

≈ 523.60 in³

How it works

Formula · Rectangular prism V = L × W × H · Cube V = s³ · Cylinder V = π × r² × h · Sphere V = (4/3) × π × r³ · Cone V = (1/3) × π × r² × h · Pyramid V = (1/3) × base length × base width × h

Volume is the amount of 3D space inside a solid. The formula depends on the shape, but the calculator runs the right one for the shape you pick.

Rectangular prism

V = L × W × H

Cube

V = s³

Cylinder

V = π × r² × h

Sphere

V = (4/3) × π × r³

Cone

V = (1/3) × π × r² × h

Pyramid (rectangular base)

V = (1/3) × base length × base width × h

The one-third factor on the cone and the pyramid is not an approximation. Euclid proved that any cone is a third part of the cylinder with the same base and equal height in the Elements, Book XII, Proposition 10, around 300 BC, long before calculus offered a second route to the same result. The corollary to Proposition 7 establishes the matching relationship for a pyramid and its prism.

All dimensions use the same unit. The calculator returns the volume in your chosen cubic unit and, where each differs from it, the equivalent in cubic feet, cubic yards, and cubic metres, converting through metres so the factors stay exact.

What is a volume calculator?

A volume calculator computes how much 3D space a solid shape takes up. Pick the shape, enter the required dimensions in any common unit, and the calculator runs the right formula and returns the volume in cubic units. This calculator covers the six shapes you meet most often in geometry class and in everyday measurement: rectangular prism, cube, cylinder, sphere, cone, and pyramid.

How the volume calculator works

Pick a shape, enter the dimensions, and the calculator:

  • Applies the volume formula for the chosen shape.
  • Reports the volume in the cubic unit that matches your input (in³, ft³, yd³, cm³, or m³).
  • Converts the result to the other cubic units that differ from it, using the exact factors below.
  • Shows the formula, substitutes your numbers into it, and walks through the arithmetic one step at a time.

To read about the formulas themselves rather than run one, see the volume formula guide.

Volume formulas for common shapes

  • Rectangular prism: V = L × W × H
  • Cube: V = s³
  • Cylinder: V = π × r² × h
  • Sphere: V = (4/3) × π × r³
  • Cone: V = (1/3) × π × r² × h
  • Pyramid (rectangular base): V = (1/3) × base length × base width × h

All formulas multiply three dimensions, so the result is always in cubic units. The radius r in the cylinder, sphere, and cone formulas is half the diameter of the circular base or sphere.

Cubic unit conversions

  • 1 cubic foot = 1,728 cubic inches (exact)
  • 1 cubic yard = 27 cubic feet (exact)
  • 1 cubic meter = 1,000,000 cubic centimeters (exact)
  • 1 cubic foot = 0.028316846592 cubic meters (exact)
  • 1 cubic meter ≈ 35.3147 cubic feet

The first four are exact rather than rounded because the inch, foot, and yard are themselves defined exactly in metres: 1 inch = 0.0254 m, 1 foot = 0.3048 m, and 1 yard = 0.9144 m. Cubing those definitions gives cubic factors that are exact as well. The calculator converts every result through metres using them, which removes the error that a truncated conversion constant used to introduce. The arithmetic itself still runs in double-precision floating point, and displayed figures are rounded to six significant digits for presentation.

Assumptions and limitations

  • Every shape is treated as a perfect, solid geometric figure. Real objects have wall thickness, seams, rounded corners, and manufacturing tolerance that this math does not model.
  • The cone and pyramid diagrams show a right solid, with the apex directly above the centre of the base, and h is the perpendicular height from the base plane to the apex. The formula is not limited to that case: an oblique cone or pyramid with the same base area and the same perpendicular height has the same volume. What changes is the slant height, which is longer than h and is never the value to enter here.
  • The pyramid mode assumes a rectangular base. For any other base shape, compute the base area separately and use V = (1/3) × base area × h.
  • All dimensions must share one unit. The calculator does not mix units within a single calculation.
  • Results are computed in double-precision floating point and displayed to six significant digits. No intermediate value is rounded before the final multiplication, so the only rounding is for presentation. Floating point still carries its usual tiny representation error, which is far below the precision shown.
  • Volume is not capacity. A container’s internal capacity uses its inside dimensions, not its outside ones.

Volume vs other project calculators

The volume calculator is the right tool for general 3D shape volume in any unit. For specific project workflows, dedicated calculators add the extras you actually need when ordering materials:

Use the volume calculator on this page for the pure math of any 3D shape; use the project calculators when you also need bags, tons, or area-specific output.

Worked examples

  • Box 10 × 8 × 6 ft: V = 10 × 8 × 6 = 480 cubic feet.
  • Cube with side 5 ft: V = 5³ = 125 cubic feet.
  • Cylinder r = 5 ft, h = 10 ft: V = π × 25 × 10 ≈ 785.40 cubic feet.
  • Sphere r = 5 in: V = (4/3) × π × 125 ≈ 523.60 cubic inches.
  • Cone r = 5 ft, h = 10 ft: V = (1/3) × π × 25 × 10 ≈ 261.80 cubic feet.
  • Pyramid 6 × 4 × 9 ft: V = (1/3) × 6 × 4 × 9 = 72 cubic feet.

Common mistakes

  • Using diameter where the formula calls for radius. The cylinder, sphere, and cone formulas use radius, which is half the diameter.
  • Forgetting the 1/3 factor on cones and pyramids. A cone or pyramid holds exactly one third of the cylinder or prism with the same base and height.
  • Mixing units within a single calculation. All dimensions must use the same unit before multiplying.
  • Confusing area with volume. Area is 2D and uses square units; volume is 3D and uses cubic units.
  • Treating diameter as the base width for a pyramid. The pyramid formula uses base length and base width, not radius.

Related tools

Sources

  • Unit conversions: NIST Special Publication 811, Appendix B.9 lists inch → metre (2.54 E−02), foot → metre (3.048 E−01), and yard → metre (9.144 E−01) as exact conversion factors. Those three definitions generate every cubic factor this page uses.
  • One-third factor for cones and pyramids: Euclid, Elements, Book XII, Proposition 10 (cone and cylinder) and the corollary to Proposition 7 (pyramid and prism).

Note. Results are computed in double-precision floating point and rounded to six significant digits for display only. Volume always uses cubic units and is always 0 or positive; negative dimensions are flagged and zero dimensions return a volume of 0 with an explanation.

Frequently asked questions

Volume is the amount of 3D space a solid takes up, measured in cubic units. A cubic foot is the space inside a cube that is 1 foot on each side. Volume always uses cubic units (in³, ft³, yd³, cm³, m³) because three dimensions are multiplied together.

The formula depends on the shape. A rectangular prism uses V = length × width × height. A cube uses V = s³. A cylinder uses V = π × r² × h. A sphere uses V = 4/3 × π × r³. A cone uses V = 1/3 × π × r² × h. A pyramid uses V = 1/3 × base length × base width × height.

V = L × W × H. Multiply the length, width, and height. A box that is 10 ft × 8 ft × 6 ft has a volume of 480 cubic feet. Every face is a rectangle, and opposite faces are equal.

V = π × r² × h. Multiply pi times the radius squared times the height. The radius is half the diameter of the circular base. A cylinder with radius 5 ft and height 10 ft has a volume of about 785.4 cubic feet.

V = (4/3) × π × r³. A sphere with radius 5 inches has a volume of about 523.6 cubic inches. Radius is half the diameter.

V = (1/3) × π × r² × h. The 1/3 factor reflects the fact that a cone fills exactly one third of the cylinder it fits inside. A cone with radius 5 ft and height 10 ft has a volume of about 261.8 cubic feet.

For a rectangular-base pyramid, V = (1/3) × base length × base width × height. The 1/3 factor mirrors the cone case: a pyramid fills one third of the prism with the same base and height. For non-rectangular bases, use V = (1/3) × base area × height.

Use fixed conversion factors. 1 cubic foot = 1,728 cubic inches = 0.037 cubic yards ≈ 0.0283 cubic meters. 1 cubic yard = 27 cubic feet. 1 cubic meter ≈ 35.31 cubic feet. The calculator runs these conversions whenever you change the unit.

The volume calculator handles general 3D shape volume (rectangular prism, cube, cylinder, sphere, cone, pyramid) and reports the volume in any of several cubic units. The cubic feet and cubic yards calculators focus on box-shaped volumes for shipping and storage; the concrete and gravel calculators add bag and tonnage estimates for specific project materials. Pick the dedicated tool when you need its specialty math.

No. Volume is a measure of physical space, so it is always 0 or positive. Negative dimensions are not allowed, and a 0 dimension collapses the shape and produces a volume of 0.