Cuboid Calculator

Enter the length, width, and height of a rectangular box (cuboid) to calculate its volume, surface area, space diagonal, and total edge length using V = l × w × h and SA = 2(lw + lh + wh).

Quick Facts

Core formulas
V = l × w × h, SA = 2(lw + lh + wh)
d = √(l² + w² + h²) gives the space diagonal; a cube is the special case where l = w = h.
Edges, faces, vertices
12 edges, 6 rectangular faces, 8 vertices
Total edge length = 4(l + w + h) — useful for framing, trim, or edging material estimates.

Your Results

Calculated
Volume (V = l × w × h)
-
Space enclosed by the box
Surface area (SA = 2(lw+lh+wh))
-
Total area of all 6 faces
Space diagonal (d = √(l²+w²+h²))
-
Corner-to-opposite-corner distance
Total edge length (4(l+w+h))
-
Sum of all 12 edges

Ready

Enter the length, width, and height, then press Calculate.

How the Cuboid Calculator works

A cuboid (also called a rectangular box or rectangular prism) is a three-dimensional solid with six rectangular faces, twelve edges, and eight vertices, where opposite faces are equal but the three edges meeting at each corner — length, width, and height — can all differ. This calculator takes those three measurements and computes the volume, surface area, space diagonal, and total edge length using the standard geometric formulas for a rectangular box.

Formula and method

Given length l, width w, and height h, the standard cuboid formulas are:

  • Volume: V = l × w × h
  • Surface area: SA = 2(lw + lh + wh) — the combined area of the three pairs of opposite rectangular faces
  • Space diagonal: d = √(l² + w² + h²) — the straight-line distance from one corner through the interior to the opposite corner, a three-dimensional extension of the Pythagorean theorem
  • Total edge length: 4(l + w + h) — the sum of all twelve edges, four of each dimension

These formulas reduce to the familiar cube formulas V = a³ and SA = 6a² in the special case where l = w = h. A cuboid is simply the general rectangular-box shape, of which a cube is one particular example.

Common sources of error

  • Unit mismatch: length, width, and height must all be entered in the same unit — mixing centimeters and inches in one calculation gives a meaningless result.
  • Confusing surface area with volume: surface area uses square units (like cm²) and describes material needed to cover the box; volume uses cubic units (like cm³) and describes the space enclosed inside it.
  • Rounding early: the calculator keeps full floating-point precision internally and only rounds the displayed result, so intermediate steps do not lose accuracy.

Checking your result

A quick sanity check: for a 10 × 6 × 4 cm box, volume should be 10 × 6 × 4 = 240 cm³, and surface area should be 2 × (60 + 40 + 24) = 248 cm². The space diagonal (about 12.33 cm) should always be longer than any single edge, since it stretches through the box's interior. If you double every dimension, volume grows eightfold (2³) while surface area only grows fourfold (2²) — both increase faster than the linear dimensions themselves.

Applications

Cuboid formulas come up constantly in packaging and shipping (box volume for capacity, surface area for material and wrapping estimates), construction (room dimensions, concrete footings, storage tank sizing), furniture and cabinetry design, and everyday tasks like sizing a moving box or aquarium. Label your result with its unit and record the length, width, and height used so the calculation can be reproduced or double-checked later.

Frequently Asked Questions

What is the formula for the volume and surface area of a cuboid?
The volume of a cuboid is V = l × w × h (length times width times height). The surface area is SA = 2(lw + lh + wh), the combined area of all six rectangular faces. For example, a 10 × 6 × 4 cm box has a volume of 240 cm³ and a surface area of 248 cm².
How do I find the space diagonal of a cuboid?
The space diagonal — the straight line from one corner through the interior to the opposite corner — is d = √(l² + w² + h²), a three-dimensional extension of the Pythagorean theorem. For a 10 × 6 × 4 cm box, d = √(100 + 36 + 16) = √152 ≈ 12.33 cm.
What is the difference between a cuboid and a cube?
A cube is a special case of a cuboid where all three dimensions are equal (l = w = h), which simplifies the formulas to V = a³ and SA = 6a². A general cuboid allows length, width, and height to differ, so it needs all three measurements rather than just one edge length.
How accurate are the results?
The calculator applies the exact geometric formulas for an ideal rectangular box, so results are mathematically exact for whatever length, width, and height you enter. The accuracy of a real-world answer depends only on how precisely you measured those three dimensions.