Skip to content
QueenNexa

Free tool

Volume Calculator

Find the volume and surface area of a box, cylinder, sphere, cone or pyramid in cubic feet, yards, meters, liters and gallons. Mix units freely.

Volume (cubic feet)
–
Cubic yards
–
Cubic meters
–
Cubic inches
–
Liters
–
US gallons
–
Total surface area (square feet)
–
Total surface area (square meters)
–

The working

    Assumptions and limits

    Every figure comes from the numbers you enter. Where a rule of thumb is used, it is labeled as one.

    • Formulas: box = l × w × h; cylinder = π × r² × h; cone = ⅓ × π × r² × h; sphere = 4⁄3 × π × r³; pyramid = ⅓ × l × w × h with a rectangular base and the tip above the center.
    • Every length is converted exactly to feet first (1 in = 1/12 ft, 1 yd = 3 ft, 1 m = 1 ÷ 0.3048 ft, 1 cm = 1 ÷ 30.48 ft). Then 1 cubic yard = 27 cubic feet and 1 cubic foot = 28.316846592 liters.
    • A US gallon is exactly 231 cubic inches. Imperial (UK) gallons are not shown.
    • Surface area includes every face: both ends of a cylinder, the base of a cone and pyramid, and the sloped sides. The cone and pyramid use the slant height found from the right triangle with the height.
    • Shapes are solid, with perfectly straight, even sides. Wall thickness, tapering and uneven ground are not modeled, and the result is only as exact as your measurements.

    Runs entirely in your browser. Nothing you type or upload is sent to our servers.

    How to calculate volume

    Volume measures the space a solid takes up, in cubic units. Every common shape follows the same idea: find the area of its base, then multiply by the height, with a factor of one third for shapes that come to a point. A box has a rectangular base, a cylinder a circle, and a cone or pyramid is exactly one third of the matching cylinder or box with the same base and height.

    • Box: length × width × height.
    • Cylinder: π × radius² × height.
    • Cone: ⅓ × π × radius² × height.
    • Sphere: 4⁄3 × π × radius³.
    • Pyramid: ⅓ × base length × base width × height.

    Worked example 1: a storage box

    A box measures 6 feet long, 4 feet wide and 3 feet high.

    1. Volume: 6 × 4 × 3 = 72 cubic feet.
    2. Cubic yards: 72 ÷ 27 = 2.67.
    3. Cubic inches: 72 × 1,728 = 124,416, and in US gallons that is 124,416 ÷ 231 = 538.6.
    4. Surface area: 2 × (6 × 4 + 6 × 3 + 4 × 3) = 2 × 54 = 108 square feet.

    Worked example 2: a round water tank

    An upright cylindrical tank has a radius of 2 feet and is 5 feet tall.

    1. Base area: π × 2² = 12.566 square feet.
    2. Volume: 12.566 × 5 = 62.83 cubic feet.
    3. Liters: 62.83 × 28.3168 = 1,779 liters.
    4. US gallons: 62.83 × 1,728 ÷ 231 = 470 gallons.

    If you had measured the width across the tank, 4 feet, choose "diameter" and the calculator halves it to the same 2-foot radius. Choose the cylinder and the numbers above appear as the starting values.

    Tips

    • Measure inside dimensions for a container and outside dimensions for the space an object takes up.
    • Convert only at the end, or let the unit menus do it. Rounding a radius early can shift a squared or cubed result noticeably.
    • Check the result against a rough estimate: a cone should be well under the box that would fit around it.

    Related calculators

    For a flat area such as a room or patio, use the Square Footage Calculator. If the volume is concrete for a slab, footing, column or steps, the Concrete Calculator adds a waste allowance and bag counts. Need to move between metric and US units for a single value? Try the Unit Converter, and for scaling a design by a factor the Ratio Calculator helps.

    Frequently asked questions

    How do I calculate volume?

    Volume is the amount of space inside a solid. For a box, multiply length × width × height. For a cylinder, multiply the circle area, π × radius², by the height. Use the same unit for every measurement, and the answer is in cubic units of that kind. A box 6 ft by 4 ft by 3 ft holds 72 cubic feet.

    What is the volume formula for each shape?

    Box: length × width × height. Cylinder: π × r² × height. Cone: one third of π × r² × height. Sphere: four thirds × π × r³. Pyramid with a rectangular base: one third of length × width × height. Here r is the radius, which is half the diameter, and all of these assume a solid with straight, even sides.

    How do I convert cubic feet to gallons or liters?

    One US gallon is exactly 231 cubic inches, which is 0.13368 cubic feet, so multiply cubic feet by 7.4805 for US gallons. One cubic foot is 28.3168 liters. A 62.83 cubic foot cylinder therefore holds about 470 US gallons or 1,779 liters. This calculator shows all of these units next to each other.

    Do I use the radius or the diameter?

    The formulas use the radius, which is half the distance across. If you measured across the full width, choose diameter in the selector and the calculator halves it for you. Mixing them up is the most common error, and because the radius is squared in a cylinder, using the diameter by mistake makes the result four times too large.

    Can I mix units, such as feet and inches?

    Yes. Every measurement has its own unit menu, so you can enter a length in meters, a width in feet and a height in centimeters. Each one is converted exactly to feet before the volume is worked out, and the answer is shown in cubic feet, cubic yards, cubic meters, cubic inches, liters and US gallons.

    How is this different from the square footage and concrete calculators?

    The Square Footage Calculator finds flat area and the Concrete Calculator adds waste and bag counts for pours. This one is for general solids such as tanks, boxes, pipes and spheres, and it also gives the surface area. Use it to size a container or compare shapes, and use the others for flooring or a slab.

    Does it account for wall thickness or a partly filled tank?

    No. It calculates the full volume of the outer shape you enter. For the space inside a tank, measure the inside dimensions. For a partly filled tank, find the full volume and multiply by the fill fraction when the sides are straight, as with a box or an upright cylinder. Sloped or rounded ends need a more specific formula.

    Link to this tool

    Found it useful? Copy a link for your page, newsletter or documentation.

    Get new tools and guides by email

    Optional. The tool above works without signing up.

    One email every Tuesday. Free, and you can unsubscribe in one click.

    More free tools

    Browse all everyday calculators or the full list of free tools.