Skip to content
CalculatPage

Volume Calculator

Find the volume of common 3D shapes and see conversions to cubic yards and gallons when working in feet.

Updated November 2026 · How we build calculators

Optional. Use 50 for a half-full tank.

Result

Your result will appear here

Enter your numbers, then press Calculate.

How the Volume Calculator works

Each shape has a standard formula, multiplying a base area by height where applicable. When your unit is feet, the result is also shown in cubic yards (÷ 27) and gallons (× 7.48).

Formula used

Box = l × w × h

Cylinder = πr²h

Sphere = 4/3 × πr³

Cone = ⅓πr²h

Pyramid = ⅓ × l × w × h

Step-by-step example

Using the default values in the calculator above:

  1. Shape: Rectangular box
  2. Length / radius / side: 10
  3. Width: 6
  4. Height: 4
  5. Unit: feet
  6. Number of identical shapes: 1
  7. Fill level (for tanks and containers): 100 %

The calculator then applies the formula above and returns:

  • Volume: 240 ft³
  • Cubic yards: 8.8888889
  • US gallons: 1,795.3248

Notes on the inputs

Fill level (for tanks and containers)
Optional. Use 50 for a half-full tank.

What-if scenarios

Each table changes one input and keeps everything else at the calculator's default values.

If you change “Length / radius / side”
Length / radius / sideVolume
5120 ft³
7.5180 ft³
10 (default)240 ft³
15360 ft³
20480 ft³
If you change “Width”
WidthVolume
3120 ft³
4.5180 ft³
6 (default)240 ft³
9360 ft³
12480 ft³

Tips and background

Use this for tanks, pools, planters and shipping boxes. For concrete or soil, see the cubic yard calculator.

Common volume formulas

Box: length × width × height. Cylinder: π × r² × h. Sphere: 4/3 × π × r³. Cone and pyramid: one third of the base area times height. A tank 4 ft across and 3 ft tall holds about 37.7 cubic feet, roughly 282 gallons.

Partially filled tanks and conversions

Use the fill-level field for a half-full tank or container, and the calculator converts to cubic feet, cubic yards, liters and US gallons (7.48 gallons per cubic foot). For landscaping and concrete see the cubic yard calculator, and for 2D basics the area calculator.

What do typical containers hold?

Shape in feetVolumeUS gallons
Box 4 × 2 × 216 cu ftabout 120
Cylinder, radius 2, height 3about 37.7 cu ftabout 282
Cone, radius 2, height 3about 12.57 cu ftabout 94
Sphere, radius 3about 113.1 cu ftabout 846

The cone holds one third as much as the cylinder with the same radius and height.

How do inside size and fill level affect the answer?

Use inside measurements for what a container holds, because walls take up space. Enter the radius for round shapes, not the diameter. The fill level applies a straight percentage to the full volume. That is right for upright containers with the same cross-section all the way up, but the depth of liquid in a sphere, cone or sideways cylinder does not match the same percentage of its volume. Water is heavy, so check that a floor or stand can support a filled tank.

Common mistakes to avoid with the Volume Calculator

  • Using diameter instead of radius for circles and cylinders.
  • Mixing units like inches and feet.
  • Forgetting that cones and pyramids are only one third of the matching box or cylinder.

Frequently asked questions

How do I convert cubic feet to gallons?

Multiply by 7.48.

What is the volume of a cone relative to a cylinder?

One third, if base and height are equal.

What units does volume use?

Cubic units such as ft³, in³ or m³.

How many gallons are in a cubic foot?

About 7.48 US gallons.

How do I find the volume of a cylinder?

π × radius squared × height.

What is the volume of a sphere with radius 3?

About 113.1 cubic units.