Perimeter of a Rectangle Calculator
Enter any two independent rectangle measurements to solve the complete geometry, including perimeter, area, diagonal, angle, and circumcircle radius.
Rectangle measurements
The two most recently edited measurements are treated as known. All other fields are solved from that pair.
Shorter side. Use a positive decimal; commas are accepted only as thousands separators.
Longer side. It must be at least as large as the width.
Corner-to-corner distance. It must exceed either side used with it.
Interior surface. Enter a positive value in the square of the selected length unit.
Acute angle facing the length. Valid range: more than 0° and no more than 90°.
Radius of the circle through all four corners; it equals half the diagonal.
Using Width (a) and Length (b) as the independent measurements.
Live results
Results update as soon as two compatible measurements form a unique rectangle.
Perimeter 32 feet.
Solved rectangle details
| Property | Symbol | Value | Relationship |
|---|---|---|---|
| Width | a | 7 ft | Independent startup measurement |
| Length | b | 9 ft | Independent startup measurement |
| Perimeter | P | 32 ft | 2 × (length + width) |
| Area | A | 63 ft² | length × width |
| Diagonal | d | 11.4018 ft | √(length² + width²) |
| Angle between diagonals | γ | 75.75° | 2 × arctan(width ÷ length) |
| Circumcircle radius | r | 5.7009 ft | diagonal ÷ 2 |
The table and Excel workbook use the same unrounded canonical model. Displayed values are rounded only for readability.
How to use the perimeter of a rectangle calculator
What this calculator does
This calculator solves a rectangle from any two independent, compatible measurements and reports its perimeter plus the other standard geometric properties. The primary result, Perimeter, is the total distance around all four sides. The model also computes Area, Diagonal, Angle between diagonals, and Circumcircle radius. It assumes an ordinary Euclidean rectangle with four right angles and treats Length (b) as the longer side. It does not estimate material waste, fence posts, seam allowances, construction tolerances, or the thickness of a border.
When to use it
Use the calculator to estimate fencing or trim around a rectangular space, verify dimensions from a diagonal measurement, recover side lengths when area and another property are known, or check geometry homework and design drawings. For measurement-system context, the NIST guide to SI length and area units explains how meters and square meters relate.
How to calculate
- The calculator opens with a ready-to-use 7 ft by 9 ft demonstration rectangle. Its results are already calculated, and the example Excel workbook is immediately available.
- Select the Length unit before replacing measurements. The shared unit converts Width, Length, Diagonal, and Circumcircle radius together; Area converts by the square of the same factor.
- Edit any two independent measurements. The two most recently edited fields become the known pair, shown in the Known measurements pill and blue note. A redundant pair such as Diagonal plus Circumcircle radius cannot determine the rectangle's proportions, so add a side, area, or angle.
- Read Perimeter first, then review the four secondary result cards, the formula substitution, and the Solved rectangle details table.
- Select Download Excel to export the current canonical values to a validated .xlsx workbook. Select Reset to clear the demonstration and all calculated content. Reset may disable Excel export until two complete, valid measurements are entered again.
Input guide
- Length unit is required and accepts meters, centimeters, millimeters, feet, or inches. It changes display and export units without changing the physical rectangle. A common mistake is to change the unit label mentally but enter a value from the old unit; use the selector so conversion happens automatically.
- Width (a) is a required positive decimal when it is one of the known measurements. It uses the selected length unit; 7 ft is the startup example. Increasing width raises perimeter and area when the other known measurement is held appropriately. Width must not exceed Length in the solved rectangle.
- Length (b) is the longer positive side, in the selected length unit; 9 ft is the example. Increasing it usually increases perimeter, area, diagonal, and radius. Do not enter a negative number or label the shorter side as Length.
- Diagonal (d) is the positive corner-to-corner distance; the example is about 11.401754 ft. It must be longer than either side paired with it. Diagonal and Circumcircle radius alone are redundant because one is always twice the other.
- Area is a positive decimal in square units, such as 63 ft². It can be paired with a side, diagonal, angle, or radius. A frequent error is entering a linear unit instead of a square unit, or using an area too large for a stated diagonal.
- Angle between diagonals (γ) is the acute angle facing the length. Enter degrees greater than 0 and no more than 90; the example is about 75.749967°. Smaller angles describe more elongated rectangles, while 90° describes a square.
- Circumcircle radius is a positive length; the example is about 5.700877 ft. It is exactly half the diagonal. Pair it with a side, area, or angle to determine a unique rectangle.
Output guide
Perimeter is an exact geometric identity in the selected length unit, driven by the solved Width and Length. Zero is not valid because both sides must be positive. Area is the interior surface in square units. Diagonal is the Pythagorean corner-to-corner distance. Angle between diagonals indicates aspect ratio: values near 90° are square-like, while low values are long and narrow. Circumcircle radius is half the diagonal. The Perimeter identity shows the final side substitution, while the Solved rectangle details table lists each property, symbol, value, and relationship. The status pills report the active known pair, selected unit, and whether the model is ready or needs attention.
Worked example
For the startup rectangle, Width is 7 ft and Length is 9 ft. Add the sides: 7 + 9 = 16 ft. A rectangle has two sides of each length, so multiply by two: P = 2 × 16 = 32 ft. The same model gives Area = 7 × 9 = 63 ft², Diagonal = √(7² + 9²) = √130 ≈ 11.4018 ft, Circumcircle radius ≈ 5.7009 ft, and the acute diagonal angle ≈ 75.75°. For a visual review of rectangle properties and terminology, see the rectangle geometry overview from Maths Is Fun.
Formula and interpretation
The perimeter formula is P = 2(l + w), because opposite sides of a rectangle are equal. The area formula is A = lw, and the diagonal follows the Pythagorean theorem: d = √(l² + w²). Since the center of a rectangle's circumcircle is the midpoint of both diagonals, its radius is r = d/2. The acute angle between diagonals is γ = 2 arctan(w/l) when length is at least width.
Perimeter is a linear measurement, so changing from feet to inches multiplies the numerical value by 12. Area is two-dimensional, so the same unit change multiplies the numerical value by 144. This is why the calculator converts area with the square of the length factor. Khan Academy's introduction to perimeter provides an additional conceptual explanation of measuring the distance around a shape.