🧊 Volume Calculator

Calculate the volume of a cube, rectangular prism, cylinder, sphere, cone or square pyramid — instantly, with the formula shown.

🧊 Choose a Shape
Result
Volume
Formula Used
🧊

Choose a shape, enter its dimensions, and calculate to see the volume

Guide

About the Volume Calculator

Last updated: July 2026 · Reviewed by the NeftCal editorial team

This free volume calculator finds the volume of six common 3D solids — cube, rectangular prism, cylinder, sphere, cone, and square pyramid — showing the exact formula behind every result. Volume measures the three-dimensional space a solid encloses, always expressed in cubic units, whether cubic feet for a room, cubic meters for a shipping container, or cubic centimeters for a small part. Instead of memorizing six separate solid-geometry formulas, this volume calculator lets you pick a shape, enter its dimensions, and get an instant, formula-transparent answer — useful for construction, packaging, science, or any project where getting capacity right the first time matters.

What Volume Measures

Volume is a three-dimensional measurement — it quantifies how much space a solid occupies or how much it could hold, unlike area (2D surface) or perimeter/circumference (1D boundary length). Because volume multiplies three linear measurements together (or their geometric equivalent), the result is always reported in cubic units: cm³, m³, ft³, or liters, for example. Doubling every linear dimension of a solid doesn't double or quadruple its volume — it multiplies it by eight, since volume scales with the cube of length.

Who Should Use This Calculator

This volume calculator is built for students checking solid-geometry homework, contractors and DIYers estimating concrete, soil, or fill material, shipping and logistics teams calculating container or box capacity, manufacturers and 3D-printing hobbyists sizing molded or printed parts, and cooks, brewers, or scientists determining tank or vessel capacity. Anyone who needs a fast, formula-transparent volume calculation without deriving it from scratch can use it.

Why Volume Calculations Matter

Volume translates directly into cost and material quantity: concrete for a foundation, water for a tank, packing material for a box, or filament for a 3D print all depend on an accurate volume figure. Because volume scales with the cube of linear size, small measurement errors compound quickly — a modest error in a tank's radius becomes a much larger error in its cubed volume, which is why this calculator shows the exact substitution used for every solid.

Real-World Applications

Contractors use rectangular prism and cylinder volume to order concrete, gravel, or soil. Shipping and logistics teams use cube and rectangular prism volume for container and box capacity. Manufacturers use cone and pyramid volume for hoppers, funnels, and molded parts. Scientists and engineers use sphere volume for tanks, ball bearings, and displacement calculations. Cooks and brewers use cylinder volume to size pots, kegs, and fermenters.

Tips for Accurate Results

  • Enter every dimension in the same unit before calculating — mixing feet and inches skews the cubed result.
  • For the cylinder, sphere, and cone, use the radius, not the full diameter.
  • For the cone and pyramid, enter the perpendicular height (straight up from the base to the apex), not the slant height along the sloped side.
  • Remember volume scales with the cube of linear size — doubling every dimension increases volume eightfold, not just doubling it.
  • Irregular or compound 3D shapes must be broken into these six standard solids and their volumes summed.
Formula

The Volume Formulas, Explained

How this volume calculator turns your dimensions into a cubic-unit result, shape by shape

Cube
V = s³

Rectangular Prism
V = l × w × h

Cylinder
V = πr²h

Sphere
V = (4/3)πr³

Cone
V = ⅓πr²h

Square Pyramid
V = ⅓ × s² × h

Where:
s = side length of a cube, or the square base side of a pyramid.
l, w, h = length, width, and perpendicular height of a rectangular prism, cylinder, cone, or pyramid.
r = radius of the cylinder, sphere, or cone — not diameter.
🧊

Always Cubic Units

Every volume result is expressed in cubic units (cm³, m³, ft³, liters). Never mix units — convert all dimensions first, then compute.

🔢

π in This Calculator

Cylinder, sphere, and cone formulas use JavaScript's full-precision Math.PI (≈3.14159265358979), more accurate than 3.14 or 22/7 shortcuts.

📏

The ⅓ Rule

A cone is exactly ⅓ the volume of a cylinder with the same base and height; a pyramid is exactly ⅓ the volume of a prism with the same base and height.

⚙️ Why These Formulas Work

