Width of a Rectangle Calculator

Find the width of a rectangle from area & length, perimeter & length, diagonal & length, or area & perimeter. Shows all rectangle properties including area, perimeter, diagonal, and aspect ratio wi...

cm²
cm
Width (W)
5.0000 cm
The calculated width of the rectangle
Length (L)
10.0000 cm
The given or derived length
Area
50.0000 cm²
A = L × W
Perimeter
30.0000 cm
P = 2(L + W)
Diagonal
11.1803 cm
d = √(L² + W²)
Aspect Ratio (L:W)
2.0000 : 1
Length ÷ Width

Dimension Comparison

Length10.0000 cm (66.7% of L+W)
Width5.0000 cm (33.3% of L+W)

Area & Perimeter Contribution

Length × Width → Area50.0000
2 × Length → Perimeter part20.0000
2 × Width → Perimeter part10.0000

All Rectangle Properties

PropertyValueFormula
Width5.0000 cmDepends on method
Length10.0000 cmGiven / derived
Area50.0000 cm²L × W
Perimeter30.0000 cm2(L + W)
Diagonal11.1803 cm√(L² + W²)
Aspect Ratio2.0000 : 1L ÷ W
Semi-Perimeter15.0000 cm(L + W)
ShapeRectangleL = W → Square

Width Formulas Reference

GivenWidth Formula
Area & LengthW = A ÷ L
Perimeter & LengthW = (P ÷ 2) − L
Diagonal & LengthW = √(D² − L²)
Area & PerimeterSolve L + W = P/2 and L × W = A (quadratic)
Planning notes, formulas, and examples

About the Width of a Rectangle Calculator

Knowing the width of a rectangle is fundamental to countless real-world tasks — from framing a wall and sizing a garden bed to solving geometry problems and designing user interfaces. But what if you don't have the width directly? This calculator solves that problem by deriving the rectangle's width from any combination of known properties.

Choose from four solution methods: calculate width from area and length, from perimeter and length, from diagonal and length, or even from area and perimeter alone (no individual side length needed). Each method uses a different mathematical relationship, and the page applies the matching formula for the data you provide.

Once the width is computed, the calculator displays the complete set of rectangle properties — area, perimeter, diagonal, aspect ratio, and whether the shape is actually a square. Visual comparison bars show the relative proportions of length versus width and how each dimension contributes to the perimeter. A detailed properties table and a formulas reference table let you verify the math or learn the underlying equations.

Preset examples cover all four methods so you can compare the solution paths directly. Whether you're a student checking homework, a builder calculating material dimensions, or a designer verifying layout proportions, the output keeps the solved width together with the supporting rectangle geometry.

When This Page Helps

Rectangle width is often the unknown dimension in layout, flooring, framing, land measurement, and geometry homework. The difficulty is that the correct formula depends on which pair of properties you already know. This calculator chooses the right relationship automatically and then expands the answer into the full set of rectangle properties so you can validate the result instead of solving width in isolation.

How to Use the Inputs

  1. Select a solution method based on what information you have (area & length, perimeter & length, diagonal & length, or area & perimeter).
  2. Enter the first known value (area, perimeter, or diagonal depending on method).
  3. Enter the second known value (length or perimeter depending on method).
  4. Choose a unit if you want units displayed with the results.
  5. Adjust decimal places for your required precision.
  6. Use the preset buttons to quickly load common examples for each method.
  7. Review all rectangle properties, visual bars, and reference tables below the results.
Formula used
From Area & Length: W = A ÷ L | From Perimeter & Length: W = (P ÷ 2) − L | From Diagonal & Length: W = √(D² − L²) | From Area & Perimeter: solve quadratic where L + W = P/2 and L × W = A

Example Calculation

Result: Width = 5 cm, perimeter = 30 cm, diagonal ≈ 11.1803 cm

Given a rectangle with area = 50 cm² and length = 10 cm: Width = 50 ÷ 10 = 5 cm. Then: Perimeter = 2(10 + 5) = 30 cm. Diagonal = √(10² + 5²) = √125 ≈ 11.1803 cm. Aspect ratio = 10 ÷ 5 = 2:1.

Tips & Best Practices

  • If the perimeter method gives a negative width, the perimeter value is too small for the given length — check your inputs.
  • The diagonal method requires the diagonal to be longer than the length (D > L); otherwise √(D² − L²) is undefined.
  • The area & perimeter method solves a quadratic equation and may have no real solution if the inputs are geometrically impossible.
  • An aspect ratio of 1:1 means the rectangle is actually a square — both sides are equal.
  • For the area & perimeter method, the calculator assigns the larger dimension as length and the smaller as width.

Picking the Right Width Formula

Rectangle width can be solved from several different pairs of measurements, but each pair leads to a different equation. Area and length give a direct division, perimeter and length give a subtraction from the semi-perimeter, and diagonal and length require the Pythagorean theorem. If only area and perimeter are known, width comes from solving a quadratic relationship between the two side lengths.

Checking Whether Inputs Are Geometrically Valid

Not every pair of numbers can describe a real rectangle. A diagonal must be longer than either side, and a perimeter must be large enough to accommodate the stated length. In the area-and-perimeter case, the discriminant decides whether a real rectangle exists at all. Those checks matter because they tell you whether the issue is arithmetic or an impossible set of measurements.

Using Width With Other Rectangle Properties

Once width is found, it becomes easy to compute the rest of the shape: area, perimeter, diagonal, and aspect ratio. That broader view is useful in practice because a design or construction problem rarely ends at one missing dimension. Comparing width against length also helps you catch unreasonable proportions, especially when a near-square result or a very long, narrow rectangle would change how the object is used.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Divide the area by the length: Width = Area ÷ Length. For example, if the area is 60 cm² and the length is 12 cm, the width is 60 ÷ 12 = 5 cm.