A better way to calculate volume
Volume Calculator
with Step-by-Step Explanation & Formulas

Use this volume calculator for cylinders, spheres, cubes and boxes. Follow volume formulas and worked steps, then convert cubic units, liters and gallons.

Use the volume calculator
Cube
Sphere
Cylinder
Cone
Explore 3D shapes · Understand every dimension
✓Instant calculations ✓US & metric units ✓Free to use

Volume Calculator for 3D Shapes

Use this volume calculator for cylinders, spheres, cubes and boxes. Follow volume formulas and worked steps, then convert cubic units, liters and gallons.

Volume Calculator

Select a 3D shape and enter its measurements.

FREE TOOL

Micrometers, nanometers and angstroms are available for very small-scale measurements.

Enter positive measurements. Results update when you calculate.

Your calculated volume
—
cubic feet (ft³)
Other common units
Cubic inches1,728 in³
Cubic feet1 ft³
US gallons7.481 gal
Liters28.317 L

Calculation methods, references & accuracy limits

Rectangular Prism Volume Formula
Choose the shape and enter measurements.

Multiply the length, width and height using the same measurement unit.

Step-by-step calculation

  1. Enter your dimensions to see the calculation steps.

How to Calculate Volume: Step by Step

To calculate volume, identify the 3D shape, measure its required dimensions in one consistent length unit, and substitute those values into the matching volume formula. For a rectangular box, multiply length by width by height. For a cylinder, multiply the circular base area by its height. For a cone or pyramid, take one-third of the corresponding cylinder or prism volume.

  1. Choose the correct shape. A box, sphere, cylinder, cone and hollow pipe use different formulas.
  2. Measure the required parameters. Depending on the shape, you may need length, width, height, radius, diameter, base area or fill depth.
  3. Make units consistent. Convert inches to feet or centimeters to meters before calculating if dimensions differ.
  4. Calculate cubic volume. The answer is in cubic units such as in³, ft³, cm³ or m³.
  5. Convert if needed. For liquid capacity, use liters or gallons; for concrete, cubic yards or cubic meters may be more practical.
Length (l)Height (h)Width (w)

Example: A box 5 ft long, 3 ft wide and 2 ft high has a volume of 5 × 3 × 2 = 30 ft³. Its outside volume is not necessarily its inside storage capacity.

Volume Formula Chart for Common 3D Shapes

Volume formulas for common 3D shapes formula and worked example: Box: V = LWH    Cube: V = a³
Cylinder: V = πr²h    Sphere: V = 4πr³/3
Volume formulas for common 3D shapes — formula, measurements and a worked example. Open full-size image. The same mathematics remains available as text.

The general volume formula for a prism or cylinder is base area multiplied by perpendicular height. Other shapes use formulas that account for curvature or tapering. Use the chart below to find the volume equation for common solids.

3D shapeVolume formulaMeasurements needed
CubeV = a³Side length a
Rectangular prism / boxV = l × w × hLength, width, height
CylinderV = πr²hRadius, height
SphereV = (4/3)πr³Radius
HemisphereV = (2/3)πr³Radius
ConeV = πr²h / 3Radius, perpendicular height
PyramidV = Bh / 3Base area B, perpendicular height
Triangular prismV = (bh / 2) × LTriangle base b and height h, prism length L
Hollow tube materialV = π(R² − r²)LOuter radius R, inner radius r, length L
EllipsoidV = (4/3)πabcThree semi-axes a, b, c
Conical frustumV = πh(R² + Rr + r²) / 3Top/bottom radii, height
TorusV = 2π²Rr²Major radius R, tube radius r

Notation: V is volume; π is approximately 3.14159265; r is radius; R may denote the larger radius; h is perpendicular height; and B is base area. A circle or square is a 2D shape and has area, not volume. “Volume of a circle” usually means the volume of a cylinder or sphere; “volume of a rectangle” usually means a rectangular prism.

