Area Calculator
Area of 15 shapes with the formula, working steps, perimeter and the answer in ft², m², acres and more.
This volume calculator finds the volume of 14 shapes, from a box (length × width × height) to cylinders, cones, spheres, pyramids and a partly filled tank.
Volume of the box
320 ft³
V = l × w × h
The box has a volume of 320 ft³. That is 9,061.390909 liters, 2,393.766234 US gallons or 11.85185185 cubic yards.
| Unit | Volume |
|---|---|
| Cubic millimeters (mm³) | 9,061,390,909 |
| Cubic centimeters or milliliters (cm³ (mL)) | 9,061,390.909 |
| Liters (L) | 9,061.390909 |
| Cubic meters (m³) | 9.061390909 |
| Cubic inches (in³) | 552,960 |
| Cubic feet (ft³) | 320 |
| Cubic yards (yd³) | 11.85185185 |
| US fluid ounces (fl oz) | 306,402.0779 |
| US gallons (gal) | 2,393.766234 |
| UK (imperial) gallons (UK gal) | 1,993.227347 |
Area of the base
The base is a rectangle, length times width.
Multiply by the height
Stacking that base up to the height fills the box.
Surface area
Convert to liters and gallons
1 ft³ = 28.31684659 L, because the length factor is cubed. So 320 ft³ = 9,061.390909 L. One US gallon is exactly 3.785411784 L, which gives 2,393.766234 gal.
For a box V = l × w × h; for a cylinder V = πr²h. Each result shows the working, the surface area and the volume in cubic feet, liters, gallons and seven more units, and it can solve backward for a missing dimension.
Prisms and cylinders: base area × height
Plain-text formula: V_box = l × w × h, V_cube = s^3, V_cylinder = πr^2 h, V_triangular prism = 1/2 b h L
Any shape with the same cross-section all the way through has a volume equal to the area of that cross-section times its length or height.
Cones and pyramids: one third of base × height
Plain-text formula: V_cone = (1/3)πr^2 h, V_pyramid = 1/3 l w h, V_frustum = (1/3)πh(R^2 + Rr + r^2)
A shape that tapers to a point holds exactly a third of the prism or cylinder with the same base and height. A frustum is a cone with its tip cut off, measured with the bottom radius R and top radius r.
Spheres, hemispheres, caps and ellipsoids
Plain-text formula: V_sphere = (4/3)πr^3, V_cap = (1/3)πh^2(3R − h), V_ellipsoid = (4/3)πabc = (π/6)LWH
A hemisphere is half a sphere, ⅔πr³. A cap is the slice of a sphere of radius R cut off at height h. An ellipsoid is a sphere stretched along three axes; with full lengths L, W and H the formula becomes π/6 × L × W × H, about 0.5236 × L × W × H.
Liquid in a horizontal cylinder tank
Plain-text formula: V = L[r^2 arccos (r − d)/r − (r − d)√(2rd − d^2)]
The liquid’s cross-section is a circular segment of depth d. Its area times the tank length L is the volume. Because the tank is round, half the depth does not mean a quarter or a half of the volume except at exactly half full.
Volume is always in cubic units. A box measured in feet has a volume in cubic feet (ft³), and one in centimeters has a volume in cm³, which is the same as milliliters. Converting volume needs the length factor cubed: 1 ft = 0.3048 m, but 1 ft³ = 0.3048³ = 0.028316846592 m³, or 28.32 liters.
Liters (litres) are the same unit worldwide, but gallons depend on the country. The calculator gives US gallons (exactly 3.785411784 L, or 231 in³) and UK gallons (exactly 4.54609 L) separately. For concrete, gravel, soil and mulch sold by the cubic yard, measure in feet and read the cubic yards line.
Round shapes show an exact answer as a multiple of π, such as 90π for a cylinder of radius 3 and height 10, beside the decimal 282.7433388. Decimals are shown to 10 significant digits, far more than a tape measure justifies, so round the answer to match your measurements.
Each row is a result from the calculator above. Lengths can be in any unit; the volume is in that unit cubed.
| Shape | Formula | Example | Volume |
|---|---|---|---|
| Rectangular box | V = l × w × h | l = 10, w = 8, h = 4 | 320 |
| Cube | V = s³ | s = 3 | 27 |
| Cylinder | V = πr²h | r = 3, h = 10 | 90π ≈ 282.7433388 |
| Cone | V = ⅓πr²h | r = 3, h = 10 | 30π ≈ 94.24777961 |
| Sphere | V = 4⁄3 πr³ | r = 5 | 500π/3 ≈ 523.5987756 |
| Hemisphere | V = 2⁄3 πr³ | r = 5 | 250π/3 ≈ 261.7993878 |
| Pyramid | V = ⅓ lwh | l = 6, w = 6, h = 9 | 108 |
| Triangular prism | V = ½ bhL | b = 4, h = 3, L = 10 | 60 |
| Frustum | V = ⅓πh(R² + Rr + r²) | R = 5, r = 3, h = 8 | 392π/3 ≈ 410.5014401 |
| Capsule | V = πr²(4⁄3 r + a) | r = 2, a = 6 | 104π/3 ≈ 108.9085453 |
| Ellipsoid | V = π⁄6 × L × W × H | L = 4, W = 3, H = 2 | 4π ≈ 12.56637061 |
| Spherical cap | V = ⅓πh²(3R − h) | R = 5, h = 2 | 52π/3 ≈ 54.45427266 |
| Tube (wall) | V = π(R² − r²)h | R = 2, r = 1.5, h = 10 | 17.5π ≈ 54.97787144 |
| Horizontal tank, partly full | Segment area × L | r = 2, L = 10, d = 1 | 24.56739397 (19.55% full) |
Measure the length, width and height in the same unit and multiply them. A box 10 ft long, 8 ft wide and 4 ft high holds ft³. If one side is in inches, divide it by 12 first, or type it as 4" with feet selected and the calculator converts it.
To turn cubic feet into US gallons, multiply by 7.480519481 (one cubic foot holds 1,728 in³, and a US gallon is 231 in³). So 320 ft³ is 2,393.766 gallons. For liters, multiply cubic feet by 28.31684659, or cubic centimeters by 0.001. The volume unit converter covers other pairs, such as cubic feet to cubic meters and liters to gallons.
For a shape that is not on the list, split it into pieces that are, find each volume and add them. Subtract any hollow part. An irregular solid object can also be measured by water displacement: the rise in water level in a container, times the container’s base area, is the object’s volume.
| From | To | Multiply by |
|---|---|---|
| Cubic feet (ft³) | US gallons | 7.480519481 |
| Cubic feet (ft³) | Liters (L) | 28.316846592 |
| Cubic meters (m³) | Liters (L) | 1,000 |
| Cubic meters (m³) | Cubic feet (ft³) | 35.31466672 |
| Cubic yards (yd³) | Cubic feet (ft³) | 27 |
| US gallons | Liters (L) | 3.785411784 |
| UK gallons | Liters (L) | 4.54609 |
| Liters (L) | US gallons | 0.2641720524 |
| Cubic inches (in³) | Milliliters (mL) | 16.387064 |
| Cubic centimeters (cm³) | Milliliters (mL) | 1 |
Materials are a box-shaped volume: the area to cover times the depth. Choose Rectangular box, enter the length and width in feet and the depth as inches (4" for a typical slab), and read the cubic yards. A 10 ft by 10 ft slab 4 in thick is ft³, or 1.234567901 yd³.
For a round slab or post hole, use Cylinder with the diameter and depth. For an L-shaped or curved area, find the area first with the area calculator, then multiply by the depth in the same unit.
For a semicircular bed, use Cylinder and halve the result; for a triangular bed, use Triangular prism with the depth as the length. To estimate weight, multiply the volume by the material’s density: topsoil and gravel are often quoted at roughly 1.1 to 1.7 tonnes per cubic meter, but the supplier’s figure for your material is the one to use. The density converter switches between kg/m³ and lb/ft³.
Suppliers sell by whole or half cubic yards, and some material is lost to uneven ground, spillage and settling, so order a little more than the calculated volume. How much extra depends on the job, so follow the supplier’s guidance.
Switch to A missing dimension, choose the shape, type the volume in any unit, and enter the other measurements. The calculator rearranges the formula and shows the algebra. A can 8 cm wide that holds 1 liter must be cm tall.
For a horizontal tank, enter the volume to get the liquid depth that gives it, which is how dipstick charts are made. For a spherical cap, the formula is a cubic in the height, so the calculator solves it numerically to full precision.
An above-ground pool is 24 ft across and filled to a depth of 4 ft. How many cubic feet, US gallons and liters of water does it hold?
Answer: The pool holds about 1,810 ft³ of water, which is about 13,536 US gallons or 51,241 liters.
Use the formula for the shape. A box is length × width × height, a cylinder is πr²h, a cone or pyramid is one third of base area × height, and a sphere is 4⁄3πr³. A box 10 × 8 × 4 ft has a volume of 320 cubic feet.
Convert all three measurements to feet, then multiply them. A box 6 ft by 4 ft by 18 in is 6 × 4 × 1.5 = 36 ft³. With feet selected, you can type the 18 in as 18" and the calculator converts it.
Multiply cubic feet by 7.480519481 for US gallons or by 28.31684659 for liters. For metric, 1 m³ = 1,000 L and 1 cm³ = 1 mL. The calculator shows liters and gallons for every result, and the gallons to liters converter handles any other value.
Multiply length × width × depth in feet and divide by 27. A 10 × 10 ft slab 4 in thick is 10 × 10 × 0.3333 = 33.33 ft³, or 1.23 yd³. Order a little more than that to allow for uneven ground and spillage.
A cylinder is V = πr²h. A cone with the same radius and height holds exactly a third of that, V = ⅓πr²h. With r = 3 and h = 10, the cylinder is 90π ≈ 282.74 and the cone is 30π ≈ 94.25.
Rearrange the formula: for a cylinder, h = V ÷ (πr²) and r = √(V ÷ (πh)). Choose A missing dimension above to do this for any of the 14 shapes, with the volume in liters, gallons or cubic units.
Measure the liquid depth d, the tank radius r and the length L. The volume is L × [r² arccos((r − d)/r) − (r − d)√(2rd − d²)]. Choose Horizontal cylinder tank: a tank 4 ft across and 10 ft long with 1 ft of liquid holds 24.57 ft³, which is only 19.55% of its capacity even though it is a quarter of the way up.
Organ and lesion volumes on ultrasound, CT and MRI are commonly estimated as an ellipsoid: V = π/6 × length × width × height, about 0.52 × L × W × H. Choose Ellipsoid with full lengths in cm to get cm³ (mL). It is a geometric estimate; clinical decisions belong to the reporting clinician.
Volume is the space inside a solid, in cubic units such as ft³ or liters. Surface area is the total area of its outside, in square units such as ft². A 3 ft cube has a volume of 27 ft³ and a surface area of 54 ft². The calculator shows both.
The arithmetic is done in double precision, about 15 to 16 significant digits, and shown to 10. Unit factors are the exact legal definitions, such as 1 in = 2.54 cm and 1 US gallon = 231 in³. In practice your measurements set the accuracy, not the calculation.
Area of 15 shapes with the formula, working steps, perimeter and the answer in ft², m², acres and more.
Convert between units in 40 categories with exact factors, formulas and tables.
Missing side, angles and area of a right triangle, with steps, triples and feet-and-inches input.
Type or tap expressions with exact fractions, memory, variables, constants and complex mode.
Solve any triangle from SSS, SAS, ASA, AAS or SSA, with law of sines and cosines steps and the ambiguous case.
Results are calculated in your browser with methods checked by automated tests, and are intended for learning and general use. For engineering, medical, financial, legal or safety-critical decisions, verify important values independently and follow the rounding rules your work requires. How accurate are these results?