Length and Width Of Rectangle Given Perimeter Calculator - Solve Sides from Perimeter

Length and width of rectangle given perimeter calculator: enter perimeter and one constraint (area, diagonal, a side, or ratio) to recover both sides.

Updated: June 16, 2026 • Free Tool

Length and Width Of Rectangle Given Perimeter Calculator

Pick which second value you know alongside the perimeter.

Controls display precision; internal math keeps full precision.

Total distance around the rectangle, in any consistent linear unit.

Rectangle area in square units matching the perimeter unit.

Diagonal length across the rectangle in the same unit as perimeter.

The length or width you already know from a sketch, plan, or measurement.

Length divided by width, such as 1.5 for a 3:2 rectangle.

Results

Rectangle Dimensions
0
Length 0units
Width 0units
Area Check 0sq units
Perimeter Check 0units
Diagonal 0units

What Is the Length and Width of Rectangle Given Perimeter Calculator?

The length and width of rectangle given perimeter calculator recovers the two side lengths of a rectangle when you know the perimeter and one more fact. Perimeter alone does not pick a rectangle because infinitely many rectangles share the same boundary length, so the calculator adds a second constraint such as area, diagonal, one known side, or a length-to-width ratio before solving the system.

  • Floor plan recovery: Recover the room dimensions when the floor area and the total baseboard or wall length are both known from a schedule.
  • Garden and plot layout: Solve a rectangular bed or lawn when the edging length and a sketch dimension are recorded but the two side lengths are not.
  • Classroom and tutoring: Work the inverse rectangle problem for grade-school and middle-school algebra practice where the boundary and area are given.
  • Plan and quote review: Cross-check a contractor's drawing by computing the side lengths implied by a stated perimeter and area before ordering materials.

The calculator keeps the geometry separate from project-specific adjustments. It does not estimate material waste, openings, slope, or non-rectangular shapes. It returns the clean rectangle first, and the user then applies real-world allowances on top of that result.

The four mode options cover the most common reverse-rectangle situations in floor plans, garden layouts, classroom word problems, and contractor quote reviews.

For the same rectangle recovered from a different starting pair, the length width area rectangle calculator handles the area plus perimeter or area plus ratio cases.

How the Length and Width of Rectangle Given Perimeter Calculator Works

The calculator uses the standard rectangle perimeter relation and adds one second equation depending on the selected mode. Together those two equations uniquely determine the two side lengths, and the calculator assigns the larger value to length and the smaller to width.

P = 2(L + W)
  • P: Perimeter, the total distance around the rectangle in the chosen unit.
  • L: Length, the longer side of the rectangle after solving.
  • W: Width, the shorter side of the rectangle after solving.
  • A: Area, used in area mode to set L times W equals A.
  • D: Diagonal, used in diagonal mode to set L squared plus W squared equals D squared.
  • r: Length-to-width ratio, used in ratio mode to set L equals r times W.

In the area mode the second equation is L times W equals the entered area, which collapses the system to a quadratic. The two roots of that quadratic are the side lengths, and the calculator sorts them so the larger value is the length. The discriminant s squared minus 4A is the feasibility check; a negative value means no real rectangle matches the entered area and perimeter together.

In the diagonal mode the second equation is the Pythagorean identity, which after the half-perimeter substitution gives a related quadratic the calculator solves the same way. The side mode is direct because the other side equals half-perimeter minus the known side, and the ratio mode uses the ratio together with the half-perimeter sum to express both sides in terms of the entered ratio.

Perimeter and area of 46 and 120

Perimeter = 46, Area = 120, Mode = Perimeter + Area

Half-perimeter s = 23. Discriminant = 23 squared minus 4 times 120 = 49. Root = 7. L = (23 + 7)/2 = 15, W = (23 - 7)/2 = 8.

Length = 15, Width = 8, Area = 120, Perimeter = 46, Diagonal = 17.

A 15 by 8 rectangle has perimeter 46 and area 120, and the diagonal check 15 squared plus 8 squared equals 17 squared confirms the recovered sides.

