Skip to content
Test versionSearch

Mathematics

Rectangle and box diagonal calculator

Find a square, rectangle or cuboid diagonal from its sides. Enter side lengths in one common unit to see the diagonal together with area or volume.

How it worksFAQRelated tools

Content reviewed:

Change the example values, press Calculate and download the result if you need it. Reloading clears temporary results and scenarios.

Positive dimensions up to 1,000,000 in one common unit; nonzero values below 1e-12 are refused. Area uses the squared unit, volume its cube. Floating-point approximations; no measurement or structural certification.

Decimal results are approximate. Inputs stay in this browser tab.

How it works

Own bounded geometry and exact integer tables. Only entered values are used. Positive dimensions up to 1,000,000 in one common unit; nonzero values below 1e-12 are refused. Area uses the squared unit, volume its cube. Floating-point approximations; no measurement or structural certification.

About this calculation

The rectangle and box diagonal calculator finds the diagonal of a square, a rectangle or a cuboid from its side lengths. Alongside the diagonal it shows the area of the flat shapes or the volume of the box, which helps when planning panels, frames or containers.

Enter the sides in one common unit, for example the rectangle example with sides 3 and 4. Each dimension must be positive and no larger than 1,000,000, and nonzero values below 1e-12 are refused. The area is given in the squared unit and the volume in the cubed unit.

Only the entered values are used and results are floating-point approximations. The tool provides no measurement or structural certification.

Worked example

With these example values the calculator gives the result below. You can change any value in the form above.

Inputs

Shape
Rectangle
Side a
3
Side b
4

Result

Side a
3
Side b
4
Side c (zero in 2D)
0
Face diagonal
5
Diagonal
5
Area (squared chosen unit)
12
Volume (cuboid only)
Undefined

Frequently asked questions

How do I find the diagonal of a rectangle?

The rectangle and box diagonal calculator takes the side lengths of a rectangle in one common unit and returns the diagonal together with the area. The example uses sides of 3 and 4.

Can I calculate the space diagonal of a box?

Yes. In cuboid mode you enter three side lengths and get the space diagonal together with the volume of the box.

Does the diagonal calculator work for a square?

Yes. Square, rectangle and cuboid modes are available, each giving the diagonal from the entered sides.

Which units does the diagonal calculator use?

All sides must be in one common unit. The diagonal uses that unit, area uses the squared unit and volume its cube.

What size limits apply to the diagonal calculator?

Dimensions must be positive and at most 1,000,000. Nonzero values below 1e-12 are refused.

Are the diagonal results exact?

They are floating-point approximations. The calculator offers no measurement or structural certification.