Length and Width of Rectangle Given Perimeter Calculator

Find the length and width of a rectangle when you know the perimeter and one additional property: area, diagonal, or length-to-width ratio. Shows all rectangle properties, dimension bars, and a ref...

Length & Width of Rectangle from Perimeter

Find the length and width of a rectangle when you know its perimeter plus one other property: area, diagonal, or L/W ratio.

Length
6.0000 cm
The longer side of the rectangle
Width
4.0000 cm
The shorter side of the rectangle
Area
24.0000 cm²
Length × Width
Diagonal
7.2111 cm
√(L² + W²)
Perimeter
20.0000 cm
2(L + W)
L / W Ratio
1.5000
Ratio of length to width
Circumradius
3.6056 cm
Radius of the circumscribed circle = diagonal / 2
Shape
Rectangle
Aspect ratio 1.50:1

Perimeter Contribution

2 × Length (12.0 cm)60.0%
2 × Width (8.0 cm)40.0%

Dimension Comparison

Length: 6.00 cm
Width: 4.00 cm
Diagonal: 7.21 cm

Reference Table

PerimeterLengthWidthAreaDiagonal
2064247.21
2484328.94
301055011.18
401289614.42
60201020022.36
100302060036.06
Planning notes, formulas, and examples

About the Length and Width of Rectangle Given Perimeter Calculator

Knowing only the perimeter of a rectangle is not enough to determine its dimensions — infinitely many rectangles share the same perimeter but have different lengths and widths. You need one additional piece of information. This calculator supports three common scenarios: perimeter plus area, perimeter plus diagonal, or perimeter plus the ratio of length to width.

In the perimeter-and-area mode, the calculator sets up the system l + w = P/2 and l × w = A, which reduces to a quadratic equation. The two roots give you the length and width. In the perimeter-and-diagonal mode, combined with the Pythagorean relationship l² + w² = d², the calculator derives the product lw and again solves the quadratic. In the ratio mode, l = r × w, so w = (P/2) / (r + 1) and l follows directly.

The results go well beyond just length and width. You get area, diagonal, perimeter confirmation, L/W ratio, circumradius (radius of the circumscribed circle), and a determination of whether the resulting shape is a perfect square. Visual bars show how much each pair of sides contributes to the perimeter, and a dimension comparison bar lets you compare length, width, and diagonal at a glance.

A reference table provides common rectangle examples, and eight presets let you quickly explore typical combinations of perimeter with area, diagonal, or ratio. Whether you are solving a geometry problem, designing a room layout, framing a photograph, or planning a garden bed, this calculator gives you complete rectangle information from minimal inputs.

When This Page Helps

Length and Width of Rectangle Given Perimeter problems often require several dependent steps, and a small arithmetic slip can propagate through every derived value. This calculator is tailored to that workflow: you enter perimeter (value), decimal places, solve mode, and it returns length, width, area, diagonal in one consistent pass. It is useful for homework checks, worksheet generation, tutoring walkthroughs, and fast field/design estimates where you need reliable geometry results without rebuilding the full derivation each time.

How to Use the Inputs

  1. Select the solve mode: Perimeter + Area, Perimeter + Diagonal, or Perimeter + Ratio.
  2. Enter the perimeter of the rectangle.
  3. Enter the second known value (area, diagonal length, or L/W ratio).
  4. Select the measurement unit if relevant.
  5. View the computed length, width, and all derived properties.
  6. Check the perimeter contribution and dimension comparison bars.
  7. Use preset buttons to explore common rectangle configurations.
Formula used
For P + A: solve t² − (P/2)t + A = 0. For P + d: lw = ((P/2)² − d²)/2, then solve the quadratic. For P + ratio r: w = (P/2)/(r+1), l = r × w.

Example Calculation

Result: 10

Given perimeter 20 and area 24: P/2 = 10, quadratic t² − 10t + 24 = 0, roots 6 and 4. So length = 6, width = 4. Diagonal = √(36 + 16) = √52 ≈ 7.21.

Tips & Best Practices

  • If the discriminant is negative, the combination of perimeter and area/diagonal is geometrically impossible.
  • For a given perimeter, a square maximizes the area — check the L/W ratio output.
  • The ratio mode is useful in design when you want specific proportions (e.g., golden ratio ≈ 1.618).
  • The circumradius equals half the diagonal and is the radius of the circle passing through all four corners.
  • Double-check by verifying that 2(L + W) equals your input perimeter.

Solving for Rectangle Dimensions from Perimeter

When you know a rectangle's perimeter P and one additional constraint — its area A, diagonal d, or side ratio — finding the individual dimensions requires solving a system of two equations. If the constraint is area, the two equations are L + W = P/2 and L × W = A. Substituting W = P/2 − L into the area equation gives the quadratic **t² − (P/2)t + A = 0**, whose roots are the length and width. The discriminant (P/2)² − 4A must be non-negative for a real solution to exist; geometrically this means the area cannot exceed (P/4)², the maximum area achieved by a square.

When the constraint is the diagonal d, use L + W = P/2 and L² + W² = d² (from the Pythagorean theorem). Since (L + W)² = L² + 2LW + W², we get LW = [(P/2)² − d²] / 2, which again leads to the same quadratic form. The side-ratio mode bypasses the quadratic entirely: given ratio r = L/W and L + W = P/2, we solve directly for W = (P/2) / (1 + r) and L = r·W.

Why the Quadratic Has Two Roots

The quadratic always yields two roots that are swapped versions of each other — one root is the length, the other is the width. This is expected: a 6 × 4 rectangle and a 4 × 6 rectangle describe the same shape. The calculator presents the larger root as "length" and the smaller as "width" by convention. When the discriminant equals zero, both roots are identical and the rectangle is a square.

Real-World Applications

This calculation arises constantly in **landscaping and gardening** (fencing a fixed perimeter around a target area), **interior design** (fitting a room with given perimeter and floor area), and **packaging engineering** (optimizing flat-sheet dimensions for containers). Architects use the perimeter-area relationship to compare floor-plan efficiency: the closer a layout is to a square, the more area it encloses for a given wall length. The diagonal constraint is especially useful in **carpentry** — measuring a diagonal is a reliable way to verify that a rectangular frame is "square" before nailing it together.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • No. Perimeter alone defines infinitely many rectangles. You need a second constraint such as area, diagonal, or the L/W ratio.