Volume Calculator
The volume of a cylinder is π × r² × h: with a radius of 2 ft and a height of 5 ft it holds ≈ 62.8319 cubic feet, which is ≈ 2.32711 cubic yards, ≈ 1.7792 cubic meters, ≈ 1,779.2 liters or ≈ 470.015 US gallons, and its surface area is ≈ 87.9646 square feet. Pick a cube, box, cylinder, sphere, hemisphere, cone, square pyramid, triangular prism or capsule, choose inches, feet, yards, centimeters or meters, and type the dimensions: the calculator shows the volume, the total surface area, the formula with your numbers, and the volume in cubic feet, yards, meters, liters and gallons.
Updated Runs in your browser: nothing you enter is uploadedHow this tool works
Cylinder: radius 2 ft, height 5 ft
Volume ≈ 62.8319 cubic feet
- Cubic feet (ft³)
- ≈ 62.8319
- Cubic yards (yd³)
- ≈ 2.32711
- Cubic meters (m³)
- ≈ 1.7792
- Liters (L)
- ≈ 1,779.2
- US gallons (gal)
- ≈ 470.015
- Surface area (ft²)
- ≈ 87.9646
- Square meters (m²)
- ≈ 8.17218
The formulas with your numbers
- Volume: V = π × r² × h = π × 2² × 5 ≈ 62.8319 ft³
- Surface area: A = 2πr(r + h) = 2 × π × 2 × (2 + 5) ≈ 87.9646 ft²
- Cubic meters: 62.8319 ft³ × 0.028316846592 m³ per ft³ ≈ 1.7792 m³
- Liters: 1.7792 m³ × 1,000 L per m³ ≈ 1,779.2 L
- US gallons: 1,779.2 L ÷ 3.785411784 L per US gal ≈ 470.015 gal
- Cubic feet and yards: 1.7792 m³ ÷ 0.028316846592 m³ per ft³ ≈ 62.8319 ft³; ÷ 0.764554857984 m³ per yd³ ≈ 2.32711 yd³
Volume and surface area formulas
| Shape | Dimensions | Volume | Surface area | Example volume (ft³) | Example area (ft²) |
|---|---|---|---|---|---|
| Cube | side a | a³ | 6a² | 64 | 96 |
| Rectangular box | length l, width w, height h | l × w × h | 2(lw + lh + wh) | 200 | 220 |
| Cylinder | radius r, height h | π r² h | 2πr(r + h) | ≈ 62.8319 | ≈ 87.9646 |
| Sphere | radius r | 4/3 π r³ | 4π r² | ≈ 113.097 | ≈ 113.097 |
| Hemisphere | radius r | 2/3 π r³ | 3π r² (curved part plus flat base) | ≈ 56.5487 | ≈ 84.823 |
| Cone | base radius r, height h | 1/3 π r² h | πr(r + s), s = √(r² + h²) | ≈ 75.3982 | ≈ 108.8 |
| Square pyramid | base side a, height h | 1/3 a² h | a² + 2as, s = √((a/2)² + h²) | 48 | 96 |
| Triangular prism | triangle sides a, b, c and length L | B × L, B from Heron’s formula | 2B + (a + b + c) × L | 60 | 132 |
| Capsule | radius r, cylinder length h | π r² h + 4/3 π r³ | 2πrh + 4π r² | ≈ 108.909 | ≈ 125.664 |
Volume units and their exact conversions
| One | Cubic feet | Cubic yards | Cubic meters | Liters | US gallons |
|---|---|---|---|---|---|
| 1 cubic foot | 1 | 0.037037 | 0.0283168 | 28.3168 | 7.48052 |
| 1 cubic yard | 27 | 1 | 0.764555 | 764.555 | 201.974 |
| 1 cubic meter | 35.3147 | 1.30795 | 1 | 1,000 | 264.172 |
| 1 liter | 0.0353147 | 0.00130795 | 0.001 | 1 | 0.264172 |
| 1 US gallon | 0.133681 | 0.00495113 | 0.00378541 | 3.78541 | 1 |
Length units used by the calculator
| Unit | Length in meters | Cubed: cubic meters |
|---|---|---|
| inches (in) | 0.0254 | 0.000016387064 |
| feet (ft) | 0.3048 | 0.028316846592 |
| yards (yd) | 0.9144 | 0.764554857984 |
| centimeters (cm) | 0.01 | 0.000001 |
| meters (m) | 1 | 1 |
How to calculate the volume of a shape
- Pick the shape and the unit. Choose the solid that matches the object, and the length unit you measured in: inches, feet, yards, centimeters or meters. All dimensions use the same unit.
- Measure the dimensions. Enter the length, width and height of a box, or the radius of anything round. A radius is half the diameter, so a 4 ft wide tank has a radius of 2 ft.
- Read the volume. The result appears as you type. For the example cylinder, Volume: V = π × r² × h = π × 2² × 5 ≈ 62.8319 ft³.
- Convert if you need another unit. The same volume is listed in cubic feet, cubic yards, cubic meters, liters and US gallons: the example is ≈ 1,779.2 liters and ≈ 470.015 US gallons.
- Check the surface area. The surface area is the total area of every face, base included, in square units: ≈ 87.9646 ft² for the example. It is the amount of paint, liner or wrap to cover the outside.
Frequently asked questions
- How do I find the volume of a cylinder?
- Multiply the area of the circular end, π × r², by the height: V = π r² h. With r = 3 in and h = 10 in, V = π × 3² × 10 ≈ 282.743 cubic inches, which is ≈ 4.63333 liters. If you know the diameter, halve it first.
- What is the difference between volume and surface area?
- Volume is the space inside a solid, in cubic units: how much it holds. Surface area is the area of its outside, in square units: how much paint or wrap covers it. A 12 in cube has a volume of 1,728 cubic inches and a surface area of 864 square inches. This calculator gives the total surface area, bases included; a hemisphere's includes its flat circle.
- How do I convert cubic feet to cubic yards?
- Divide by 27, because a yard is 3 feet and 3 × 3 × 3 = 27. A 12 ft × 10 ft slab about 4 in (0.33 ft) thick is 39.6 cubic feet, or ≈ 1.46667 cubic yards. That is the figure concrete and gravel are ordered by; see the cubic yards to bags and cubic yards to tons pages for the next step.
- How many gallons are in a cubic foot?
- A US gallon is exactly 231 cubic inches, and a cubic foot is 1,728 cubic inches, so a cubic foot holds 1,728 ÷ 231 ≈ 7.48052 US gallons, or ≈ 28.3168 liters. Use the US gallon figure for US liquids; an imperial (UK) gallon is 4.54609 liters and is not used here.
- Do I enter the radius or the diameter?
- The radius, which is half the diameter. For a sphere with a diameter of 6 ft, enter 3: its volume is ≈ 113.097 cubic feet and its surface area ≈ 113.097 square feet. Using the diameter by mistake makes a sphere’s volume 8 times too big.
- How do I get the height of a cone or pyramid?
- Use the vertical height from the base to the point, not the slanted side. The calculator finds the slant height itself, as √(r² + h²) for a cone: a cone with r = 3 ft and h = 8 ft has a volume of ≈ 75.3982 cubic feet and a surface area of ≈ 108.8 square feet. A cone or pyramid holds exactly one third of the cylinder or box with the same base and height.
- Why does the triangular prism ask for three sides?
- The surface area of a prism depends on all three sides of its triangle, and Heron’s formula gives the triangle’s area from them without needing a height. The sides must be able to close into a triangle: the longest must be shorter than the other two added together. The prism length is the distance between the two triangular ends.
- How do I find the volume of an irregular or combined shape?
- Split it into the shapes above, work out each volume, and add them (or subtract a hollow). A capsule is already a cylinder plus a sphere; a silo is a cylinder plus a hemisphere; a tent might be a prism. Use the same unit for every piece. For a hollow object, subtract the inside volume from the outside.
How it works
Dimensions are read as plain positive numbers (1,250.5 is accepted) in the unit you choose and must be at most 1,000,000. Volume and total surface area use the standard formulas in the table above, with π as the double-precision value, and every result is a number of cubic or square units of the length unit chosen. The volume is then converted through cubic meters using exact factors: an inch is exactly 0.0254 m, a foot 0.3048 m, a yard 0.9144 m, so a cubic foot is 0.028316846592 m³ and a cubic yard 0.764554857984 m³; a liter is exactly 1/1,000 of a cubic meter; and a US gallon is exactly 231 cubic inches, which is 3.785411784 liters. Only the display is rounded, to six significant digits, and a result shown with ≈ is rounded. The triangular prism takes the three sides of its triangle and finds the base area with Heron's formula. The capsule is a cylinder of the given length with a hemisphere on each end, so its total length is the cylinder length plus two radii. Surface area is the total, bases included. The calculator treats solids as perfect geometric shapes: real tanks, tapered cones and rounded edges differ slightly, and no allowance for wall thickness, fill level or settling is made. Everything runs in your browser; nothing you type is sent anywhere.
Sources
- NIST Handbook 44, Appendix C, General Tables of Units of Measurement: US gallon, cubic inch, foot, yard (exact definitions)
- NIST Special Publication 811, Guide for the Use of the International System of Units: Appendix B, conversion factors (inch 0.0254 m, cubic foot, cubic yard, gallon, liter)
- Wolfram MathWorld, Cylinder (volume and surface area)
- Wolfram MathWorld, Cone (volume and surface area)
- Wolfram MathWorld, Sphere (volume and surface area)
- Wolfram MathWorld, Heron’s Formula (area of a triangle from its three sides)
More free tools
- Unit ConverterConvert length, area, volume, weight and temperature with exact factors, plus cubic yards, tons and bags for gravel, soil, sand and concrete.
- Cubic Yards to TonsConvert cubic yards to tons and back for gravel, sand, topsoil, river rock and concrete, with weight-per-yard tables for each material.
- Cubic Yards to BagsHow many bags make a cubic yard: 0.5 to 3 cu ft bags of mulch, soil, gravel or sand, and 40, 60 or 80 lb concrete mix bags, both ways.
- Board Foot CalculatorBoard feet for a whole cut list: pieces × thickness × width × length, 4/4 to 16/4 hardwood or nominal 2×4s, with waste and the cost at your price.
- Area CalculatorPick a shape (rectangle, triangle, circle, trapezoid, ellipse, polygon, ring and more) and get its area and perimeter, with the formula and working.
- Surface Area CalculatorTotal, lateral and base surface area of a cube, box, sphere, cylinder, cone, pyramid, triangular prism or hemisphere, with your numbers in the formula.
- Pipe Volume CalculatorGallons and litres of water in steel, PVC, copper or PEX pipe from size and length, with weight, flush time and the length that holds a given volume.
- Pool Volume CalculatorGallons and litres in a round, rectangular, oval or freeform pool from its size and water depth, with the time to fill at your flow rate and size tables.
More: Geometry and measurementAll math & numbersAll toolsHome & DIY calculators