Skip to content
Building / DIY

Volume Calculator

Volume calculator. Choose a shape, enter its dimensions in inches, feet, centimeters, or meters, and get the volume instantly. Results convert to cubic feet, cubic meters, liters, and US gallons, and each shape shows its formula. Handy for tanks, planters, boxes, and homework.

Every dimension uses the unit you pick.

One unit for all inputs. Results convert the rest.

Volume

Volume (ft³)
8 ft³
Cubic feet
8 ft³
Cubic meters
0.226535 m³
Liters
226.53477 L
US gallons
59.84416 US gal

V = s³

V = s³ = 2³ = 8 ft³

One cubic foot is 7.48052 US gallons, and one cubic meter is 1,000 liters. The math stays in your browser.

How to use

  1. Choose a cube, rectangular box, cylinder, sphere, cone, square pyramid, or rectangular pyramid.
  2. Pick one unit for every dimension: inches, feet, yards, centimeters, or meters.
  3. Enter the side, radius, base, and height the shape asks for. Every input has to be greater than zero.
  4. Read the volume in that cubic unit, plus cubic feet, cubic meters, liters, US gallons, and the formula.

Formula

Cube: V = s³. Rectangular box: V = l × w × h. Cylinder: V = π × r² × h. Sphere: V = 4/3 × π × r³. Cone: V = 1/3 × π × r² × h. Square pyramid: V = 1/3 × a² × h. Rectangular pyramid: V = 1/3 × l × w × h. Results use Math.PI. One cubic foot is 7.48052 US gallons, and one cubic meter is 1,000 liters.

Example. A cube with a 2 ft side has volume 2³ = 8 ft³. A 2 × 3 × 4 in box is 24 in³. A cylinder with radius 1 ft and height 2 ft is π × 1² × 2 = 6.2831853 ft³ (about 6.2832).

Example. A sphere of radius 3 is 4/3 × π × 3³ = 113.09734 (about 113.097). A cone with radius 2 and height 3 is 1/3 × π × 2² × 3 = 12.566371 (about 12.566).

Frequently asked questions

How do you calculate volume?

Volume depends on the shape. A box is length x width x height, a cylinder is pi x r^2 x h, and a sphere is 4/3 x pi x r^3.

How do I find the volume of a cylinder in gallons?

Compute pi x r^2 x h in cubic inches and divide by 231, or in cubic feet and multiply by 7.48.

What units can I use?

Enter inches, feet, yards, centimeters, or meters. Results show in cubic units, liters, and gallons.

How do I find the volume of a cone?

Volume = 1/3 x pi x r^2 x h, which is one third of a cylinder with the same base and height.

Can I mix units?

Pick one unit for all inputs; the tool converts the result into every output unit.