Skip to content
GeoCalcLab emblem
GeoCalcLab.com

Rectangle Calculator: Area, Perimeter & Diagonal

Enter a length and width to get area, perimeter and diagonal — with the multiplication and Pythagorean step shown.

FreeNo sign-upMetric + imperialStep-by-step formula
Unit
Rectangle
Presets:

Same answer, other units: area = 2.2297 m² · perimeter = 6.096 m

Area
24 ft²
Perimeter
20 ft

Three rectangle answers from two numbers

A rectangle has four right angles and opposite sides that are equal. Its length and width determine the area, the perimeter and the diagonal.

Area is length times width and uses square units. Perimeter is the distance around the edge and uses linear units. The diagonal splits the rectangle into two right triangles, so it comes from the Pythagorean theorem.

These are everyday measurements: flooring, paint, sod, picture frames, screens, garden beds and room layouts all reduce to a rectangle calculation.

Rectangle formulas used on this page

← Swipe →
QuantityFormulaNotes
AreaA = l × wSquare units: ft², m², in².
PerimeterP = 2(l + w)Linear units: ft, m, in.
Diagonald = √(l² + w²)Pythagorean theorem applied to the two sides.
Length from areal = A ÷ wRearrange the area formula.
Length from perimeterl = (P ÷ 2) − wUseful when the perimeter is known.

Rectangle values at a glance

← Swipe →
LengthWidthAreaDiagonal
3394.2426
46247.2111
5126013
8108012.8062
102020022.3607

Worked calculation examples

Flooring a room

A room is 12 ft by 14 ft.

  1. 1.A = 12 × 14 = 168 ft²
  2. 2.P = 2 × (12 + 14) = 52 ft
  3. 3.d = √(12² + 14²) = √340 = 18.4391 ft
  4. 4.With 10% waste: 168 × 1.10 = 184.8 ft² of flooring
Takeaway: Flooring and paint are ordered by area, trim by perimeter, and long items by the diagonal. Buy waste allowance with the area calculation, not after.

Raised garden bed

A bed measures 4 m by 1.2 m.

  1. 1.A = 4 × 1.2 = 4.8 m²
  2. 2.P = 2 × (4 + 1.2) = 10.4 m
  3. 3.d = √(4² + 1.2²) = √17.44 = 4.1761 m
  4. 4.Soil at 0.3 m deep: 4.8 × 0.3 = 1.44 m³
Takeaway: Multiply area by depth for a volume. Keep every dimension in the same unit before multiplying.

Rectangle tips

Length and width are interchangeable

Swapping them changes neither the area, the perimeter, nor the diagonal. Pick the orientation that matches your sketch.

Area and perimeter scale differently

Doubling every side quadruples the area but only doubles the perimeter. That is why larger rooms need disproportionately more flooring.

Measure the diagonal to check square

Both diagonals of a true rectangle are equal. If they differ on site, the corners are not square yet.

Convert square units carefully

One square metre is 10.7639 square feet, not 3.2808. Unit conversion for area uses the scale factor squared.

Frequently asked questions

What is the area of a rectangle?+

A = l × w. A 4 ft by 6 ft rectangle has an area of 24 ft².

How do I find the perimeter?+

P = 2(l + w), the distance around all four sides. A 4 by 6 rectangle has a perimeter of 20 ft.

How do I find the diagonal?+

Use the Pythagorean theorem: d = √(l² + w²). The diagonal is the hypotenuse of the right triangle formed by the length and width.

How do I find the missing length from the area?+

Divide the area by the known width: l = A ÷ w. From a perimeter, use l = (P ÷ 2) − w.

Is a square a rectangle?+

Yes. A square is a rectangle with equal sides, so the same formulas apply; area is s², perimeter is 4s and the diagonal is s√2.