Rectangle Calculator
A rectangle calculator is a geometric utility that computes the area, perimeter, and diagonal length of a rectangle from its basic dimensions. Using standard mathematical formulas, the calculator determines the surface coverage (area equals width times length), boundary length (perimeter equals two times the sum of width and length), and the distance between opposite corners using the Pythagorean theorem. Students, designers, and builders use this tool to calculate spaces, measure materials, and solve geometric problems.
Enter length and width and the calculator returns the area, perimeter, diagonal, and simplified aspect ratio of the rectangle.
Quick Answer
Calculate the area, perimeter, and diagonal of a rectangle. Enter the length and width to find geometric properties with step-by-step formulas.
Use any consistent unit. · e.g. 8
Same unit as length. · e.g. 5
Length and width must be positive. Results use whatever unit you entered (area is unit squared, perimeter and diagonal are the same unit).
Area
40
8 × 5 = 40 sq units
Area = length × width · Perimeter = 2 × (length + width) · Diagonal = √(length² + width²).
Examples
8 by 5 rectangle
area 40 · perimeter 26 · diagonal ≈ 9.434
16 by 9 rectangle
area 144 · perimeter 50 · diagonal ≈ 18.358 · ratio 16 : 9
10 by 10 square
area 100 · perimeter 40 · diagonal ≈ 14.142
How it works
A rectangle has four right angles and two pairs of equal sides. Three single-line formulas cover everything you can measure without knowing the angles: area, perimeter, and diagonal.
Area · A = length × width
Perimeter · P = 2 × (length + width)
Diagonal · d = √(length² + width²)
Results use whatever unit you entered (area is squared).
Related geometry calculators
- Area Formula
- Perimeter Formula
- Area calculator for area across rectangles, triangles, circles, and more.
- Perimeter calculator for perimeter and circumference across common shapes.
- Square footage calculator for rectangle area in square feet, yards, meters, and acres.
- Pythagorean theorem calculator for the formula behind the diagonal.
- Right triangle calculator for the half-rectangle case with angles and area.
- All education calculators.
Related Calculators
More tools from Education



