Math · FREE ONLINE TOOL

Volume Calculator

Use this volume calculator for 11 solids. Mix measurement units to find volume or tank capacity.

Choose a shape

Your inputs

Sphere with radius r from the center to its surface
V = 4πr³/3.Diagram is not to scale.
Which measurements do I need?

Enter the center-to-surface radius. Divide a known diameter by two first. Volume measures the space enclosed by the modeled solid. Enter positive dimensions and choose a unit for each measurement. Lengths are converted before calculating; the volume result uses the selected cubic unit.

Calculations run in your browser. No account needed.

EXAMPLE RESULTCalculated locally
Volume
523.6 m³

About this result

Lengths use m in this calculation. V = 4 × π × 5³ ÷ 3 = 523.598775598 m³.

Clear inputs. Transparent methods.
My workspace

Calculate with your inputs to save a result or compare scenarios.

How do I calculate volume?

Volume measures the space a solid occupies. For a box, multiply length × width × height. For a cylinder, multiply the area of its circular base (π × radius²) by its height. A cone with the same base and height holds one third as much. Choose your shape and set the unit beside each measurement.

How it works

Illustration for Volume Calculator: a rectangular prism; a triangle and ruler.
Rectangular prismV = length × width × height.

Volume formulas and examples by solid

Choose from eleven solids and an alternate spherical-cap method. Here r and r₂ are radii, and h is perpendicular height or the capsule’s straight length. For an ellipsoid, a, b, and c are semi-axes. Divide a diameter or full axis length by two before entering a radius or semi-axis.

Select a shape name below to load its calculator. Diagrams show which dimensions to measure and are not to scale.

Scroll sideways to see all columns.

Volume examples use meters and return cubic meters (m³). Answers involving π are rounded to two decimal places.
SolidFormulaExample inputsResult
Rectangular prismRectangular prism with length a, width b, and perpendicular height hV = a × b × hLength 6 m; width 4 m; height 2 m48 m³
CubeCube with edge length a; all edges have the same lengthV = a³Edge 3 m27 m³
CylinderClosed cylinder with radius r and perpendicular height hV = πr²hRadius 2 m; height 5 m62.83 m³
SphereSphere with radius r from the center to its surfaceV = 4πr³ ÷ 3Radius 3 m113.1 m³
ConeRight circular cone with base radius r and perpendicular height h, not slant heightV = πr²h ÷ 3Radius 3 m; height 4 m37.7 m³
Rectangular pyramidRight rectangular pyramid with base length a, base width b, and height h perpendicular to the center of its baseV = a × b × h ÷ 3Base 6 m × 4 m; height 3 m24 m³
EllipsoidEllipsoid with three semi-axes from its center: a to the right, b into the depth, and c upwardsV = 4πabc ÷ 3Semi-axes 3 m, 2 m, 1 m25.13 m³
CapsuleCapsule with radius r and straight cylinder length h between its two hemispherical endsV = πr²h + 4πr³ ÷ 3Radius 2 m; straight cylinder length 6 m108.91 m³
Spherical capSpherical cap with sphere radius r and cap height h from the cutting plane to the top of the sphereV = πh²(3r − h) ÷ 3Sphere radius 5 m; cap height 2 m54.45 m³
Cap: alternate dimensionsSpherical cap with circular base radius a and cap height h measured perpendicular to the baseV = πh(3a² + h²) ÷ 6, where a is base radiusBase radius 4 m; cap height 2 m54.45 m³
Conical frustumRight conical frustum with bottom radius r, top radius r₂, and perpendicular height hV = πh(r² + rr₂ + r₂²) ÷ 3Radii 4 m and 2 m; height 3 m87.96 m³
Hollow cylinder: materialHollow cylinder with outer radius r, inner radius r₂, and height h; both radii start at the same centerV = π(r² − r₂²)hOuter radius 3 m; inner radius 2 m; height 5 m78.54 m³

Measure the radius, perpendicular height, and straight length

Use the center-to-edge radius of a sphere, cylinder, cone, or capsule. Entering diameter instead of radius makes a sphere’s volume eight times too large and a cylinder’s volume four times too large. Cone and pyramid height is perpendicular to the base, not measured along the sloping side.

A capsule combines a cylinder with two hemispherical ends. Enter only the straight cylinder length as h; overall length is h + 2r. For an ellipsoid, enter half of each full axis length. A solid measuring 6 m × 4 m × 2 m across its three axes has semi-axes 3 m, 2 m, and 1 m.

