🔄 Converters · calculator

Volume Calculator — Cube, Sphere, Cylinder & More

Calculate the volume of cubes, rectangular prisms, spheres, cylinders, cones, and pyramids. Instant results with formulas and practical examples.

Volume Calculator

What is the Volume Calculator?

A volume calculator determines the three-dimensional space enclosed by a geometric shape — the total amount of material needed to fill it or the space it occupies. This calculator covers six fundamental 3D shapes: the cube (all equal sides), rectangular prism (box with any dimensions), sphere (perfectly round solid), cylinder (circular cross-section with height), cone (tapering from circular base to a point), and pyramid (polygonal base tapering to an apex). These six shapes cover the vast majority of volume calculations encountered in science, engineering, construction, cooking, and everyday life.

Volume is one of the three fundamental geometric measurements alongside length and area. Where length describes one-dimensional extent and area describes two-dimensional coverage, volume describes three-dimensional capacity. The transition from area to volume involves cubing a linear dimension — which means that small changes in dimensions produce large changes in volume. A sphere with twice the radius has eight times the volume. A cube with sides 10% longer has 33.1% more volume. This non-linear scaling has important practical implications for packaging, shipping, and materials estimation.

The formulas in this calculator are results of classical geometry established by Euclid, Archimedes, and other Greek mathematicians more than 2,000 years ago. They remain exact for idealized geometric shapes and highly accurate for real-world objects that approximate those shapes. Volume calculations underlie concrete ordering in construction, pharmaceutical dosing calculations, fuel capacity estimation, aquarium setup, food portion standardization, and every application where three-dimensional capacity matters.

Volume Calculator Formula

Cube: V = a³ (where a = side length) Rectangular Prism (Box): V = l × w × h (length × width × height) Sphere: V = (4/3) × π × r³ ≈ 4.18879 × r³ Cylinder: V = π × r² × h ≈ 3.14159 × r² × h Cone: V = (1/3) × π × r² × h ≈ 1.04720 × r² × h (exactly 1/3 of cylinder with same base and height) Square Pyramid: V = (1/3) × b² × h (where b = base side length) Rectangular Pyramid: V = (1/3) × l × w × h Unit conversions for volume: 1 m³ = 1,000 liters = 1,000,000 cm³ = 1,000,000 mL 1 liter = 1,000 cm³ = 1 dm³ 1 ft³ = 28.3168 liters = 7.4805 U.S. gallons 1 U.S. gallon = 3.78541 liters = 231 in³

Volume Calculator Example

Example 1 — Swimming pool volume: Rectangular pool: 12 m × 6 m × 1.5 m deep V = 12 × 6 × 1.5 = 108 m³ = 108,000 liters At average fill: 85% × 108,000 = 91,800 liters of water Chlorine dosing (assuming 2 ppm chlorine): 91.8 kg of chlorine needed initially.

Example 2 — Concrete for a circular column: Cylinder: radius = 0.3 m, height = 3 m V = π × 0.09 × 3 = 0.848 m³ For 10 columns: 8.48 m³ total concrete. With 10% waste factor: order 9.33 m³ ≈ 10 m³.

Example 3 — Sphere volume (water balloon): Radius = 0.08 m (8 cm) V = (4/3) × π × 0.000512 = 0.002145 m³ = 2.145 liters

Example 4 — Storage box dimensions: Box: 60 cm × 45 cm × 30 cm V = 60 × 45 × 30 = 81,000 cm³ = 81 liters For comparison: a standard plastic storage bin is typically 60–120 liters.

How to Use the Volume Calculator

  1. 1Select the shape of the object from the dropdown. Different shapes require different dimensions: cube requires only the side length; rectangular prism requires length, width, and height; sphere requires only the radius; cylinder requires radius and height; cone requires radius and height; pyramid requires base dimensions and height.
  2. 2Enter the required dimensions in consistent units. If your dimensions are in centimeters, the result will be in cubic centimeters. If in meters, the result is in cubic meters. The calculator does not mix units — ensure all dimensions are in the same unit before calculating. After computing the result, use the unit conversion reference to convert to liters, gallons, or other volume units as needed.
  3. 3The result shows the volume in the cubic unit corresponding to your input. For practical applications, convert to the relevant capacity unit (liters for liquids, cubic meters for construction, gallons for U.S. plumbing). Remember to add a waste or overfill factor (typically 5–15%) when ordering materials like concrete, soil, or fill material to account for settling and imprecision in field measurement.

Why Volume Calculator Matters

Volume calculations have direct financial consequences in construction, manufacturing, and resource planning. A builder who underestimates the volume of concrete needed for a foundation must order a second load — typically at premium cost with added delay. A manufacturer who designs packaging without accurate volume calculations may pay for cubic air space in shipping containers. A homeowner filling a raised garden bed needs to order the correct volume of topsoil — typically 30–50% more than the calculated volume due to settling and compaction.

