Rectangle calculator

Calculate area, perimeter, diagonal, and missing dimensions of a rectangle. Change any two known values and watch the geometry update live.

⚑ Report error
Area
—
A = l × w
Perimeter
—
P = 2(l + w)
Diagonal
—
d = √(l² + w²)

Live rectangle diagram

Dimensions and diagonal update as you calculate
Live
Geometry viewWaiting for values

Side comparison

Length and width on the same scale
Live
Relative dimensions—

Area as length changes

Width stays fixed; the curve shows why area grows linearly with length
Live
Model: A = l × w—

Rectangle properties

2 known values
PropertySymbolValueFormula / meaning
How the calculator works: enter any two compatible rectangle properties. The calculator solves the remaining values from the geometry relationships.
CONCEPT

What is a rectangle?

A rectangle is a quadrilateral with four right angles. Its opposite sides have equal lengths, so two adjacent dimensions are enough to describe the whole shape.

length l width w diagonal d 90° A = l × w P = 2(l + w)
The diagonal splits the rectangle into two congruent right triangles, which is why the Pythagorean theorem gives d = √(l² + w²).
4right angles in every rectangle
2 + 2opposite sides have equal lengths
2diagonals have equal length
FORMULAS

Rectangle formulas

For a rectangle with length l and width w, the three core measurements are area, perimeter, and diagonal. These formulas agree with the standard relationships used by CalculatorSoup, Omni Calculator, and Inch Calculator.

AREA · A
A = l × w

Multiply the two perpendicular side lengths.

PERIMETER · P
P = 2(l + w)

Add all four sides; opposite sides are equal.

DIAGONAL · d
d = √(l² + w²)

Apply the Pythagorean theorem to half of the rectangle.

EXAMPLES

Worked rectangle examples

Worked examples make the formulas easier to recognize. The classic 3–4–5 rectangle is especially useful because its diagonal is an integer.

Example 1 · 3 × 4 rectangle

A = 3 × 4 = 12 cm²
P = 2(3 + 4) = 14 cm
d = √(3² + 4²) = 5 cm

Example 2 · 12 × 5 rectangle

A = 12 × 5 = 60 cm²
P = 2(12 + 5) = 34 cm
d = √(144 + 25) = 13 cm
MISSING DIMENSIONS

How to find a missing side

If you know the area and one side, divide the area by the known side. If you know the perimeter and one side, subtract the two known copies of that side and divide by two. If you know the diagonal and one side, use the Pythagorean theorem.

Given area A and length l

w = A ÷ l. Example: 60 cm² ÷ 12 cm = 5 cm.

Given perimeter P and length l

w = P/2 − l. Example: 34/2 − 12 = 5 cm.

Given diagonal d and length l

w = √(d² − l²). Example: √(13² − 12²) = 5 cm.

Given area A and width w

l = A ÷ w. The same area relationship works in either direction.

PROPERTIES

Important properties of a rectangle

PropertyRelationshipWhy it matters
Opposite sidesl = l and w = wOnly two adjacent side lengths are needed.
Angles4 × 90°Each diagonal creates right triangles.
Diagonalsd₁ = d₂Both diagonals have the same length and bisect each other.
AreaA = l × wMeasures the two-dimensional space inside.
PerimeterP = 2(l + w)Measures the total boundary length.
APPLICATIONS

Where rectangles are used

Rectangle calculations appear in construction, flooring, painting, packaging, screens, tables, gardens, rooms, signs, and many design problems. Inch Calculator specifically highlights flooring and tiling, painting, construction, agriculture and landscaping, and design as practical applications.

Rooms & flooring

Multiply room length by width to estimate floor area and material quantities.

Screens & paper

Rectangular dimensions describe screens, posters, sheets, labels and many packages.

Construction

Perimeter can represent edging or trim, while area represents a surface to cover.

RECTANGLE VS SQUARE

Is a square a rectangle?

Yes. A square is a special rectangle in which the length and width are equal. If l = w = s, the rectangle formulas become A = s², P = 4s, and d = s√2.

s s A = s² P = 4s d = s√2 A square keeps all four rectangle right angles.
A square satisfies the rectangle definition while adding the extra condition that all four sides are equal.
PRACTICAL CHECKS

How to check a rectangle calculation

Unit check

Lengths use units such as cm or m; area uses square units such as cm² or m²; perimeter and diagonal return length units.

Scale check

If length doubles while width stays fixed, area doubles. Perimeter increases by 2 × the added length.

Triangle check

The diagonal must be longer than either side and satisfy d² = l² + w².

Boundary check

Perimeter should always equal the sum of all four sides: l + w + l + w.

FAQ

Rectangle calculator FAQ

What is the formula for the area of a rectangle?

Area is A = l × w. Multiply the length by the width, using the same unit for both measurements.

What is the perimeter of a rectangle?

Perimeter is P = 2(l + w), which is the sum of the four sides.

How do I find the diagonal?

Use d = √(l² + w²). The diagonal acts as the hypotenuse of a right triangle formed by the two side lengths.

Can I calculate a missing side?

Yes. Enter any two compatible known properties. For example, w = A/l, w = P/2 − l, or w = √(d² − l²), depending on the information you know.

What units can I use?

Any consistent length unit works. If the sides are in meters, area is in square meters and perimeter and diagonal are in meters. If the two sides use different units, convert them to the same unit first. citeturn0view0

Is every square a rectangle?

Yes. A square has four right angles and equal opposite sides, so it satisfies the rectangle definition; it simply adds the condition that all four sides are equal.