... LIVE
📦 Select a Shape & Enter Dimensions
V = s³
cm
All 6 faces are equal squares
Enter a valid side length.
V = L × W × H
cm
Enter valid length.
cm
Enter valid width.
cm
Enter valid height.
V = (4/3) × π × r³
cm
Half the diameter
Enter a valid radius.
cm
Overrides radius if entered
V = π × r² × h
cm
Base circle radius
Enter a valid radius.
cm
Perpendicular height
Enter a valid height.
V = (1/3) × π × r² × h
cm
Enter a valid radius.
cm
Enter a valid height.
V = (1/2) × b × h × L
cm
Enter valid base.
cm
Enter valid height.
cm
Enter valid length.
V = (1/3) × s² × h
cm
Square base side length
Enter a valid side.
cm
Perpendicular height to apex
Enter a valid height.
V = π × r² × (h + 4r/3)
cm
Radius of both hemispherical ends
Enter a valid radius.
cm
Cylindrical body length only
Enter a valid height.
Units:
Volume
⚠️ Disclaimer: Volume is mathematically exact for entered dimensions. For real-world projects add 5–10% for material waste and measurement tolerance. Always verify measurements before purchasing materials.

Sources & Methodology

All volume formulas verified against Euclid’s Elements geometry definitions and NIST Mathematical Functions. Pi = 3.14159265358979 (IEEE 754 double precision). Capsule formula = cylinder + sphere (two hemispheres). All calculations guard with isFinite.
📘
Khan Academy — Solid Geometry
Khan Academy’s complete solid geometry curriculum covering volumes and surface areas of all standard 3D shapes. The globally used standard for mathematics education on this topic.
🏛️
NIST Digital Library of Mathematical Functions
U.S. government authoritative mathematical reference. Sphere, cylinder, cone, and prism volume formulas are verified against NIST geometric definitions and constants including pi.
Formulas used (all verified):
Cube: s³  | Rectangular Prism: L×W×H  | Sphere: (4/3)πr³ Cylinder: πr²h  | Cone: (1/3)πr²h  | Tri. Prism: (1/2)bhL Sq. Pyramid: (1/3)s²h  | Capsule: πr²(h + 4r/3) Surface area bonus calculated for each shape. All inputs use parseFloat(x)||0. isFinite guard on every result. Pi = Math.PI (IEEE 754).

Last reviewed: April 2026

Volume Formulas for All 3D Shapes — Complete Reference Guide

Volume is the measure of three-dimensional space enclosed within a solid object. It is always expressed in cubic units — cubic centimeters (cm³), cubic meters (m³), cubic inches (in³), or cubic feet (ft³). Volume calculations are essential across engineering, construction, medicine, chemistry, cooking, packaging, and everyday life. Knowing the volume of a shape tells you how much it can hold, how much material it contains, or how much space it occupies.

Worked Example: Volume of a Cylindrical Water Tank
A cylindrical tank has radius 0.5 m and height 2 m.
Formula: V = π × r² × h
Step 1: r² = 0.5² = 0.25 m²
Step 2: V = 3.14159 × 0.25 × 2 = 1.5708 m³
Convert to liters: 1 m³ = 1,000 L → 1,570.8 liters
Add 10% safety margin: 1,570.8 × 1.10 = 1,727.9 liters recommended tank size

Volume Formulas and Their Derivations

Every volume formula connects to a geometric principle. The rectangular prism (V = L×W×H) is the foundation — all other formulas can be understood relative to it. A cylinder is like a circular prism: base area (πr²) times height. A cone holds exactly one-third the volume of a cylinder with the same base and height. A pyramid holds exactly one-third the volume of a prism with the same base and height. A sphere fits inside a cylinder of radius r and height 2r with volume two-thirds of that cylinder.

All Volume Formulas Reference Table

ShapeFormulaVariablesExample
CubeV = s³s = side length5³ = 125 cm³
Rectangular PrismV = L × W × HLength, Width, Height10×5×3 = 150 cm³
SphereV = (4/3)πr³r = radius(4/3)π×6³ = 904.8 cm³
CylinderV = πr²hr = radius, h = heightπ×4²×10 = 502.7 cm³
ConeV = (1/3)πr²hr = base radius, h = height(1/3)π×3²×8 = 75.4 cm³
Triangular PrismV = (1/2)bhLb,h = triangle, L = length(1/2)×4×3×10 = 60 cm³
Square PyramidV = (1/3)s²hs = base side, h = height(1/3)×6²×9 = 108 cm³
CapsuleV = πr²(h + 4r/3)r = radius, h = body heightπ×3²×(8+4) = 339.3 cm³

