---
slug: cuboid-calculator
title: "Cuboid Calculator"
category: geometry
updated: 2026-11-17
canonical: https://calcseed.com/c/geometry/cuboid-calculator/
html: /c/geometry/cuboid-calculator/
---

# Cuboid Calculator

Calculate the volume, surface area and space diagonal of a cuboid (rectangular box) from its length, width and height. Solve for any dimension. Free and instant.

## Quick answer

**Quick answer:** with the default inputs (3 units, 4 units, 5 units), the volume is **60 units³**. At these inputs: surface area = **94**, space diagonal = **7.07**. Change any input to update the result.

## Default calculation

Values computed by this calculator at exactly the default inputs listed below.

### Inputs (defaults)

| Input | Value | Unit |
| --- | --- | --- |
| Length | 3 | units |
| Width | 4 | units |
| Height | 5 | units |

### Outputs at these defaults

| Output | Value | Unit |
| --- | --- | --- |
| Volume | 60 | units³ |
| Surface area | 94 |  |
| Space diagonal | 7.07107 |  |

## Formula

```text
V = l × w × h     d = &radic;(l² + w² + h²)
```

## Inputs

| Variable | Type | Unit | Default |
| --- | --- | --- | --- |
| Length | number | units | 3 |
| Width | number | units | 4 |
| Height | number | units | 5 |
| Volume | number | units³ | 60 |

## Outputs

| Result | Format |
| --- | --- |
| Volume | primary |
| Surface area | number |
| Space diagonal | number |

## How it works

### What this calculator measures

A cuboid is a box with six rectangular faces, fixed by three numbers: length l, width w and height h. This calculator returns the volume it holds in cubic units, the total surface area of all six faces in square units, and the space diagonal — the longest straight line that fits inside the box. You can also solve for any one dimension when you know the volume and the other two sides.

### The formula, term by term

The volume counts unit cubes stacked h layers deep on an l × w base, which is why it is a product of three lengths and lands in cubic units. The surface area adds the three pairs of opposite faces: 2(lw + wh + hl). Each pair shares a dimension product, and the factor 2 counts both faces of every pair — top and bottom, front and back, two sides.

The space diagonal applies the Pythagorean theorem twice. First find the floor diagonal across the bottom face: &radic;(l² + w²). Then treat that diagonal as one leg of a right triangle rising through h. At the defaults this is pleasingly concrete: the floor diagonal of a 3 × 4 base is exactly 5 (the 3-4-5 triangle), and &radic;(5² + 5²) = &radic;50 ≈ 7.07 units, the corner-to-corner distance the calculator reports.

### Worked example with the defaults

The defaults are l = 3, w = 4, h = 5. The volume is 3 × 4 × 5 = 60 units³. The face products are lw = 12, wh = 20 and hl = 15, summing to 47, so the surface area is 2 × 47 = 94 units². The space diagonal is &radic;(9 + 16 + 25) = &radic;50 ≈ 7.07 units.

A practical reading of those numbers: the box holds 60 cubic units of cargo, needs 94 square units of cardboard to build (slightly more with flaps and overlaps), and swallows any rigid item up to 7.07 units long, corner to corner. All three figures answer different purchasing questions — fill, material and fit — and mixing them up is the most common way people misuse a box calculator.

### Same volume, different boxes

| Dimensions (l × w × h) | Volume | Surface area | Space diagonal |
| --- | --- | --- | --- |
| 3 × 4 × 5 | 60 | 94 | 7.07 |
| 2 × 5 × 6 | 60 | 104 | 8.06 |
| 1 × 5 × 12 | 60 | 154 | 13.04 |
| 6 × 10 × 1 | 60 | 152 | 11.70 |

All four boxes hold exactly 60 cubic units, yet the flattest one needs 154 units² of material against the 3 × 4 × 5 box&rsquo;s 94 — 64% more packaging for the same cargo. Among boxes of equal volume, the closer the shape is to a cube, the less surface it carries. That single comparison is why shipping boxes cluster near cubic proportions and why flattening a box to save shelf space costs you material elsewhere.

#### Real boxes for calibration

- **Shoe box.** A 13 × 8 × 5 in box holds 520 in³, wears 418 in² of cardboard and has a 16.06 in space diagonal — enough for a pair of 15 in shoes laid diagonally.
- **Moving box.** The standard 18 × 18 × 16 in box holds 5,184 in³ (about 22 gallons), uses 1,800 in² of material and admits items up to 30.07 in long.
- **Cube box.** A 12 × 12 × 12 in shipping cube holds 1,728 in³ on 864 in² of cardboard, matching its volume and surface almost one-for-one in this size range.

