Rectangle Diagonal Angle Calculator

Enter a rectangle's length and width to find the angle its diagonal makes with each side (θ = arctan(W/L)), plus the diagonal's length.

Quick Facts

Angle formula
θ = arctan(W / L)
Angle between the diagonal and the length side.
Diagonal formula
d = √(L² + W²)
Pythagorean theorem applied to the right triangle formed by the diagonal.
Complementary angles
θ + φ = 90°
The angle with the length side and the angle with the width side always sum to a right angle.

Your Results

Calculated
Angle with Length Side (θ)
-
θ = arctan(width / length)
Angle with Width Side (φ)
-
φ = arctan(length / width) = 90° − θ
Diagonal Length
-
d = √(L² + W²)
Angle θ (radians)
-
θ converted to radians

Ready

Enter the rectangle's length and width, then press Calculate.

Formula and Method for the Rectangle Diagonal Angle

A rectangle's diagonal splits it into two congruent right triangles. In each triangle, the length (L) and width (W) are the legs and the diagonal is the hypotenuse. The angle the diagonal makes with the length side is θ = arctan(W / L), and the angle it makes with the width side is φ = arctan(L / W). Because θ and φ are the two acute angles of a right triangle, they always satisfy θ + φ = 90°. This calculator also finds the diagonal's length using the Pythagorean theorem.

How the calculation works

Enter the rectangle's length and width in the same unit. The calculator divides width by length and takes the arctangent to get θ, the angle between the diagonal and the length side; it then divides length by width and takes the arctangent (equivalently, subtracts θ from 90°) to get φ, the angle between the diagonal and the width side. The diagonal length comes from d = √(L² + W²), the Pythagorean theorem applied to the right triangle formed by the length, width, and diagonal. Because θ depends only on the ratio W/L, it does not change if you scale both sides by the same factor or switch units — only the diagonal's numeric length changes with units.

Common mistakes

  • Mixing up which angle is which: θ = arctan(W/L) is measured from the longer (length) side, so for a wide, short rectangle θ is small; φ = arctan(L/W) is measured from the width side and is the larger angle when L > W.
  • Using degrees and radians inconsistently: arctan in most programming languages and spreadsheet functions returns radians — multiply by 180/π to convert to degrees before comparing to a protractor reading.
  • Mixing units: enter length and width in the same unit (both in feet, or both in centimeters) — the angle is a ratio, so mismatched units silently distort the result.

Real-world applications

  • Carpentry and framing use the diagonal angle to check that a rectangular frame is square — the diagonal should make equal, complementary angles matching the calculated θ and φ.
  • CAD, drafting, and layout work use the diagonal angle to place bracing, cabling, or trim that runs corner to corner.
  • Screen and panel manufacturers reference the diagonal's angle and length when specifying aspect ratios and mounting hardware.
  • Surveying and site layout use the same right-triangle relationship to lay out rectangular plots and verify corner angles in the field.

Frequently Asked Questions

What is the formula for the angle between a rectangle's diagonal and its sides?
The angle between the diagonal and the length side is θ = arctan(width / length). The angle between the diagonal and the width side is φ = arctan(length / width). Because the diagonal, length, and width form a right triangle, θ and φ are complementary: θ + φ = 90°.
How do I find the length of a rectangle's diagonal?
Use the Pythagorean theorem: d = √(L² + W²), where L is the length and W is the width. For example, a 14 by 9 rectangle has a diagonal of √(14² + 9²) = √277 ≈ 16.64 units.
Why do the two diagonal angles always add up to 90°?
The diagonal splits the rectangle into two right triangles where the length and width are the legs and the diagonal is the hypotenuse. The two acute angles of a right triangle always sum to 90°, so the angle the diagonal makes with the length side plus the angle it makes with the width side always equals 90°.
Does the diagonal angle change if I switch units?
No. The angle depends only on the ratio of width to length (W/L), which is unit-independent, as long as you enter both the length and width in the same unit. The diagonal's length, however, is reported in whatever unit you selected.