Every volume formula here reduces to multiplying a base area by a height (or an equivalent product of three linear dimensions), which is why volume scales with the cube of a shape's size: doubling every dimension multiplies volume by 2³ = 8. The cone and pyramid include a factor of ⅓ because their cross-sectional area shrinks linearly from the full base down to a single point at the apex — a relationship provable with calculus or demonstrated physically by filling a cone-shaped container three times to fill a matching cylinder.

🎯 When to Use Each Solid

  • Cube: dice, boxes, ice cubes, storage cubes
  • Rectangular prism: rooms, shipping boxes, tanks
  • Cylinder: pipes, cans, tanks, silos
  • Sphere: balls, tanks, bearings, planets
  • Cone/Pyramid: funnels, hoppers, roof sections, monuments

📋 Assumptions

  • All solids are assumed perfectly regular (uniform cross-section or true geometric shape)
  • All entered dimensions are positive real numbers in one consistent unit
  • Cone and pyramid heights entered are perpendicular, not slant, heights
  • Cylinder, sphere, and cone radii are entered as radius, not diameter

⚠️ Limitations of the Formulas

  • Cannot compute volume for irregular or compound solids directly — split them into these six solids first
  • Zero, negative, or non-numeric dimensions are rejected as physically meaningless
  • Does not convert between unit systems — inputs and outputs share whatever unit you enter
  • Assumes solid, uniform material — does not account for hollow interiors or wall thickness
Walkthrough

Step-by-Step: How to Use the Volume Calculator

From picking a solid to reading a verified result

Choose a solid

Open the Shape dropdown and select cube, rectangular prism, cylinder, sphere, cone, or square pyramid.

Enter the required dimensions

The input fields update automatically for your chosen solid — side length, radius, or length/width/height — all in the same unit, using the perpendicular height for cones and pyramids.

Click "Calculate"

The calculator substitutes your values into that solid's volume formula and computes the result instantly.

Read the volume and the formula used

The result panel shows the numeric volume in cubic units alongside the exact formula and substitution used to reach it.

Switch solids anytime

Pick a different solid from the dropdown to reset the input fields and calculate another volume without reloading the page.

Verify the result (optional)

Compare against a related solid — for example, confirm a cone's volume equals one-third of a cylinder sharing the same base and height.

Example

Worked Example

Finding the volume of a cube with side length 4 — the calculator's default shape

Scenario

A storage cube has a side length of 4 units. What volume can it hold?

ShapeCube
Side (s)4
FormulaV = s³
Step 1 — Identify the formula: for a cube, V = s³.
Step 2 — Substitute s = 4: V = 4³.
Step 3 — Expand the cube: 4³ = 4 × 4 × 4.
Step 4 — Multiply step by step: 4 × 4 = 16, then 16 × 4 = 64.
Step 5 — Final result: V = 64 cubic units, matching this calculator's displayed precision.
Volume
64
Formula Used
V = s³
Shape
Cube

Explanation: The result is in cubic units because volume multiplies three linear dimensions together — here, the side length by itself three times. If the side length were measured in feet, 64 would be reported in cubic feet. Doubling the side to 8 would not double or quadruple the volume; it would increase it eightfold to 512, since volume scales with the cube of a linear dimension.

Interpretation

Understanding Your Volume Result

Unit conventions and sanity checks for each solid

SolidUnit ConventionSanity Check
CubeCubic units of the side length entered (e.g. s in m → m³)Always a perfect cube of the side length — s×s×s
Rectangular prismCubic units of length × width × heightShould equal the base area (l×w) multiplied by height
CylinderCubic units of radius × heightShould equal the circular base area (πr²) multiplied by height
SphereCubic units of the radius enteredRoughly 4.19 × r³ — always larger than a cube of the same radius
ConeCubic units of radius × heightExactly ⅓ of a cylinder sharing the same base radius and height
Square pyramidCubic units of base side × heightExactly ⅓ of a rectangular prism sharing the same base and height

Reading the result: the number shown is always in whatever unit you entered, cubed — enter meters and get cubic meters, enter feet and get cubic feet.

Typical ranges: volume should always be a positive number; a result of zero or an error message signals a zero, negative, or invalid input.

Manual verification: for a cone or pyramid, calculate the equivalent cylinder or prism volume and confirm your result is exactly one-third of it — a quick and reliable cross-check.

Use Cases

Practical Use Cases for the Volume Calculator

