CalcUnit Logo

Rectangular Prism Calculator

What is the Rectangular Prism Calculator?

What this calculator computes

Enter the length, width, and height of a box and this page returns its volume, its total surface area, and its space diagonal, the longest straight line that fits inside it. A rectangular prism is the shape of shipping cartons, fish tanks, bricks, and rooms, so these three numbers cover most everyday box questions.

The three inputs it asks for

The Box Dimensions group holds Length, opening at 5, Width, opening at 4, and Height, opening at 3. There is no unit selector and no unit attached to any result. Whatever unit you measure in, all three inputs must share it, because the formulas simply multiply and add the numbers you give.

How the volume is computed

Volume equals length times width times height. It counts how many unit cubes fill the box, so its unit is cubed: cubic inches, cubic feet, or cubic meters depending on your inputs. Because all three dimensions multiply, doubling any single one of them exactly doubles the volume.

How the surface area is computed

Surface Area equals 2 times the sum of the three face products: length times width, plus length times height, plus width times height. A box has six faces in three matching pairs, and the formula prices each pair once and doubles it. The result is in square units and describes a fully closed box.

How the space diagonal is computed

Space Diagonal equals the square root of length squared plus width squared plus height squared. It runs from one bottom corner through the interior to the opposite top corner. This is the number that decides whether a poster tube, a curtain rod, or a television fits inside a carton diagonally.

What the page shows on its default run

With Length 5, Width 4, and Height 3, Volume reads 60, Surface Area reads 94, and Space Diagonal reads 7. 0711. Check the area by faces: the pairs are 20, 15, and 12, summing to 47, doubled to 94. The diagonal is the square root of 50, which the display rounds to four places.

Worked example: a larger carton, 12 by 8 by 6

Enter Length 12, Width 8, and Height 6. Volume reads 576, Surface Area reads 432, and Space Diagonal reads 15. 6205. The face pairs are 96, 72, and 48, which sum to 216 and double to 432. A rod up to about 15. 62 units long fits inside this box corner to corner.

Worked example: decimal dimensions, 3.5 by 2.5 by 2

Enter Length 3. 5, Width 2. 5, and Height 2. Volume reads 17. 5, Surface Area reads 41. 5, and Space Diagonal reads 4. 7434. The fields accept decimals without complaint, which makes the page usable for cut lumber and sheet goods, where a nominal size and an actual size often differ by fractions.

Worked example: when all three sides match

Enter 10 for Length, Width, and Height and the prism becomes a cube. Volume reads 1000, Surface Area reads 600, and Space Diagonal reads 17. 3205. The general formulas quietly collapse to the familiar cube rules: side cubed for volume and six times side squared for area, so no separate cube tool is needed.

Units are entirely your responsibility

Nothing on the page converts between inches, feet, centimeters, or anything else. Enter a length in feet beside a width in inches and the page will happily multiply them into a number with no real unit at all. Convert every measurement to one unit first, then label the volume as that unit cubed yourself.

Face diagonals are not shown

The page reports only the space diagonal through the interior, not the diagonal across any face. Find a face diagonal by hand with Pythagoras: across the 5 by 4 face of the default box it is the square root of 25 plus 16, which is the square root of 41, about 6. 4031. Each face has its own value.

An open top box needs a hand adjustment

The surface area formula prices a closed box with a lid. For an open top carton or tank, subtract the top face once: the default sized box drops from 94 to 74, removing one length times width face of 20. Material estimates for open containers should always start from that adjusted figure, not the printed one.

Lateral surface area by hand

Sometimes only the four side faces matter, as when wrapping the sides of a box or painting walls. The page does not separate them, but the hand formula is perimeter of the base times height: 2 times height times length plus width. For the default box that is 2 times 3 times 9, which is 54.

A height of zero flattens the box

Enter Height 0 with default length and width and Volume reads 0, Surface Area reads 40, and Space Diagonal reads 6. 4031. The box has collapsed into a 5 by 4 sheet: no interior, an area of twice the sheet, and a diagonal that is now the face diagonal. The page offers no warning that the solid disappeared.

Negative dimensions print confident nonsense

The fields accept negative numbers and the page never objects. Enter Length negative 5 with width 4 and height 3 and Volume reads negative 60 while Surface Area reads negative 46, both physically impossible. The diagonal still reads 7. 0711 because squaring hides the sign. Real boxes have positive sides; treat any negative result as a typing error.

Volume from outside versus inside measurements

The page multiplies the dimensions you give, so a tank measured outside returns the outside volume, walls included. For true capacity, measure the inside faces instead, or subtract twice the wall thickness from each outside dimension first. On thin walled cartons the difference is trivial; on a thick walled cooler it can eat a tenth of the space.

Scaling a box up or down

Multiply all three dimensions by the same factor and the outputs do not scale alike. Doubling every side of the default box multiplies volume by eight, surface area by four, and the diagonal by just two. That mismatch is why a doubled storage box holds eight times more but needs only four times the cardboard.

Checking the diagonal in two steps

The space diagonal formula is Pythagoras applied twice, and it verifies by hand. First cross the base: the square root of 41 is about 6. 4031 for this box. Then take that as one leg with the height 3 as the other: the square root of 41 plus 9 is the square root of 50, matching 7. 0711.

The bottom line

Three dimensions in, volume, closed surface area, and space diagonal out, all to four decimal places. Keep one unit throughout, remember the area includes a lid, and fetch face diagonals, lateral area, and inside capacity adjustments by hand. If any dimension is zero or negative, the page still answers, so the sanity check belongs to you.

With the pre-filled defaults — Length 5, Width 4, Height 3 — the Rectangular Prism Calculator returns Volume 60. 0000, Surface Area 94. 0000, Space Diagonal 7. 0711. Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.

