Rectangle area calculator

Compute area, perimeter, diagonal and aspect ratio from side lengths. Includes unit conversions and decimal control.

Rectangle area

Compute area, perimeter, diagonal, and aspect ratio from two sides.

A = width × height

Input data

e.g. 4.25
Comma or dot decimals accepted.
e.g. 3
Values must be ≥ 0.
The main area is shown in the chosen unit².

How it works

  1. Enter width and height using the same unit.
  2. Click Calculate to get the area and extra metrics.
  3. Switch the unit selector to convert the outputs instantly.

Diagonal uses Pythagoras: √(width² + height²).

Results

Main area

Enter the values and press Calculate
Width and height in the selected unit

Geometric visualization

The rectangle is drawn at a relative scale with width, height and diagonal.

Calculate to see the rectangle.
Perimeter
Diagonal
Aspect ratio

Area conversions

mm²
cm²
in²
ft²
Includes all conversions.

Formulas used

  • Area: A = width × height.
  • Perimeter: P = 2 × (width + height).
  • Diagonal: d = √(width² + height²).
  • Aspect ratio: width : height simplified.

Typical uses

  • Measure rooms, screens, boards, or fabric pieces.
  • Plan rectangular gardens or floor layouts.
  • Switch between metric and imperial units in one click.
How do you calculate the area of a rectangle?

Multiply width by height: A = width × height. Enter both sides and hit Calculate to instantly get area, perimeter, diagonal, and aspect ratio.

Can I use decimals and switch units without losing my data?

Yes. Dot or comma decimals are accepted and validated. When you change the unit, we recalc the main result and all conversions automatically.

What is the perimeter shown for?

The perimeter is the total outline of the rectangle. It helps you estimate trim, skirting, framing, or any border material.

How is the diagonal computed and what does it tell me?

We apply the Pythagorean theorem: d = √(width² + height²). The diagonal is the longest distance across the rectangle and is handy for comparing screens or panels.

Do you store or send the values I type?

No. Everything is calculated locally in your browser; none of your measurements are saved or transmitted.