Rectangular Prism Calculator

Calculate, compare, and apply volume, surface area, and the space diagonal of a rectangular prism from length, width, and height. Built for geometry class, construction sketches, packaging, and engineering checks.

Community rating 4.9/5 · 186 reviews

Rectangular Prism Calculator

Use one length unit for all three edges. Results use that unit for volume (cubed) and surface area (squared).

Result:

Surface area
Volume
Diagonal (d)

Surface area is in square units; volume is in cubic units; diagonal uses the same length unit.

Using this calculator

  1. Type length (l), width (w), and height (h) with the same unit.
  2. Results update as you enter valid positive numbers.
  3. Surface area counts all six faces; volume fills the solid; diagonal is the space diagonal through opposite corners.
  4. Press Reset to clear every field and start a new box.

Example calculations

  • Shipping box: l = 12 in, w = 8 in, h = 5 in → volume 480 in³, surface area 392 in²
  • Room block model: l = 4 m, w = 3 m, h = 2.5 m → volume 30 m³, diagonal about 5.59 m

What Is a Rectangular Prism?

Definition, meaning, and the three edge lengths that describe a 3D box shape.

A rectangular prism is a solid with six rectangular faces and right angles where edges meet. It is the shape behind shipping cartons, room models, and many blocks in geometry class.

You describe it with length (l), width (w), and height (h) along perpendicular directions. Opposite faces are equal, which is why one formula set covers the whole figure.

Sketch the solid once, label length, width, and height, and keep those names on every later line so volume and area formulas refer to the same edges.

  • Definition: a right prism whose bases and sides are rectangles
  • Meaning: a 3D box that fills space with uniform cross-section
  • Edges: length, width, and height (three independent dimensions unless it is a cube)
  • Real-world examples: parcels, drawers, concrete masonry units, and HVAC plenums modeled as boxes

Geometric properties

A rectangular prism has 6 faces, 12 edges, and 8 vertices. All face angles are 90° in the standard model used on this page.

It is a type of cuboid. When l = w = h, the same shape becomes a cube, which is still a rectangular prism with equal edges.

Rectangular Prism Formulas

Volume, total surface area, lateral surface area, and the space diagonal.

Volume: V = l × w × h

Total surface area (TSA): TSA = 2(lw + lh + wh)

Lateral surface area (LSA): LSA = 2h(l + w), the four side walls without top and bottom

Space diagonal: d = √(l² + w² + h²)

Volume answers capacity inside the box, total surface area answers full outer coverage, lateral area covers the four walls only, and the space diagonal cuts corner to corner through the interior.

Formula explanation

Volume multiplies the three edge lengths because you are stacking l × w unit squares through height h layers.

Total surface area adds the three distinct face areas (lw, lh, wh) and doubles the sum because each face has a congruent opposite.

The diagonal uses the Pythagorean theorem twice: once on the base rectangle, once up through the height.

How to Calculate a Rectangular Prism

Measure, choose the calculation type, apply the formula, and verify units.

Start by labeling length, width, and height on a sketch. Measure each edge with one unit system (all metric or all imperial on the same problem).

Decide whether the task needs volume (capacity), total surface area (material to cover the outside), lateral surface area (walls only), or the space diagonal (corner-to-corner distance).

Show intermediate products when your instructor awards partial credit, then compare your final values with the calculator above before you submit.

  • Measure length, width, and height with the same unit
  • Choose volume, surface area, lateral area, or diagonal
  • Substitute into the correct formula
  • Label answers with cubic units for volume and square units for area
  • Compare with the calculator above to verify

Use the calculator

Volume of a Rectangular Prism

Definition, formula application, and practical volume questions.

Volume is the amount of three-dimensional space inside the prism, reported in cubic units such as m³, ft³, or cm³.

Apply V = l × w × h after every edge is in the same length unit. A room 4 m by 3 m by 2.5 m holds 30 m³ of air if modeled as a simple box.

Packaging teams use volume for shipping capacity; educators use it for fill and storage word problems. Always attach cubic units and avoid adding edge lengths instead of multiplying them.

  • Quick volume check

    l = 5 ft, w = 4 ft, h = 3 ft → V = 60 ft³

Surface Area of a Rectangular Prism

Total surface area, lateral surface area, and face-by-face reasoning.

Total surface area counts all six rectangular faces: TSA = 2(lw + lh + wh).

Lateral surface area counts only the four vertical faces when top and bottom are excluded: LSA = 2h(l + w).

Paint, wrap, and sheet-metal estimates often need total surface area. Wall-only jobs may use lateral area. Compute lw, lh, and wh, add them, then double the sum to count both opposite faces of each type.

  • Top and bottom each have area lw
  • Front and back each have area lh
  • Left and right each have area wh
  • Add the three unique areas, then multiply by 2 for TSA

Rectangular Prism Examples

Geometry, packaging, construction, and classroom exercises you can verify in the tool.

