Rectangle Diagonal Calculator
Find a rectangle’s diagonal and its angle to the length.
Enter a finite value within the formula’s domain and supported numeric range.
d²=a²+b² (+c² for a box); b=√(d²−a²), requiring d≥a. Lengths are nonnegative. Area=ab; perimeter=2(a+b); volume=abc. Additional planar angles require both sides to be positive. Screen mode uses the entered active-image diagonal in inches (1 in=2.54 cm) and positive width:height ratio; it excludes the bezel. Other dimensions follow the selected unit system; screen centimetre results stay in cm. Square-root and angle results are approximate.
Method, assumptions and limits
Find a rectangle’s diagonal and its angle to the length.
d₂ = √(L²+W²); d□ = L√2; d₃ = √(L²+W²+H²); θ = atan2(W,L); L,W,H ≥ 0.
Decimal input uses a dot, up to 12 digits before and after it, and an optional exponent from −24 to 24. Input magnitudes are limited to 10¹²; each formula has additional domain limits. Displayed approximate results use up to 12 significant digits.
d²=a²+b² (+c² for a box); b=√(d²−a²), requiring d≥a. Lengths are nonnegative. Area=ab; perimeter=2(a+b); volume=abc. Additional planar angles require both sides to be positive. Screen mode uses the entered active-image diagonal in inches (1 in=2.54 cm) and positive width:height ratio; it excludes the bezel. Other dimensions follow the selected unit system; screen centimetre results stay in cm. Square-root and angle results are approximate.
Frequently asked questions
How should I interpret this estimate?
d₂ = √(L²+W²); d□ = L√2; d₃ = √(L²+W²+H²); θ = atan2(W,L); L,W,H ≥ 0. Decimal input uses a dot, up to 12 digits before and after it, and an optional exponent from −24 to 24. Input magnitudes are limited to 10¹²; each formula has additional domain limits. Displayed approximate results use up to 12 significant digits.
How we verified this calculator
The calculator is checked against 6 reference cases computed independently of its code. Last passed: .
| # | Inputs | Expected result |
|---|---|---|
| 1 |
Length = 3
Width = 4
|
Angle to width (°): 36.8698976458
Smaller angle between diagonals (°): 73.7397952917
Larger angle between diagonals (°): 106.260204708
|
| 2 |
Diagonal geometry = Square
Length = 2
|
Smaller angle between diagonals (°): 90
Larger angle between diagonals (°): 90
Angle to width (°): 45
|
| 3 |
Diagonal geometry = Screen from diagonal and ratio
Screen diagonal (in) = 10
Aspect ratio: width = 4
Aspect ratio: height = 3
|
Screen width (cm): 20.32
Screen height (cm): 15.24
Screen diagonal (cm): 25.4
|
| 4 |
Diagonal geometry = Screen from diagonal and ratio
Screen diagonal (in) = 10
Aspect ratio: width = 3
Aspect ratio: height = 4
|
Screen width (cm): 15.24
Screen height (cm): 20.32
|
| 5 |
Units = US customary
Diagonal geometry = Screen from diagonal and ratio
Screen diagonal (in) = 10
Aspect ratio: width = 4
Aspect ratio: height = 3
|
Screen width (cm): 20.32
|
| 6 |
Diagonal geometry = Screen from diagonal and ratio
Screen diagonal (in) = 10
Aspect ratio: width = 4
Aspect ratio: height = 3
Length =
Width = -1
Package height =
Known diagonal = -1
|
Screen width (cm): 20.32
|