Rectangular Prism Volume Calculator
Use this free online Rectangular Prism Volume Calculator to find the exact cubic volume, total surface area, base area, and space diagonal of a right, hollow, or oblique rectangular prism (cuboid or box). Enter length, width, and height in decimals or fractions across metric and Imperial units for instant conversions into liters, gallons, cubic feet, and cubic meters.
Step-by-Step Formula & Substitution
What Is a Rectangular Prism? (6 Faces, 12 Edges & 8 Vertices)
A rectangular prism (also known as a cuboid or rectangular box) is a three-dimensional polyhedron bounded by 6 rectangular faces meeting at 90° right angles, with 12 edges (three sets of four parallel equal edges) and 8 vertices. Every cross-section sliced parallel to any face is an identical rectangle.
Because its base area (B = l × w) remains constant along its perpendicular height (h), the rectangular prism volume formula is simply the product of its three perpendicular dimensions: V = l × w × h. Whether you are measuring a room for HVAC airflow, sizing an aquarium in gallons or liters, computing concrete cubic yardage for a patio slab, or checking freight dimensional weight, our rectangular prism volume calculator handles decimals, fractions, and mixed units automatically. As defined by the National Institute of Standards and Technology (NIST) SI Volume Units Guide, 1,000 cm³ equals exactly 1 liter (1 L), directly linking cubic box dimensions to liquid capacity.
- Length (l): The longest horizontal edge of the rectangular base.
- Width (w): The shorter horizontal edge perpendicular to the length.
- Height / Depth (h): The vertical distance between the bottom rectangular base and the top rectangular face. (Because multiplication is commutative, any face can serve as the base—l × w × h produces the exact same volume regardless of box orientation.)
- Space Diagonal (d): The longest straight line fitting inside the box from one bottom corner to the opposite top corner (d = √(l² + w² + h²)).
Rectangular Prism Volume, Surface Area & Diagonal Formulas
Starting from the fundamental equation V = l × w × h, you can derive surface area, base area, space diagonal, hollow wall volume, and missing edge lengths using the equations below:
| Geometric Property / Mode | Mathematical Formula | Variables & Units | Typical Applications |
|---|---|---|---|
| Right Rectangular Prism Volume | V = l × w × h |
l = length, w = width, h = height (cubic units) |
Boxes, rooms, tanks, slabs, lumber, shipping cartons |
| Total Surface Area (Closed Box) | SA = 2 × (l·w + l·h + w·h) |
Sum of all 6 rectangular faces (square units) | Cardboard material, gift wrapping, paint & insulation area |
| Lateral Surface Area (4 Side Walls) | LA = 2 × h × (l + w) |
Perimeter of base × height (square units) | Wall paint or wallpaper area of a rectangular room |
| Base Area (Floor / Footprint) | B = l × w |
Bottom face area (square units) | Flooring, carpet, foundation footprint |
| Space Diagonal (Corner-to-Corner) | d = √(l² + w² + h²) |
3D Pythagorean theorem (linear units) | Maximum rod or umbrella length that fits inside a box |
| Hollow Rectangular Prism (Wall t) | V_inner = (l − 2t)(w − 2t)(h − 2t) |
Deducts 2t per enclosed axis (1t on open-top height) |
Insulated coolers, thick-walled concrete vaults, aquariums |
| Oblique Rectangular Prism Volume | V = l × w × h = l × w × s × sin(θ) |
h = perpendicular height, s = slant edge, θ = tilt angle |
Slanted architectural bays, tilted parallelepipeds |
| Reverse Solver: Width, Length or Height | w = V ÷ (l × h) |
Analogously l = V ÷ (w × h) and h = V ÷ (l × w) |
Sizing container dimensions for a target liter/gallon volume |
How to Find the Volume of a Rectangular Prism (Decimals & Fractions)
Follow these four steps whenever you need to calculate the volume of a rectangular prism manually—including measurements with fractions:
- Convert Fractions to Decimals (If Needed): If your tape measure reads in fractions—such as 5 1/2 in, 3 1/4 in, and 2 in—convert the fractions first (1/2 = 0.5 and 1/4 = 0.25, giving 5.5 in, 3.25 in, and 2 in). Our rectangular prism volume calculator with fractions parses expressions like
5 1/2or3/4automatically. - Ensure All Three Units Match: Confirm that length, width, and height are expressed in the exact same linear unit (for example, all in centimeters or all in feet).
- Multiply Length × Width × Height: Multiply the three numbers together. For example, for l = 6 cm, w = 4 cm, and h = 3 cm: 6 × 4 = 24 cm² (base area), and 24 × 3 = 72 cm³.
- Attach Cubic Units (and Convert to Liters or Gallons): Express the answer in cubic units (cm³, in³, ft³, or m³) or convert directly to liquid capacity.
Rectangular Prism Volume in Liters, Gallons & Cubic Yards
Because rectangular tanks, aquariums, planters, and concrete pours are ordered in liquid or bulk trade units rather than raw cubic inches or centimeters, use these exact conversion relationships:
- Rectangular Prism Volume in Liters (
L): If you measured in centimeters, divide cubic centimeters (cm³) by 1,000 (since 1 L = 1,000 cm³). For example, a 60 × 40 × 25 cm storage bin holds 60,000 cm³ = 60 liters. If you measured in meters, multiply cubic meters (m³) by 1,000. - Rectangular Prism Volume in US Gallons: Divide cubic inches (in³) by 231 (since 1 US gal = 231 in³ exact), or multiply cubic feet (ft³) by 7.48052.
- Rectangular Prism Volume in UK Imperial Gallons: Divide liters by 4.54609, or multiply cubic feet by 6.22884.
- Rectangular Prism Volume in Cubic Yards (Concrete, Soil & Mulch): Calculate cubic feet (lft × wft × hft) and divide by 27 (since 1 cubic yard = 3 × 3 × 3 = 27 ft³).
Hollow Rectangular Prisms (Wall Thickness) & Oblique Prisms
Standard box formulas assume zero wall thickness and 90° vertical sides. Our calculator provides dedicated tabs for two common real-world variations:
- Hollow Rectangular Prism (Closed Box vs. Open-Top Tank): When measuring the outside of a thick-walled cooler, planter, or concrete tank with uniform wall thickness t, each enclosed axis loses t on both opposite walls (2t total). For a closed 6-sided box, internal capacity is Vinner = (L − 2t)(W − 2t)(H − 2t), and the solid wall material volume is Vwall = LWH − Vinner. For an open-top aquarium or trough with no lid, height deducts only the bottom floor thickness (H − t).
- Oblique Rectangular Prism: In an oblique rectangular prism, the top rectangle is shifted horizontally relative to the bottom rectangle so the side faces are slanted parallelograms. By Cavalieri’s principle, its volume is still V = l × w × h as long as h is the perpendicular vertical height—or V = l × w × s × sin(θ) if you measure the slanted side edge s and its tilt angle θ from the base plane.
Rectangular Prism vs. Cube, Triangular Prism, Cylinder & Cone
Every standard 3D volume formula builds directly on the rectangular prism’s extrusion principle (V = Base Area × Height). Compare how a rectangular prism relates to a cube, triangular prism, rectangular pyramid, cylinder, and cone:
| 3D Geometric Solid | Volume Formula | Relationship to Rectangular Prism |
|---|---|---|
| Right Rectangular Prism | V = l × w × h |
Baseline cuboid (6 rectangular faces at 90°) |
| Cube | V = a³ |
Special rectangular prism where l = w = h = a |
| Triangular Prism | V = ½ × b × h_t × l |
Half of a matching rectangular prism (0.5 × Base × Height × Length) |
| Rectangular Pyramid | V = (1/3) × l × w × h |
One-third (33.33%) of a rectangular prism with the same base & height |
| Right Circular Cylinder | V = π × r² × h |
Same Base Area × Height rule with circular base B = πr² |
| Right Circular Cone | V = (1/3) × π × r² × h |
One-third of a matching cylinder (tapers to a single apex) |
5 Practical Worked Rectangular Prism Examples
Example 1: 6 × 4 × 3 cm Rectangular Prism
Given: Length l = 6 cm, width w = 4 cm, height h = 3 cm.
Volume: V = 6 × 4 × 3 = 72 cm³ (72 mL or 0.072 L).
Surface Area: SA = 2(6×4 + 6×3 + 4×3) = 2(24 + 18 + 12) = 108 cm².
Example 2: 2 × 3 × 4 ft Storage Tote in Gallons
Given: Length 2 ft, width 3 ft, height 4 ft.
Volume: V = 2 × 3 × 4 = 24 ft³.
Liquid Capacity: 24 × 7.48052 ≈ 179.53 US gal (679.60 L).
Example 3: Fractional Dimensions (5 1/2 × 3 1/4 × 2 in)
Step 1: Convert fractions: 5.5 in × 3.25 in × 2 in.
Step 2: Multiply: 5.5 × 3.25 × 2 = 35.75 in³ (585.84 cm³).
Example 4: 30 × 12 × 12 in “20-Gallon Long” Aquarium
Step 1: Cubic inches: 30 × 12 × 12 = 4,320 in³.
Step 2: Divide by 231: 4,320 ÷ 231 ≈ 18.70 US gallons (70.79 L).
Example 5: Finding Missing Width (V = 72 cm³, l = 6 cm, h = 3 cm)
Formula: w = V ÷ (l × h).
Calculation: w = 72 ÷ (6 × 3) = 72 ÷ 18 = 4 cm.
Common Real-World Boxes, Aquariums & Shipping Containers
Compare standard moving boxes, pallets, aquariums, and shipping containers in this quick reference table:
| Container / Structure | Dimensions (l × w × h) | Cubic Volume | Liters / US Gallons |
|---|---|---|---|
| Small Moving Box | 16 × 12 × 12 in | 2,304 in³ (1.333 ft³) | 37.76 L (9.97 US gal) |
| Medium Moving Box | 18 × 18 × 16 in | 5,184 in³ (3.000 ft³) | 84.95 L (22.44 US gal) |
| Large Moving Box | 18 × 18 × 24 in | 7,776 in³ (4.500 ft³) | 127.43 L (33.66 US gal) |
| “20-Gallon Long” Glass Aquarium | 30 × 12 × 12 in | 4,320 in³ (2.500 ft³) | 70.79 L (18.70 US gal) |
| Raised Garden Bed (4 × 8 ft, 10 in deep) | 4 × 8 × 0.8333 ft | 26.67 ft³ (0.988 yd³) | 755.1 L (199.5 US gal) |
| Standard US Pallet Load (60 in tall) | 48 × 40 × 60 in | 115,200 in³ (66.67 ft³) | 1,887.8 L (498.7 US gal) |
| 20-Foot ISO Shipping Container (Interior) | 19.3 × 7.7 × 7.8 ft | 1,159.2 ft³ (32.82 m³) | 32,824 L (8,671 US gal) |
How to Calculate Rectangular Prism Volume in Excel & Google Sheets
You can automate rectangular prism volume, surface area, space diagonal, and unit conversions in Microsoft Excel or Google Sheets (assuming length is in cell A2, width in B2, and height in C2 in matching units):
- Rectangular Prism Volume (l × w × h):
=A2*B2*C2
- Total Closed Surface Area (2(lw + lh + wh)):
=2*((A2*B2)+(A2*C2)+(B2*C2))
- Space Diagonal (√(l² + w² + h²)):
=SQRT((A2^2)+(B2^2)+(C2^2))
- Find Missing Width from Volume in
D2(V ÷ (l × h)):=D2/(A2*C2) - Convert Cubic Centimeters in
D2to Liters, or Cubic Inches to US Gallons:=D2/1000 | =CONVERT(D2, “in3”, “gal”)
6 Common Box & Rectangular Prism Calculation Mistakes
- Multiplying Mixed Units Directly: Multiplying 48 in × 40 in × 1.5 m directly gives 2,880—which is neither cubic inches nor cubic meters. Always convert all three edges to one unit first, or select per-field units in our calculator.
- Measuring Exterior Dimensions Instead of Interior Capacity: Corrugated cardboard boxes lose roughly 1/4 in per wall, while insulated coolers and concrete tanks lose inches per wall. Use our Hollow Box / Wall Thickness tab to deduct wall thickness accurately.
- Confusing Surface Area (2(lw + lh + wh)) with Volume (lwh): Surface area is measured in square units (wrapping paper or paint), whereas volume is measured in cubic units (interior space).
- Using Linear Conversion Factors on Cubic Outputs: Remember that 1 ft³ = 1,728 in³ (12³) and 1 yd³ = 27 ft³ (3³), not 12 or 3.
- Using Slant Length Instead of Perpendicular Height on Oblique Prisms: If a box leans, multiply base area by the perpendicular vertical height—not the slanted side edge.
- Assuming 100% Real-World Packing Efficiency: When packing smaller cartons inside a larger rectangular truck or container, irregular gaps typically limit practical usable volume to 80%–85% of gross geometric volume.
Calculation Methodology, Precision & Limitations
Every tool on Volume Calcs adheres to transparent mathematical and software standards:
- Unit Normalization & Constants: All entered decimals and fractions are parsed into IEEE 754 double-precision floating-point values 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 evaluating volume, surface area, and diagonal formulas. Full internal precision is preserved across all multi-unit conversions, and rounding is applied only to displayed outputs.
- Local Client-Side Execution & Privacy: All mathematical processing executes 100% locally in your web browser via vanilla JavaScript. No entered values or results are transmitted to external servers.
- Geometric Assumptions & Limitations: Right rectangular prism formulas assume 6 planar rectangular faces meeting at 90° right angles, and hollow box mode assumes uniform wall thickness. Real-world results depend directly on physical measurement accuracy.
Frequently Asked Questions About Rectangular Prism Volume
How do you find the volume of a rectangular prism?
To find the volume of a rectangular prism, measure its length (l), width (w), and height (h) in the same unit of length and multiply all three dimensions together using the formula V = l × w × h. The resulting answer is expressed in cubic units such as cm³, m³, in³, or ft³.
What is the volume of a rectangular prism with length 6 cm, width 4 cm, and height 3 cm?
The volume of a rectangular prism with length 6 cm, width 4 cm, and height 3 cm is 72 cubic centimeters (72 cm³), calculated as 6 × 4 × 3 = 72. Converted into other common units, 72 cm³ equals 72 milliliters (mL), 0.072 liters (L), or 4.3937 cubic inches (in³).
How to calculate volume of a rectangular prism in gallons?
First multiply length × width × height to get the interior volume in cubic inches, cubic feet, or cubic centimeters, then convert to gallons: divide cubic inches by 231 (1 US gal = 231 in³), multiply cubic feet by 7.48052 (1 ft³ ≈ 7.4805 US gal), or divide cubic centimeters by 3,785.41. For UK Imperial gallons, multiply cubic feet by 6.22884 or divide liters by 4.54609.
What is a formula for a rectangular prism?
The core geometric formulas for a right rectangular prism of length l, width w, and height h are: Volume: V = l × w × h; Total Surface Area: SA = 2(lw + lh + wh); Base Area: B = l × w; and Space Diagonal: d = √(l² + w² + h²).
How to calculate prism formula?
The universal volume formula for any prism is V = Base Area (B) × Perpendicular Height (h). For a rectangular prism, the rectangular base has area B = l × w, which produces V = l × w × h.
How do I calculate the area of a rectangular prism?
To calculate the total surface area of a closed rectangular prism, find the area of all three pairs of opposite rectangular faces and add them together using SA = 2 × (l·w + l·h + w·h). For example, a 6 × 4 × 3 cm box has a surface area of 2 × (24 + 18 + 12) = 108 cm². Our calculator displays Total Surface Area automatically.
How do you calculate the volume of a prism?
Calculate the two-dimensional area of the prism’s repeating polygonal base (B) and multiply by the perpendicular height or length (h) separating the two parallel bases: V = B × h. For a rectangular prism, multiply length × width × height; for a triangular prism, multiply 0.5 × base × triangle height × length.
What is the formula for prism area?
The universal total surface area formula for any right prism is SA = (2 × Base Area) + (Base Perimeter × Height) = 2B + Ph. For a rectangular prism, where B = lw and P = 2(l + w), this simplifies to SA = 2(lw + lh + wh).
How to find the width of a rectangular prism?
Rearrange the volume formula V = l × w × h by dividing the known volume (V) by the product of length and height: w = V ÷ (l × h). For example, if a rectangular prism has a volume of 72 cm³, a length of 6 cm, and a height of 3 cm, its width is 72 ÷ (6 × 3) = 4 cm. Use our calculator’s Find Width, Length or Height tab to solve this in any unit.
How do you calculate rectangular prism volume in liters?
Measure the interior length, width, and height in centimeters, multiply Length (cm) × Width (cm) × Height (cm) to get cubic centimeters (cm³), and divide by 1,000 to get liters (L). If you measured in meters, multiply cubic meters (m³) by 1,000.
How do you calculate the volume of a rectangular prism with fractions?
Convert mixed numbers into improper fractions or decimals first, then multiply length × width × height. For example, 5 1/2 in × 3 1/4 in × 2 in becomes (11/2) × (13/4) × (2/1) = 286/8 = 35.75 in³. You can enter fractions like 5 1/2 or 3/4 directly into our calculator.
How do you find the internal volume of a hollow rectangular prism (box with wall thickness)?
Subtract twice the uniform wall thickness (2t) from each enclosed outer dimension and multiply: Vinner = (L − 2t) × (W − 2t) × (H − 2t) for a closed 6-sided box, or use (H − t) on height for an open-top tank. Switch to our Hollow Box / Wall Thickness tab to compute both internal capacity and wall material volume.
Does an oblique (slanted) rectangular prism have the same volume formula?
Yes. By Cavalieri’s principle, an oblique rectangular prism has the exact same volume formula V = l × w × h as a right rectangular prism, provided h is the perpendicular vertical height between the top and bottom base planes rather than the longer slanted edge.
Is a rectangular prism the same as a cuboid or a cube?
Yes, a rectangular prism and a cuboid are the exact same 3D shape (six rectangular faces meeting at right angles). A cube is a special type of rectangular prism where all three dimensions—length, width, and height—are equal (l = w = h = a, so V = a³).
How do you find the space diagonal of a rectangular prism?
Apply the three-dimensional Pythagorean theorem: d = √(l² + w² + h²). For example, a box measuring 6 cm × 4 cm × 3 cm has an interior corner-to-corner space diagonal of √(36 + 16 + 9) = √61 ≈ 7.8102 cm.
What is the difference between a rectangular prism and a rectangular pyramid?
A rectangular prism has two parallel, congruent rectangular faces at top and bottom (V = l × w × h), whereas a rectangular pyramid tapers from a rectangular base to a single top apex, holding exactly one-third (1/3) as much volume (V = (1/3) × l × w × h).
Check Other Volume Calculators:
