📦 Cuboid Calculator

Enter length, width, and height — get volume, surface area, and diagonal instantly.

📦 Enter Dimensions
Result
Volume
Surface Area
Diagonal
📦

Enter length, width, and height to see your results

Guide

About the Cuboid Calculator

Last updated: July 2026 · Reviewed by the NeftCal editorial team

This cuboid calculator — also known as a rectangular prism calculator or box volume calculator — instantly computes the volume, surface area, and space diagonal of any rectangular box from its length, width, and height. Unlike a cube or sphere, a cuboid has three independent dimensions, so all three measurements must be supplied together; no single known value can determine the other two. Whether you're sizing a shipping box, calculating a room's volume, or estimating aquarium capacity, this free tool multiplies and combines your three dimensions in one step and shows the exact formula used.

What This Calculator Measures

A cuboid (rectangular prism, or rectangular box) is a three-dimensional solid with six rectangular faces meeting at right angles, defined by three independent measurements: length (l), width (w), and height (h). From these three values, the volume (V = l×w×h), surface area (S = 2(lw+lh+wh)), and space diagonal (d = √(l²+w²+h²)) all follow directly. This calculator takes all three dimensions as input and computes all three derived properties at once.

Who Should Use This Calculator

This tool is built for students verifying solid geometry homework, shippers and logistics planners calculating box or container volume, contractors estimating room or storage space, aquarium and tank owners computing water capacity, and anyone with a rectangular box's dimensions who needs its volume, surface area, or diagonal without manually working through the formulas by hand.

Why Cuboid Measurements Matter

Rectangular boxes are the most common 3D shape in everyday life — from shipping cartons to rooms to furniture — but computing their volume, surface area, or diagonal by hand becomes error-prone once you're juggling three different dimensions across multiple formulas. This calculator combines all three cuboid properties into a single instant calculation, which is especially useful for shipping cost estimates (based on volume), material estimates (based on surface area), and fit checks (based on diagonal).

Real-World Applications

Shipping and logistics companies calculate dimensional volume for freight pricing. Contractors and homeowners compute room or storage space volume for HVAC or capacity planning. Aquarium and fish tank owners determine water volume from tank dimensions. Warehouse managers calculate storage box or pallet volume for space planning. Movers and packers check whether long items will fit inside a box using the diagonal measurement.

Tips for Accurate Results

  • It doesn't matter which physical side you call length, width, or height — the volume, surface area, and diagonal formulas are symmetric in all three dimensions and give identical results either way.
  • Remember volume is reported in cubic units (e.g. cm³), surface area in squared units (e.g. cm²), while length, width, height, and diagonal are linear (e.g. cm) — never compare them directly.
  • Measure all three dimensions in the same unit before entering them; mixing units (e.g. inches for length, centimeters for width) will produce meaningless results.
Formula

The Cuboid Formulas, Explained

How length, width, and height combine into volume, surface area, and diagonal

Volume
V = l × w × h

Surface Area
S = 2 × (lw + lh + wh)

Space Diagonal
d = √(l² + w² + h²)

Where:
l = length — one of the cuboid's three independent edge dimensions.
w = width — the second independent edge dimension, perpendicular to length.
h = height — the third independent edge dimension, perpendicular to both length and width.
V = volume — the three-dimensional space enclosed inside the cuboid.
S = surface area — the combined area of all six rectangular faces (three pairs of matching faces).
d = space diagonal — the straight-line distance from one corner through the cuboid's interior to the opposite corner.
📦

Three Independent Dimensions

Unlike a cube or sphere, a cuboid has no single "known value" shortcut — length, width, and height must all be supplied to compute volume, surface area, or diagonal.

🔀

Order Doesn't Matter

Because all three formulas are symmetric in l, w, and h, swapping which dimension you call "length" versus "width" or "height" never changes the results.

📏

Linear, Squared & Cubed Units

Length, width, height, and diagonal are linear measurements; surface area is squared; volume is cubed — all of the same base unit.

⚙️ Why This Formula Works

Volume is simply the product of the three edge lengths, since a cuboid can be filled with unit cubes stacked l wide, w deep, and h tall. Surface area sums the area of each of the six rectangular faces, which come in three matching pairs (top/bottom, front/back, left/right) — hence the factor of 2 in front of each product term. The space diagonal extends the Pythagorean theorem into three dimensions: first finding the diagonal across the base (√(l²+w²)), then combining that with the height.

🎯 When to Use Each Result

  • Volume: use for capacity, shipping cost, or storage space calculations
  • Surface area: use for material, wrapping, paint, or coating estimates
  • Diagonal: use to check whether a long item will physically fit inside the box

📋 Assumptions

  • The solid is a perfect rectangular cuboid — all faces flat rectangles meeting at right angles
  • All three input values (length, width, height) are positive real numbers greater than zero
  • All three inputs share one consistent unit of measurement before calculation

⚠️ Limitations of the Formula

  • Does not apply to non-rectangular boxes, slanted prisms, or irregular solids
  • Cannot accept a negative or zero value for length, width, or height
  • Diagonal results are rounded decimal approximations whenever the square root is irrational
Walkthrough

Step-by-Step: How to Use the Cuboid Calculator

From entering three dimensions to reading all three results

Enter the length

Type in the cuboid's length in the first input field.

Enter the width

Type in the cuboid's width in the second input field.

Enter the height

Type in the cuboid's height in the third input field.

Click "Calculate"

The calculator multiplies and combines the three dimensions to compute volume, surface area, and diagonal.

Read all three results

Review the volume, surface area, and diagonal shown together in the results panel.

Example

Worked Example

Solving a cuboid with length 5, width 4, and height 3

Scenario

A shipping box measures 5 meters long, 4 meters wide, and 3 meters tall. What is its volume, the cardboard surface area needed to build it, and the longest straight item that could fit diagonally inside?

Length (l)5 m
Width (w)4 m
Height (h)3 m
Step 1 — Compute volume: V = l × w × h = 5 × 4 × 3 = 60 m³.
Step 2 — Compute surface area: S = 2 × (lw + lh + wh) = 2 × (20 + 15 + 12) = 2 × 47 = 94 m².
Step 3 — Compute diagonal: d = √(l² + w² + h²) = √(25 + 16 + 9) = √50 ≈ 7.0711 m.
Volume
60 m³
Surface Area
94 m²
Diagonal
7.0711 m

Explanation: Unlike a cube or sphere, there's no "reverse-solve" shortcut here — all three dimensions had to be supplied together to compute the volume, surface area, and diagonal, since a cuboid has three genuinely independent measurements rather than one.

Interpretation

Understanding Your Cuboid Results

What each of the three output values represents and how they relate

PropertyWhat It RepresentsUnit Type
Volume (V)Three-dimensional space enclosed inside the cuboidCubed (e.g. m³, cm³, in³)
Surface Area (S)Combined area of all six rectangular facesSquared (e.g. m², cm², in²)
Diagonal (d)Straight-line distance from corner to opposite cornerLinear (same unit as l, w, h)

Reading the results together: the three values describe the same box from different angles — surface area describes the material needed to build or wrap it, volume describes the space it can hold, and the diagonal describes the longest straight line that fits inside it.

Typical ranges: all three inputs and outputs must be positive; there is no theoretical upper bound, and if all three dimensions are equal, the cuboid becomes a cube and these formulas simplify to the cube versions automatically.

Manual verification: multiply your three dimensions directly for volume, sum the three face-area pairs and double the total for surface area, and square-root the sum of the three squared dimensions for diagonal — a quick way to confirm the calculator's math by hand.

Use Cases

Practical Use Cases for the Cuboid Calculator

Where computing volume, surface area, and diagonal from three dimensions is genuinely useful

🎓

School & college solid geometry homework

Check volume, surface area, and diagonal problems for rectangular prisms step by step.

📦

Shipping box & freight volume