### What moves the numbers

- The largest dimension dominates the diagonal: shrinking h from 5 to 1 in the default box only trims the diagonal from 7.07 to &radic;(9 + 16 + 1) ≈ 5.20, less than you might expect.
- Volume responds multiplicatively: a 10% increase in every dimension lifts the volume by 1.1³ ≈ 33%, but the surface area by only 21%.
- Surface area is a sum, not a product: adding one unit to the largest dimension adds just 2(w + h) = 18 units² at the defaults.
- The cube is the packaging optimum: at fixed volume, any departure toward a slab or a rod raises the surface area, as the table shows.

### Common mistakes

- Mixing inches and feet across the three inputs: a single foot-long side among inch-long sides corrupts the volume by a factor of 12, and a fully inverted case shifts volumes by 1,728×.
- Using the surface area where volume belongs: painting a 60 units³ box needs 94 units² of coverage, but filling it needs 60 units³ of material — different units, different purchases.
- Assuming the longest edge is the fit limit: a rigid item longer than 5 units still fits the default box if it goes corner to corner, up to the 7.07 diagonal.
- Confusing the space diagonal with carrier length-plus-girth rules, which add the longest side to twice the sum of the other two: 5 + 2 × (3 + 4) = 19 at the defaults, not 7.07.

Unit conversion deserves one worked warning. A box measured as 12 × 12 × 12 inches is 1,728 in³, but the same box is 1 × 1 × 1 ft = 1 ft³. The conversion factor is 12³ = 1,728, not 12, because volume inherits the cube of the length ratio. Converting the surface area instead, 864 in² becomes 6 ft² through 12² = 144. Check which exponent applies before you convert any box result.

### Solving for a missing dimension

Any one dimension is recoverable from the volume and the other two: l = V ÷ (w × h), and similarly for w and h. With V = 60, w = 4 and h = 5, the length solves to 60 ÷ 20 = 3, the default. The reverse direction is just as useful when you shop for boxes: knowing you need 5,184 in³ and a shelf 16 in deep tells you the footprint is &radic;(5184 ÷ 16) ≈ 18 in square — which is exactly where the standard moving box comes from.

## FAQ

### How do I find the volume of a box?

Multiply length by width by height: V = l × w × h. The default 3 × 4 × 5 box holds 60 cubic units.

### How do I find the space diagonal of a box?

Take &radic;(l² + w² + h²). For 3, 4 and 5 the sum of squares is 50, so the diagonal is &radic;50 ≈ 7.07 units — the longest straight object the box can contain.

### How do I find a missing dimension?

Divide the volume by the product of the other two sides. With V = 60, w = 4 and h = 5, the length is 60 ÷ 20 = 3.

### Why is the surface area 94 for a 60-volume box?

The three face pairs contribute 12, 20 and 15 square units, summing to 47; doubling for both faces of each pair gives 2 × 47 = 94 units².

### Which box shape uses the least material for a given volume?

The cube. Holding 60 units³, a 3 × 4 × 5 box needs 94 units² while a flattened 1 × 5 × 12 box needs 154 units² — 64% more cardboard for the same cargo.

### How many cubic inches are in a cubic foot?

1,728, because 12³ = 1,728. A 12 × 12 × 12 inch box is exactly 1 ft³. Surface areas convert with 12² = 144 instead: 864 in² is 6 ft².

### What does length plus girth mean for my box?

Carriers add the longest side to twice the sum of the other two. The default box measures 5 + 2 × (3 + 4) = 19 units, which is a shipping rule number, not the 7.07 diagonal.

### Can an item longer than the box&rsquo;s longest side fit inside?

Yes, up to the space diagonal. The default box&rsquo;s longest edge is 5 units, but any rigid item up to 7.07 units fits corner to corner.

### How do I compute wall area for painting a room?

Use the surface area formula without floor and ceiling: 2h(l + w). A 12 × 10 ft room with 8 ft walls gives 2 × 8 × 22 = 352 ft² of wall, about one gallon per coat.

## Method and sources

Methodology: Formulas are the standard closed-form expressions of Euclidean geometry, exact for the given inputs.

Last updated: 2026-11-17.
- Cuboid: V = lwh, SA = 2(lw + wh + hl), diagonal d = √(l² + w² + h²).