How much water is in a partly filled tank?

A rectangular tank measures 100 cm long, 50 cm wide, and 40 cm high on the inside. It holds 200 L to the brim. If the water sits 5 cm below the rim, enter 35 cm for Height. The water occupies 100 × 50 × 35 = 175,000 cm³, or 175 L.

A rectangular tank filled to a water depth of 35 cm holds 175 L. A dashed line marks the water surface below the rim.
Measure the tank along the inside edges. For the water volume, the height stops at the waterline.

Each extra centimeter of water in this tank adds 5 L because the footprint stays the same. Water depth also works as the height of an upright cylinder. In a cylinder lying on its side, the width of the water surface changes as it fills. A partial fill in that position needs a circular segment calculation.

If there is an insert below the waterline, subtract its submerged volume from the space below that line. Use the volume calculator with the shape of the insert and keep both answers in the same unit.

How much soil will fill a tapered planter?

A round pot with straight, sloping sides measures 20 cm across the inside base and 32 cm across the inside rim. It is 24 cm deep. You want to leave 4 cm at the top for watering. How much potting mix will reach the mark?

A tapered planter with a dashed soil line. The pot is 30 cm across at the soil line, and the soil is 20 cm deep.
The upper diameter for this calculation is the width at the soil line. The empty space above it widens out to the rim.

When using the volume calculator for a planter with a drainage layer, measure the radius at the top of that layer. It is the lower radius of the soil region. Measure the soil depth from there to the fill line.

  1. Use the filled depth. From the inside floor to the soil line, the height is 24 − 4 = 20 cm.
  2. Find the width at that height. The pot widens by 12 cm over its full depth, so the diameter at the mark is 20 + 12 × (20 ÷ 24) = 30 cm. You can also measure across the pot at the mark.
  3. Choose Conical frustum. Enter 10 cm for Bottom radius, 15 cm for Top radius, and 20 cm for Height. In cubic centimeters the result is about 9,948 cm³, or 9.95 L. If a root ball is going into the pot, it takes up some of that space.

Try your measurements in the conical frustum calculator.

How do cubic units convert to liters?

Picture a cube 10 cm on each side. It holds exactly 1 liter because 10 × 10 × 10 = 1,000 cm³. To turn cubic centimeters into liters, divide by 1,000. For cubic meters, multiply by 1,000. A single cubic centimeter is 1 mL.

A box measuring 2 ft × 12 in × 6 in is 2 ft long, 1 ft wide, and half a foot tall. Its volume is 1 ft³, which equals 1,728 in³ or about 28.32 L. For cubic yards, divide cubic feet by 27.

To convert a known volume to liters, milliliters, or US or imperial gallons, use the unit conversion calculator.

How much water fits in a pipe, and how much material is in its wall?

Take a 2 m pipe with an outside diameter of 5 cm and an inside diameter of 4 cm. For water capacity, choose Cylinder. Use the inside radius of 2 cm and enter the pipe length of 2 m as Height. The pipe holds about 2,513 cm³, or 2.51 L.

A hollow pipe with a hatched wall. The inside diameter is 4 cm and the outside diameter is 5 cm.
Use the opening to find water capacity and the hatched ring to find wall material. Both extend the full length of the pipe.

For the wall itself, choose Hollow cylinder. Use the same length with an outer radius of 2.5 cm and an inner radius of 2 cm. Subtracting the hollow center leaves about 1,414 cm³ of pipe material.

Calculate each non-overlapping solid separately, then add their volumes in the same unit. Subtract empty regions when measuring material. A 4 m × 3 m × 2 m block with a 1 m × 1 m opening through its 2 m height contains 24 − 2 = 22 m³ of material.

To find the area you would paint or wrap, use the surface area calculator.

Why can a spherical cap have two answers?

With the sphere radius r and cap height h, the cap is defined: h must be greater than zero and no greater than 2r. With a base radius a and cap height h, the alternate mode first finds r = (a² + h²) ÷ (2h). For a = 4 m and h = 2 m, r = 5 m and volume is about 54.45 m³.

With only sphere radius r and base radius a, there can be two cap heights: r − √(r² − a²) and r + √(r² − a²). A sphere of radius 5 m cut along a base circle of radius 4 m gives heights 2 m and 8 m. The alternate mode shows both caps, so choose the one matching the piece you measured.

