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...
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.
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.
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.
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.
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.
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.
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.
No. Perimeter alone defines infinitely many rectangles. You need a second constraint such as area, diagonal, or the L/W ratio.
The calculator will show no results if the quadratic has a negative discriminant, meaning no real rectangle exists with those values. Use this as a practical reminder before finalizing the result.
Use the mode that matches the information you have. P + Area is the most common school problem; P + Diagonal arises in construction; P + Ratio is typical in design.
The Shape output will say "Square" if both computed sides are equal (L/W ratio = 1). Keep this note short and outcome-focused for reuse.
It is the radius of the circle that passes through all four corners of the rectangle, equal to half the diagonal. Apply this check where your workflow is most sensitive.
Yes. The calculator uses standard floating-point math and works correctly for perimeters from fractions of a unit to thousands of units.