Skip to content
FiftyCalc Free calculators for all 50 states

Length of a Rectangle Calculator

Test cases replayed : 3 of 3 match · Methodology · No outside source listed

Enter the width and one more measurement to get the missing length.

Result

Sample figures

Length (length units)—

Area (square units) —

  • Perimeter (length units)—
  • Diagonal (length units)—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Length of a Rectangle Calculator

Besides the width, I know

Besides the width, I know: choose The area, The perimeter or The diagonal. Prefilled example: The area.

Width (length units): enter 0 or more. Prefilled example: 6.

Area (square units; first choice): enter 0 or more. Prefilled example: 48.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Besides the width, I know: choose The area, The perimeter or The diagonal.
  2. Width (length units): enter 0 or more.
  3. Area (square units; first choice): enter 0 or more.
  4. Perimeter (length units; second choice): enter 0 or more.
  5. Diagonal (length units; third choice): enter 0 or more.
  6. Read the result: Length (length units); the panel also shows Area (square units), Perimeter (length units) and Diagonal (length units).

How this calculator works

From the area A = L × W, the length is L = A ÷ W. From the perimeter P = 2(L + W), L = P ÷ 2 − W. From the diagonal d, the Pythagorean theorem gives L = √(d² − W²).

The formula

  1. Len={Awif m=1P2−wif m=2d2−w2otherwise
Symbols used in the formula
SymbolMeaningUnit
mBesides the width, I know (1: The area; 2: The perimeter; 3: The diagonal)
wWidthlength units
AArea (first choice)square units
PPerimeter (second choice)length units
dDiagonal (third choice)length units
LenLengthlength units

Worked example

Besides the width, I knowThe area
Width (length units)6
Area (square units; first choice)48
Area (square units)48
Perimeter (length units)28
Diagonal (length units)10
  1. Len=486=8

Length (length units) 8

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

How do I find the length of a rectangle from its area?

Divide the area by the width. A 48 sq ft rectangle that is 6 ft wide is 8 ft long.

How do I find the length from the perimeter?

Halve the perimeter and subtract the width. A perimeter of 50 with a width of 10 gives a length of 15.

Questions answered

Related calculators