Audited 05 Aug 2026·Last updated 28 Oct 2026·3 citations·Tier 2·0 uses

Diagonal Of Rectangle Calculator

Find a rectangle's diagonal from its length and width with d = √(l² + w²), plus the radius of the circle through all four corners, in whatever unit you use.

Diagonal Of Rectangle Calculator

Rectangle diagonal
5
Distance between opposite corners, √(length² + width²), in the same unit as the sides.
Circumcircle radius
2.5

Background.

The diagonal is the measurement people reach for when the sides alone do not answer the question. A builder setting out a slab measures it to prove the corners are square. Someone moving house uses it to see whether a table top will tilt through a doorway. Television and monitor sizes are quoted by it, which is why a 55-inch widescreen set is only about 48 inches wide.

A diagonal splits the rectangle into two right triangles whose shorter sides are the length and the width, so Pythagoras' theorem gives it directly: square both sides, add them, take the square root. A 3 by 4 rectangle has a diagonal of exactly 5, and that 3-4-5 triangle is the basis of an old setting-out trick. Mark 3 units along one line and 4 along the other; if the marks are 5 apart, the corner is a true right angle. For a whole frame, checking that the two diagonals match does the same job, because a four-sided shape with equal opposite sides and equal diagonals must be a rectangle.

The second number reported is half the diagonal. The diagonals cross at the centre and cut each other in half, so all four corners sit the same distance from that point, on a circle whose diameter is the diagonal. That circle has a practical use: it is the smallest round blank, disc or log end from which the rectangle can be cut.

Length and width may be in any unit, provided both use the same one, and the results come back in that unit. Both sides are needed; an area on its own does not fix the shape, so it cannot fix the diagonal either.

What is diagonal of rectangle calculator?

A diagonal of a rectangle is the straight line joining two opposite corners. Every rectangle has two, they are always equal in length, and they bisect each other at the centre. The length is d = √(l² + w²), which is always longer than the longer side and shorter than the two sides added together. Half of it is the circumradius, the radius of the single circle that passes through all four corners of the rectangle.

How to use this calculator.

  1. Measure the length and width along two sides that meet at a corner, both in the same unit. If one is in feet and the other in inches, convert before entering.
  2. Enter them as rectangle length and rectangle width. The order makes no difference, because swapping the sides gives the same diagonal.
  3. Read the diagonal in your unit. When setting out a frame or slab, measure both diagonals on site and compare each with this figure; if the two site measurements differ, the corners are not square.
  4. Use the circumcircle radius when you need the smallest circle that holds the rectangle. Double it for the minimum diameter of a round piece to cut the rectangle from.

The formula.

d=√(l²+w²)

d = √(l² + w²). The diagonal, the length and the width form a right triangle with the diagonal as its hypotenuse, so Pythagoras' theorem applies: the square on the diagonal equals the squares on the two sides added together. The circumradius is R = d ÷ 2, because the diagonals bisect each other at the centre and that point is the same distance from every corner. Squaring lets the longer side dominate. In a 1 by 10 rectangle the diagonal is about 10.05, barely longer than the long side, whereas a square's diagonal is its side times √2, roughly 1.414 times the side. Scaling both sides by the same factor scales the diagonal by that factor, but doubling just one side never doubles it. Both inputs must be greater than zero.

A worked example.

Example

Take a rectangle 3 units long and 4 wide. Squaring the sides gives 3² = 9 and 4² = 16, which add to 25, and √25 = 5, so the diagonal is exactly 5. Half of that, 2.5, is the radius of the circle through all four corners. Because the sides are in the ratio 3 : 4 : 5, this is the triangle builders use to check a right angle: marks 30 cm and 40 cm from a corner should be exactly 50 cm apart. Doubling only the length, to 6, gives √(36 + 16) = √52, about 7.211, not 10.

length3
width4

Frequently asked questions.

How do I use the diagonal to check a deck frame or slab is square?
Enter the planned length and width to get the target diagonal, then tape both diagonals on site. A 6 m by 8 m slab should measure 10 m corner to corner each way. If the two differ, ease the corners at the ends of the longer diagonal towards each other until the measurements match.
How wide and tall is a 55-inch 16:9 television?
The 16 by 9 ratio has its own diagonal of √(16² + 9²), about 18.36. Scaling up, the width is 55 × 16 ÷ 18.36 ≈ 47.94 inches and the height 55 × 9 ÷ 18.36 ≈ 26.96 inches. Entering those two figures here returns a diagonal of about 55.
Will a flat table top fit through my doorway on the diagonal?
Compare the shorter dimension of the table top with the diagonal of the door opening. A 0.9 m by 2.0 m opening has a diagonal of about 2.19 m. The top's thickness and the door stops eat into that, so leave a few centimetres of margin.
Can I work out the diagonal from the area alone?
No. Rectangles of the same area can have very different shapes. A 4 by 9 rectangle and a 6 by 6 square both cover 36 square units, but their diagonals are about 9.849 and 8.485. You need both side lengths, or one side and the area, to find the other side first.
What is the diagonal of a square?
A square is a rectangle with equal sides, so enter the same value twice. The formula then simplifies to side × √2, so a 10 cm square has a diagonal of about 14.142 cm and a circumradius of about 7.071 cm.

How this page was produced

Published by
Quanta Calculator
Primary sources
3 cited below
Method
d=√(l²+w²)
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon