Rectangle
Find area and perimeter from two sides.
Calculate a rectangle’s diagonal and its angle from the horizontal width.
Calculate a rectangle’s diagonal and its angle from the horizontal width.
sqrt(width^2+height^2)atan(height/width)*180/pi degreesBoth side lengths use the same unit. The angle is measured above the width edge of an ideal rectangle.
Results are rounded for display; calculations use unrounded values. Read our calculation methodology.
Calculate a rectangle’s diagonal and its angle from the horizontal width. The diagonal is the hypotenuse of a right triangle. A 4-by-3 rectangle gives a diagonal of 5.
The diagonal is the hypotenuse of a right triangle. A 4-by-3 rectangle gives a diagonal of 5.
| Input | Example |
|---|---|
Rectangle width width | 4 |
Rectangle height height | 3 |
Both side lengths use the same unit. The angle is measured above the width edge of an ideal rectangle.
Start with the labelled example. Keep units consistent, calculate without intermediate rounding and change one input at a time. The diagram explains the model; the result table supplies the numerical answer.