Free Diagonal of a Rectangle Calculator

lwd

Enter length and width, then click Calculate

Rectangle Diagonal Calculator – Instant Diagonal & Geometry Solver

This free online rectangle diagonal calculator is built to compute the diagonal length of a rectangle from almost any combination of known parameters. Whether you need to find the diagonal of a rectangle given its length and width, area and perimeter, or even the angle between its diagonals, the tool delivers precise results in seconds. It also calculates area, perimeter, and circumcircle radius, making it a complete rectangle geometry calculator for students, engineers, and DIY enthusiasts.

At its heart, the rectangle diagonal formula relies on the Pythagorean theorem. The diagonal serves as the hypotenuse of a right triangle whose legs are the rectangle’s length and width. In essence, the tool works like a Pythagorean theorem calculator specialized for rectangles — it automates the math so you can focus on design, layout, or homework.

Key Geometric Parameters of a Rectangle

Every rectangle is defined by five primary quantities, most of which relate directly to the diagonal:

  • Length ll – the longer side (typically).
  • Width ww – the shorter side.
  • Diagonal dd – the line connecting opposite vertices.
  • Angle between diagonals α\alpha – the acute angle at which the two diagonals intersect.
  • Circumcircle radius rr – half the diagonal; a rectangle can always be circumscribed by a circle because its center is equidistant from all four vertices.

Two additional important measures are the area A=l×wA = l \times w and perimeter P=2(l+w)P = 2(l + w). Any two independent quantities from this set (except the trivial pair of area and perimeter) are sufficient to determine the diagonal.

The word rectangle comes from the Latin rectangulus (right + angle), describing a quadrilateral with four right angles. Opposing sides are parallel and equal, and the two diagonals are congruent — they bisect each other at the rectangle’s center.

A square is a special rectangle where all sides are equal; its diagonals intersect at a right angle. For square‑specific calculations, dedicated tools (e.g., a square calculator) can estimate the diagonal, area, and perimeter directly from the side length.

Core Formula: Diagonal from Length and Width

The simplest approach to find the diagonal of a rectangle when you know both side lengths is to apply the Pythagorean theorem:

d=l2+w2d = \sqrt{l^{2} + w^{2}}

For example, a rectangle with length 5 cm and width 12 cm has a diagonal of 25+144=169=13\sqrt{25 + 144} = \sqrt{169} = 13 cm. The calculator supports any unit (inches, meters, feet, etc.) and automatically handles conversions — you can mix units and still get the correct diagonal.

Diagonal Formulas for All Common Input Scenarios

The table below collects every rectangle diagonal formula the calculator uses. The angle α\alpha refers to the acute angle between the two diagonals, and we assume l>wl > w when the rectangle is not a square.

Known quantitiesDiagonal expression
Length ll, width wwd=l2+w2d = \sqrt{l^{2} + w^{2}}
Length ll, area AAd=A2l2+l2d = \sqrt{\dfrac{A^{2}}{l^{2}} + l^{2}}
Width ww, area AAd=A2w2+w2d = \sqrt{\dfrac{A^{2}}{w^{2}} + w^{2}}
Length ll, perimeter PPd=2l2−Pl+P24d = \sqrt{2l^{2} - Pl + \dfrac{P^{2}}{4}}
Width ww, perimeter PPd=2w2−Pw+P24d = \sqrt{2w^{2} - Pw + \dfrac{P^{2}}{4}}
Length ll, angle α\alphad=wsin⁡(α/2)d = \dfrac{w}{\sin(\alpha/2)} or d=lcos⁡(α/2)d = \dfrac{l}{\cos(\alpha/2)}
Area AA, perimeter PPd=12P2−8Ad = \dfrac{1}{2}\sqrt{P^{2} - 8A}
Area AA, angle α\alphad=2Asin⁡(α)d = \sqrt{\dfrac{2A}{\sin(\alpha)}}
Perimeter PP, angle α\alphad=P2sin⁡(α/2)+2cos⁡(α/2)d = \dfrac{P}{2\sin(\alpha/2) + 2\cos(\alpha/2)}
Circumcircle radius rrd=2rd = 2r

Each formula is derived from the basic relations for area, perimeter, and the Pythagorean theorem. For instance, the diagonal’s relation to area and perimeter comes from eliminating length and width between d2=l2+w2d^{2} = l^{2} + w^{2}, A=lwA = lw, and P=2(l+w)P = 2(l + w). The angle‑based formulas use trigonometry: the diagonal forms the hypotenuse of triangles that include the angle α/2\alpha/2 at the intersection of the diagonals.

How to Use the Calculator Effectively

  1. Enter any two known values – for example, length and width, or area and diagonal angle.
  2. Select the corresponding units – the tool converts between SI (cm, m) and imperial (in, ft) automatically.
  3. Read the result – the diagonal appears instantly, along with the area, perimeter, and circumradius if those were not entered.

The calculator assumes that length is greater than width for non‑square rectangles; if you swap the two, the diagonal remains the same (because squaring eliminates sign), so the result is still correct.

Special Rectangles: Squares and Golden Rectangles

A square is a rectangle with equal sides; its diagonal formula simplifies to d=l2d = l\sqrt{2}. The present tool handles squares seamlessly by treating them as rectangles with equal length and width.

A golden rectangle has sides in the golden ratio φ≈1.618\varphi \approx 1.618. Its diagonal is approximately 1.1761.176 times the longer side (or 1.9021.902 times the shorter side). While this calculator does not identify golden rectangles, it correctly computes their diagonal once you input the actual side lengths.

Why Choose This Rectangle Diagonal Calculator?

  • Versatile inputs – covers every common combination of length, width, area, perimeter, angle, and circumradius.
  • Instant results – eliminates manual algebra and preserves accuracy.
  • Unit‑aware – works with mixed units and offers a length converter for convenience.
  • Educational – each formula follows directly from basic geometry, making it an excellent companion for learning the rectangle diagonal formula in action.

Whether you are laying out a garden, checking a screen size, or solving a geometry problem, this free rectangle diagonal calculator online is the quickest way to find the diagonal of a rectangle from any data you have.

FAQ

1. How do I find the diagonal of a rectangle if I only know the area and perimeter?

Use the formula d = ½√(P² − 8A), where P is the perimeter and A is the area. For example, a rectangle with perimeter 20 and area 18 has a diagonal of ½√(400 − 144) = ½√256 = 8.

2. What is the diagonal length of a golden rectangle?

If the longer side is known, the diagonal is approximately 1.176 times that side; if only the shorter side is known, the diagonal is about 1.902 times the shorter side.

3. Can I use this calculator if I only know the circumcircle radius?

Yes. Since the circumcircle radius equals half the diagonal, simply enter the radius and the calculator will output the diagonal as d = 2 × r.

4. What is the formula for the diagonal of a rectangle if I know the angle between the diagonals?

If you know the width and the acute angle α between the diagonals, use d = w / sin(α/2). If you know the length instead, use d = l / cos(α/2).

5. Does the order of length and width matter in the calculator?

No. The diagonal formula uses the sum of squares, so swapping length and width yields the same result. The calculator still assumes length is the longer side for auxiliary calculations, but the diagonal itself is unaffected.

How to Use

  1. Enter the length (longer side) of the rectangle in the input field.
  2. Enter the width (shorter side) of the rectangle and select the unit of measurement.
  3. Click the Calculate button to compute the diagonal length, area, and perimeter of the rectangle.