Calculate the angle a rectangle's diagonal makes with its sides. Enter length and width to get diagonal angles, diagonal length, area, perimeter, and aspect ratio with visual bars.
The diagonal of a rectangle creates two right triangles, and the angle that the diagonal makes with each side can be calculated using basic trigonometry. Specifically, the angle between the diagonal and the length is arctan(width / length), while the complementary angle with the width is arctan(length / width). These two angles always sum to exactly 90 degrees.
This calculator takes the length and width of any rectangle and computes both diagonal angles, the diagonal length (via the Pythagorean theorem), the area, the perimeter, and the aspect ratio. It provides results in both degrees and radians, with adjustable precision and instant visual feedback.
Understanding diagonal angles is useful in many real-world contexts. Screen manufacturers describe displays by their diagonal measurement and aspect ratio — knowing the diagonal angle helps you visualize the actual shape. Architects and carpenters use diagonal measurements to verify that corners are square. In graphic design, the diagonal angle determines the perspective and visual weight of rectangular compositions.
For a perfect square, both angles are exactly 45 degrees. As a rectangle becomes more elongated, one angle grows larger (approaching 90°) while the other shrinks toward 0°. The golden rectangle (ratio ≈ 1.618 : 1) has a diagonal angle of about 31.72° with the length side, which many consider aesthetically pleasing. Standard paper sizes like A4 follow the 1 : √2 ratio, creating a diagonal angle of approximately 54.74°.
Use the preset buttons to instantly explore common rectangles including HD and 4K screens, paper sizes, phone dimensions, credit cards, and the golden rectangle. The reference table compares diagonal angles across popular aspect ratios.
Diagonal angle becomes important whenever you need to relate a rectangle's proportions to slope, framing, or display shape. It helps with screen layout work, print geometry, carpentry squareness checks, and any right-triangle problem where the rectangle's side lengths are known but the diagonal direction is the quantity you actually need.
Diagonal = √(L² + W²) | Angle with Length = arctan(W/L) | Angle with Width = arctan(L/W) | Area = L × W | Perimeter = 2(L + W). The two diagonal angles always sum to 90°.
Result: Angle with length = 29.3578 deg, diagonal = 18.3576 in
For a 16 by 9 rectangle, the diagonal length is sqrt(16^2 + 9^2) = sqrt(337) = 18.3576 in. The angle with the length side is arctan(9 / 16) = 29.3578 degrees, and the complementary angle with the width side is 60.6422 degrees. The two acute angles add to 90 degrees, as expected for the right triangle formed by the rectangle diagonal.
A rectangle with length L and width W has a diagonal of length **d = √(L² + W²)**, directly from the Pythagorean theorem applied to the right triangle formed by the diagonal and two sides. The diagonal makes an angle **θ = arctan(W/L)** with the length and **φ = arctan(L/W) = 90° − θ** with the width. Since the two diagonals of a rectangle are equal in length and bisect each other, the rectangle has a center of symmetry, and each diagonal divides it into two congruent right triangles.
The **diagonal-to-side ratio** d/L = √(1 + (W/L)²) depends only on the aspect ratio. For a square (L = W) the diagonal is L√2, making an angle of exactly 45° with each side. For a 16:9 rectangle, d/L = √(1 + (9/16)²) ≈ 1.147 and θ = arctan(9/16) ≈ 29.36°.
Screen sizes are quoted as diagonal measurement in inches. For a display with pixel dimensions W_px × H_px and physical diagonal d_in, the **pixel density** PPI = √(W_px² + H_px²) / d_in. A 1920 × 1080 panel in a 24-inch monitor gives √(1920² + 1080²) / 24 ≈ 91.8 PPI, while the same resolution in a 15-inch laptop screen gives ≈ 146.9 PPI — noticeably sharper. This is why "retina" displays specify both resolution and screen size.
The diagonal check is the most reliable way to verify that a rectangular frame is square: if both diagonals measure exactly d = √(L² + W²), all angles are 90°. Carpenters call this "checking the racking." A slight diagonal discrepancy reveals a parallelogram skew that must be corrected before final fastening. In **structural engineering**, diagonal braces in rectangular frames carry tension or compression loads and their length is calculated directly from this formula. In **geodesy and mapping**, the hypotenuse between two survey points with known northing and easting separations is the same calculation.
It is the angle formed between the diagonal and one of the sides. A rectangle has two diagonal angles — one with the length and one with the width — and they always add up to 90°.
Use the arctangent (inverse tangent) function: angle with length = arctan(width / length). Most calculators and programming languages have an atan or arctan function.
Because the diagonal of a rectangle creates a right triangle. The two acute angles in any right triangle always sum to 90° (since the right angle is 90° and all three angles sum to 180°).
Exactly 45° on both sides. Since both sides are equal, arctan(1) = 45°.
The aspect ratio is the ratio of the longer side to the shorter side. A higher aspect ratio means a more elongated rectangle, which results in a larger difference between the two diagonal angles.
No — this calculator is specifically for rectangles (all angles 90°). Parallelograms have different diagonal angle relationships because their corners are not right angles.