Where a fast, accurate volume calculation genuinely helps

🎓

School & college geometry

Check solid-geometry homework for cubes, prisms, cylinders, spheres, cones, and pyramids.

🧱

Concrete & construction

Estimate concrete, gravel, or fill volume for a rectangular or cylindrical foundation.

📦

Shipping & storage

Calculate box, crate, or container capacity for packing and logistics planning.

🛢️

Tanks & vessels

Size cylindrical or spherical tanks for water, fuel, or chemical storage capacity.

🍳

Cooking & brewing

Determine pot, keg, or fermenter capacity for recipes and batch sizing.

🖨️

3D printing & CAD

Estimate material (filament or resin) volume needed for a printed part before slicing.

🏭

Manufacturing & molding

Compute material volume for molded parts, hoppers, and funnel-shaped components.

🔬

Science & displacement

Calculate displacement volume for density, buoyancy, or fluid-mechanics problems.

🌍

Earthworks & excavation

Estimate soil or fill volume removed or added for a rectangular or trapezoidal excavation.

🏔️

Landscaping & materials

Calculate mulch, gravel, or sand volume for a rectangular or cylindrical garden bed.

🧊

Packaging & product design

Size cube or prism packaging to match a product's own volume with minimal wasted space.

⚗️

Chemistry & lab work

Estimate cylindrical or spherical vessel capacity for lab equipment and reagent storage.

🔧

Everyday DIY projects

Quickly size a planter, storage bin, or custom-built container for any home project.

Pros & Cons

Advantages and Limitations

What this volume calculator does well, and where manual judgment is still needed

✅ Advantages

  • Free, instant, and requires no signup or account
  • Covers six common 3D solids in a single tool
  • Shows the exact formula and substitution behind every result
  • Uses full-precision π rather than a rounded classroom approximation
  • Removes manual arithmetic errors from cubic-power calculations
  • Useful across school, construction, shipping, and science contexts alike
  • Accepts decimal inputs for precise, real-world measurements
  • Runs entirely in your browser — no data ever leaves your device
  • Fast-loading and fully mobile-friendly
  • Consistent results every time, unlike manual formula recall
  • Makes the ⅓ relationship between cones/pyramids and cylinders/prisms easy to verify
  • Free to use as many times as needed, with no calculation limit

⚠️ Limitations

  • Cannot calculate the volume of irregular or compound solids directly
  • Does not convert between unit systems automatically
  • Displays results rounded to 4 decimal places, which can hide tiny precision differences
  • Assumes the user has correctly identified radius vs. diameter, or perpendicular vs. slant height
  • Cannot detect a mismatched unit entry (e.g. one dimension in feet, another in meters)
  • Does not account for hollow interiors, wall thickness, or material density
  • Square pyramid mode only supports a square base, not rectangular or triangular bases
Reference

Comparing the Solids This Calculator Supports

Formula and typical use, side by side

SolidFormulaTypical Use
CubeV = s³Dice, ice cubes, storage bins
Rectangular prismV = l × w × hRooms, shipping boxes, rectangular tanks
CylinderV = πr²hPipes, cans, silos, drums
SphereV = (4/3)πr³Balls, bearings, spherical tanks
ConeV = ⅓πr²hFunnels, hoppers, ice cream cones
Square pyramidV = ⅓s²hRoof sections, monuments, hoppers

Common Mistakes and Expert Tips

❌ Common Mistakes

  • Entering the diameter instead of the radius for a cylinder, sphere, or cone
  • Using the slant height of a cone or pyramid instead of the perpendicular height
  • Mixing units — entering one dimension in feet and another in inches
  • Forgetting the ⅓ factor when estimating a cone's or pyramid's volume by eye
  • Assuming doubling a shape's dimensions doubles its volume, rather than multiplying it by eight
  • Treating a hollow container's outer volume as its usable capacity, ignoring wall thickness

💡 Expert Tips & Best Practices

  • Always double-check radius vs. diameter before entering cylinder, sphere, or cone dimensions
  • Convert every dimension to one unit system before calculating, and convert the final result if needed
  • Use the Surface Area Calculator alongside this tool when a project needs both capacity (volume) and material to cover it (surface area)
  • For a 2D cross-section instead of a full solid, use the Area Calculator
  • Split irregular real-world solids into cubes, prisms, cylinders, or cones, then sum each piece's volume
📝

Summary: This volume calculator gives you an instant, free way to find the volume of a cube, rectangular prism, cylinder, sphere, cone, or square pyramid — with the formula and substitution shown for every result. Pair it with the Surface Area Calculator and Area Calculator for a complete picture of a solid's capacity, coverage, and cross-section.

FAQ

Frequently Asked Questions

Common questions about volume formulas and this volume calculator

What is the formula for the volume of a sphere?
V = (4/3)πr³, where r is the radius. For example, a sphere with radius 3 has a volume of (4/3) × π × 3³ ≈ 113.10 cubic units.
How do you find the volume of a cylinder?
V = πr²h, where r is the radius of the circular base and h is the height. This is the base's area multiplied by the height.
What is the volume formula for a cone?
V = ⅓πr²h, where r is the base radius and h is the height. A cone has exactly one-third the volume of a cylinder with the same base and height.
How do you calculate the volume of a square pyramid?
V = ⅓ × s² × h, where s is the length of the square base's side and h is the perpendicular height from the base to the apex.
What is the formula for the volume of a cube?
V = s³, where s is the length of one edge. Since all edges of a cube are equal, multiplying the side length by itself three times gives the total volume.
What is the formula for the volume of a rectangular prism?
V = l × w × h, where l, w, and h are the length, width, and height. This is the area of the rectangular base multiplied by the height, and a cube is simply the special case where l = w = h.
What's the difference between volume and surface area?
Volume measures the three-dimensional space a solid encloses, in cubic units (like cm³ or ft³). Surface area measures the total area of the solid's outer faces, in square units. A shipping box's volume tells you its capacity; its surface area tells you how much cardboard or wrapping is needed to cover it.
Why is a cone's volume exactly one-third of a cylinder with the same base and height?
This is a geometric fact provable with calculus (integrating the area of circular cross-sections that shrink linearly to a point) or physically by pouring: filling a cone-shaped container with water and pouring it into a cylinder of the same base and height takes exactly three fills to fill the cylinder.
Why is a pyramid's volume exactly one-third of a prism with the same base and height?
Like a cone and cylinder, a pyramid's cross-sectional area shrinks linearly from the full base area down to a single point at the apex. Integrating that shrinking area over the height always yields exactly one-third of the volume of a prism sharing the same base and height.
Does this calculator use radius or diameter for cylinder, sphere, and cone volume?
Radius, not diameter, for all three. If you only know a shape's diameter, divide it by 2 before entering the value, since using the diameter directly in these formulas would produce a volume 8 times too large (because radius is cubed or squared in each formula).
What happens to volume if I double every dimension of a solid?
Volume scales with the cube of a linear dimension, so doubling every dimension of any solid — a cube, sphere, or cylinder — multiplies its volume by 2³ = 8, not by 2. Tripling every dimension multiplies volume by 27.
Can this calculator find the volume of an irregular or compound solid?
Not directly — it only computes the six standard solids listed above. An irregular or compound 3D shape needs to be broken into simpler solids (cubes, prisms, cylinders, cones) whose individual volumes are calculated separately and then summed.
What's the difference between slant height and perpendicular height for volume?
Perpendicular height is the straight vertical distance from the base to the apex, measured at a right angle to the base — this is what the cone and pyramid volume formulas require. Slant height is the longer diagonal distance along the sloped side, used instead for surface area, not volume.
How do you convert cubic units, like cubic feet, to gallons or liters?
1 cubic foot equals approximately 7.48 US gallons or 28.32 liters. 1 cubic meter equals 1,000 liters. Calculate the volume in this tool first, using consistent linear units, then apply the appropriate cubic-to-liquid conversion factor for your unit system.
What is fluid displacement and how does it relate to volume?
When a solid object is submerged in liquid, it displaces a volume of liquid exactly equal to its own volume (Archimedes' principle). This is a classic way to measure the volume of an irregular object — submerge it and measure how much liquid volume is displaced.
Why does the sphere volume formula use 4/3?
The 4/3 constant comes from integrating the area of circular cross-sections across a sphere's full radius using calculus. It's a fixed geometric constant — every sphere's volume is exactly 4/3 times π times its radius cubed, regardless of size.
Learn More

Authoritative Resources on Volume

Trusted educational references to go deeper on the math behind volume formulas

Related Calculators

Explore other geometry tools