Volume of Cube vs Rectangular Prism

A cube is a special rectangular prism where all three dimensions are equal. The simplest volume formula is V = s³ — just cube the side length. Doubling the side length of a cube does not double the volume: it increases it by 8 times (2³ = 8). This is why storage units and shipping containers use rectangular prisms — the three independent dimensions allow more flexibility in optimizing space. Real use: a room 4 m × 5 m × 3 m has volume = 60 m³. At 0.12 kg/m³ air density, that room contains about 7.2 kg of air.

💡 Volume vs Capacity vs Weight: Volume is the space a solid object occupies (cm³). Capacity is how much liquid a hollow object holds (liters, mL). For water: 1 cm³ = 1 mL = 1 gram exactly. So a cylinder with volume 500 cm³ can hold 500 mL of water weighing 500 g. For other liquids, multiply by their density. This relationship (1 cm³ = 1 mL for water) is why metric units are so convenient in science and cooking.

Volume of Sphere, Cylinder, and Cone Relationships

The three most important volume relationships in geometry: a cylinder with radius r and height 2r has volume πr²(2r) = 2πr³. A sphere of radius r has volume (4/3)πr³ — exactly 2/3 of the cylinder that contains it. A cone with the same base and height as the cylinder has volume (1/3)πr²h = one-third of the cylinder. Archimedes discovered the sphere-cylinder relationship and considered it his greatest achievement.

Real-World Applications of Volume Calculations

How to Calculate the Volume of a Box (Rectangular Prism)

The rectangular box, also called a rectangular prism or cuboid, is the most commonly calculated volume in everyday life. To find its volume, multiply the three dimensions: length, width, and height. The formula V = L × W × H works for boxes, rooms, shipping containers, tanks, and swimming pools. If you have a cardboard box measuring 30 cm long, 20 cm wide, and 15 cm tall, its volume is 30 × 20 × 15 = 9,000 cm³, or exactly 9 liters.

How to Find the Volume of a Sphere

The sphere is one of the most elegant shapes in mathematics. Its volume formula V = (4/3)πr³ requires only the radius — the distance from the center to the surface. If you know the diameter instead, divide by 2 to get the radius. A soccer ball with a diameter of 22 cm has a radius of 11 cm, giving a volume of about 5,575 cm³. The sphere is the shape that encloses the maximum volume for a given surface area — which is why bubbles, planets, and water droplets naturally form spheres.

Cylinder Volume: The Tank Formula

Cylinders appear everywhere in real life — cans, pipes, storage tanks, and drinking glasses. The volume formula V = πr²h multiplies the area of the circular base (πr²) by the height. Note that this uses the radius, not the diameter. If a can has a diameter of 8 cm and a height of 12 cm, the radius is 4 cm and the volume is π × 4² × 12 ≈ 603 cm³, which is about 603 milliliters — slightly more than a standard 500 ml can.

Cone Volume and Why It Is One-Third of a Cylinder

The cone volume formula V = (1/3)πr²h is exactly one-third the volume of a cylinder with the same base and height. This is a proven geometric relationship: if you fill a cone with water three times and pour each into a same-sized cylinder, you fill it exactly. This relationship is used in ice cream cone manufacturing, funnel design, and grain storage calculations. The "height" in the formula is the vertical height from the center of the base to the apex, not the slant height along the side.

Cube Volume: When All Sides Are Equal

A cube is a special case of a rectangular box where all three dimensions are equal. The formula V = s³ simply cubes the side length. A Rubik's cube with a side of 5.7 cm has a volume of 5.7³ ≈ 185 cm³. The cube is the shape used to define cubic units themselves — a "cubic centimeter" is literally the volume of a cube with 1 cm sides.

Triangular Prism Volume for Construction and Architecture

