◎ English · Global

Rectangle Calculator

Find the area, perimeter and diagonal of a rectangle using perpendicular length and width in the same unit.

Enter your values

Use a decimal point, without thousands separators.

Example result
Area
40
Perimeter26
Diagonal9.43398113

The initial result uses the example values. Enter your own values and calculate again.

Area40

How it works

In this guide

Find the area, perimeter and diagonal of a rectangle using perpendicular length and width in the same unit.

Inputs and units
Rectangle Calculator · Inputs and units
InputExample valueWhat to enter
Length8Enter a numeric value. Must be greater than zero.
Width5Enter a numeric value. Must be greater than zero.
A = ab; P = 2(a+b); d = √(a²+b²)

Worked example

Show example inputs and results

This example is generated by the same calculation engine using the starting values in the form. Your own inputs produce your own result.

Length
8
Width
5

Complete example results

Area
40
Perimeter
26
Diagonal
9.43398113

Reading the result

Enter lengths in the same unit. Area uses the square of that unit and volume its cube. Height is perpendicular to the base; use a sloping side only when the input explicitly asks for it.

Compare different scenarios

Inputs held constant: Width: 5.

Fixed examples; they do not update when you edit the form.
LengthAreaPerimeter
42018
84026
126034

Separate coverage, boundary and diagonal measurements

A rectangle measuring 6 by 8 has area 6 × 8 = 48, perimeter 2 × (6 + 8) = 28, and diagonal √(6² + 8²) = 10. The area describes surface coverage; the perimeter follows the outside boundary; the diagonal crosses the rectangle. Choose the relevant result before estimating a material quantity.

Area uses a squared unit

If the sides are measured in metres, area is in square metres while perimeter and diagonal remain in metres. Convert a width of 200 cm to 2 m before combining it with a length of 1.5 m: the area is then 3 m². The form does not infer or convert units from the numbers alone.

Questions and answers

Can I use the example values for my own calculation?

The example values illustrate the calculation. Replace every input with your own information, especially dates, rates and the selected operation.

Why are some results rounded?

Results display up to 8 decimal places. Calculations use the unrounded values; very small values use scientific notation. JavaScript floating-point arithmetic can introduce tiny rounding differences.

Are my inputs sent to a server?

The calculator processes inputs in your browser. Its code does not send your values to a server.

Methods & accuracy

What would you like to calculate?

Browse all calculators