In science and medicine, volume is fundamental to dosing calculations, chemical reactions, and equipment design. Pharmaceutical IV bags must contain precise volumes; laboratory reaction vessels must have sufficient capacity for the reactants plus headspace; industrial chemical reactors are designed around the volume of material to be processed per batch. The relationship between volume and concentration (amount per unit volume) is the foundation of solution chemistry. A 1 molar solution of sodium chloride contains 58.44 grams per liter — knowing the volume of solution needed directly determines the mass of solute to weigh.

In everyday consumer contexts, volume literacy affects purchasing decisions. A larger bottle is often a better value per unit volume — but only if the ratio of price to volume is actually lower. A 750 mL bottle for $8 costs $10.67 per liter; a 1.5 L bottle for $14 costs $9.33 per liter. Comparing food container sizes (6 oz vs 8 oz), water tank capacities, and appliance volumes all require volume calculations to make informed comparisons. The same principle applies at industrial scale: bulk material purchasing requires volume-to-mass conversion and price-per-unit-volume comparison.

Limitations & Accuracy

This calculator covers six fundamental geometric shapes. It does not calculate volumes of irregular shapes, composite objects (a shape with a section removed), or shapes with curved surfaces other than spheres, cylinders, and cones. For complex industrial or architectural shapes, numerical methods or CAD software (AutoCAD, SolidWorks, Rhino) can calculate volumes of arbitrary 3D objects from digital models.

All formulas assume ideal mathematical shapes. In practice, a 'cylinder' might have slightly non-circular cross-sections, walls with non-negligible thickness, or end caps that affect total capacity. A cylindrical water tank with 5 mm thick walls and radius 0.5 m has an interior radius of 0.495 m — the interior volume is π × 0.495² × h versus the exterior π × 0.5² × h. For large containers, this difference is small but non-negligible. For capacity calculations (how much a container holds), use interior dimensions; for material volume calculations (how much material to fill a solid form), use exterior dimensions.

The sphere formula gives the volume of a solid sphere. For a hollow sphere (like a ball or spherical shell), the volume of the enclosed space is (4/3)π(r_inner)³ and the volume of shell material is (4/3)π(r_outer)³ − (4/3)π(r_inner)³. A 1 cm thick spherical tank with outer radius 1 m has inner radius 0.99 m; the liquid capacity is (4/3)π(0.99)³ = 4.071 m³, while the shell material volume is (4/3)π(1.0)³ − 4.071 = 4.189 − 4.071 = 0.118 m³.

Practical Tips

  • When ordering fill material (gravel, sand, mulch, concrete), calculate the geometric volume and then add a compaction factor: 15–25% extra for loose materials that compact after installation. Concrete doesn't compact but has a 5–10% waste factor for spills, form overflow, and measurement imprecision. For garden beds, topsoil compacts 20–30% after settling. Under-ordering requires a second delivery at extra cost; slight over-ordering is typically better economics.
  • For irregular containers (a pool with a step shelf, a room with a closet), break the space into regular shapes and add the volumes. A pool that is 1.0 m deep in the shallow end and 2.0 m in the deep end, with a gradual slope across 8 m, can be approximated as a rectangular prism at each depth plus a wedge (triangular prism) for the sloped section. Each section's volume is calculated separately and summed.
  • Volume scales with the cube of linear dimensions. This means that if you double the dimensions of a container, its volume increases by 2³ = 8 times — not 2 times. If you increase each dimension by 10%, volume increases by 1.1³ = 1.331, or 33.1%. This scaling law has practical packaging implications: a box that is 10% larger in all dimensions holds 33% more product and costs roughly 33% more material — a potentially favorable economics depending on the use case.
  • For aquarium setup, a helpful rule: 1 liter of water per 1 cm of adult fish body length (or 1 gallon per inch in U.S. fishkeeping guidelines). A 100-liter (26.4 gallon) aquarium can support approximately 100 cm of fish — for example, 10 fish averaging 10 cm adult size. This is a rough guideline that also depends on filtration capacity and species. Calculate your tank volume precisely (interior dimensions, subtract gravel volume) to size filters, heaters, and medication doses correctly.

Frequently Asked Questions

