Rectangle Calculator tool

Rectangle Calculator

A rectangle is the most common shape in floor plans, screens, and land plots.

What is a rectangle calculator?

A rectangle calculator takes length and width and returns area, perimeter, diagonal length, and aspect ratio. Diagonal uses the Pythagorean theorem on the length and width. Aspect ratio is length divided by width. Use it for room layouts, screen sizes, land plots, and any problem where a rectangle is defined by two adjacent sides. Square corners are assumed.

How to use the Rectangle Calculator

  1. Enter length of the longer side you measure.
  2. Enter width perpendicular to the length.
  3. Read area and perimeter on the cards.
  4. Check diagonal for cable or brace length.
  5. Note aspect ratio for screen or print layouts.

About this calculator

A rectangle is the most common shape in floor plans, screens, and land plots. Multiply length by width for area, add all four sides (or use 2(L + W)) for perimeter, and apply the Pythagorean theorem for the corner-to-corner diagonal.

Enter consistent units — metres for a room, feet for a US floor plan, or abstract units for homework. Aspect ratio L:W tells you how elongated the shape is; a 16:9 screen has ratio about 1.78.

Every rectangle is a parallelogram with right angles. For flooring quotes add 10–15% waste on top of the raw area. Link to [[area]] for mixed shapes, [[square-footage]] for room totals, [[parallelogram]] when corners are not 90°, and [[distance]] when corners sit on a coordinate grid.

Formula for rectangle measurements

Area = length × width
Perimeter = 2(length + width)
Diagonal = √(length² + width²)
  • length and width are adjacent sides in the same units
  • Diagonal is the corner-to-corner distance
  • Aspect ratio = length ÷ width

Rectangle example: length 12 and width 8

A plot measures 12 m by 8 m. Enter length 12 and width 8.

Area is 12 × 8 = 96 square metres. Perimeter is 2 × (12 + 8) = 40 m for fencing quotes. Diagonal is √(144 + 64) = √208 ≈ 14.4222 m, useful for a diagonal path across the plot.

Aspect ratio is 12 ÷ 8 = 1.5. The calculator shows each value to four decimals. Double-check that you typed length and width, not diagonal, into the input fields.

Square corners are assumed. For a plot with curved edges, split the shape into rectangles and add areas. Diagonal length is the shortest straight brace across the room and is longer than either single side but shorter than the perimeter.

Aspect ratio above one means the length exceeds the width. Screens and photos use the same ratio idea. Perimeter in metres times cost per metre gives fencing price, which is separate from area in square metres.

Common uses

  • Room floor area from length and width measurements
  • Diagonal brace length across a rectangular frame
  • Screen or poster aspect ratio checks
  • Garden bed perimeter for fencing material
  • Coordinate geometry — verify area of an axis-aligned box

Frequently asked questions

What is the area of a 10 × 5 rectangle?

Area = 10 × 5 = 50 square units. Perimeter = 2(10 + 5) = 30 units. Diagonal = √(100 + 25) ≈ 11.18 units.

How do I find the diagonal?

Treat length and width as legs of a right triangle. Diagonal = √(L² + W²). This matches the [[right-triangle]] calculator with legs L and W.

Does length have to be longer than width?

No. Either side can be labeled length or width. Area and perimeter stay the same if you swap the labels.

What is aspect ratio?

It is L divided by W. A square has aspect ratio 1. A 1920×1080 display has ratio 1.78 because 1920/1080 ≈ 1.78.

Related calculators

Maintained by J Jaya Prakash · Last updated: October 2026