Skip to content

Volume Calculator

This volume calculator finds the space inside a 3D shape in cubic units. Pick one of nine shapes, from a cube or cylinder to a cone frustum or ellipsoid, and enter its measurements in one unit. It applies the matching volume formula and shows each step, so you can check homework or size a tank.

Last updated November 6, 2026 · Topic: Geometry

What is volume?

Volume tells you how much space is inside a solid shape. Think of how much water a fish tank holds or how much soil fits in a planter. Area covers a flat surface. Volume adds depth.

Because we measure a length in each of three directions, volume is always in cubic units, written with a small 3, as in cm³.

Volume formulas for each shape

Cube: V=s3Box: V=l×w×h\text{Cube: } V = s^3 \qquad \text{Box: } V = l \times w \times h Cylinder: V=πr2hSphere: V=43πr3\text{Cylinder: } V = \pi r^2 h \qquad \text{Sphere: } V = \tfrac{4}{3}\pi r^3 Cone: V=13πr2hPyramid: V=13 l w h\text{Cone: } V = \tfrac{1}{3}\pi r^2 h \qquad \text{Pyramid: } V = \tfrac{1}{3}\, l \, w \, h

Three more shapes are available. A triangular prism is the triangle's area times the length. A cone frustum is a cone with its tip cut off. An ellipsoid is a stretched sphere with three semi-axes.

Prism: V=12 b ht LFrustum: V=13πh (r12+r1r2+r22)Ellipsoid: V=43πabc\text{Prism: } V = \tfrac{1}{2}\, b\, h_t\, L \qquad \text{Frustum: } V = \tfrac{1}{3}\pi h\,(r_1^2 + r_1 r_2 + r_2^2) \qquad \text{Ellipsoid: } V = \tfrac{4}{3}\pi a b c

How to use the volume calculator

  1. Choose a shape from the list. There are nine: cube, box, cylinder, sphere, cone, pyramid, triangular prism, cone frustum and ellipsoid.
  2. Enter the sizes that appear for that shape. Use the same unit for all of them.
  3. For round shapes, enter the radius, not the diameter.
  4. Read the volume and the steps.
  5. Write your unit with a small 3, such as m³.

Volume examples by shape

Example 1: A cylinder

A can has a radius of 3 centimeters and a height of 5 centimeters.

  • V = π × r² × h.
  • r² = 9, so V = π × 9 × 5 = 45π.
  • 45π ≈ 141.37.

The can holds about 141.37 cm³, which is about 141 milliliters.

Example 2: A cone

An ice cream cone has a radius of 3 centimeters and a height of 4 centimeters.

  • V = ⅓ × π × r² × h.
  • V = ⅓ × π × 9 × 4 = 12π.
  • 12π ≈ 37.70.

The cone holds about 37.70 cm³.

Example 3: A box

A shipping box is 40 cm long, 30 cm wide and 25 cm tall. The volume is 40 × 30 × 25 = 30,000 cubic centimeters. Since 1,000 cubic centimeters equal 1 liter, the box holds 30 liters.

Example 4: A sphere

A ball has a radius of 5 cm. The volume is 4⁄3 × π × 5³ = 500π⁄3 ≈ 523.60 cubic centimeters. If you only know the diameter, halve it first. A diameter of 10 cm gives the same radius of 5 cm.

Example 5: A square pyramid

A pyramid has a square base 6 m on each side and a height of 9 m. The base area is 36 square meters. The volume is 1⁄3 × 36 × 9 = 108 cubic meters.

Example 6: A frustum

A paint bucket is a cone frustum with a top radius of 2 cm, a bottom radius of 4 cm and a height of 5 cm. The bracket is 2² + 2 × 4 + 4² = 4 + 8 + 16 = 28. The volume is 1⁄3 × π × 5 × 28 = 140π⁄3 ≈ 146.61 cubic centimeters.

Example 7: A triangular prism

A tent is a triangular prism. The triangle has a base of 6 m and a height of 4 m, and the tent is 10 m long. The triangle area is 1⁄2 × 6 × 4 = 12 square meters, so the volume is 12 × 10 = 120 cubic meters.

Volume units and conversions

The answer comes back in cubic units of whatever you typed. Centimeters give cm³, feet give ft³. To turn that into a capacity:

FromToFactor
1,000 cm³liters1 L
1 m³liters1,000 L
1 ft³US gallonsabout 7.48 gal
231 in³US gallons1 gal