What is the formula for the volume of a cylinder?
Volume of a cylinder = π × r² × h, where r is the radius of the circular base and h is the height (length). Example: a cylindrical water tank with radius 0.5 meters and height 2 meters has volume = π × 0.25 × 2 = 1.571 cubic meters = 1,571 liters. This formula applies to right circular cylinders — cylinders where the axis is perpendicular to the base. For oblique cylinders (leaning), the formula remains the same because the cross-sectional area (πr²) is constant regardless of tilt — a consequence of Cavalieri's principle.
How do you calculate the volume of a sphere?
Volume of a sphere = (4/3) × π × r³. This is one of the most beautiful results in classical geometry, derived by Archimedes around 250 BCE using the method of exhaustion (essentially calculus 2,000 years before Newton). Archimedes was so proud of this result that he reportedly requested a sphere-in-cylinder diagram for his tombstone. Example: a ball with radius 5 cm has volume = (4/3) × π × 125 = 523.6 cm³ ≈ 523.6 mL. A sphere with radius 10 cm has volume = 4,189 cm³ — eight times larger because volume scales with the cube of radius.
What is the volume of a cone compared to a cylinder?
A cone with the same base and height as a cylinder contains exactly one-third of the cylinder's volume. Cone volume = (1/3) × π × r² × h = (1/3) × cylinder volume. This is another classical Greek result. Example: a cone and cylinder both with radius 3 cm and height 10 cm: cylinder = π × 9 × 10 = 282.7 cm³; cone = 282.7 / 3 = 94.2 cm³. This relationship has practical applications: a conical funnel and a cylindrical tube of the same dimensions — the cone holds one-third as much material at any given fill level.
How do I convert cubic meters to liters?
1 cubic meter (m³) = exactly 1,000 liters. 1 liter = 1 cubic decimeter (dm³) = 0.001 m³. More conversions: 1 cubic centimeter (cm³) = 1 milliliter (mL). 1 liter = 1,000 cm³ = 1,000 mL. For imperial/U.S.: 1 gallon (U.S.) = 3.78541 liters. 1 fluid ounce = 29.5735 mL. 1 cubic foot = 28.3168 liters = 7.4805 U.S. gallons. For practical pool calculations: a rectangular pool 10 m × 5 m × 1.5 m deep = 75 m³ = 75,000 liters (75 metric tons of water).
How is volume used in construction and architecture?
Volume calculations are fundamental to construction for material quantity estimation. Concrete: ordered by the cubic meter (m³) or cubic yard; a standard house foundation might require 20–30 m³. Excavation: soil removal is measured in cubic meters, billed per m³ of cut material. Lumber: wood is sold by the board-foot (1 board-foot = 1 ft × 1 ft × 1 inch = 2.359 liters) or cubic meter. Fill material: gravel, sand, and topsoil are ordered by the cubic yard. Insulation: blown insulation is rated by bags per 1,000 square feet at a specific depth, which is effectively a volume calculation. Accurate volume estimates directly control material costs in construction.
Why does the volume of a pyramid depend on base area and not just base length?
Pyramid volume = (1/3) × base area × height. The base area factor allows this formula to work for any base shape — square, rectangular, triangular, or any polygon. A pyramid with a triangular base (tetrahedron) uses (1/3) × (base × height_of_triangle / 2) × pyramid_height. A pyramid with a rectangular base uses (1/3) × (length × width) × height. This generality is powerful: the Great Pyramid of Giza has a square base of approximately 230 m × 230 m and a height of 138.8 m (original height 146.5 m). Volume = (1/3) × 52,900 × 138.8 ≈ 2,447,000 m³ = 2.447 million cubic meters.
What is displacement and how does it relate to volume?
Displacement is the volume of fluid pushed aside by a submerged object. Archimedes' principle states that a submerged object displaces fluid equal to its own volume (for a fully submerged object), and the buoyant force equals the weight of the displaced fluid. This allows volume measurement of irregular objects: submerge the object in a graduated container of water and measure the rise in water level. Ship displacement is typically measured in tonnes of water displaced — a 20,000-tonne ship displaces 20,000 tonnes of seawater (≈19,480 m³ at average ocean density of 1.025 kg/L). The object's volume = water rise × container cross-sectional area.
How do I calculate the volume I need to fill a container?
Calculate the interior volume of the container using the appropriate shape formula, then subtract any volume occupied by internal structures. For a fish tank: length × width × height = volume in cm³ or inches³, then convert to liters (cm³ / 1000) or U.S. gallons (in³ / 231). Important: for a fish tank, the recommended water volume is typically 75–85% of total volume (accounting for gravel, decorations, and the space needed for fish). For a concrete form: calculate the volume of the form and that is the volume of concrete required, plus 5–10% waste factor. For paint coverage: paint coverage is in area, not volume — but thickness determines volume consumed (volume = area × coat thickness in meters).

Continue Your Journey

Trusted Sources & Methodology

NIST (National Institute of Standards)Official US measurement standards
International Bureau of Weights (BIPM)International SI unit definitions
ISO StandardsInternational unit conversion standards

API Access

Coming Soon
https://api.solviqlab.com/v1/volume-calculator

REST API for developers. Integrate this tool into your app.