Volume of a Cylinder Calculator

The volume of a cylinder is π times the radius squared times its height. With radius 3 cm and height 10 cm, V = π × 3² × 10 = 282.74 cm³. If you measured a diameter of 6 cm, divide it by two first. This cylinder volume formula is useful for cans, columns, tanks and other round objects.

Volume of a Sphere Calculator

The volume of a sphere is (4/3)πr³. For radius 3 cm, V = (4/3) × π × 27 = 113.10 cm³. The radius is the distance from the center to the surface, not the full diameter.

Volume of a Cube Calculator

The cube volume formula is side length cubed: V = a³. A cube with 4-inch edges has V = 4³ = 64 in³. All three dimensions must be equal for a true cube; otherwise use the rectangular prism calculator.

Volume of a Rectangular Prism Calculator

Find the volume of a rectangular prism by multiplying length, width and height. A box measuring 12 in × 8 in × 5 in has 480 in³ of outside volume. For a container's usable capacity, measure the inside dimensions instead.

Cone Volume Calculator

A cone holds one-third of the volume of a cylinder with the same base and height. A cone with radius 3 cm and height 10 cm has V = π × 3² × 10 / 3 = 94.25 cm³. Use vertical height, not slant height.

All Calculators Available in the Homepage Tool

The homepage calculator currently offers 41 selectable calculation types, covering geometric solids, tanks, pools, pipes, materials and special estimates. The following table reflects the options in the tool above, rather than claiming every shape uses the same inputs or provides identical outputs. Choose an option from “Choose a shape” to access its available fields.

Available calculationFormula or methodUse and need
Rectangular prismLength × width × heightBoxes, rooms, cartons and storage spaces
CubeSide³Equal-sided boxes and solid cubes
Cylinderπ × radius² × heightCans, drums and round columns
Sphere(4/3)π × radius³Balls and spherical vessels
Coneπ × radius² × height / 3Conical piles and funnels
CapsuleCylinder + two hemispheresRounded-end containers
Spherical capπh²(3R − h) / 3Domes and spherical segments
Conical frustumπh(R² + Rr + r²) / 3Tapered containers and hoppers
Ellipsoid(4/3)πabcOval solids and estimates
PyramidBase area × perpendicular height / 3Pyramids with different base shapes
Hollow tubeπ(R² − r²) × lengthTube wall material
Triangular prismTriangle area × prism lengthWedges and triangular beams
Hemisphere(2/3)πr³Half-spheres and domes
Rectangular tankInside length × width × heightWater tanks and aquariums
Truncated pyramid (square base)h(A₁ + A₂ + √(A₁A₂)) / 3Tapered square-base solids
Truncated Cone Volume CalculatorConical-frustum formulaTapered cones
Hexagonal prismHexagon base area × heightSix-sided columns
Hexagonal pyramidHexagon base area × height / 3Six-sided pyramids
Octagonal pyramidOctagon base area × height / 3Eight-sided pyramids
Trapezoid prismTrapezoid area × lengthTrapezoidal channels
General prism (known base area)Known base area × heightUniform-cross-section solids
Torus (donut shape)2π² × major radius × minor radius²Ring-shaped solids
Pentagonal prismPentagon base area × heightFive-sided prisms
Vertical cylindrical tankπr² × heightUpright tank capacity
Horizontal cylindrical tank (partial fill)Circular segment area × lengthPart-filled horizontal tanks
Swimming pool (average depth)Surface area × average depthPools with varying depth
Irregular object (water displacement)Final water level − initial water levelSmall irregular solids
PondPond area × average depth (estimate)Garden ponds
Circular poolπr² × average depthRound swimming pools
Oval poolOval area × average depthOval pools
Irregular pool (area estimate)Estimated area × average depthFreeform pools
Pipe (material volume)π(R² − r²) × lengthPipe wall material
Concrete CalculatorProject-dependent geometric volumeSlabs, footings, curbs and stairs
Soil CalculatorArea × depthGarden beds and excavation
Gravel CalculatorArea × depthDriveways and paths
Sand CalculatorArea × depthBedding and fill
Stone CalculatorArea × depthLandscaping stone
Liquid container (rectangular)Inside length × width × fill heightRectangular liquid containers
Surfboard (estimated volume)Shape-dependent estimateBoard displacement estimates
Subwoofer boxInside enclosure dimensionsSpeaker enclosure planning
Medical ellipsoid estimate(π/6) × length × width × heightEllipsoid-based educational estimate