The unit converter handles other volume units.

Shapes the calculator does not list

Break the shape into pieces it does list, then add. A capsule is a cylinder plus two half spheres, which make one whole sphere. With radius 2 and a straight middle of 6: π × 4 × 6 ≈ 75.40, plus (4/3) × π × 8 ≈ 33.51, for a total of about 108.91 cubic units. For a hollow pipe, subtract the inner cylinder from the outer one.

For an irregular solid object, measure it by water displacement. Put it in a measuring jug: if the level rises from 500 mL to 650 mL, the object's volume is 150 mL, which is 150 cm³.

Volume versus surface area

Volume counts the space inside and is cubed. Surface area counts the outside skin and is squared. Paint and wrapping need surface area; filling and storage need volume. Use the surface area calculator for the outside.

Tips for measuring

  • Choose the shape first, then fill in the lengths it asks for.
  • Use the radius for round shapes. If you have the diameter, divide by 2.
  • Use the vertical height for cones and pyramids, not the slanted side.
  • Keep all lengths in one unit. Convert first if some are in meters and some in centimeters.
  • For all the formulas side by side, see volume formulas for cube, cylinder and sphere.

Common volume mistakes

  • Using the diameter as the radius. This makes a round shape's volume four times too large.
  • Forgetting the one-third factor for cones and pyramids.
  • Mixing units. Do not enter one length in inches and another in feet.
  • Using the slant height instead of the height for a cone or pyramid. You need the straight-up height. The Pythagorean theorem can turn a slant height into a height.
  • Writing square units. Volume uses cubic units.

Real-life uses of volume

You use volume to buy the right amount of concrete, to fill a pool, to size a water tank, to pack boxes, to follow a recipe in cups or milliliters, and to compare packaging. Science classes use it to find density, which is mass divided by volume. For help changing units, read how to convert units with ratios.

Volume of a tube

A tube, a pipe or a drinking straw is a cylinder: volume = π × radius² × height (or length). If you have the outer and inner diameters of a hollow tube and want only the material, subtract the inner cylinder from the outer one: V = π × length × (R² − r²). For water inside the pipe, use the inner radius only.

Example: a pipe with an inner diameter of 4 cm (radius 2 cm) and a length of 2 m (200 cm). Volume of water it holds = π × 2² × 200 ≈ 2,513 cm³, which is 2.513 litres. The water flow rate calculator starts from that same inner diameter, together with a pressure drop and a length, when the question is how fast the water moves rather than how much the pipe holds. The surface area calculator will give the outside of a cylinder if you need paint or wrapping rather than volume.

Choose “Cylinder” in the shape list, enter the inner radius and the length, and read the steps.

FAQ

Frequently asked questions

01What is volume?

Volume is the amount of three-dimensional space that an object takes up or a container can hold. It is measured in cubic units, such as cubic centimeters or cubic feet. A cube with sides of 1 centimeter has a volume of 1 cubic centimeter.

02What units does the calculator use?

It has no fixed unit. Use the same unit for every length you enter, and the answer is in that unit cubed. If you enter centimeters, the result is in cubic centimeters. One cubic centimeter equals one milliliter, and 1000 of them make one liter.

03Why is a cone one third of a cylinder?

A cone with the same base and height as a cylinder holds exactly one third as much. You can see this by filling a cone with water and pouring it into the cylinder three times. Calculus proves it, and the same one-third factor applies to pyramids.

04What is the difference between radius and diameter?

The radius goes from the center to the edge. The diameter goes all the way across through the center, so it is twice the radius. The volume formulas use the radius. If you only know the diameter, divide it by 2 before you enter it.

05How accurate is the value of pi?

The calculator uses the full precision of pi stored by your browser, about 15 digits, and rounds the displayed answer to six decimal places. That is far more than most homework needs. If your teacher asks for pi as 3.14, your result may differ slightly.

06Is volume squared or cubed?

Volume is cubed, because it multiplies three lengths: length, width and height. That is why its units are cm³, m³ or ft³. Area multiplies two lengths, so it is squared. If your answer has square units, you have found an area, not a volume.

07How do I find the volume of an irregular object?

Use water displacement. Fill a measuring container, note the level, sink the object fully and read the new level. The rise is the object's volume. One milliliter equals one cubic centimeter, so a rise of 150 mL means 150 cm³.