A triangular prism has two triangular faces connected by three rectangular faces. Its volume is calculated by finding the area of the triangular cross-section and multiplying by the length. The formula V = (1/2) × base × height × length is used in roof design, bridge construction, and calculating concrete for triangular structural elements. A roof section that is 4 m at the base, 2.5 m tall at the peak, and 10 m long holds V = (1/2) × 4 × 2.5 × 10 = 50 m³ of space.

Real-World Applications of Volume Calculations

Volume formulas are not just classroom exercises — they solve real problems daily:

Volume Units and Conversions

Volume measurements use different unit systems depending on the context. The metric system uses cubic meters (m³), cubic centimeters (cm³), and liters, where 1 liter = exactly 1,000 cm³. The imperial system uses cubic inches (in³), cubic feet (ft³), gallons, and fluid ounces. One U.S. gallon equals 231 cubic inches or 3.785 liters. When mixing systems, always convert all dimensions to the same unit before calculating.

📏 Archimedes' Displacement Method

For irregular objects without a defined formula, the ancient water displacement method works perfectly: submerge the object in a known volume of water and measure the rise. The volume of water displaced equals the volume of the object. This method was famously discovered by Archimedes in 250 BC and is still used in labs today.

Surface Area vs. Volume: Understanding Both Measures

Surface area and volume are related but measure different things. Surface area measures the total area of all outer faces (in square units), while volume measures the 3D space inside (in cubic units). A box can have a large surface area but small volume if it is flat and wide. Engineers must calculate both — surface area determines how much material is needed to build something, while volume determines how much it can hold.

Frequently Asked Questions
V = s³ (side length cubed). A cube with side 5 cm has volume = 125 cm³. All three dimensions are equal, so you only need one measurement.
V = (4/3) × π × r³. Enter the radius (half the diameter). Sphere with radius 6 cm = (4/3) × 3.14159 × 216 = 904.78 cm³.
V = π × r² × h. Cylinder with radius 4 cm and height 10 cm = 3.14159 × 16 × 10 = 502.65 cm³. Used for tanks, pipes, cans, and columns.
V = (1/3) × π × r² × h. A cone holds one-third the volume of a cylinder with the same base and height. Cone with radius 3 cm, height 8 cm = 75.40 cm³.
V = L × W × H. Most commonly used volume formula. Box 10 cm × 5 cm × 3 cm = 150 cm³. Used for rooms, storage, and shipping.
Volume = 3D space inside (cubic units: cm³, ft³). Surface area = total area of all outer faces (square units: cm², ft²). This calculator shows both volume AND surface area for every shape.
V = (1/3) × s² × h for a square pyramid. Like a cone, a pyramid holds one-third the volume of a prism with the same base. Example: base 6 cm, height 9 cm = (1/3) × 36 × 9 = 108 cm³.
V = (1/2) × b × h × L where b and h are the triangle’s base and height, and L is the prism’s length. Example: triangle base 4, height 3, length 10 = (1/2) × 4 × 3 × 10 = 60 cm³.
1 liter = 1,000 cm³ = 0.001 m³. So 500 cm³ = 0.5 liters. 1 m³ = 1,000 liters. For water specifically: 1 cm³ = 1 mL = 1 gram.
Concrete slab volume = L × W × thickness. A 5 m × 3 m × 0.15 m slab = 2.25 m³. At 2,400 kg/m³ density = 5,400 kg of concrete. Volume determines material quantities, cost, and truck loads for delivery.
A cone tapers from full base area to a point, enclosing only (1/3) the space of a cylinder with the same base and height. Demonstrable by filling a cone-shaped container three times to fill an equal cylinder.
Volume is in cubic units: cm³, m³, in³, ft³. For liquids: liters (L) and milliliters (mL) where 1 mL = 1 cm³. Always include the unit when reporting volume to avoid confusion between shapes and scales.
A capsule is a cylinder with two hemispherical ends. V = πr²(h + 4r/3). Used for pharmaceutical capsule sizing, storage tank design, and pill packaging. The hemispherical ends distribute pressure evenly, making capsule-shaped tanks stronger than flat-ended cylinders.
Decompose it into known shapes, calculate each volume, and add them. Or use water displacement: submerge the object in water and measure the volume of water displaced (1 mL displaced = 1 cm³ object volume). This is Archimedes’ principle.
Related Math Calculators
Popular Calculators
🧮

Missing a Math Calculator?

Can’t find the geometry calculator you need? Tell us — we build new ones every week.