Volume Calculator
This free online Volume Calculator computes the exact three-dimensional cubic volume and liquid capacity of 14 geometric solids—including rectangular boxes, rooms, cubes, cylinders, spheres, cones, pipes, and composite figures. Enter your measurements in metric or Imperial units (even mixed units) to get instant cubic results, gallon and liter conversions, dynamic diagrams, and step-by-step formulas.
Step-by-Step Formula & Substitution
What Is Volume? (Cubic Space vs. Area & Capacity)
Volume is the quantitative measure of the three-dimensional space enclosed within a closed boundary or occupied by a solid, liquid, or gas. While length measures distance in one dimension (such as meters or feet) and area measures flat surface coverage in two dimensions (square meters or square feet), every cubic volume measurement spans three perpendicular axes: length, width, and height.
Under the International System of Units (SI), the standard derived unit of volume is the cubic meter (m³), which represents the space inside a cube measuring 1 meter along every edge. For liquid and everyday container measurements, the liter (L)—defined as exactly one cubic decimeter (1 dm³ or 0.001 m³)—and the milliliter (mL), which equals exactly one cubic centimeter (1 cm³), are universally accepted alongside SI units, as documented in the National Institute of Standards and Technology (NIST) SI Volume Units Guide.
- Geometric Volume: The total three-dimensional space an object occupies based on its outer dimensions.
- Internal Capacity: The maximum usable interior space inside a hollow container, tank, box, or room, measured strictly from inside wall to inside wall.
- Mass / Weight: How much matter an object contains (kilograms or pounds). Volume never converts directly into weight unless you multiply by the substance’s density (Mass = Volume × Density).
How to Use the Online Volume Calculator
Designed as a fast, zero-error volume solver and volume measurement calculator, this tool handles both single geometric solids and multi-section composite structures directly in your browser:
- Choose Single Shape or Composite Mode: Stay on Single 3D Shape to compute one of 14 geometric solids, or switch to Composite Solid / Multi-Room to add or subtract up to eight distinct sections in one calculation.
- Select Your 3D Figure: Use the dropdown menu or quick-select pills to choose a rectangular box, room, cube, cylinder, pipe/tube, sphere, hemisphere, spherical cap, cone, conical frustum, triangular prism, pyramid, capsule, or ellipsoid.
- Enter Dimensions in Any Unit: Type decimal values (such as
12.5) or fractional measurements (such as3/4or2 1/2). Each input field has an independent unit selector (mm,cm,dm,m,in,ft,yd), allowing mixed-unit inputs like feet and inches without manual pre-conversion. - Toggle Radius, Diameter, or Wall Thickness (Optional): For circular solids, switch between Radius (r) and Diameter (d) depending on how you measured the object. For boxes, cubes, and cylinders, enable Internal Container Capacity to deduct uniform wall thickness.
- Review Instant Conversions & Formula Steps: Click Calculate Volume (or let live updates run automatically) to inspect the primary result, the 9-unit cubic and liquid conversion grid, the live SVG blueprint, and the step-by-step substitution breakdown.
Volume Formulas for All 14 3D Shapes
Every regular three-dimensional solid has an exact analytical volume equation. Most prisms and cylinders follow the universal extrusion principle—multiplying the two-dimensional base area (B) by perpendicular height (h)—whereas pointed solids (cones and pyramids) occupy exactly one-third the volume of a prism with the same base and height.
| 3D Geometric Shape | Mathematical Formula | Required Dimensions & Variables | Common Real-World Uses |
|---|---|---|---|
| Rectangular Prism (Box / Room) | V = l × w × h |
l = length, w = width, h = height |
Rooms, shipping cartons, aquariums, concrete slabs, storage units |
| Cube | V = a³ |
a = length of one edge |
Cubic containers, dice, modular storage blocks, material test cubes |
| Right Circular Cylinder | V = π × r² × h |
r = base radius (d ÷ 2), h = height |
Water tanks, drums, round columns, cans, circular discs |
| Hollow Cylinder (Pipe / Tube) | V = π × (R² − r²) × h |
R = outer radius, r = inner radius, h = length |
Pipe wall material, hollow concrete rings, bushings, sleeves |
| Sphere | V = (4/3) × π × r³ |
r = sphere radius (d ÷ 2) |
Spherical gas tanks, sports balls, bearings, globes |
| Hemisphere | V = (2/3) × π × r³ |
r = hemisphere radius (d ÷ 2) |
Geodesic domes, bowls, hemispherical tank end-caps |
| Spherical Cap | V = (1/3) × π × h² × (3R − h) |
R = parent sphere radius, h = cap height |
Shallow domes, contact lenses, partially filled spherical vessels |
| Right Circular Cone | V = (1/3) × π × r² × h |
r = base radius, h = perpendicular height |
Funnels, conical hoppers, sand/gravel stockpiles, cones |
| Conical Frustum | V = (1/3) × π × h × (R² + Rr + r²) |
R = bottom radius, r = top radius, h = height |
Buckets, tapered planters, cups, lampshades, tapered hoppers |
| Triangular Prism | V = 0.5 × b × h_t × l |
b = triangle base, h_t = triangle height, l = length |
Pitched attic roofs, wedge ramps, optical prisms, structural beams |
| Square Pyramid | V = (1/3) × a² × h |
a = base edge length, h = apex height |
Architectural roofs, monuments, square-base hoppers |
| Rectangular Pyramid | V = (1/3) × l × w × h |
l = base length, w = base width, h = apex height |
Hip roofs, tapered architectural spires, rectangular funnels |
| Capsule (Spherocylinder) | V = π × r² × (h + (4/3)r) |
r = radius, h = cylindrical midsection length |
Propane tanks, pharmaceutical capsules, pressurized vessels |
| Ellipsoid | V = (4/3) × π × a × b × c |
a, b, c = three perpendicular semi-axes |
Oval tanks, rugby balls, astronomical & biomedical modeling |
2D vs. 3D Geometry: Clarifying “Rectangle”, “Circle” & “Square” Volume Queries
In everyday search queries, people frequently look for a rectangle volume calculator, volume of a circle calculator, square volume calculator, or cubic area calculator. Strictly speaking in Euclidean geometry, flat two-dimensional figures have area (cm², ft²), not volume, because their thickness is zero. When someone asks how to calculate the volume of a 2D shape, they are almost always measuring a 3D extrusion of that shape:
- “Volume of a Rectangle” → Rectangular Prism / Box: Adding a third dimension (height or depth) to a rectangle creates a rectangular cuboid (V = l × w × h). Use the Rectangular Prism / Box / Room option in our calculator.
- “Volume of a Square” → Cube or Square Slab: Extruding a square (a × a) by an equal height (a) produces a cube (V = a³). If the height differs from the base width (such as a square patio slab), use Rectangular Prism with l = w.
- “Volume of a Circle” → Cylinder, Disc, or Sphere: Extending a flat circle (Area = πr²) along a height or thickness creates a cylinder or disc (V = πr²h). Rotating a circle in 3D space around its diameter forms a sphere (V = (4/3)πr³).
- “Cubic Area” / “Area Volume”: “Cubic area” is an informal term for cubic volume—specifically, taking a known floor or surface area (A) and multiplying by depth or height (V = A × h).
Volume Measurement Units & Conversion Tables
Because cubic units scale by the third power of linear conversion factors, small linear differences create large cubic differences. For example, while 1 foot = 12 inches, one cubic foot equals 12 × 12 × 12 = 1,728 cubic inches. Similarly, 1 yard = 3 feet, so 1 cubic yard = 3 × 3 × 3 = 27 cubic feet.
| Starting Unit | Cubic Centimeters (cm³ / mL) | Liters (L) | Cubic Meters (m³) | Cubic Feet (ft³) | US Liquid Gallons | UK Imperial Gallons |
|---|---|---|---|---|---|---|
| 1 Cubic Centimeter (cm³) | 1 (exact) | 0.001 | 0.000001 | 0.000035315 | 0.00026417 | 0.00021997 |
| 1 Liter (L) | 1,000 (exact) | 1 (exact) | 0.001 (exact) | 0.0353147 | 0.264172 | 0.219969 |
| 1 Cubic Inch (in³) | 16.387064 (exact) | 0.0163871 | 0.000016387 | 0.000578704 | 0.0043290 | 0.00360465 |
| 1 US Liquid Gallon | 3,785.411784 (exact) | 3.785412 | 0.00378541 | 0.133681 | 1 (exact) | 0.832674 |
| 1 UK Imperial Gallon | 4,546.09 (exact) | 4.54609 (exact) | 0.00454609 | 0.160544 | 1.20095 | 1 (exact) |
| 1 Cubic Foot (ft³) | 28,316.8466 | 28.31685 | 0.0283168 | 1 (exact) | 7.480519 | 6.228835 |
| 1 Cubic Yard (yd³) | 764,554.858 | 764.5549 | 0.764555 | 27 (exact) | 201.9740 | 168.1786 |
| 1 Cubic Meter (m³) | 1,000,000 (exact) | 1,000 (exact) | 1 (exact) | 35.314667 | 264.17205 | 219.96925 |
Step-by-Step Worked Calculation Examples
Review these verified practical examples to see how dimensional normalization and formula substitution work across common household, shipping, and engineering tasks.
Example 1: Room Volume for HVAC Sizing
Scenario: A bedroom measures 12 ft long, 10 ft 6 in wide, with an 8 ft ceiling.
Step 1: Convert 10 ft 6 in to feet: 10 + (6 ÷ 12) = 10.5 ft.
Step 2: Apply V = l × w × h = 12 × 10.5 × 8 = 1,008 ft³ (28.54 m³).
Example 2: Shipping Carton in cm³ & Liters
Scenario: A rectangular export carton has internal dimensions of 60 cm × 40 cm × 35 cm.
Step 1: Multiply dimensions: 60 × 40 × 35 = 84,000 cm³.
Step 2: Divide by 1,000 to find liter capacity: 84,000 ÷ 1,000 = 84 L (0.084 m³ or 2.966 ft³).
Example 3: Cylindrical Water Tank in Gallons
Scenario: A vertical storage tank has an inner diameter of 4 ft and a height of 5 ft.
Step 1: Halve the diameter to find radius: r = 4 ÷ 2 = 2 ft.
Step 2: Calculate cubic feet: V = π × 2² × 5 = 20π ≈ 62.8319 ft³.
Step 3: Convert to US gallons: 62.8319 × 7.48052 ≈ 470.02 US gal (1,779.2 L).
Example 4: Insulated Cooler Internal Capacity
Scenario: An insulated box has outer dimensions 24 in × 16 in × 14 in and 1.5 in thick walls on all 6 sides.
Step 1: Subtract 2 × 1.5 = 3 in from each axis: 21 in × 13 in × 11 in.
Step 2: Compute inner volume: 21 × 13 × 11 = 3,003 in³ = 1.7378 ft³ ≈ 49.21 L (13.00 US gal).
Visual Scale Guide: What 1 to 1,000 Cubic Feet Look Like
Abstract cubic measurements are easier to estimate when compared with familiar rooms, appliances, and moving containers. Use the benchmark table below to visualize standard cubic foot volumes.
| Volume (ft³) | Equivalent Box Dimensions | Metric & Liquid Equivalent | Real-World Visual Comparison |
|---|---|---|---|
| 1 ft³ | 12 in × 12 in × 12 in (1 × 1 × 1 ft) | 28.32 L · 7.48 US gal | A standard milk crate, a microwave interior, or one small book moving box |
| 10 ft³ | 2 ft × 2.5 ft × 2 ft (24 × 30 × 24 in) | 283.17 L · 74.81 US gal | An apartment-sized compact refrigerator or 6–7 medium moving boxes |
| 20 ft³ | 4 ft × 2.5 ft × 2 ft (48 × 30 × 24 in) | 566.34 L · 149.61 US gal | A full-size kitchen refrigerator-freezer or a midsize sedan cargo area |
| 100 ft³ | 5 ft × 2.5 ft × 8 ft (or 3.54 × 3.54 × 8 ft) | 2.83 m³ · 2,831.68 L | A small walk-in closet or compact pantry holding ~25–30 moving boxes |
| 125 ft³ | 5 ft × 5 ft × 5 ft (5-foot cube) | 3.54 m³ · 935.06 US gal | A 5 × 5 ft storage locker filled to 5 ft high (half of a 5 × 10 unit) |
| 800 ft³ | 10 ft × 10 ft × 8 ft | 22.65 m³ · 5,984.42 US gal | A standard 10 × 10 ft bedroom with an 8-foot ceiling |
| 1,000 ft³ | 10 ft × 10 ft × 10 ft (10-foot cube) | 28.32 m³ · 7,480.52 US gal | A 10 × 10 ft room with a 10-foot ceiling, or ~37 cubic yards of soil |
Composite Solids & Irregular Object Volume
Real-world rooms, buildings, and mechanical parts rarely consist of a single textbook prism. When you need to find the volume of a composite solid—such as an L-shaped living room, a house with a pitched triangular attic, or a machined block with a drilled hole—decompose the object into basic geometric primitives:
- Additive Decomposition: Split an L-shaped or T-shaped room into two non-overlapping rectangular prisms, compute each section’s volume, and add them together (Vtotal = V1 + V2).
- Subtractive Decomposition: Compute the gross outer volume of a solid block, then subtract the volume of any cutout, recess, or bore hole (Vnet = Vouter − Vcutout). You can perform both additive and subtractive operations directly using our calculator’s Composite Solid / Multi-Room tab.
- Water Displacement (Archimedes’ Principle): For completely irregular, non-geometric solids (such as stones, sculptures, or organic parts) that do not dissolve in or absorb water, submerge the object fully in a graduated vessel. The rise in fluid level (ΔV = Vfinal − Vinitial) equals the object’s exact volume.
How to Calculate Volume in Excel & Google Sheets
If you are managing inventory manifests, freight CBM (cubic meter) logs, or construction takeoffs in a spreadsheet, you can automate volume calculations using standard Excel and Google Sheets formulas (assuming dimensions are stored in cells A2, B2, and C2 in the same unit):
- Rectangular Box / Room (l × w × h):
=A2*B2*C2
- Cube (a³):
=A2^3
- Cylinder (πr²h, where
A2= radius,B2= height):=PI()*(A2^2)*B2 - Sphere ((4/3)πr³, where
A2= radius):=(4/3)*PI()*(A2^3) - Cone ((1/3)πr²h, where
A2= radius,B2= height):=(1/3)*PI()*(A2^2)*B2 - Built-in Unit Conversion (e.g., in³ in
D2to US Gallons or Liters):=CONVERT(D2, “in3”, “gal”) | =CONVERT(D2, “in3”, “l”)
7 Common Volume Calculation Mistakes to Avoid
- Mixing Units Without Conversion: Multiplying 10 ft × 12 ft × 6 in directly gives 720, which is meaningless. Always convert every dimension into a single unit first (10 × 12 × 0.5 = 60 ft³).
- Entering Diameter Instead of Radius: Because radius is squared in cylinders and cones (πr²h) and cubed in spheres ((4/3)πr³), entering a diameter into a radius field inflates a cylinder’s volume by 4× and a sphere’s volume by 8×.
- Using Linear Conversion Factors on Cubic Results: Dividing cubic inches by 12 instead of 1,728 (12³), or dividing cubic feet by 3 instead of 27 (3³), produces severe unit errors.
- Confusing External Dimensions with Internal Capacity: Thick-walled concrete tanks, coolers, and shipping crates hold noticeably less than their exterior dimensions suggest. Measure inside faces or deduct twice the wall thickness (2t) per enclosed axis.
- Mixing Up US Gallons and UK Imperial Gallons: One US liquid gallon equals 3.7854 L (231 in³), whereas one UK Imperial gallon equals 4.5461 L (277.42 in³)—roughly 20.1% larger.
- Using Slant Height Instead of Vertical Height: For cones and pyramids, the formula requires the perpendicular height (h) from the base center to the apex, not the slanted edge length.
- Rounding Intermediate Values Too Early: Rounding converted dimensions mid-calculation compounds rounding drift. Keep full floating-point precision until the final output.
Calculation Methodology, Precision & Limitations
Transparency and mathematical integrity are core standards on Volume Calcs:
- Internal Normalization & Precision: Every user input is parsed into standard IEEE 754 double-precision floating-point numbers and normalized to base meters (m) using exact international definitions (1 in = 0.0254 m, 1 ft = 0.3048 m, 1 yd = 0.9144 m) before applying the geometric equation. Full internal precision is preserved throughout all multi-unit conversions, and rounding is applied strictly to the displayed output.
- Client-Side Execution & Privacy: All mathematical processing runs 100% locally inside your web browser using vanilla JavaScript. None of the dimensions or values you enter are transmitted to external servers.
- Geometric Assumptions & Limitations: Formulas assume ideal Euclidean solids (right circular cylinders and cones with bases perpendicular to their axes, flat planar faces, and uniform wall thickness when internal capacity mode is enabled). Real-world results depend directly on the accuracy of physical measurements and do not automatically account for thermal expansion, irregular wall curvature, or material compaction.
Frequently Asked Questions About Volume Calculation
How to calculate the volume?
To calculate volume, measure the object’s three-dimensional boundaries in the same unit of length and apply the appropriate geometric formula: multiply length × width × height (V = l × w × h) for a rectangular box, cube the edge length (V = a³) for a cube, use V = πr²h for a cylinder, or use V = (4/3)πr³ for a sphere. The resulting answer is expressed in cubic units such as cm³, m³, in³, or ft³.
How do you calculate volume in gallons?
First calculate the container’s interior volume in cubic inches, cubic feet, or liters, then multiply or divide by the exact gallon conversion factor: divide cubic inches by 231 (1 US gal = 231 in³), multiply cubic feet by 7.48052 (1 ft³ ≈ 7.4805 US gal), or divide liters by 3.78541. For UK Imperial gallons, divide liters by 4.54609 or multiply cubic feet by 6.22884.
How to calculate volume for cube?
Measure the length of one side (a) of the cube and raise it to the third power using the formula V = a³ (a × a × a). Because all edges of a cube are equal, a cube measuring 4 inches on each side has a volume of 4 × 4 × 4 = 64 cubic inches (in³).
How to calculate volume of room?
Measure the room’s interior floor length, floor width, and floor-to-ceiling height in the same unit, then multiply all three numbers together: Room Volume = Length × Width × Height. If the room is L-shaped or has alcoves, divide the floor plan into separate rectangular sections, calculate each section’s volume, and add them together.
How to calculate room volume in cubic feet?
Measure the room’s length, width, and ceiling height in feet (converting any extra inches to feet by dividing inches by 12), and multiply Length (ft) × Width (ft) × Height (ft). For example, a room that is 14 ft long, 12 ft wide, and 8.5 ft high has a volume of 14 × 12 × 8.5 = 1,428 cubic feet (ft³).
How many cubic feet are in a 10×10 room?
A 10 ft × 10 ft room has a 100 sq ft floor area, so its volume in cubic feet equals 100 multiplied by the ceiling height: 800 cubic feet (22.65 m³) with a standard 8-foot ceiling, 900 cubic feet (25.49 m³) with a 9-foot ceiling, or 1,000 cubic feet (28.32 m³) with a 10-foot ceiling.
How big is a 100 cubic foot room?
A 100 cubic foot (2.83 m³) space is comparable to a small walk-in closet, compact pantry, or a 5 ft × 2.5 ft closet with an 8 ft ceiling (5 × 2.5 × 8 = 100 ft³). In practical storage terms, 100 cubic feet accommodates roughly 25 to 30 medium moving boxes stacked neatly.
What area does 1 cubic foot cover?
Because area is two-dimensional (sq ft) and volume is three-dimensional (cu ft), surface coverage depends on material thickness (Area = 1 ft³ ÷ Depth in feet). One cubic foot covers 12 sq ft at 1 inch deep, 6 sq ft at 2 inches deep, 4 sq ft at 3 inches deep, 3 sq ft at 4 inches deep, or 1 sq ft at 12 inches (1 foot) deep.
What does 10 cubic feet look like?
Ten cubic feet (0.283 m³ or 74.81 US gallons) is the exact volume of a box measuring 2 ft × 2.5 ft × 2 ft (24 × 30 × 24 inches). Visually, it is roughly the interior capacity of an apartment-size compact refrigerator, a large wheeled outdoor trash bin, or 6 to 7 standard 1.5 cu ft moving boxes.
What is the volume 10 ft 10 ft 10 ft cubic feet?
The volume of a 10 ft × 10 ft × 10 ft cube is 1,000 cubic feet (10 × 10 × 10 = 1,000 ft³). Converted into other common units, 1,000 ft³ equals 37.04 cubic yards, 28.32 cubic meters, 28,316.85 liters, or 7,480.52 US gallons.
What does 20 cubic feet look like?
Twenty cubic feet (0.566 m³ or 149.61 US gallons) equals a rectangular space measuring 4 ft × 2.5 ft × 2 ft (48 × 30 × 24 inches). Visually, it matches the total interior capacity of a standard full-size kitchen refrigerator-freezer, the trunk plus folded rear seat area of a midsize sedan, or about 13 medium moving boxes.
How many cubic feet is a 5 foot cube?
A 5-foot cube (5 ft × 5 ft × 5 ft) has a volume of 125 cubic feet (V = 5³ = 125 ft³). That equals 4.63 cubic yards, 3.54 cubic meters, 3,539.61 liters, or 935.06 US gallons.
What is the difference between volume and capacity?
Volume refers to the total three-dimensional space an object occupies (including its walls), whereas capacity refers to the usable hollow space inside a container that can hold liquid, gas, or bulk goods. For thin-walled containers, exterior volume and interior capacity are nearly equal; for thick-walled tanks or coolers, subtract twice the wall thickness from each enclosed dimension to find true internal capacity.
Can you calculate the volume of a 2D rectangle, square, or circle?
Strictly speaking, flat two-dimensional figures (rectangles, squares, and circles) have zero thickness and therefore have area (cm² or ft²), not volume. To calculate a 3D volume, give the shape a third dimension: a rectangle extruded by height becomes a rectangular prism (V = lwh), a square extruded equally becomes a cube (V = a³), and a circle extruded by height becomes a cylinder or disc (V = πr²h).
How do you convert cubic centimeters (cm³) to liters or milliliters?
One cubic centimeter (1 cm³ or 1 cc) is defined as exactly 1 milliliter (1 mL). To convert cubic centimeters to liters, divide the cm³ value by 1,000 (1 L = 1,000 cm³). For example, 2,500 cm³ = 2,500 mL = 2.5 L.
What is the difference between a US gallon and a UK Imperial gallon?
A US liquid gallon is defined as exactly 231 cubic inches or 3.785411784 liters (0.13368 ft³). A UK Imperial gallon is defined as exactly 4.54609 liters (277.419 in³ or 0.16054 ft³), making one Imperial gallon approximately 20.095% larger than one US gallon.
How do you find the volume of an irregular object?
For solid objects that cannot be broken into standard geometric shapes, use the water displacement method (Archimedes’ principle): fill a graduated container with water, record the initial water level, fully submerge the non-absorbent object, and record the new water level. The difference between the two readings equals the object’s volume.
How do you convert volume to weight or mass?
Multiply the volume by the material’s density (Mass = Volume × Density). Because different substances have different densities, equal volumes weigh different amounts: 1 cubic foot of pure water weighs approximately 62.43 lb (28.32 kg), whereas 1 cubic foot of dry sand weighs roughly 95–105 lb and 1 cubic foot of solid steel weighs about 490 lb.
