Volume calculator
This volume calculator finds the volume of ten common solids, from a cube or a rectangular box to a cylinder, cone, sphere, pyramid, triangular prism, frustum and capsule. It draws the solid with your dimensions, shows the formula with your numbers substituted, and gives the answer in cubic units, liters and US gallons.
Volume calculator: pick a solid
Volume calculator for concrete, soil and mulch
How to use the volume calculator
Choose the solid from the menu, pick the unit you measured in (millimeters to miles), and type the dimensions the sketch asks for. All lengths in one calculation share that unit, so the volume calculator gives the answer in cubic units of it: cm³ for centimeters, ft³ for feet. The volume calculator redraws the solid with your numbers, gives the exact value as a multiple of π for round solids, repeats the result in liters, cubic meters, US gallons, cubic feet and cubic yards, and lists every step under “Show the working” so you can copy the method into homework.
The second panel of the volume calculator is for jobs around the house: the concrete for a slab, the topsoil for a raised bed or the mulch for a round flower bed, with a waste allowance and a bag count. This page finds the volume of a solid from its dimensions. If you already have a volume and only need it in another unit, the Volume Converter is quicker; if you want the liquid in a tank that is only partly full, use the Tank Volume Calculator, which works from the liquid level.
Volume formulas used by the volume calculator
Volume is the amount of space a solid takes up, measured in cubic units: a cube 1 cm on each side has a volume of 1 cm³, which is also 1 milliliter. Every prism and cylinder follows the same idea, base area times height, and every solid that comes to a point (cone or pyramid) holds exactly one third of the matching prism or cylinder. The volume calculator uses the formulas below.
| Solid | Volume formula | Default example (cm) | Volume |
|---|---|---|---|
| Rectangular box | V = l × w × h | 60 × 30 × 36 | 64,800 cm³ |
| Cube | V = a³ | a = 10 | 1,000 cm³ |
| Cylinder | V = π r² h | r = 10, h = 36 | 3,600π ≈ 11,309.7 cm³ |
| Cone | V = ⅓ π r² h | r = 10, h = 36 | 1,200π ≈ 3,769.9 cm³ |
| Sphere | V = 4⁄3 π r³ | r = 10 | 4,000π/3 ≈ 4,188.8 cm³ |
| Hemisphere | V = 2⁄3 π r³ | r = 10 | 2,000π/3 ≈ 2,094.4 cm³ |
| Pyramid | V = ⅓ × l × w × h | 60 × 30 base, h = 36 | 21,600 cm³ |
| Triangular prism | V = ½ × b × ht × l | b = 10, ht = 8, l = 60 | 2,400 cm³ |
| Frustum of a cone | V = ⅓ π h (R² + R r + r²) | R = 10, r = 5, h = 36 | 2,100π ≈ 6,597.3 cm³ |
| Capsule | V = π r² a + 4⁄3 π r³ | r = 10, a = 20 | 10,000π/3 ≈ 10,472 cm³ |
The rectangular solid, cube, sphere and cylinder formulas are derived step by step in OpenStax Prealgebra 2e, section 9.6, and the frustum formula is listed on the Wolfram MathWorld conical frustum page.
Why a cone is one third of a cylinder
Fill a cone with water and pour it into a cylinder with the same base and height: it takes exactly three cones to fill it. The same holds for a pyramid and the box on the same base. Slice both solids into thin layers and the cone’s layers shrink with the square of the distance from the tip; adding them up gives one third. That is why the cone in the table, 1,200π cm³, is one third of the cylinder, 3,600π cm³. A sphere, in turn, is two thirds of the cylinder that just encloses it, a result Archimedes was proud of: 4⁄3 π r³ against π r² × 2r = 2 π r³.
Worked example with the volume calculator
Aquarium (default values of the volume calculator). A rectangular tank is 60 cm long, 30 cm wide and 36 cm high. Its volume is V = 60 × 30 × 36 = 64,800 cm³. Because 1 L = 1,000 cm³, it holds 64.8 L, which is 0.0648 m³ or 17.1 US gallons. The base area, 1,800 cm², tells you that every centimeter of water depth adds 1.8 L. Water weighs about 1 kg per liter, so the full tank carries roughly 65 kg of water before gravel and glass; check that the stand can take it.
Same height, round tank. Switch the volume calculator to a cylinder with r = 10 cm and h = 36 cm: V = π × 10² × 36 = 3,600π ≈ 11,309.7 cm³, or 11.3 L. A cone on the same base holds 1,200π ≈ 3,769.9 cm³, exactly one third, and a frustum with a 10 cm bottom radius and a 5 cm top radius, the shape of a bucket, holds ⅓ × π × 36 × (100 + 50 + 25) = 2,100π ≈ 6,597.3 cm³.
Cubic units, liters and gallons
A length conversion becomes a cubed factor for volume. Since 1 m = 100 cm, 1 m³ = 100 × 100 × 100 = 1,000,000 cm³, not 100 cm³. Internally the volume calculator converts through cubic meters, so the liters and gallons are consistent whatever unit you measured in.
| Volume | Equals |
|---|---|
| 1 cm³ | 1 mL = 0.001 L |
| 1 L | 1,000 cm³ = 0.264172 US gal |
| 1 m³ | 1,000 L = 35.3147 ft³ = 264.172 US gal |
| 1 in³ | 16.387064 cm³ |
| 1 US gallon | 231 in³ = 3.785411784 L |
| 1 ft³ | 1,728 in³ = 28.3168 L = 7.48052 US gal |
| 1 yd³ | 27 ft³ = 0.764555 m³ = 201.974 US gal |
Practical uses: concrete, soil and aquariums
Concrete slab (second panel of the volume calculator, default values). A 10 ft × 10 ft patio slab 4 in thick has an area of 100 ft² and a depth of 4/12 = 0.3333 ft, so it needs 33.33 ft³ = 1.235 yd³ = 0.944 m³. With 10 % extra for spillage and an uneven base, order 1.358 yd³ (1.038 m³). In 80 lb bags of concrete mix, which yield about 0.60 ft³ each, that is 36.67 / 0.60 = 61.1, so 62 bags; past roughly one cubic yard, ready-mix is usually the easier choice. For a round pad 8 ft across and 4 in thick, switch the shape: π × 4² × 0.3333 = 16.76 ft³ before the extra.
Soil, mulch and gravel. Garden products are sold by the cubic yard in bulk and by the cubic foot or liter in bags. A raised bed 8 ft × 4 ft filled 10 in deep needs 8 × 4 × 0.8333 = 26.7 ft³, about 0.99 yd³, or 14 bags of 2 ft³ (13.3 exactly) before settling. Aquariums and planters. Use inside dimensions and the real water depth, which is usually a few centimeters below the rim. For round or tapered pots, the frustum mode gives the soil volume from the top and bottom radii.
Common mistakes with a volume calculator
A volume calculator is only as good as the numbers typed into it. Diameter instead of radius. Entering a 20 cm diameter as the radius makes a cylinder or cone four times too big and a sphere eight times too big; halve the diameter first. Slant height instead of height. Cones and pyramids need the perpendicular height from the tip to the base; the slant height along the side is longer. The Pythagorean Theorem Calculator turns a slant height and radius into the height. Mixed units. A slab measured in feet with a thickness in inches must be converted; the concrete panel has a separate unit menu for depth for exactly this reason. Squaring instead of cubing a conversion factor. 1 ft³ is 1,728 in³, not 144. Forgetting the one third for cones and pyramids. Outside dimensions of a container: walls take up space, so a box measured outside overstates what it holds.
Volume and surface area are often asked together. To find how much material covers a solid, such as paint, wrapping paper or sheet metal, use the Surface Area Calculator. For the flat base of a solid, the Area Calculator handles squares, triangles, trapezoids and polygons, and the Circle Calculator turns a measured circumference into a radius. More tools are listed with the Geometry Calculators.
Related calculators
For the wrapping of the same solids use the surface area calculator; for unit changes the volume converter; for liquid at a given level the tank volume calculator.
- Surface Area Calculator
- Area Calculator
- Circle Calculator
- Tank Volume Calculator
- Volume Converter
- Pythagorean Theorem Calculator
- All geometry calculators
Frequently asked questions
How do you calculate volume?
Multiply the area of the base by the height for a box, prism or cylinder; take one third of that for a cone or pyramid; use 4⁄3 π r³ for a sphere. Keep all lengths in the same unit, and the result is in cubic units of that length. The volume calculator does this for ten solids.
What is the volume of a cylinder?
V = π r² h. A cylinder with a radius of 10 cm and a height of 36 cm holds π × 100 × 36 = 3,600π ≈ 11,310 cm³, or 11.3 liters. The volume calculator gives both the exact and the decimal value.
How many liters are in a cubic foot?
One cubic foot is 28.3168 liters, or 7.48052 US gallons, and the volume calculator shows every result in liters and gallons as well. One cubic meter is 1,000 liters, and one liter is 1,000 cm³.
How do I find the volume of an irregular shape?
Split it into simple solids, such as a box plus a half cylinder, find each part with the volume calculator and add them. For a small object, measure the water it displaces in a measuring jug: 1 mL of water rise is 1 cm³.
How many bags of concrete do I need?
Find the volume of the slab in cubic feet, add 5 to 10 % for waste, and divide by the bag yield printed on the bag, about 0.60 ft³ for an 80 lb bag of concrete mix. The concrete panel of this page does the arithmetic.
Is this volume calculator free?
Yes. It runs in your browser, needs no sign-up and does not store or send the values you enter.