Rectangle Calculator: Area, Perimeter, Diagonal
Find a rectangle's area, perimeter, and diagonal from two sides, an area, a perimeter, or a diagonal paired with one side — with exact step-by-step results.
The three rectangle formulas
A rectangle has four right angles, with opposite sides equal in length. Given both sides and , every other measure follows directly:
The diagonal formula comes straight from the Pythagorean theorem: the diagonal is the hypotenuse of a right triangle whose two legs are the sides and , so .
Solving in the other direction
This calculator also works backward: give it one side plus any one of area, perimeter, or diagonal, and it solves for the missing side first, then derives the rest.
| Known | Solve for the missing side | Then |
|---|---|---|
| Both sides | — (already known) | , , |
| Area , side | , | |
| Perimeter , side | , | |
| Diagonal , side | , |
Worked example: sides a = 8, b = 6
This is the classic 6-8-10 Pythagorean triple, so the diagonal comes out to an exact whole number.
Worked example: area A = 48, side a = 8
Dividing gives the missing side: . From there, and — the same rectangle as above, just described by a different pair of known measures.
Worked example: perimeter P = 2, side a = 8
Here , a negative value — no rectangle can have side and perimeter as small as 2, since the perimeter must exceed just to leave room for a positive second side. This combination is geometrically impossible, not a rounding issue.
Common mistakes
- Writing or . Area is the product of the sides; perimeter is the sum of all four sides, i.e. .
- Forgetting to square before adding. The diagonal is , not or .
- Ignoring the degenerate case. When solving backward from a perimeter or diagonal, the resulting second side must be positive — a perimeter too small or a diagonal too short for the given side describes no real rectangle.
Where this shows up
- Flooring, tiling, and land area: a rectangular room or plot's area determines material and cost.
- Screens and displays: a diagonal measurement (like a TV's "55 inch" spec) combines with an aspect ratio to determine the actual width and height.
- Construction: measuring both diagonals of a rectangular frame and checking they're equal (and match ) confirms the corners are truly square.
A rectangle generalizes the square (the special case ) and specializes the parallelogram (the special case where every angle is 90°) — which is why its diagonal, unlike a general parallelogram's, always follows the clean Pythagorean formula.
Frequently asked questions
- What are the formulas for a rectangle?
- With sides and : area , perimeter , and diagonal . Knowing any two of these (with at least one side) is enough to find the rest.
- Why is the diagonal √(a²+b²) and not a + b?
- The diagonal is the hypotenuse of the right triangle formed by the two sides. By the Pythagorean theorem, p = √(a² + b²) — a purely geometric relationship, not a simple sum of the sides.
- How do I find the missing side if I know the area and one side?
- Divide: . For example, an area of 48 with side gives .
- How do I find the missing side if I know the perimeter and one side?
- Use . A perimeter of 28 with side gives . If this comes out zero or negative, the perimeter is too small for that side — no rectangle exists.
- How do I find the missing side if I know the diagonal and one side?
- Use . A diagonal of 10 with side gives . The diagonal must be strictly greater than the given side, or the square root is undefined.
- Is the diagonal always a whole number when the sides are whole numbers?
- No. A 6-8-10 rectangle has an exact whole-number diagonal (a Pythagorean triple), but a 2-3 rectangle's diagonal is — an irrational number that only simplifies to a whole number for specific side combinations.
- What is the most common mistake with rectangle formulas?
- Confusing area and perimeter — computing or instead of and . Another common slip is forgetting to square both sides before adding them under the diagonal's square root.
- How is the rectangle related to the square and parallelogram?
- A square is the special case of a rectangle where . A rectangle is itself the special case of a parallelogram where all four angles are right angles — it inherits the parallelogram's area formula, simplified because the height equals the adjacent side.