Calculate dimensional volume for shipping cost and freight cargo estimates.

🏠

Room & storage space volume

Determine a room's air volume for HVAC sizing or storage capacity planning.

🐠

Aquarium & fish tank capacity

Compute water volume from a rectangular tank's length, width, and height.

🚚

Cargo & container loading

Estimate how much cargo volume a rectangular shipping container can hold.

🧱

Brick & masonry volume

Calculate individual brick or block volume for material quantity estimates.

📚

Bookshelf & furniture sizing

Check whether furniture dimensions and diagonal will fit through a doorway.

🎁

Gift & product box packaging

Estimate cardboard or wrapping material needed for a rectangular box's surface area.

🏗️

Construction & concrete estimates

Compute the volume of a rectangular concrete slab, footing, or foundation.

🚛

Moving & relocation planning

Use the diagonal to check whether a long item will fit diagonally inside a moving box.

🖥️

Data center & server rack space

Calculate rack or cabinet volume for equipment and airflow planning.

🏊

Rectangular pool & tank volume

Estimate water capacity for a rectangular pool, cistern, or holding tank.

Pros & Cons

Advantages and Limitations

What this cuboid calculator does well, and where it doesn't apply

✅ Advantages

  • Free, instant, and requires no signup or account
  • Runs entirely in your browser — no data ever leaves your device
  • Computes volume, surface area, and diagonal from three simple inputs
  • Works for any rectangular box, room, tank, or container shape
  • Removes manual multiplication and square-root arithmetic errors
  • Useful across shipping, construction, aquariums, and school contexts alike
  • Validates inputs and flags invalid (zero or negative) values
  • Accepts decimal inputs for precise, real-world measurements
  • Fast-loading and fully mobile-friendly
  • Consistent, error-free results every time
  • Clearly separates linear, squared, and cubed results by unit type
  • Free to use as many times as needed, with no calculation limit

⚠️ Limitations

  • Only works for perfect rectangular cuboids — not slanted, tapered, or irregular boxes
  • Cannot compute a result from a negative or zero input value
  • Diagonal results are rounded approximations whenever the square root is irrational
  • Requires all three dimensions be supplied — there is no single-value reverse-solve like a cube or sphere
  • Assumes all three inputs are already in the same unit of measurement
  • Displays decimal results rounded to a fixed number of places, which can hide tiny precision loss
  • Does not convert between different units (e.g. inches to centimeters) automatically
Reference

Cuboid vs Cube vs Rectangular Prism Naming

How these related terms and shapes compare

TermIndependent DimensionsVolume FormulaExample (5×4×3)
Cuboid3 (l, w, h can all differ)l × w × h60
Rectangular Prism3 (same shape, different name)l × w × h60
Cube1 (l = w = h = s)s=4 → 64

Common Mistakes and Expert Tips

❌ Common Mistakes

  • Mixing units between the three dimensions (e.g. inches for length, centimeters for width) before calculating
  • Comparing a volume value directly against a length or surface area value without noticing the different unit powers
  • Forgetting to double the sum of face-area pairs when computing surface area by hand
  • Assuming the diagonal formula only needs two dimensions, forgetting the three-dimensional Pythagorean extension
  • Treating a cuboid and a cube as needing the same single-input calculator — a cuboid needs all three dimensions
  • Entering a negative value by mistake and not noticing the calculator's rejection alert

💡 Expert Tips & Best Practices

  • If all three of your dimensions are equal, use the Cube Calculator instead for its single-input reverse-solve convenience
  • Use the surface area result, not the volume, when estimating cardboard, wrap, or paint coverage for a rectangular box
  • Pair this tool with the Volume Calculator when comparing a cuboid's volume to other 3D solids
  • For shipping, remember many carriers bill by "dimensional weight" derived directly from this volume calculation
  • Double-check the diagonal result before assuming a long item will fit — it accounts for all three dimensions at once, not just two
📝

