Connect via MCP →

Enter Calculation

Formula

Advertisement

Results

Input Length 5
Input Width 3
Diagonal 5.83
Perimeter 16
Area 15
Angle (degrees) 30.96
Length
Width
Diagonal
Angle
Rectangle
Diagonal
Angle

What the Rectangle Angle Calculator Does

The Rectangle Angle Calculator works out the angle that a rectangle's diagonal makes with its longer side (the length). Although every interior corner of a rectangle is always 90°, the more useful "angle" in design and geometry is the diagonal angle — the angle formed between the diagonal line and the base. This calculator finds that angle from just two measurements, and along the way it also returns the diagonal length, perimeter and area.

The Inputs You Provide

  • Length — the horizontal side of the rectangle (the base).
  • Width — the vertical side of the rectangle (the height).

Use any consistent unit (cm, m, inches, feet) — the angle result is unitless, while the diagonal and perimeter share your input units and the area is in square units.

The Formula Explained

The diagonal angle is calculated with the inverse tangent (arctangent):

$$\theta = \arctan\!\left(\dfrac{\text{Width}}{\text{Length}}\right)$$

Internally the tool uses atan2(width, length) and converts the result from radians to degrees, which gives a stable, accurate angle. It also computes:

  • Diagonal = \(\sqrt{\text{Length}^2 + \text{Width}^2}\)
  • Perimeter = \(2 \times (\text{Length} + \text{Width})\)
  • Area = \(\text{Length} \times \text{Width}\)
Advertisement
Rectangle with a diagonal forming angle theta with the length side, sides labeled length and width
The angle theta is formed between the diagonal and the length, using width and length as the two legs of a right triangle.

Worked Example

Suppose you enter a Length of 4 and a Width of 3:

  • Angle = \(\arctan(3 \div 4) = \arctan(0.75) \approx\) 36.87°
  • Diagonal = \(\sqrt{4^2 + 3^2} = \sqrt{25} =\) 5
  • Perimeter = \(2 \times (4 + 3) =\) 14
  • Area = \(4 \times 3 =\) 12

So the diagonal of a 4×3 rectangle rises at roughly 36.87° from the base.

Frequently Asked Questions

Aren't all rectangle angles 90°? Yes — the four corner (interior) angles of any rectangle are always right angles. This calculator gives you the diagonal angle instead, which is what matters for layout, bracing and design work.

What happens if length and width are equal? The shape becomes a square and the diagonal angle is exactly 45°, since \(\arctan(1) = 45°\).

Does the order of length and width matter? Yes for the angle value. The angle is measured from the length side, so swapping the two inputs gives the complementary angle (for 4 and 3 you get 36.87°, but 3 and 4 gives 53.13°). The diagonal, perimeter and area stay the same.

Last updated: