How to use the rectangle calculator
Compute area, perimeter and diagonal of a rectangle. Enter length, width in the fields above; the area, perimeter, diagonal are computed instantly and plotted on the chart so you can see how the answer changes.
Formula
Variables
- l β Length
- w β Width
Worked example
With length = 12, width = 5, the calculator gives area β 60; perimeter β 34; diagonal β 13.
Frequently asked questions
What is the formula for the rectangle calculation?
Area = l Γ w. Perimeter = 2 Γ (l+w). Diagonal = hypot(l,w). Here l is length, w is width.
What inputs do I need for the rectangle calculator?
You need length, width. Each field is pre-filled with a typical example so you can see how the result responds as you edit the numbers.
How do I use this calculator?
Type values into the input fields. Results and the chart update instantly. Use Reset to restore the example values, Copy results to paste them elsewhere, or Share to copy a link that preserves your inputs.
Is the result exact?
Calculations use standard formulas and double-precision arithmetic, then display about seven significant figures. Real-world measurements carry uncertainty, so treat results as estimates unless your inputs are exact.