Enter the length and width — get the area, perimeter, and diagonal instantly.
Enter the length and width to see the results
This rectangle calculator takes the two numbers everyone already has on hand — length and width — and instantly returns the area, perimeter, and diagonal of the rectangle they describe. Because a rectangle has exactly two independent dimensions, those two inputs are all that's ever needed: no angle, no extra side, no known area to work backward from. Whether you're an area of a rectangle calculator user sizing a room for flooring, a perimeter of a rectangle formula user estimating fencing or trim, or someone who simply needs to find the diagonal of a rectangle for a frame or screen, this free tool computes all three at once and shows the exact math behind each result.
A rectangle is a four-sided shape with four right angles, fully described by its length and width. From those two values, the area (l × w), perimeter (2(l + w)), and diagonal (√(l² + w²), using the Pythagorean theorem) all follow directly. This calculator takes length and width as inputs and derives the other three properties in one step.
This tool is built for students verifying geometry homework, homeowners and renters estimating flooring, carpet, or paint for a rectangular room, DIYers cutting rectangular panels, boards, or fabric to size, framers and designers who need a screen or picture frame's diagonal, and contractors quoting fencing or baseboard trim by perimeter.
Rectangles are the most common shape in construction, furniture, and digital design, but the value you need often isn't the one you can measure directly. Knowing only length and width, this calculator instantly gives you the coverage area for materials, the total boundary length for trim or fencing, and the diagonal length used to confirm a shape is truly square-cornered — a classic trick in framing and construction.
Flooring installers use it to convert room dimensions into square footage for tile, carpet, or hardwood orders. Fence and baseboard installers use the perimeter to estimate material length. Furniture makers and framers use the diagonal to check that a rectangular frame or tabletop is properly squared (equal diagonals confirm true right angles). Screen and display manufacturers reference length, width, and diagonal together when specifying aspect ratios. Students and teachers use it to check rectangle geometry problems quickly.
How length and width combine to produce area, perimeter, and diagonal
Length and width fully determine a rectangle — area, perimeter, and diagonal all follow directly with no additional information needed.
A rectangle's diagonal splits it into two right triangles, so the Pythagorean theorem (a² + b² = c²) gives the diagonal length exactly.
Length, width, perimeter, and diagonal are linear measurements; area is always expressed in squared units of the same base unit.
From entering dimensions to reading all three results
Type the rectangle's length into the Length (l) field, in any consistent unit.
Type the rectangle's width into the Width (w) field, using the same unit as length.
The calculator multiplies length by width for area, adds all four sides for perimeter, and applies the Pythagorean theorem for the diagonal.
Review the area, perimeter, and diagonal shown together in the results panel.
Solving a rectangle with length 5 and width 3
A rectangular garden plot measures 5 meters long and 3 meters wide. What area of soil is needed, how much edging material is required, and how long is a diagonal support brace?
Explanation: Length and width alone were enough to compute the area for soil, the perimeter for edging, and the diagonal for a brace — no additional measurements were needed since a rectangle's shape is fully fixed by its two side lengths.
What each output represents and how they relate
| Property | What It Represents | Unit Type |
|---|---|---|
| Area | Two-dimensional space enclosed by the rectangle | Squared (e.g. m², cm², ft²) |
| Perimeter | Total distance around all four sides | Linear (same unit as length/width) |
| Diagonal | Straight-line distance between opposite corners | Linear (same unit as length/width) |
Reading the results together: area tells you how much surface the rectangle covers, perimeter tells you how far it is around the outside edge, and the diagonal tells you the straight-line distance corner to corner — three different views of the same two numbers.
Typical ranges: all three results must be positive; the diagonal is always longer than either the length or the width alone, and a rectangle with equal length and width is a special case — a square.
Manual verification: multiply length by width by hand to check area, add all four sides to check perimeter, and square both sides, add them, then take the square root to check the diagonal.
Where computing area, perimeter, and diagonal from length and width is genuinely useful
Check rectangle area, perimeter, and diagonal problems step by step.
Convert a room's length and width into square footage for material orders.
Relate a display's width and height to its diagonal screen size.
Confirm a rectangular opening's area and diagonal before ordering glass or frames.
Estimate the perimeter length needed for fencing, molding, or edging material.
Check a frame's diagonal to confirm perfectly square corners.
Verify a rectangular foundation is square by comparing its two diagonals.
Determine material needed for rectangular panels, banners, or quilts.
Compute the footprint area and edge length of a rectangular panel or lid.
Lay out rectangular courts or fields with accurate perimeter measurements.
Check tabletop, rug, or panel dimensions against a room's available area.
Estimate a rectangular plot's area and boundary length for planning.
What this rectangle calculator does well, and where it doesn't apply
How these related quadrilaterals compare
| Shape | Side Lengths | Angles | Area Formula |
|---|---|---|---|
| Rectangle | Opposite sides equal | All 90° | l × w |
| Square | All four sides equal | All 90° | s² |
| Rhombus | All four sides equal | Opposite angles equal, not necessarily 90° | base × height (or diagonals ÷ 2) |
Summary: This rectangle calculator gives you an instant, free way to find the area, perimeter, and diagonal of any rectangle from just its length and width, with the formula shown. Pair it with related tools like the Square Calculator and Pythagorean Theorem Calculator for a fuller picture of quadrilateral geometry.
Common questions about rectangle measurements
Trusted educational references to go deeper on rectangles
Explore other geometry tools