Volume Calculator
Pick a solid and enter its measurements to get the volume in cubic feet, cubic yards, US gallons, liters and more, plus the surface area.
How to use the volume calculator
Choose a shape and a unit, then fill in the measurements shown. The result appears in the unit you picked and converted to cubic feet, cubic yards, US gallons, liters, cubic inches and cubic meters. For a radius, measure the diameter (straight across) and halve it.
Volume formulas
| Shape | Volume | Surface area |
|---|---|---|
| Box (rectangular prism) | length × width × height | 2(lw + lh + wh) |
| Cube | side³ | 6 × side² |
| Cylinder | π × r² × height | 2πr(r + h) |
| Sphere | ⁴⁄₃ × π × r³ | 4πr² |
| Hemisphere | ⅔ × π × r³ | 3πr² (including the flat face) |
| Cone | ⅓ × π × r² × height | πr(r + slant height) |
| Rectangular pyramid | ⅓ × length × width × height | base + 4 triangular faces |
| Triangular prism | ½ × base × triangle height × length | |
| Tube / pipe | π × (R² − r²) × length |
A cone holds exactly a third of a cylinder with the same radius and height, and a pyramid a third of the matching box.
Worked examples
| Object | Measurements | Volume |
|---|---|---|
| Moving box | 18 × 18 × 16 in | 5,184 cu in = 3 cu ft |
| Raised garden bed | 8 × 4 × 1 ft | 32 cu ft = 1.19 cu yd |
| Round planter | 2 ft across, 1.5 ft deep | 4.71 cu ft = 35.3 gal |
| Water heater tank | 18 in across, 48 in tall | 12,215 cu in = 52.9 gal |
| Ball | 9 in across | 381.7 cu in |
| Sonotube (concrete column) | 12 in across, 4 ft deep | 3.14 cu ft = 0.12 cu yd |
For concrete slabs, footings and bags, the concrete calculator adds waste and bag counts.
Volume conversions
| From | Equals |
|---|---|
| 1 cubic foot | 1,728 cubic inches = 7.48 US gallons = 28.3 liters |
| 1 cubic yard | 27 cubic feet = 202 US gallons |
| 1 US gallon | 231 cubic inches = 3.785 liters |
| 1 cubic meter | 35.31 cubic feet = 264.2 US gallons |
Mixed units
Convert every measurement to the same unit before multiplying. A box 3 ft × 18 in × 6 in becomes 3 × 1.5 × 0.5 = 2.25 cubic feet. Multiplying 3 × 18 × 6 = 324 would mix feet and inches and give a meaningless number.
Frequently asked questions
How do I calculate the volume of a cylinder?
Multiply π by the radius squared and by the height. A tank 3 ft across and 10 ft tall: 3.1416 × 1.5² × 10 = 70.7 cu ft, about 529 gallons.
How many gallons are in a cubic foot?
7.48 US gallons.
How do I convert cubic feet to cubic yards?
Divide by 27. 54 cubic feet is 2 cubic yards.
What's the volume of a sphere?
⁴⁄₃ × π × radius³. A sphere with a 1 ft radius holds 4.19 cubic feet.