# Rectangular Prism Calculator (Cuboid)

## Rectangular Prism Shape

l = length

w = width

h = height

d = diagonal

S_{tot} = total surface area

S_{lat} = lateral surface area

S_{top} = top surface area

S_{bot} = bottom surface area

V = volume

## Calculator Use

Enter any 3 variables for a rectangular prism into this online calculator to calculate the other 3 unknown variables. A cube is a special case where l = w = h for a rectangular prism.

**Units:** Note that units are shown for convenience but do not affect the calculations. The units are in place to give an indication of the order of the results such as ft, ft^{2} or ft^{3}. For example, if you are starting with mm and you know h, l and w in mm, your calculations will result with d in mm, S in mm^{2} and V in mm^{3}.

## Formulas for a rectangular prism:

**Volume of Rectangular Prism**:- V = lwh

**Surface Area of Rectangular Prism**:- S = 2(lw + lh + wh)

**Space Diagonal of Rectangular Prism**: (similar to the distance between 2 points)- d = √(l
^{2}+ w^{2}+ h^{2})

- d = √(l

A cube is a special case where l = w = h. So you can find the volume of a cube or surface area of a cube by setting these values equal to each other.

### Calculations for a rectangular prism:

1. Given the length, width and height find the volume, surface area and diagonal of a rectangular prism

- h, l and w are known; find V, S and d
- V = lwh
- S = 2(lw + lh + wh)
- d = √(l
^{2}+ w^{2}+ h^{2})

2. Given the surface area, length and width find the height, volume and diagonal of a rectangular prism

- S, l and w are known; find h, V and d
- h = (S - 2lw) / (2l + 2w)
- V = lwh
- d = √(l
^{2}+ w^{2}+ h^{2})

3. Given the volume, length and width find the height, surface area, and diagonal of a rectangular prism

- V, l and w are known; find h, S and d
- h = V / lw
- S = 2(lw + lh + wh)
- d = √(l
^{2}+ w^{2}+ h^{2})

4. Given the diagonal, length and width find the height, volume and surface area of a rectangular prism

- d, l and w are known; find h, V and S
- h = √(d
^{2}- l^{2}- w^{2}) - V = lwh
- S = 2(lw + lh + wh)

For more information on cuboids see: Weisstein, Eric W. "Cuboid." From
*MathWorld*--A Wolfram Web Resource,
Cuboid.

**Cite this content, page or calculator as:**

Furey, Edward "Rectangular Prism Calculator (Cuboid)" at https://www.calculatorsoup.com/calculators/geometry-solids/rectangularprism.php from CalculatorSoup,
*https://www.calculatorsoup.com* - Online Calculators