Summary: This cuboid calculator (also called a rectangular prism calculator or box volume calculator) gives you an instant, free way to compute a rectangular box's volume, surface area, and diagonal from its length, width, and height, with the formula shown. Pair it with related tools like the Cube Calculator and Volume Calculator for a fuller picture of solid geometry.

FAQ

Frequently Asked Questions

Common questions about cuboid measurements

What is a cuboid, and is it the same as a rectangular prism?
Yes. A cuboid, a rectangular prism, and a rectangular box all refer to the same three-dimensional shape: a solid with six rectangular faces and three independent dimensions — length, width, and height — meeting at right angles.
What is the formula for the volume of a cuboid?
V = l × w × h, where l is length, w is width, and h is height. For example, a cuboid with length 5, width 4, and height 3 has volume 5 × 4 × 3 = 60. Volume is always expressed in cubic units (e.g. cm³).
What is the formula for the surface area of a cuboid?
S = 2 × (lw + lh + wh), summing the area of all three pairs of identical rectangular faces. For example, a cuboid with l=5, w=4, h=3 has surface area 2 × (20 + 15 + 12) = 2 × 47 = 94.
What is the formula for the space diagonal of a cuboid?
d = √(l² + w² + h²), an extension of the Pythagorean theorem into three dimensions. For example, a cuboid with l=5, w=4, h=3 has diagonal √(25+16+9) = √50 ≈ 7.0711.
Why does a cuboid need three inputs while a cube or sphere only needs one?
A cube and a sphere each have only one degree of freedom (side length or radius), because every dimension is forced to be equal or derived from that single value. A cuboid has three independent dimensions — length, width, and height can all differ — so all three must be supplied; no single value can determine the other two.
Can I enter a negative or zero value for length, width, or height?
No. A cuboid cannot have a negative or zero length, width, or height — the calculator requires all three inputs to be positive numbers and will alert you if any is zero, negative, or non-numeric.
What units does volume use compared to surface area and diagonal?
Length, width, height, and diagonal are all linear measurements in your input unit (e.g. cm, inches, meters). Surface area is in the squared version of that unit (e.g. cm²), and volume is in the cubed version (e.g. cm³), since it measures a three-dimensional region.
How is a cuboid different from a cube?
A cube is a special case of a cuboid where length, width, and height are all exactly equal. A general cuboid allows all three dimensions to differ, which is why it needs three separate inputs instead of the single side-length input a cube calculator uses.
What is the difference between a cuboid's volume and its surface area?
Volume (l × w × h) measures the three-dimensional space enclosed inside the cuboid, in cubic units. Surface area (2(lw+lh+wh)) measures the combined area of its six rectangular faces, in squared units. Both derive from the same three dimensions but describe fundamentally different properties.
How is the cuboid calculator useful for shipping and packaging?
Shipping and freight costs are frequently based on a box's volume (its "dimensional weight"), so multiplying length × width × height gives the exact billable or storage volume. Surface area is also useful for estimating the cardboard, wrap, or label material a box requires.
Can the three sides of a cuboid be entered in any order?
Yes. Because volume (l × w × h) and surface area (2(lw+lh+wh)) are symmetric in all three dimensions, and the diagonal formula (√(l²+w²+h²)) squares each dimension independently, it does not matter which physical side you label length, width, or height — the results are identical either way.
What real-world objects are approximately cuboids?
Shipping boxes, bricks, books, rooms, aquariums, shipping containers, and most furniture like bookshelves and drawers are common real-world approximations of a mathematical cuboid, which is why cuboid formulas are used across shipping, construction, and interior design.
Does this calculator work if two of the three dimensions are equal?
Yes. The cuboid formulas work regardless of whether any dimensions happen to match. If all three dimensions are equal, the cuboid becomes a cube, and the same volume, surface area, and diagonal formulas still apply correctly — they simply simplify to the cube versions.
Learn More

Authoritative Resources on Cuboid Geometry

Trusted educational references to go deeper on cuboids and solid geometry

Related Calculators

Explore other geometry tools