Rectangle Formulas

Calculate diagonal length, perimeter, area, and angles of a rectangle.

Loading interactive tool...

What Is the Rectangle Formulas Calculator?

The Rectangle Formulas Calculator is a versatile geometric tool designed to find all fundamental properties of a rectangle from the lengths of its two distinct sides (Side A and Side B).

By simply entering the length and width of a rectangle, this calculator instantly computes the diagonal length, total perimeter, enclosed area, and the angles of intersection. It is a highly useful tool for construction, architecture, math students, and professionals working with rectangular shapes (who may also benefit from our Scientific Calculator).

Practical Examples & Reference Guide

Here is a reference table showing how different side inputs translate to the calculated properties of a rectangle:

Side A (Length)Side B (Width)DiagonalPerimeterArea
3451412
512133460
101014.142140100
8151746120

Note: Diagonal values and some derived properties are rounded to 4 decimal places for precision.

In-Depth Technical Guide

The Geometry of a Rectangle

A rectangle is a quadrilateral with four right angles (90 degrees). Unlike a square, a rectangle's adjacent sides can be of different lengths, typically denoted as length (l or Side A) and width (w or Side B). Opposite sides of a rectangle are parallel and equal in length.

Core Formulas

Let a represent Side A (length) and b represent Side B (width) of the rectangle:

  1. Area (A): The total 2D space enclosed within the boundary of the rectangle.
    A = a × b

  2. Perimeter (P): The total distance around the outside edge of the rectangle.
    P = 2 × (a + b)

  3. Diagonal (d): The straight line distance connecting opposite corners. According to the Pythagorean theorem (a² + b² = d²), it is:
    d = √(a² + b²)

Angles

  • Internal Angle: The angle between any two adjacent sides is exactly 90°.
  • Diagonal Angle: The diagonals of a rectangle bisect each other and form an intersection. The acute angle (θ) between the diagonals can be found using trigonometry:
    θ = 2 × arctan(min(a,b) / max(a,b))
    This represents the smaller angle at which the diagonals cross.
Understanding the Diagonal Angle Formula

Unlike a square, where the diagonals always cross at exactly 90°, a rectangle's diagonals cross at an angle that depends on how different its two sides are. The formula θ = 2 × arctan(min(a,b) / max(a,b)) captures this directly: it takes the ratio of the shorter side to the longer side, finds the angle whose tangent equals that ratio, and doubles it to get the full acute angle between the diagonals. The practical pattern is straightforward — the closer a rectangle's two sides are in length (approaching a square), the closer this angle gets to 90°; the more elongated the rectangle becomes, the smaller this acute angle gets, since the diagonals cross at an increasingly shallow angle. A perfect square is simply the special case where min(a,b) and max(a,b) are equal, making the ratio 1, and 2 × arctan(1) = 90° exactly — which is why the Square Formulas Calculator doesn't need this more complex formula at all.

Rectangle vs Square: What's the Difference?

A rectangle and a square share the same core definition — four sides, four right angles, opposite sides parallel and equal — but a square adds one further condition: all four sides must be equal, not just the opposite pairs. This makes every square a rectangle, but not every rectangle a square, which is why the two calculators on this site share formula structure but diverge in a few key places. Area and perimeter simplify neatly once a rectangle's two sides become equal: Area = a × b becomes Area = side², and Perimeter = 2 × (a + b) becomes Perimeter = 4 × side. The diagonal angle is where the difference is most visible in practice — a square's diagonals always cross at exactly 90°, while a rectangle's diagonals cross at an angle that shifts based on how elongated the shape is, as explained above. If you're working with a shape where both sides are confirmed equal, the Square Formulas Calculator is the more direct tool; if the two sides differ, this Rectangle Formulas Calculator is built specifically for that case.

Real-World Uses for Rectangle Geometry

Construction and Room Layouts

Most rooms, doors, and building footprints are rectangular rather than square, so knowing a room's length and width instantly gives its area (for flooring or paint coverage), perimeter (for baseboard or trim), and diagonal (useful for confirming a room is properly "square" during construction — if the two diagonals of a rectangular room measure equal, the corners are true right angles).

Screens, Paper, and Print Sizes

Screen sizes, paper formats, and printed materials are almost universally rectangular, and their diagonal measurement is often the headline spec (a "55-inch TV" refers to the diagonal, not the width or height) — this calculator can work backward from a stated diagonal and aspect ratio to find the actual width and height dimensions.

Land and Property Measurement

Rectangular land plots are common in property surveying, where known side lengths (from a boundary survey) can be used to quickly calculate total area for valuation or zoning purposes, or where a known perimeter and one side length can be used to solve for the other side using the perimeter formula above.

Frequently Asked Questions (FAQs)

What is the difference between a square and a rectangle?

All squares are rectangles because they have four 90-degree angles. However, not all rectangles are squares because a rectangle can have adjacent sides of different lengths, whereas a square must have all four sides exactly equal.

How do you find the diagonal of a rectangle?

You can find the diagonal of a rectangle using the Pythagorean theorem. Simply square the length and the width, add them together, and then calculate the square root of that sum.

Why are the internal angles of a rectangle always 90 degrees?

A rectangle is defined geometrically as an equiangular quadrilateral. Since the sum of the interior angles of any quadrilateral is always 360 degrees, dividing that equally among four corners yields exactly 90 degrees per corner.

Do the diagonals of a rectangle cross at a 90-degree angle?

No, the diagonals of a rectangle only intersect at 90 degrees if the rectangle is a square. In a standard rectangle where the length and width are different, the diagonals cross at acute and obtuse angles.

How do I find the width of a rectangle if I know the area and length?

Divide the area by the length — for example, a rectangle with an area of 60 and a length of 12 has a width of 60 ÷ 12 = 5, since Area = Length × Width rearranges directly to Width = Area ÷ Length.

Does a rectangle's diagonal angle change if I scale both sides equally?

No — the diagonal angle depends only on the ratio between the two sides, not their absolute size. Doubling both the length and width produces a larger rectangle with the exact same diagonal angle, since min(a,b)/max(a,b) stays unchanged when both values scale by the same factor.