Volume, material allowance, and measurement precision

Area uses square units; volume uses cubic units. A slab 6 m long, 4 m wide, and 0.1 m thick covers 24 m² and contains 2.4 m³. Thickness must be included when estimating material, even when it is much smaller than the other dimensions.

The result models the dimensions entered. Keep unrounded values when combining pieces, then round to match measurement precision. Material allowances, compaction, and purchase quantities are separate from geometric volume.

For slabs and round columns with an extra-material allowance, use the concrete calculator.

Choosing a shape in the volume calculator

Look at the ends of the object as well as its sides. A round container with parallel circular ends is a cylinder. A container that gets wider from one circular end to the other has a different cross section at each height. If its sides are straight, the conical frustum is a better model. Trace the outline from the top to the bottom before deciding which measurements to take.

Consider a cube with an inside edge of 20 cm and a cylindrical jar with an inside diameter of 20 cm and an inside height of 20 cm. The cube holds 8,000 cm³, or 8 L. The jar has a radius of 10 cm and holds about 6.28 L. Imagine the jar standing inside the cube. The four empty corners explain why the cube holds more even though both objects have the same overall width and height. This is a quick way to check whether the result is plausible.

Measuring a storage box with thick walls

A manufacturer may give the outside dimensions of a box because those are what matter on a shelf. To find how much it holds, take measurements between the inside faces. If you can only measure the outside, draw a cross section and mark the material you need to subtract. Each pair of opposite walls takes space from that dimension. For an open box, only the bottom takes space from the vertical dimension.

Suppose an open box measures 50 cm long, 30 cm wide and 24 cm high on the outside. Its side walls are 1 cm thick and its bottom is 2 cm thick. In the volume calculator, choose Rectangular prism and enter the inside dimensions of 48 cm, 28 cm and 22 cm. That gives 29,568 cm³ of space. If the contents must stop 2 cm below the rim, enter a fill height of 20 cm instead. The usable space falls to 26,880 cm³. A lid that fits inside the box can take up some of that space as well.

Check the inside dimensions in the volume calculator.

Measuring an irregular object by displacement

A smooth stone can have a length, width and height yet leave considerable space around it inside a rectangular box. For a small waterproof object that can be fully submerged, a graduated container lets you measure that difference directly. Record the water level, place the object in the water, and record the new level after the surface settles. Keep enough space above the original water level to avoid losing any water over the rim.

If the level rises from 140 mL to 173 mL, the displaced water occupies 33 mL. A milliliter equals a cubic centimeter, so the submerged object occupies 33 cm³. Read both levels at eye level and use the same edge of the curved water surface each time. Bubbles caught beneath the object add to the apparent volume. For a hollow object, water that enters an opening also changes what the measurement represents.

You can use the volume calculator to compare that reading with a geometric estimate. For example, enter the dimensions of the smallest rectangular box that encloses the stone. The stone should occupy at most that much space. A larger displacement reading is a reason to check the units or the water levels.

Finding the fill depth for a known capacity

When a tank has straight vertical sides, each extra centimeter of depth adds the same volume. To find the depth that corresponds to a particular capacity, divide that capacity by the area of the base. First express the volume and base area in compatible units. Liters divided by square centimeters need a conversion before the answer can be read in centimeters.

Take a tank whose inside base is 60 cm by 40 cm. Its base area is 2,400 cm². For a target of 48 L, divide 48,000 cm³ by that area to get a water depth of 20 cm. Enter the three dimensions in the volume calculator to check the result. If the water is already 12 cm deep, only the upper 8 cm needs filling. That layer holds 19,200 cm³, or 19.2 L. Measuring from the inside bottom gives both depths the same starting point.

A tank standing on a tapered base fills differently. The area of its water surface changes as the level rises. For that shape, measure the radii at the two water levels and use the vertical distance between them as the height of the frustum.

Where to measure the length of a capsule

A capsule has a straight circular middle and a hemispherical end at each side. Imagine cutting across it where each rounded end meets the middle. The two end pieces together form a sphere. The height field for the middle measures the distance between the cuts. A tape running from the tip of one end to the tip of the other also includes the two rounded sections.

For a capsule that measures 10 cm from tip to tip and 4 cm across, each rounded end extends 2 cm along its length. The straight middle is therefore 6 cm long. Choose Capsule in the volume calculator, enter a radius of 2 cm and a cylinder length of 6 cm. The combined volume is about 108.91 cm³. A flat-ended cylinder of the same overall length and radius would hold about 125.66 cm³. The rounded capsule fits inside that cylinder, which gives you an upper bound for the answer.

