Box and pyramid
A box is length × width × height: 10 ft by 8 ft by 4 ft is 320 cubic feet. A pyramid on the same base, the same height to its point, holds exactly a third of that box: 6 m by 6 m by 4 m is 144 ÷ 3 = 48 m³.
Pick the shape, type its sizes in inches, feet, yards or meters, and see the volume as you type in cubic feet, cubic yards, cubic inches, cubic meters, liters and gallons, with the formula worked through in your own numbers.
Box, cylinder, cone, sphere, hemisphere, pyramid, triangular prism and pipe, each size in its own units if you like.
A box is length × width × height: 10 ft by 8 ft by 4 ft is 320 cubic feet. A pyramid on the same base, the same height to its point, holds exactly a third of that box: 6 m by 6 m by 4 m is 144 ÷ 3 = 48 m³.
A cylinder is the area of its circle times its height: π × r² × h, where r is half the diameter. A tank 3 ft across and 4 ft tall is π × 1.5² × 4 = 28.27 cubic feet. A cone is a third of the cylinder around it. A pipe is the outer cylinder less the hole: π × (R² − r²) × length.
A sphere is 4/3 × π × r³, so a ball 12 in across (r = 6 in) holds 288π = 904.78 cubic inches. A hemisphere is half a sphere, 2/3 × π × r³.
Work out the triangle at the end, base × height ÷ 2, then multiply by the length. A gable 4 ft wide and 3 ft tall, 12 ft long, is 6 × 12 = 72 cubic feet.
A US gallon is 231 cubic inches, so a cubic foot holds 1,728 ÷ 231 = 7.48 US gallons. An imperial gallon, used in the UK, is 4.54609 liters, so a cubic foot holds 28.32 ÷ 4.54609 = 6.23 of them. A liter is a thousandth of a cubic meter.
Concrete, gravel and soil are sold by the cubic yard, 27 cubic feet. The concrete calculator adds bags and steps, the cubic yard calculator starts from an area and a depth, and the cubic feet calculator prices a box by the cubic foot.
Multiply the area of the shape's base by its height. A box is length × width × height, so 10 ft by 8 ft by 4 ft is 320 cubic feet. A cylinder's base is a circle, π × r², so a tank 3 ft across and 4 ft tall is π × 1.5² × 4 = 28.27 cubic feet.
Halve the diameter to get the radius, square it, multiply by π (3.14159) and then by the height. A cylinder 3 ft across and 4 ft tall is 3.14159 × 1.5 × 1.5 × 4 = 28.27 cubic feet, which holds 211.51 US gallons.
A US gallon is 231 cubic inches exactly and a cubic foot is 1,728 cubic inches, so a cubic foot holds 1,728 ÷ 231 = 7.48 US gallons. In imperial gallons, which are 4.54609 liters each, it holds 6.23.
Divide by 27, because a cubic yard is 3 ft × 3 ft × 3 ft = 27 cubic feet. 320 cubic feet is 320 ÷ 27 = 11.85 cubic yards.
A third of the cylinder or box that would fit around it. A cone is π × r² × h ÷ 3; a pyramid is length × width × height ÷ 3. A pyramid 6 m by 6 m at the base and 4 m tall is 48 m³.