Skip to main content
math

Rectangular Prism Calculator

Calculate the volume and surface area of a rectangular prism (box) from its length, width, and height.

Reviewed by Christopher FloiedPublished Updated

This free online rectangular prism calculator provides instant results with no signup required. All calculations run directly in your browser — your data is never sent to a server. Enter your values below and see results update in real time as you type. Perfect for everyday calculations, homework, or professional use.

Minimum: 0

Minimum: 0

Minimum: 0

Results

Volume

150 cubic units

Surface Area

190 sq units

Space Diagonal

11.5758 units

How to Use This Calculator

1

Enter your input values

Fill in all required input fields for the Rectangular Prism Calculator. Most fields include unit selectors so you can work in your preferred unit system — metric or imperial, whichever matches your problem.

2

Review your inputs

Double-check that all values are correct and that you have selected the right units for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.

3

Read the results

The Rectangular Prism Calculator instantly computes the output and displays results with units clearly labeled. All calculations happen in your browser — no loading time and no data sent to a server.

4

Explore parameter sensitivity

Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.

When to Use This Calculator

  • Use the Rectangular Prism Calculator when you need a quick mathematical result without writing out all the steps manually, saving time on repetitive calculations.
  • Use it to verify hand calculations on tests or assignments and catch arithmetic mistakes.
  • Use it when teaching or explaining mathematical concepts to others, demonstrating how changing inputs affects the result.
  • Use it to explore the behavior of mathematical functions across a range of inputs.

Related Calculators

About Rectangular Prism Calculator

A rectangular prism, also called a cuboid or simply a box, is a three-dimensional shape with six rectangular faces. It is defined by three dimensions: length, width, and height. The volume is the product of all three dimensions (V = lwh), and the surface area is twice the sum of the areas of the three pairs of faces: SA = 2(lw + lh + wh). Rectangular prisms are the most common three-dimensional shapes in human-made environments — rooms, boxes, shipping containers, books, and bricks are all rectangular prisms. This calculator also computes the space diagonal, which is the longest distance between any two corners: d = √(l² + w² + h²), a three-dimensional extension of the Pythagorean theorem. These calculations are essential for shipping, storage, packaging, and construction.

The Math Behind It

The rectangular prism is the simplest 3D shape for volume calculation because its cross-section is constant. The volume V = lwh represents the number of unit cubes that fit inside. The surface area SA = 2(lw + lh + wh) counts the six faces as three pairs of identical rectangles. Among all rectangular prisms with a fixed volume, the cube (l = w = h) minimizes the surface area, which is why cubic shapes are efficient for packaging. This optimization can be proved using the AM-GM inequality: for fixed volume V = lwh, the surface area 2(lw + lh + wh) ≥ 6(V)^(2/3), with equality when l = w = h. The space diagonal d = √(l² + w² + h²) is the three-dimensional Pythagorean theorem and represents the longest possible straight line within the prism. For a unit cube, this diagonal is √3 ≈ 1.732. Rectangular prisms tile three-dimensional space perfectly, which is why bricks and blocks are rectangular.

Formula Reference

Volume

V = l × w × h

Variables: l = length, w = width, h = height

Surface Area

SA = 2(lw + lh + wh)

Variables: l = length, w = width, h = height

Worked Examples

Example 1: Shipping container

A container is 6.1 m long, 2.4 m wide, and 2.6 m high. Find volume and surface area.

Step 1:V = 6.1 × 2.4 × 2.6 = 38.064 m³
Step 2:SA = 2(6.1×2.4 + 6.1×2.6 + 2.4×2.6)
Step 3:SA = 2(14.64 + 15.86 + 6.24) = 2 × 36.74

V = 38.064 m³, SA = 73.48 m²

Common Mistakes & Tips

  • !Confusing volume (cubic units) with surface area (square units).
  • !Forgetting the factor of 2 in the surface area formula.
  • !Using the face diagonal instead of the space diagonal.

Related Concepts

Used in These Calculators

Calculators that build on or apply the concepts from this page:

Frequently Asked Questions

Is a cube a rectangular prism?

Yes. A cube is a special rectangular prism where all three dimensions are equal.

How do I find the volume in liters?

If dimensions are in centimeters, the volume in cm³ equals milliliters. Divide by 1000 for liters.

Embed this calculator on your site

Paste this snippet into your blog, course page, or documentation to drop a live, interactive Rectangular Prism Calculator into your page.

Free to embed — includes a link back to MegaCalc.