DoesWhatAnswersSlangEmojisCalculatorsTriviaPlayBlog

Trivia Questions and Weird Facts

Geometry

Rectangle Calculator

Enter the two side lengths and get the rectangle's area, perimeter and diagonal instantly. The long-to-short side ratio also helps you compare outlines without letting their overall size get in the way.

Loading the calculator. It runs in your browser, so JavaScript needs to be on.

How to use the Rectangle Calculator

  1. Enter Length and Width as positive numbers in the same unit. The order does not affect area, perimeter or diagonal.
  2. Choose the matching length unit. The unit selector labels the numbers; convert mixed measurements before entering them.
  3. Read the area at the top, then use perimeter for the boundary, diagonal for a corner-to-corner check, and side ratio for proportions.

The formula

Area A = lw. Perimeter P = 2(l + w). Diagonal d = √(l2 + w2). The displayed side ratio is max(l,w) / min(l,w), written relative to 1. The diagonal formula follows the Pythagorean theorem because every rectangle has right angles.

Worked example

A rectangle 5 cm by 4 cm has an area of 20 cm^2, a perimeter of 18 cm and a diagonal of 6.4031242 cm. Its long-to-short side ratio is 1.25:1. A 3 cm by 4 cm rectangle has the familiar exact diagonal of 5 cm.

Area buys the covering, perimeter buys the border

A 5 ft by 4 ft rectangle covers 20 ft^2 but has 18 ft of boundary. Flooring and sheet material use the first figure; trim and edging use the second. Add any material-specific cutting allowance separately. If a doorway interrupts a baseboard run, subtract its width from the boundary rather than from the floor area.

A diagonal helps check a right angle

For a true rectangle, both diagonals have the same length, and their expected length comes from the two sides. A 3 by 4 outline should measure 5 across. Equal diagonals alone do not prove an arbitrary four-sided shape is a rectangle, but they are useful alongside equal opposite sides and careful corner measurements.

Similar area does not mean similar shape

A 10 by 2 rectangle and a 5 by 4 rectangle both cover 20 square units. Their perimeters are 24 and 18 units, respectively. Stretching a rectangle while keeping its area fixed requires more boundary. Among rectangles with the same area, the square has the shortest perimeter and a side ratio of 1:1.

Rectangle Calculator questions

How do I calculate the diagonal of a rectangle?

Square the length and width, add them, then take the square root. A 3 by 4 rectangle has diagonal 5.

Is a square a rectangle?

Yes. A square is a rectangle with four equal sides. Enter the same number for Length and Width to calculate it.

Can I mix feet and inches?

Convert to one unit first. For example, 6 inches is 0.5 feet, so a 5 ft by 6 in strip should be entered as 5 and 0.5 with feet selected.

Related calculators