Use the cards below as typing drills for the calculator. Each keeps units consistent so you can focus on formula choice.

For longer story problems, underline whether the prompt asks for volume, surface area, or a diagonal before you substitute numbers.

  • Classroom block

    l = 8 cm, w = 5 cm, h = 3 cm → V = 120 cm³, TSA = 158 cm²

  • Shipping carton

    l = 18 in, w = 12 in, h = 10 in → V = 2,160 in³, diagonal about 23.5 in

  • Concrete pad (modeled as prism)

    l = 4 m, w = 2.5 m, h = 0.15 m → V = 1.5 m³

  • Storage tote

    l = 24 in, w = 16 in, h = 12 in → TSA = 1,920 in²

Rectangular Prism Dimensions Calculator

Find a missing length, width, or height when volume or surface area is known.

Forward mode on this page: enter l, w, and h to get volume, surface area, and diagonal.

Reverse mode on paper: if V = lwh and you know V, w, and h, then l = V ÷ (w × h). If TSA is known, substitute into TSA = 2(lw + lh + wh) and solve for the unknown edge.

Always keep units aligned before dividing. After you isolate a missing edge on paper, forward-check the recovered triple in the calculator to confirm volume, surface area, and diagonal together.

  • Given volume and two edges: divide volume by the product of the known edges
  • Given TSA and two edges: expand the formula, isolate the third edge
  • Check that the recovered length is positive and realistic for the context

Rectangular Prism vs Cube

Same family of solids, different edge constraints.

Every cube is a rectangular prism because it has six rectangular faces and right angles. Not every rectangular prism is a cube, because l, w, and h may differ.

Formulas match: V = lwh and TSA = 2(lw + lh + wh). For a cube with side s, they simplify to V = s³ and TSA = 6s².

A common mistake is treating any box as a cube. Equal edge length on one side does not mean all three edges match unless the problem states it.

  • Rectangular prism: independent l, w, h
  • Cube: l = w = h
  • Diagonal of a cube: s√3, a special case of √(l² + w² + h²)

Diagonal of a Rectangular Prism

Space diagonal through opposite interior corners.

The space diagonal d = √(l² + w² + h²) is the straight segment through the box from one corner to the farthest opposite corner.

It is longer than any single edge and useful for bracing estimates, 3D distance questions, and geometry proofs that combine the Pythagorean theorem twice.

A face diagonal lies on one rectangle only, such as √(l² + w²) on the base. The space diagonal uses all three edges: √(l² + w² + h²).

Rectangular Prism Calculator

What the on-page tool does and how it fits your workflow.

The calculator block above this section accepts length (l), width (w), and height (h), then reports surface area, volume, and diagonal (d) as you type valid positive numbers.

Use one length unit per run. Results scale automatically: square units for area, cubic units for volume, and the same length unit for the diagonal.

Nothing is uploaded to a server. Results update as you type, which helps you catch transposed digits during homework checks or quick field estimates.

  • Length, width, and height inputs
  • Live volume, surface area, and diagonal outputs
  • Reset control for the next problem
  • Example values listed inside the tool panel

Jump to calculator

Common Rectangular Prism Calculation Mistakes

Unit mix-ups, wrong formula choice, and surface area shortcuts to avoid.

Mixing inches with feet (or cm with m) before multiplying produces answers that look precise but are wrong by a large factor.

Using 2(l + w + h) confuses perimeter-style sums with surface area. Surface area needs products lw, lh, and wh.

Forgetting to square units: volume needs cubic units, area needs square units.

Treating a face diagonal √(l² + w²) as the space diagonal when the problem asks for the segment through the interior of the box.

Volume vs Surface Area Differences

Capacity inside the solid versus material on the outside.

Volume answers how much space the solid occupies or holds. It uses cubic units and the formula V = lwh.

Surface area answers how much skin covers the exterior. It uses square units and the formula TSA = 2(lw + lh + wh).

A tall narrow box can have moderate volume but large surface area, which matters for heat transfer, paint, and cardboard use. A flat wide box can have similar volume with different surface area.

Choose the measure that matches the question before you substitute numbers.

FAQs About Rectangular Prisms

What is the volume formula for a rectangular prism?
Volume is V = l × w × h. Multiply length, width, and height in the same unit.
What is the total surface area formula?
Total surface area is TSA = 2(lw + lh + wh), covering all six faces.
What is lateral surface area?
Lateral surface area is LSA = 2h(l + w), the four side faces without the top and bottom.
How do you find the space diagonal?
Use d = √(l² + w² + h²) for the segment between opposite interior corners.
Can I find a missing edge from volume?
Yes. If V = lwh and two edges are known, divide: unknown edge = V ÷ (product of known edges).
Is a cube a rectangular prism?
Yes. A cube is a rectangular prism with l = w = h.
Do all inputs need the same unit?
Yes. Use one length unit for l, w, and h so area and volume units stay consistent.
Is my data stored?
No. Calculations run locally in your browser on this static site.