According to NIST, the area of a rectangle is length times width and the perimeter is twice the length plus twice the width.

According to Omni Calculator, the four typical ways to find length and width from perimeter are to combine perimeter with area, diagonal, one known side, or the length-to-width ratio.

When the diagonal plus a side are known instead of the diagonal plus perimeter, the rectangle diagonal angle calculator covers that adjacent problem with the same Pythagorean identity in a different arrangement.

Key Concepts Behind Solving Rectangle Sides from Perimeter

Four ideas explain why the calculator works and when each mode is the right choice.

Half-Perimeter

Half-perimeter s equals P divided by 2, and it is exactly length plus width. Turning the perimeter into s turns a two-term linear constraint into a clean sum that pairs with a product or sum-of-squares identity.

Discriminant

The discriminant s squared minus 4A decides whether the area and perimeter pair can produce a real rectangle. A negative discriminant means the area is too large for the entered perimeter.

Pythagorean Identity

The diagonal of any rectangle satisfies L squared plus W squared equals D squared. That identity turns the diagonal mode into another quadratic the calculator can solve once the half-perimeter is known.

Aspect Ratio

The ratio r = L/W fixes the rectangle proportions. Combined with the half-perimeter sum, both sides are forced to W = s/(r + 1) and L = r*W.

These four ideas also explain why the same rectangle can be the answer to several different mode choices. A 15 by 8 rectangle answers area 120 with perimeter 46, diagonal 17, known side 15 or 8, and ratio 1.875, so the user picks whichever second value they have on hand.

If the area appears in a different unit system, a length conversion can confirm the linear and square values before the rectangle formula is applied. Mixing square feet with square meters is the most common reason an area and perimeter pair fails the discriminant check.

If the same area appears in a different unit system, the length converter can confirm the linear and square values before the rectangle formula is applied.

How to Use the Length and Width of Rectangle Given Perimeter Calculator

Choose the mode that matches the second value you have, enter the perimeter and that second value, and read off the recovered side lengths and verification rows.

  1. 1 Pick the mode: Select Perimeter + Area, Perimeter + Diagonal, Perimeter + One Side, or Perimeter + Ratio based on which extra fact you know.
  2. 2 Enter the perimeter: Type the full boundary length in any consistent linear unit such as feet, meters, or inches.
  3. 3 Enter the second value: Provide the area, the diagonal, the known side, or the length-to-width ratio in the unit that matches the perimeter.
  4. 4 Choose decimal precision: Set the decimal selector to the precision you want for display; internal math keeps full precision.
  5. 5 Read the result panel: Use the dimensions card for the L x W pair, then check area, perimeter, and diagonal rows to confirm the recovered sides.
  6. 6 Re-check edge cases: If the calculator reports no real rectangle, lower the area, raise the perimeter, or verify the units before assuming the input is correct.

A room schedule lists area 120 square feet and baseboard length 46 feet, so the user selects Perimeter plus Area, enters 46 for perimeter and 120 for area, and reads the dimensions card. The calculator returns length 15 feet and width 8 feet, and the area, perimeter, and diagonal rows show 120, 46, and 17 to confirm. The diagonal value is a useful third check against any wall-to-opposite-wall measurement the user may also have.

When the user only has the two side lengths and wants to know the diagonal, the diagonal of rectangle calculator returns the diagonal from the Pythagorean relationship without re-solving the rectangle.

Benefits of Using This Rectangle Side Solver

The calculator gives one consistent answer across the four most common reverse-rectangle cases.

  • Recovers both sides in one step: It returns the L x W pair directly without solving the quadratic by hand, which matters when the inputs come from plans or schedules.
  • Covers four common modes: Perimeter plus area, diagonal, one side, or ratio are the four cases the Omni Calculator page lists, and this tool covers all four in one form.
  • Surfaces impossible pairs early: The discriminant check inside the area and diagonal modes flags negative-discriminant cases before the user treats the answer as a real room or plot.
  • Recomputes area, perimeter, and diagonal: The three verification rows catch transcription errors and unit mistakes, especially when the plan and the actual measurement disagree by a small amount.
  • Stays unit-neutral: Inputs work in feet, meters, inches, centimeters, or yards as long as the same unit is used for the perimeter and the second value.

