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.
- Volume: 6 × 4 × 3 = 72 cubic feet.
- Cubic yards: 72 ÷ 27 = 2.67.
- Cubic inches: 72 × 1,728 = 124,416, and in US gallons that is 124,416 ÷ 231 = 538.6.
- 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.
- Base area: π × 2² = 12.566 square feet.
- Volume: 12.566 × 5 = 62.83 cubic feet.
- Liters: 62.83 × 28.3168 = 1,779 liters.
- 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.
More free tools
Browse all everyday calculators or the full list of free tools.
- Roman Numeral ConverterConvert numbers from 1 to 3,999 to Roman numerals and Roman numerals back to numbers, with the steps shown and a check for non-standard spellings.
- Coin Flip, Dice Roller & Random PickerFlip a coin online with your browser's cryptographic random generator, flip many at once, roll dice or pick a name from a list. Fair 50/50, no sign-up.
- Grade CalculatorCalculate your weighted course grade from category weights and scores, and find the score you need on the final exam to reach the grade you want.
- Electricity Cost CalculatorWork out what an appliance costs to run per day, month and year from its watts, hours of use and the rate on your own bill. No assumed rates.
- Username GeneratorGenerate username ideas from built-in word lists in four themes, with optional numbers, length limits and styles. No AI or account, and nothing is sent anywhere.
- Binary, Decimal & Hex Converter with Number to WordsConvert whole numbers between binary, octal, decimal and hexadecimal exactly, even for very large values, and spell any number out in words.