If the measured ends have different shapes or the middle changes diameter, mark the sections on a sketch. Estimate each identifiable part separately and record which dimensions you had to approximate.

How a scale change affects volume

A model maker who enlarges a drawing also needs to scale the depth of the object. Increasing every length changes the number of small cubes that fit along three directions. For a scale factor of one and a half, multiply the original volume by that factor three times. Keeping a hole or a wall thickness at its original size changes the geometry, so the same shortcut then requires a closer look.

You can see the effect in the volume calculator with a rectangular block measuring 10 cm by 6 cm by 4 cm. Its volume is 240 cm³. At the larger scale the dimensions become 15 cm by 9 cm by 6 cm, giving 810 cm³. The larger block occupies 3.375 times the original volume. If only the length changes, the base width and height stay fixed and the volume grows in direct proportion to the length. Write down which dimensions changed before applying a scale factor to a materials estimate.

Adding a raised section and subtracting a hole

Break up a stepped object where the cross section changes. Picture a display stand with a wide base and a smaller rectangular platform on top. The platform adds material only above the base. If a drawing gives a single height from the table to the top of the stand, subtract the base thickness to find the extra height of the platform.

A base measuring 30 cm by 20 cm by 4 cm occupies 2,400 cm³. A platform measuring 20 cm by 10 cm by 3 cm adds 600 cm³. Together they contain 3,000 cm³ before any hole is drilled. Run the volume calculator in Cylinder mode for a circular hole of radius 1 cm passing vertically through both pieces. At a depth of 7 cm the hole removes about 21.99 cm³, leaving about 2,978.01 cm³ of material. A hole drilled through the platform alone would have a shorter depth. Mark the start and end of the hole on the drawing before choosing that measurement.

How many small boxes fit in a carton?

Dividing the inside volume of a carton by the outside volume of one item gives an upper limit on the number of items it can hold. A corner gap may have plenty of volume and still be too narrow for another item. If the items must stay upright, count how many complete items fit along each of the three directions and multiply those counts.

Try a carton with inside dimensions of 30 cm by 20 cm by 12 cm. Small boxes measuring 10 cm by 5 cm by 4 cm fit three along its length, four across and three layers high. That arrangement holds 36 boxes. For boxes measuring 16 cm by 10 cm by 6 cm in that fixed orientation, only one fits along the length, two across and two layers high. The arrangement holds four. The volume calculator gives the capacity of the carton and the volume of an individual box. The dimension counts explain the unused space. If rotation is allowed, try another orientation and compare the counts before choosing a layout.

What to keep in mind

Measure the inside dimensions for tank capacity. A partially filled horizontal cylinder needs a separate calculation using the liquid level.

Formula references

References explain the underlying methods; they do not imply endorsement or individual professional review of Finflo.

Common questions

How do I find the radius if I can only measure around a cylinder?

Wrap a tape once around the cylinder and divide that circumference by 2π. A can measuring 31.4 cm around has an outside radius of about 5 cm. To find what it holds, use the inside radius or subtract the wall thickness from the outside radius.

Can I mix feet, inches, and meters?

Yes. Set the unit beside each dimension. If one side measures 5 ft 6 in, enter 5.5 feet or 66 inches. Those 6 inches are half a foot.

How do I find the volume of an irregular stone?

For a stone that sinks and does not absorb water, use water displacement. Read the level in a graduated cylinder at eye level. Lower the stone until it is fully covered and release any trapped bubbles. A rise from 75 mL to 93 mL gives a stone volume of 18 mL, or 18 cm³.

Which gallon should I use for tank capacity?

A US liquid gallon is about 3.785 L. An imperial gallon is about 4.546 L. If a tank label just says “gal,” check which gallon the manufacturer uses before comparing capacities.

Does capsule length include the rounded ends?

The Cylinder length input includes only the straight section. The total end-to-end length is that straight length plus twice the radius. The calculator adds the volume of both hemispherical ends automatically.

How deep will a known volume of water be in a rectangular tray?

Divide the water volume by the inside base area. A tray measuring 40 cm by 25 cm inside has a base area of 1,000 cm². Pour in 12 L (12,000 cm³) and the water will be 12 cm deep, provided the sides are vertical and tall enough.

See our methodology and editorial policy.