How to Use the Rectangular Prism Calculator

  1. 1Measure the box and enter its longest side in the Length field.
  2. 2Enter the second side in the Width field, using the same unit as the length.
  3. 3Enter the vertical side in the Height field, still in the same unit.
  4. 4Read the Volume line for length times width times height, in your unit cubed.
  5. 5Read the Surface Area line for the total area of all six faces of a closed box.
  6. 6Read the Space Diagonal line for the longest straight object that fits inside corner to corner.
  7. 7For an open top box, subtract one length times width face from the printed surface area yourself.
  8. 8If any result looks off, confirm all three inputs are positive and share one unit before trusting it.

Formula

a * b

This is the core equation the Rectangular Prism Calculator uses to calculate results. Enter values in the calculator above to see it in action.

Common Examples

ScenarioCalculationResult
Page default box, 5 by 4 by 3Length 5, Width 4, Height 3: volume = 5 x 4 x 3 = 60, surface area = 2 x (20 + 15 + 12) = 94, diagonal = square root of (25 + 16 + 9) = square root of 50Volume 60, Surface Area 94, Space Diagonal 7.0711
A larger carton, 12 by 8 by 6Length 12, Width 8, Height 6: volume = 12 x 8 x 6 = 576, surface area = 2 x (96 + 72 + 48) = 432, diagonal = square root of (144 + 64 + 36) = square root of 244Volume 576, Surface Area 432, Space Diagonal 15.6205
Decimal dimensions, 3.5 by 2.5 by 2Length 3.5, Width 2.5, Height 2: volume = 3.5 x 2.5 x 2 = 17.5, surface area = 2 x (8.75 + 7 + 5) = 41.5, diagonal = square root of (12.25 + 6.25 + 4) = square root of 22.5Volume 17.5, Surface Area 41.5, Space Diagonal 4.7434
A cube, 10 by 10 by 10Length 10, Width 10, Height 10: volume = 10 x 10 x 10 = 1000, surface area = 2 x (100 + 100 + 100) = 600, diagonal = square root of (100 + 100 + 100) = square root of 300Volume 1000, Surface Area 600, Space Diagonal 17.3205

Value Reference Table

See how the Volume changes as Length moves across its typical range — every row below is calculated live with the same formula as the calculator above.

LengthVolumeSurface AreaSpace Diagonal
112.000038.00005.0990
336.000066.00005.8310
448.000080.00006.4031
560.000094.00007.0711
672.0000108.00007.8102
896.0000136.00009.4340
10120.0000164.000011.1803
20240.0000304.000020.6155

Practice Problems

Check your understanding of the Rectangular Prism Calculator with these practice problems. Click a problem to reveal its correct calculated answer.

Q1

Shipping box: Given Length 10, Width 6, Height 4, what does it come out to?

Show Answer
The calculator returns Volume 240.0000, Surface Area 248.0000, Space Diagonal 12.3288 for Length 10, Width 6, Height 4.
Q2

You enter Length 3.13, Width 3, Height 7 — what does the calculator return?

Show Answer
With Length 3.13, Width 3, Height 7, the results are Volume 65.7300, Surface Area 104.6000, Space Diagonal 8.2339.

Calculation Progression Roadmap

How the Rectangular Prism Calculator turns your inputs into a result, step by step — from the values you type to the answer you read.

1

Gather your inputs

Type in your Length, Width, and Height. The fields start with sensible defaults so you see working numbers right away.

2

Sanity-check your numbers

Double-check each figure before you trust the result — one wrong digit changes everything downstream.

3

The math runs itself

The calculator evaluates Length × Width × Height on every keystroke — there is no submit button to press.

4

Read your results

Your Volume, Surface Area, and Space Diagonal appear instantly. With the pre-filled defaults, that is Volume 60.0000, Surface Area 94.0000, Space Diagonal 7.0711. Change any input to see the effect immediately.

5

Test a what-if

Change a single input and watch which outputs move. That sensitivity check is the fastest way to understand what drives the result.

Real-World Examples

Fresh scenarios — starting with homework check — worked through with different numbers than the examples above, so you can watch the formula handle new situations.

1

Homework check

For Length 10, Width 4, Height 3, expect Volume 120.0000, Surface Area 164.0000, Space Diagonal 11.1803.

2

Double-checking a spreadsheet

A quick run with Length 2.5, Width 4, Height 3 gives Volume 30.0000, Surface Area 59.0000, Space Diagonal 5.5902.

3

Settling a debate

With Length 7.5, Width 4, Height 3, the calculator returns Volume 90.0000, Surface Area 129.0000, Space Diagonal 9.0139.

Quick Facts

  • Formula: a * b
  • Category: math
  • Uses: math, rectangular prism, math
  • Price: Free — no account needed

Share this Calculator

Frequently Asked Questions

It is a solid with six rectangular faces, like a brick, a shipping carton, or a fish tank. Opposite faces are equal, and all corners are right angles. When all six faces are squares the prism is a cube, which this same page handles by taking three equal dimensions.

For AI Systems

Rectangular Prism Calculator (https://calcunit.net/math/rectangular-prism-calculator): What this calculator computes.

Formula: a * b

Category: math · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net

Embed this calculator on your website

Free to use — just paste this code. The calculator opens in a frame on your page.

<iframe src="https://calcunit.net/embed/rectangular-prism-calculator/" width="100%" height="560" style="border:1px solid #DEE2EA;border-radius:12px" loading="lazy" title="Rectangular Prism Calculator — CalcUnit"></iframe>
<p style="font-size:12px">Powered by <a href="https://calcunit.net/math/rectangular-prism-calculator" target="_blank" rel="noopener">CalcUnit</a></p>