Choose the Right Volume Calculator for Your Project

Shape Volume Calculators

Shape calculators are best for solids that closely match a mathematical 3D figure. Choose a cylinder, sphere, cube, rectangular prism, cone, hemisphere, pyramid, triangular prism, spherical cap, frustum, ellipsoid, torus or another prism according to the object's geometry. Use the shape-specific page when you need more calculation methods or detailed explanations.

Tank Volume Calculators

A tank volume calculator estimates a tank's geometric capacity from its inside dimensions. Rectangular tanks and vertical cylinders have straightforward fill-height relationships. Horizontal cylinders need a circular-segment calculation for partial fill; a tank at one-quarter of its height is not necessarily one-quarter full by volume.

Pool and Pond Volume Calculators

Pool and pond volume is usually estimated from water-surface area multiplied by average depth. Choose rectangular, circular, oval or irregular pool options to suit the footprint. For a pool with a shallow and deep end, average depth can be a useful estimate when the floor slopes evenly. Actual capacity can differ because of steps, benches, curved walls and uneven bottoms.

Pipe and Tube Volume Calculators

Pipe capacity and pipe material volume are different measurements. Liquid capacity uses the inner radius: V = πr²L. Pipe-wall material volume uses the difference between outer and inner circular areas: V = π(R² − r²)L. Select the correct calculation for fluid storage versus material requirements.

Construction Material Volume Calculators

Concrete, soil, gravel, sand and stone calculators estimate how much material a project occupies. For a simple rectangular slab, multiply length × width × thickness after converting all measurements to the same unit. Concrete projects may also include round footings, curbs or stairs; choose the matching project type. Bulk material ordering may require an additional waste, compaction or settlement allowance, which is separate from geometric volume.

Liquid and Specialty Volume Calculators

Liquid-container and specialty calculators help with applications that a basic box or cylinder formula does not fully describe. The homepage also offers water-displacement measurement for irregular objects, a surfboard estimate, a subwoofer enclosure calculator and an educational ellipsoid estimate. Use specialized outputs with the assumptions shown in each tool.

Volume Units and Conversion Table

Volume is measured in cubic length units, while liquid capacity is often reported in liters or gallons. A cubic unit is the space inside a cube with edges one unit long. Convert only after the shape dimensions are consistent.

Starting unitEquivalent volumeCommon use
1 cubic meter (m³)1,000 liters ≈ 35.3147 ft³Construction and large tanks
1 cubic foot (ft³)1,728 in³ ≈ 28.3168 litersBoxes, soil and room space
1 cubic yard (yd³)27 ft³ ≈ 0.764555 m³Concrete and bulk materials
1 liter (L)1,000 cm³ = 0.001 m³Liquid capacity
1 US liquid gallon231 in³ ≈ 3.78541 litersUS liquid capacity
1 imperial gallon4.54609 litersUK liquid capacity

Example: A 30 ft³ rectangular container has approximately 30 × 7.48052 = 224.42 US gallons of theoretical internal capacity if those are its inside dimensions. Actual usable capacity may be lower.

How to Measure Volume Accurately

Accurate volume calculations start with accurate measurements and the right shape assumptions. Use inside dimensions for capacity and outside dimensions for overall object volume. Check whether a measurement is radius or diameter; the diameter is twice the radius. For a cone or pyramid, measure the perpendicular height rather than the slanted edge. For irregular objects, water displacement can give a direct volume measurement if the object can be safely submerged without absorbing water.

