Calculator Tabs

Volume Calculator

Volume measures how much three-dimensional space a shape occupies — the number you need for capacity, material quantity, or shipping and storage calculations. This calculator handles five common solids: rectangular boxes, spheres, cylinders, cones, and square pyramids, each using its own formula, and converts the result into cubic yards, gallons, and liters automatically for practical use.

How the Volume Calculator Works

Select your shape, enter its dimensions, and the calculator applies the matching formula:

  • Rectangular box: length × width × height
  • Sphere: ⁴⁄₃ × π × radius³
  • Cylinder: π × radius² × height
  • Cone: ⅓ × π × radius² × height
  • Square pyramid: ⅓ × side² × height

Notice the pattern: a cone’s volume is exactly one-third of a cylinder with the same radius and height, and a pyramid’s volume is exactly one-third of the rectangular box (or prism) it fits inside. This ⅓ relationship isn’t a coincidence — any pointed shape that tapers to an apex has exactly one-third the volume of the equivalent shape with a flat top and the same base and height, a result provable through calculus but useful to simply remember as a pattern.

Volume vs. Surface Area: Don’t Confuse These Two

Volume measures what’s inside a shape — its capacity or the amount of material needed to fill it. Surface area measures the outside covering of that same shape — what you’d need to paint, wrap, or coat it. The same box can have a large volume relative to its surface area, or the reverse, depending entirely on its proportions — a fact that matters directly for packaging efficiency and heat retention. If your actual question is about the outer covering rather than the interior capacity, the Surface Area Calculator uses the same shape categories (excluding pyramids) but solves for the outside instead of the inside.

Practical Unit Conversions Built Into the Result

Raw cubic feet or cubic centimeters aren’t always the unit a project actually needs, which is why this calculator’s result includes automatic conversions: cubic yards (the standard unit for ordering concrete, mulch, or gravel by the truckload), US gallons (for tanks and liquid containers), and liters (for smaller containers or metric contexts). These conversions matter because ordering materials in the wrong unit — requesting cubic feet of concrete from a supplier who quotes by the cubic yard, for instance — is a common and costly mistake in real construction projects.

Concrete, Gravel, and Mulch: Volume in Cubic Yards

Several construction materials are priced and delivered by the cubic yard specifically because that’s the practical unit trucks and mixers are calibrated around. If your rectangular box calculation here is actually a concrete slab, footing, or column pour, the dedicated Concrete Calculator performs the same volume math but also adds a standard waste allowance and converts the result directly into 60 lb and 80 lb bag counts, which this general-purpose calculator doesn’t do. Similarly, if you’re calculating volume for landscaping material rather than concrete, the Gravel Calculator and Mulch Calculator apply the same rectangular volume formula but convert directly into tons or bag counts specific to those materials.

Spheres, Cylinders, and Tanks

Cylindrical and spherical volume calculations come up constantly for tanks, drums, and storage containers — knowing a tank’s capacity in gallons is essential before filling it with water, fuel, or any other liquid. This calculator’s automatic gallon conversion is particularly useful here, since tank capacity is almost always specified and sold in gallons or liters rather than raw cubic feet or cubic meters.

The Circle Underneath Every Cylinder and Cone

Both the cylinder and cone formulas depend entirely on radius, which means getting an accurate radius measurement is the single most important input for either calculation — since radius is squared in both formulas, a measurement error there has an outsized effect on the final volume compared to an equivalent error in height. If you only have a diameter, circumference, or area measurement rather than radius directly, convert it first using the Circle Calculator, which solves for radius from any of those starting points.

Pyramids: The One Shape That Doesn’t Appear in Surface Area

The square pyramid option here doesn’t have a direct counterpart in this site’s Surface Area Calculator, since pyramid surface area requires calculating the slant height of each triangular face separately — a more involved calculation than the volume formula, which only needs the base side length and the vertical height. If you need a pyramid’s surface area specifically, that calculation isn’t currently covered here and needs to be worked out using the slant height (found via the Pythagorean theorem from the pyramid’s height and half its base) applied to each triangular face individually.

Building Materials That Start from a Flat Area Instead

Not every project needs true volume — flooring, tiling, and similar flat-coverage jobs are area problems, not volume problems, since they don’t have a meaningful depth dimension to multiply in. If your actual project is a flat surface rather than a filled or poured 3D shape, the Area Calculator and Square Footage Calculator are the correct tools instead, and won’t require you to invent an artificial depth value just to force a volume calculation.

Fuel Tanks and Everyday Volume-to-Cost Conversions

Once you know a container’s volume in gallons, that figure often feeds directly into a cost calculation — filling a fuel tank, for instance, or estimating water usage. The Fuel Cost Calculator and Gas Mileage Calculator both take a volume in gallons as a direct input, picking up exactly where a tank capacity calculation like this one leaves off.

Frequently Asked Questions

Why is a cone’s volume exactly one-third of a cylinder’s?

Because a cone tapers to a single point while a cylinder maintains the same radius along its entire height. This one-third relationship holds true for any shape that narrows to an apex compared to the equivalent shape with a flat top and the same base and height — it’s a general geometric pattern, not something specific to cones alone.

What is the difference between volume and capacity?

They describe the same underlying concept, but capacity typically refers specifically to how much liquid or material a container can hold, usually expressed in gallons or liters, while volume is the more general geometric term, usually expressed in cubic units like cubic feet or cubic meters. This calculator computes volume and converts it into common capacity units automatically.

How do you convert cubic feet to gallons?

One cubic foot equals approximately 7.48 US gallons. This calculator performs that conversion automatically as part of its result, so you don’t need to apply the conversion factor manually.

Does volume change if I only change a shape’s height?

For a rectangular box, cylinder, cone, or pyramid, yes — height is a direct multiplier in every one of those formulas, so increasing height while holding other dimensions constant increases volume proportionally. For a sphere, there is no separate height input; volume depends entirely on radius.

Why does the square pyramid formula only use one side length instead of length and width?

Because this calculator assumes a pyramid with a square base, where all four base edges are equal in length, so only one side measurement is needed rather than two separate length and width values as a rectangular box requires.