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...
KNOWN VALUES
LENGTH (l)
8
WIDTH (w)
5
AREA
40 units²
PERIMETER
26 units
DIAGONAL
9.433981 units
RATIO l:w
1.6
STEP-BY-STEP
Given: length = 8, width = 5
Area = l × w = 8 × 5 = 40
Perimeter = 2(l+w) = 2(8+5) = 26
Diagonal = √(l²+w²) = √(64+25) = 9.433981
QUICK EXAMPLES
DIAGONAL (PYTHAGORAS)
d = √(l²+w²)
= √(8²+5²)
= √(64+25)
= √89 = 9.433981
DIMENSIONS
| NAME | FORMULA | DESCRIPTION |
|---|---|---|
| Area | A = l × w | Length times width |
| Perimeter | P = 2(l + w) | Twice the sum of length and width |
| Diagonal | d = √(l² + w²) | Pythagorean theorem on the right triangle formed |
| Width from area | w = A / l | Divide area by known length |
| Width from diagonal | w = √(d² − l²) | Rearrange Pythagorean theorem |
| From area+perimeter | x² − (P/2)x + A = 0 | Quadratic equation to find both sides |
| Square (special case) | l = w → d = l√2, A = l², P = 4l | All sides equal |
| Golden rectangle | l/w = φ = (1+√5)/2 ≈ 1.61803 | Aesthetically proportioned rectangle |
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.
Enter your two known values. For the Area + Perimeter mode, the calculator solves a quadratic equation to find both sides simultaneously.
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.
Read the step-by-step solution to see the formula applied — Pythagorean theorem for diagonal problems, quadratic for Area + Perimeter mode.
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.
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.
Last updated: April 29, 2026 · Formula verified by EagleCalculator team · Eagle-eyed accuracy for every calculation.