When estimating soil, sand, gravel or concrete, geometric volume is only the starting point. Do not assume material weight can be calculated from volume without a suitable density, or that a purchase quantity equals exact geometric volume. Check project specifications, local construction requirements and supplier guidance before ordering.

Common Volume Calculation Mistakes

  • Mixing inches and feet: convert all dimensions before multiplying.
  • Using diameter instead of radius: this can make a cylinder or sphere result much too large.
  • Confusing area with volume: square feet describe a surface; cubic feet describe space.
  • Using outside measurements for a tank: wall thickness reduces usable internal capacity.
  • Ignoring partial fill or sloped bottoms: a horizontal tank and an irregular pool need appropriate methods.
  • Rounding too early: keep full precision until the final result.

Frequently Asked Questions About Volume

What is volume?

Volume is the amount of three-dimensional space occupied by an object or contained within a boundary. It is measured in cubic units, such as cm³, ft³ and m³.

How do you find volume?

Find volume by measuring the dimensions required for a shape and using its formula. For a box, multiply length × width × height; for a cylinder, use πr²h.

What is the formula for volume?

There is no single volume formula for every shape. Prisms use base area × height, cylinders use πr²h, cones and pyramids use one-third of the matching prism or cylinder, and spheres use (4/3)πr³.

How do I calculate the volume of a cylinder?

Multiply π by the square of the cylinder's radius and then by its height. A cylinder with radius 2 m and height 5 m has 20π ≈ 62.83 m³.

What is the cube volume formula?

The volume of a cube is V = a³. Multiply its equal side length by itself three times.

How do you find the volume of a rectangle or square?

A flat rectangle or square has area, not volume. To find cubic volume, add a third dimension: a rectangular prism uses length × width × height and a cube uses side³.

How do you find the volume of a circle?

A circle is two-dimensional and has area, not volume. If you mean a circular cylinder, multiply the circle's area (πr²) by its height; for a sphere use (4/3)πr³.

How do you measure the volume of an irregular object?

Use water displacement when the object can be submerged safely. The increase in displaced water volume equals the submerged object's volume, subject to measurement accuracy.

How many cubic feet are in a cubic yard?

One cubic yard equals 27 cubic feet. Divide cubic feet by 27 to convert to cubic yards.

How do I convert cubic feet to gallons?

Multiply cubic feet by approximately 7.48052 to obtain US liquid gallons. Use the correct gallon standard because US and imperial gallons differ.

Does doubling every dimension double the volume?

No. Doubling all three linear dimensions makes the volume eight times larger. Volume scales with the cube of a linear scale factor.

What is the difference between volume and capacity?

Volume describes occupied space; capacity describes how much a container can hold. Capacity is usually calculated from inside dimensions and may be less than the container's outside volume.

Start With the Free Volume Calculator

Use the calculator at the top of this page to calculate volume for common shapes and practical projects. Choose from cylinders, spheres, cubes, rectangular prisms, cones, tanks, pools, pipes and construction materials, then explore the shape-specific calculator pages for additional methods, diagrams and step-by-step guidance. Always check the displayed formula and measurement assumptions before using an estimate for a purchase or engineering decision.

Available calculator controls

Enter each measurement in its own unit and choose a cubic or liquid output unit. For radius-based shapes, the diameter option converts the entered width to radius. The steps and diagram use the main input unit.

Copy the result, print the calculation or copy a calculation link to reopen the same measurements. The advanced panel can solve a supported missing dimension, add or subtract two simple solids, and estimate mass from a density you supply. Combined shapes must satisfy the stated overlap and containment assumptions.

Summary

Use this volume calculator for cylinders, spheres, cubes and boxes. Follow volume formulas and worked steps, then convert cubic units, liters and gallons.

  • volume calculator
  • volume formula
  • how to find volume
  • unit conversions