Professional online volume calculator for cube, rectangular prism, sphere, cylinder, cone, triangular prism, ellipsoid, capsule, conical frustum, hexagonal prism, pentagonal prism, and square pyramid.
Formula:
Description:
A cube is a three-dimensional solid object bounded by six square faces, with three faces meeting at each vertex. The volume is calculated by cubing the length of one side.
Enter the length of one side of the cube
Volume is the fundamental measurement of three-dimensional space that an object or substance occupies. It represents the capacity or amount of space enclosed within the boundaries of a three-dimensional figure. Volume is expressed in cubic units such as cubic meters (m³), cubic centimeters (cm³), liters (L), cubic feet (ft³), or gallons, depending on the measurement system being used.
Understanding volume is essential in various fields including engineering, architecture, physics, chemistry, and everyday applications like cooking, construction, and packaging. The concept of volume helps us determine how much liquid a container can hold, how much material is needed to fill a space, or how much space an object will occupy.
The formula for calculating volume varies significantly depending on the geometric shape of the object. Each three-dimensional shape has its own unique mathematical formula derived from geometric principles. These formulas are based on the fundamental relationships between the shape's dimensions and are essential tools for accurate volume calculations in mathematics, science, and engineering applications.
Below are the most commonly used volume formulas with proper mathematical notation, detailed explanations, and practical applications for each geometric shape:
where a = length of any side (all sides are equal)
A cube is a regular hexahedron, a three-dimensional geometric shape composed of six congruent square faces, twelve equal edges, and eight vertices. It is one of the five Platonic solids and represents perfect symmetry in three-dimensional space. Since all edges of a cube are equal in length, the volume calculation is straightforward - simply cube the length of any side.
The cube formula (V = a³) means you multiply the side length by itself three times (a × a × a). This geometric principle applies because volume represents length × width × height, and in a cube, all three dimensions are identical. Cubes are commonly found in dice, ice cubes, building blocks, and cubic storage containers.
Example: If a cube has sides of 5 cm, its volume is 5³ = 5 × 5 × 5 = 125 cm³
where l = length, w = width, h = height (all three dimensions are perpendicular)
A rectangular prism, also known as a cuboid or rectangular box, is a three-dimensional geometric shape with six rectangular faces, twelve edges, and eight vertices. Each face is a rectangle, and opposite faces are parallel and congruent. The three dimensions (length, width, height) are mutually perpendicular, creating right angles at every corner.
The rectangular prism volume formula (V = l × w × h) represents the most fundamental volume calculation in geometry. It directly applies the concept that volume equals the product of three perpendicular dimensions. This shape is the most common in manufactured objects because it's efficient for storage, transportation, and construction. Examples include boxes, rooms, books, refrigerators, and most building structures.
Example: A box with length 8 cm, width 5 cm, and height 3 cm has volume = 8 × 5 × 3 = 120 cm³
where r = radius of the sphere (distance from center to surface)
A sphere is a perfectly round three-dimensional geometric object where every point on its surface is equidistant from its center. This distance is called the radius. The sphere is the three-dimensional analog of a circle and has the smallest surface area among all surfaces that enclose a given volume, making it an efficient shape in nature and engineering.
The sphere volume formula involves π (pi ≈ 3.14159) because it relates to circular geometry. The factor 4/3 comes from calculus integration of circular cross-sections. To calculate, cube the radius, multiply by π, then multiply by 4/3. Spheres appear in balls, planets, bubbles, and many natural formations like dewdrops and cellular structures.
Example: A sphere with radius 3 cm has volume = (4/3) × π × 3³ = (4/3) × π × 27 ≈ 113.1 cm³
where r = radius of the circular base, h = height of the cylinder
A cylinder is a three-dimensional geometric shape consisting of two parallel circular bases of equal size connected by a curved rectangular surface. It can be thought of as a circle extended through space in a perpendicular direction. Cylinders are classified as right cylinders (where the sides are perpendicular to the base) or oblique cylinders (where the sides are at an angle).
The cylinder volume formula (V = πr²h) works by calculating the area of the circular base (πr²) and multiplying it by the height. This represents stacking circular cross-sections from bottom to top. The π factor accounts for the circular base geometry. Cylinders are ubiquitous in engineering applications including pipes, tanks, cans, barrels, and engine cylinders.
Example: A cylinder with radius 4 cm and height 10 cm has volume = π × 4² × 10 = π × 16 × 10 ≈ 502.7 cm³
where r = radius of the circular base, h = perpendicular height from base to apex
A cone is a three-dimensional geometric shape that tapers smoothly from a flat circular base to an apex (vertex or tip). The apex lies directly above the center of the base in a right circular cone. The curved surface connecting the base to the apex is called the lateral surface, and the straight line from the apex to the center of the base represents the height.
The cone volume formula (V = ⅓πr²h) is exactly one-third of a cylinder with the same base and height. This 1/3 factor comes from the fact that a cone occupies one-third the space of its corresponding cylinder. The mathematical relationship is derived through calculus integration of circular cross-sections that decrease linearly from base to apex. Cones appear in ice cream cones, traffic cones, volcanic formations, and coniferous tree shapes.
Example: A cone with base radius 6 cm and height 9 cm has volume = (1/3) × π × 6² × 9 = (1/3) × π × 36 × 9 ≈ 339.3 cm³
where b = base of triangle, h = height of triangle, l = length of prism
A triangular prism is a three-dimensional geometric shape with two parallel triangular bases connected by three rectangular faces. The triangular bases are congruent and parallel to each other, while the rectangular faces form the lateral surfaces. This shape can be visualized as a triangle extruded through space in a perpendicular direction.
The triangular prism volume formula (V = ½ × b × h × l) works by first calculating the area of the triangular base (½ × base × height) and then multiplying by the length of the prism. This shape is commonly found in architectural elements like roof trusses, tent structures, chocolate bars (Toblerone), and various engineering applications where triangular cross-sections provide structural efficiency.
Example: A triangular prism with base 6 cm, height 4 cm, and length 10 cm has volume = ½ × 6 × 4 × 10 = 120 cm³
where a, b, c = semi-axes lengths (half the length of each axis)
An ellipsoid is a three-dimensional geometric shape that resembles a stretched or compressed sphere. It has three perpendicular axes of different lengths, making it an oval-shaped solid. When all three axes are equal, the ellipsoid becomes a sphere. Ellipsoids are classified as prolate (elongated like a football) or oblate (flattened like Earth).
The ellipsoid volume formula (V = 4/3πabc) is an extension of the sphere formula, where instead of using radius³, we multiply the three semi-axes lengths. This shape appears in nature as eggs, planets (Earth is an oblate ellipsoid), rugby balls, and many biological structures like cells and organs.
Example: An ellipsoid with semi-axes 3 cm, 4 cm, and 5 cm has volume = (4/3) × π × 3 × 4 × 5 ≈ 251.3 cm³
where r = radius, h = cylindrical height (excluding hemispheres)
A capsule, also known as a spherocylinder, is a three-dimensional shape consisting of a cylinder with hemispherical ends. It combines the cylindrical middle section with two half-spheres at each end, creating a smooth, rounded shape with no sharp edges. The total length includes both the cylindrical portion and the two hemispheres.
The capsule volume formula combines a cylinder volume (πr²h) with a complete sphere volume (4/3πr³). The two hemispheres together form one complete sphere. This shape is commonly found in pharmaceutical capsules, storage tanks, pressure vessels, and architectural elements where smooth, rounded ends are desired for safety or aesthetic reasons.
Example: A capsule with radius 2 cm and cylindrical height 8 cm has volume = π × 2² × 8 + (4/3) × π × 2³ ≈ 134.0 cm³
where r₁ = radius of larger base, r₂ = radius of smaller base, h = height
A conical frustum, also called a truncated cone, is a three-dimensional shape created by cutting a cone with a plane parallel to its base, removing the top portion. This results in a shape with two circular bases of different sizes connected by a curved lateral surface. The bases are parallel but not equal in size.
The conical frustum volume formula accounts for the gradual change in radius from one base to the other. It's essentially the volume of the complete cone minus the volume of the removed top portion. This shape is commonly found in lampshades, buckets, flower pots, traffic cones, and many industrial containers where a tapered design is beneficial for stacking or pouring.
Example: A frustum with r₁=5 cm, r₂=3 cm, and height 8 cm has volume = (1/3) × π × 8 × (25 + 15 + 9) ≈ 410.5 cm³
where a = side length of hexagonal base, h = height of prism
A hexagonal prism is a three-dimensional geometric shape with two parallel hexagonal bases connected by six rectangular faces. The hexagonal bases are regular hexagons (six equal sides and angles), making this a uniform prism. Each hexagonal base has six equal sides and six equal angles of 120 degrees.
The hexagonal prism volume formula first calculates the area of the hexagonal base using the formula (3√3/2)a², then multiplies by height. The factor 3√3/2 ≈ 2.598 comes from the geometric properties of a regular hexagon. This shape appears in nature as honeycomb cells, crystal structures, pencils, nuts and bolts, and various architectural elements.
Example: A hexagonal prism with side length 4 cm and height 10 cm has volume = (3√3/2) × 4² × 10 ≈ 415.7 cm³
where a = side length of pentagonal base, h = height of prism
A pentagonal prism is a three-dimensional geometric shape with two parallel pentagonal bases connected by five rectangular faces. The pentagonal bases are regular pentagons with five equal sides and five equal angles of 108 degrees each. This shape combines the unique properties of the pentagon with the structural stability of a prism.
The pentagonal prism volume formula involves calculating the area of the regular pentagonal base, which uses the complex expression (5/4) × a² × √(25 + 10√5) ≈ 1.720a², then multiplying by height. The pentagon appears in nature, architecture, and design, making pentagonal prisms useful in specialized applications like certain building designs and geometric art.
Example: A pentagonal prism with side length 3 cm and height 8 cm has volume ≈ 1.720 × 3² × 8 ≈ 123.8 cm³
where a = side length of square base, h = perpendicular height from base to apex
A square pyramid is a three-dimensional geometric shape with a square base and four triangular faces that meet at a single apex (vertex). This is the most recognizable pyramid form, famously represented by the Egyptian pyramids of Giza. The apex is positioned directly above the center of the square base in a regular square pyramid.
The square pyramid volume formula (V = ⅓a²h) simplifies the general pyramid formula by using the square base area (a²). The 1/3 factor comes from the tapering nature of pyramids. This shape is architecturally significant, appearing in ancient monuments, modern buildings, roof designs, and geometric art. It represents one of humanity's most enduring architectural achievements.
Example: A square pyramid with base side 6 cm and height 9 cm has volume = (1/3) × 6² × 9 = (1/3) × 36 × 9 = 108 cm³
Conversion tip: 1 liter = 1000 cm³, 1 gallon ≈ 3.785 liters, 1 m³ = 1000 liters
Select a calculator below to calculate the volume of specific 3D shapes. Each calculator includes the formula, step-by-step calculation, and unit conversion.
Calculate the volume of a cube by entering the side length.
Calculate the volume of a rectangular prism using length, width, and height.
Calculate the volume of a sphere by entering the radius.
Calculate the volume of a cylinder using radius and height.
Calculate the volume of a cone using radius and height.
Calculate the volume of a triangular prism using base area and length.
Calculate the volume of an ellipsoid using its three semi-axes.
Calculate the volume of a capsule (cylinder with hemispherical ends).
Calculate the volume of a truncated cone with different radii.
Calculate the volume of a hexagonal prism with regular hexagonal base.
Calculate the volume of a pentagonal prism with regular pentagonal base.
Calculate the volume of a square-based pyramid.
Master the fundamentals of volume calculations with step-by-step guides and examples.
Learn the simple formula and steps to calculate the volume of cubic shapes.
Understand cylinder volume calculations with practical examples and applications.
Master sphere volume calculations with detailed explanations and real-world examples.
Learn cone volume formulas and calculations with step-by-step guidance.
Comprehensive guide to calculating rectangular prism volumes with examples.
Our volume calculator supports all major volume units with instant conversions:
A volume calculator is a mathematical tool that calculates the amount of three-dimensional space occupied by various geometric shapes. Our online volume calculator supports 20+ shapes including cubes, spheres, cylinders, cones, pyramids, prisms, and complex shapes like ellipsoids and frustums. It provides instant results with step-by-step solutions and unit conversions.
Volume calculation depends on the shape: Cube (V = a³), Sphere (V = 4/3πr³), Cylinder (V = πr²h), Cone (V = 1/3πr²h), Rectangular Prism (V = l×w×h), and Pyramid (V = 1/3Bh). Our calculator uses these precise mathematical formulas to ensure accurate results for all supported 3D shapes.
Our volume calculator supports multiple units including cubic meters (m³), cubic centimeters (cm³), cubic inches (in³), cubic feet (ft³), liters (L), milliliters (mL), gallons, and more. You can input measurements in any unit and convert results to your preferred unit system.
Our volume calculators use precise mathematical formulas and provide results accurate to multiple decimal places. All calculations are mathematically verified and suitable for academic, professional, and engineering applications.
Yes! Our volume calculator is fully responsive and optimized for mobile phones, tablets, and desktop computers. You can calculate volumes on any device with internet access.
Absolutely! All our volume calculators are completely free to use with no registration required. We provide step-by-step solutions, formulas, and unit conversions at no cost.
The most commonly used volume formulas are: Rectangular box (V = length × width × height), Cylinder (V = π × radius² × height), and Sphere (V = 4/3 × π × radius³). These shapes appear frequently in real-world applications from construction to manufacturing.