These benefits show up in real plan review: a quoted area of 120 with a perimeter of 46 returns 15 by 8, but the same 120 with a perimeter of 28 has no real solution and the calculator says so, which keeps the user from over-ordering materials.

When the question is the more common area and perimeter problem solved with a different field arrangement, the same numeric pair returns the same rectangle.

When the next step is the broader shape workflow, the area calculator covers common area formulas beyond rectangles for plan review and classroom practice.

Factors That Affect Rectangle Recovery from Perimeter

The four factors below decide whether a perimeter-based reverse problem is solvable, and they explain the limitations the calculator cannot remove.

Choice of second constraint

Perimeter alone does not fix a rectangle, so the second value you supply (area, diagonal, a side, or ratio) is the deciding factor. Switching modes with the same perimeter can change the answer or move it from a real solution to no real rectangle.

Discriminant feasibility

In the area and diagonal modes, the discriminant s squared minus 4A or its diagonal-mode equivalent must stay non-negative. Once the entered area outgrows the boundary length, the quadratic has no real roots and the calculator reports a no-real-rectangle case.

Unit consistency

Perimeter, diagonal, and known side must share the same linear unit, and the area must use the matching square unit. Mixing feet with meters or square feet with square meters is the single most common reason a feasible-looking pair fails the discriminant.

Rectangle shape assumption

The solver assumes four right angles and opposite sides of equal length. Real rooms with cutouts, alcoves, jogs, or tapered walls must be split into simpler shapes before the perimeter-constraint equations are applied.

These factors also describe the limits of the solver, and they explain why a dedicated perimeter reference is a useful next step when the problem goes beyond a clean four-sided rectangle.

For simple land and area conversions after the dimensions are recovered, an acres to square feet converter connects the recovered square-foot result with parcel-scale acres for larger plots.

According to OpenStax, rectangle area is found by multiplying length units by width units, with both measurements in the same unit.

These factors also describe the limits of the solver, and they explain why the perimeter calculator is a useful next step when the problem goes beyond a clean four-sided rectangle.

Length and width of rectangle given perimeter calculator showing recovered side lengths and diagonal verification
Length and width of rectangle given perimeter calculator showing recovered side lengths and diagonal verification

Frequently Asked Questions

Q: Can you find the length and width of a rectangle from perimeter alone?

A: No. Perimeter alone does not pick out one rectangle because every rectangle with the same boundary length has a different area. The calculator needs a second value such as area, diagonal, a known side, or a ratio before the two sides become unique.

Q: How do you find the length and width of a rectangle with perimeter and area?

A: Set s equal to half the perimeter, then the two side lengths are the two roots of t squared minus s times t plus area equals zero. The larger root becomes the length and the smaller root becomes the width.

Q: What is the formula to find length and width from perimeter?

A: The starting relation is P equals 2 times length plus 2 times width. With half-perimeter s equal to P over 2, the area mode collapses to a quadratic in t, and the diagonal mode collapses to a related quadratic the calculator solves the same way.

Q: How does the perimeter and diagonal mode solve rectangle dimensions?

A: The diagonal mode uses the Pythagorean identity length squared plus width squared equals diagonal squared. Together with length plus width equal to half the perimeter, that pair of equations is another quadratic the calculator solves.

Q: Why does my area and perimeter pair return no real rectangle?

A: The discriminant s squared minus four times area is negative when the area is too large for the entered perimeter, which means no real side lengths can satisfy both values. The calculator reports this case rather than producing a meaningless number.

Q: What units should I use for perimeter and side length?

A: Use the same linear unit for the perimeter and any other length value, and use the matching square unit for the area. Mixing units is the most common reason a feasible-looking pair fails the discriminant.