Volume formulas
| Shape | Formula | Example |
|---|---|---|
| Box (rectangular prism) | V = l × w × h | 4 × 3 × 2 ft = 24 ft³ |
| Cube | V = a³ | 3³ ft = 27 ft³ |
| Cylinder | V = π × r² × h | r 1 ft, h 5 ft = 15.71 ft³ |
| Sphere | V = 4/3 × π × r³ | r 1 ft = 4.19 ft³ |
| Hemisphere | V = 2/3 × π × r³ | r 1 ft = 2.09 ft³ |
| Cone | V = 1/3 × π × r² × h | r 1 ft, h 3 ft = 3.14 ft³ |
| Rectangular pyramid | V = 1/3 × l × w × h | 3 × 3 base, h 4 ft = 12 ft³ |
r is the radius — half the diameter. All dimensions must be in the same unit; the calculator converts for you.
How to calculate volume step by step
- Pick the shape that matches your object, or split it into simple shapes.
- Measure every dimension in the same unit.
- Apply the formula from the table above.
- Convert the result if needed: 1 ft³ = 1,728 in³ = 7.48 US gallons = 28.32 liters.
Volume unit conversions
| 1 unit | Cubic feet | Liters | US gallons |
|---|---|---|---|
| 1 cubic inch | 0.000579 | 0.0164 | 0.00433 |
| 1 cubic foot | 1 | 28.32 | 7.48 |
| 1 cubic yard | 27 | 764.6 | 202 |
| 1 cubic meter | 35.31 | 1,000 | 264.2 |
| 1 US gallon | 0.134 | 3.785 | 1 |
Measuring a room, box or shipment? The cubic feet calculator is set up for that. For pipes and round containers use the cylinder volume calculator, and for gallons in a water, fuel or fish tank the tank volume calculator.
Frequently asked questions
How do you calculate volume?
Volume is the space inside a 3D shape. For a box, multiply length × width × height. For round shapes you need π: a cylinder is π × radius² × height and a sphere is 4/3 × π × radius³. Use the same unit for every dimension — the answer is in that unit cubed.
How do you find the volume of a cube?
Cube the side length: side × side × side. A cube with 3-foot sides holds 3 × 3 × 3 = 27 cubic feet, which is exactly one cubic yard.
How do you calculate the volume of a sphere?
V = 4/3 × π × r³, where r is the radius (half the diameter). A ball 2 feet across has a radius of 1 ft and a volume of 4/3 × 3.1416 × 1 ≈ 4.19 cubic feet. A hemisphere (half a sphere) is half that: 2/3 × π × r³.
What is the volume of a cone or pyramid?
Both are one third of the matching prism: a cone is 1/3 × π × r² × h and a rectangular pyramid is 1/3 × length × width × height. A cone 2 ft across and 3 ft tall holds π ≈ 3.14 cubic feet.
How do you calculate mass from density and volume?
Mass = density × volume. Water has a density of about 1,000 kg/m³ (62.4 lb/ft³), so 2 m³ of water weighs about 2,000 kg. Make sure the volume unit matches the density unit before multiplying.
What is the difference between volume and capacity?
Volume is the space a shape takes up, usually in cubic units (ft³, m³). Capacity is how much liquid a container holds, usually in gallons or liters. They measure the same thing: 1 ft³ holds 7.48 US gallons and 1 m³ holds 1,000 liters.