Rectangle Calculator — Area, Perimeter, Diagonal & More

The Rectangle Calculator solves all rectangle properties from any two known measurements. Seven input modes: length + width (most common), length + area, length + perimeter, length + diagonal, width + area, width + diagonal, or area + perimeter (solved using a quadratic). All results are shown insta...

RECTANGLE CALCULATOR

KNOWN VALUES

LENGTH (l)

8

WIDTH (w)

5

AREA

40 units²

PERIMETER

26 units

DIAGONAL

9.433981 units

RATIO l:w

1.6

Half perimeter13
Area/perimeter1.5385
Diagonal angle32.01°
TypeRectangle

STEP-BY-STEP

1

Given: length = 8, width = 5

2

Area = l × w = 8 × 5 = 40

3

Perimeter = 2(l+w) = 2(8+5) = 26

4

Diagonal = √(l²+w²) = √(64+25) = 9.433981

QUICK EXAMPLES

LIVE DIAGRAM

d=9.434l = 8w = 5

DIAGONAL (PYTHAGORAS)

d = √(l²+w²)
= √(8²+5²)
= √(64+25)
= √89 = 9.433981

DIMENSIONS

Length 8100%
Width 562.5%
Diagonal 9.434117.9%
Created with❤️byeaglecalculator.com

RECTANGLE FORMULAS

ALL FORMULAS
NAMEFORMULADESCRIPTION
AreaA = l × wLength times width
PerimeterP = 2(l + w)Twice the sum of length and width
Diagonald = √(l² + w²)Pythagorean theorem on the right triangle formed
Width from areaw = A / lDivide area by known length
Width from diagonalw = √(d² − l²)Rearrange Pythagorean theorem
From area+perimeterx² − (P/2)x + A = 0Quadratic equation to find both sides
Square (special case)l = w → d = l√2, A = l², P = 4lAll sides equal
Golden rectanglel/w = φ = (1+√5)/2 ≈ 1.61803Aesthetically proportioned rectangle

HOW TO USE

  1. 1

    Select your input mode based on which two values you know. The most common is Length + Width, but any two of the five properties (l, w, A, P, d) can be used to find the rest.

  2. 2

    Enter your two known values. For the Area + Perimeter mode, the calculator solves a quadratic equation to find both sides simultaneously.

  3. 3

    Area, perimeter, diagonal, and the l:w ratio appear instantly. The type (Rectangle or Square) is shown, along with a Golden Rectangle badge if l/w ≈ 1.618.

  4. 4

    Read the step-by-step solution to see the formula applied — Pythagorean theorem for diagonal problems, quadratic for Area + Perimeter mode.

  5. 5

    Check the live diagram — the rectangle is drawn to scale with the diagonal in red. A Pythagoras proof panel shows the diagonal calculation step by step.

WORKED EXAMPLE

Example 1 (l+w): l=8, w=5. Area=40, Perimeter=26, Diagonal=√89≈9.434. Example 2 (square l=6): Area=36, Perimeter=24, Diagonal=6√2≈8.485. Type=Square. Example 3 (A+P=40,26): l+w=13, l×w=40, quadratic→l=8,w=5. Example 4 (l+diagonal l=8,d=√89): w=√(89−64)=√25=5.

FREQUENTLY ASKED QUESTIONS

RELATED CALCULATORS

MORE GEOMETRY CALCULATORS

Was this calculator helpful?

Last updated: April 29, 2026 · Formula verified by EagleCalculator team · Eagle-eyed accuracy for every calculation.