Length Of A Rectangle Calculator

Created by Rijk de Wet
Reviewed by Aleksandra Zając, MD
Last updated: Dec 09, 2022


Welcome to the length of a rectangle calculator, where we'll explain the formula(s) for the length of a rectangle and how to find the length of a rectangle.

How to use the length of a rectangle calculator?

Using the length of a rectangle calculator is easy — there's only two steps!

  • Enter the dimensions that you know of the rectangle.
  • Find your rectangle length in the bottom box.
  • The length of a rectangle calculator works both ways — try changing the rectangle's length and see how its other dimensions are affected.
  • Not enough to just know how to use the length of a rectangle calculator? Read on to learn how to calculate the length of a rectangle.

How do I calculate the length of a rectangle?

Depending on what information you have available, there are many ways to calculate the length of a rectangle.

  • If you have the area A and width w, its length w is determined as h = A/w.
  • If you have the perimeter P and width w, its length can be found with h = P/2−w.
  • If you have the diagonal d and width w, it's length is h = √(d²−w²).
  • If the rectangle's width is not known, you'd need to simultaneously solve the system of equations above to get the length h.

That's a lot of different formulas for the length of a rectangle! These are all derived from the many formulas that govern a rectangle's dimensions. Those formulas are:

A=w×hP=2(w+h)d=w2+h2\begin{split} A &= w \times \textcolor{red}h \\ P &= 2(w+\textcolor{red}h) \\ d &= \sqrt{w^2 + \textcolor{red}h^2} \end{split}

where:

  • ww is the rectangle's width;
  • hh is the rectangle's length;
  • AA is the rectangle's area;
  • PP is the rectangle's perimeter; and
  • dd is the length of the rectangle's diagonal, as described by the Pythagorean theorem.

Here's a neat visual:

A rectangle with its length, width, diagonal, perimeter, and area labelled.
A rectangle with its length hh, width ww, diagonal dd, perimeter PP, and area AA labelled.

FAQ

What is the length of a rectangle?

A rectangle has four sides. Its sides are paired, so really there are only two unique dimensions. Conventionally, the rectangle's length is the longest of these two measurements, but when the rectangle is shown to be standing on the floor, the vertical side is usually called the length.

What is the length of a rectangle with diagonal 5 m and width 3 m?

4 m. Because the connected sides of a rectangle are perpendicular, we can use the Pythagoras theorem to work this one out.

  1. Rearrange the Pythagoras theorem to make the rectangle's length h the subject: h = √(d²−w²).
  2. Plug in your values: h = √(5²−3²) = √(25-9) = √16 = 4.
Rijk de Wet
Image of a rectangle with sides a and b, diagonal d, perimeter and area marked.
Width (w)
m
Diagonal (d)
m
Perimeter (P)
m
Area (A)
ft²
Rectangle length
Length (h)
m
Check out 23 similar 2d geometry calculators 📏
AreaArea of a rectangleArea of crescent… 20 more
People also viewed…

Area of a regular polygon

Use this area of a regular polygon calculator and find the answer to the questions: How to find the area of a polygon? What are the area of a regular polygon formulas?

Coffee kick

A long night of studying? Or maybe you're on a deadline? The coffee kick calculator will tell you when and how much caffeine you need to stay alert after not sleeping enough 😀☕ Check out the graph below!

Humans vs vampires

Vampire apocalypse calculator shows what would happen if vampires were among us using the predator - prey model.

Matrix determinant

The matrix determinant calculator is your fast and easy way to get the determinant of any square matrix of size 2×2, 3×3, or 4×4.
Copyright by Omni Calculator sp. z o.o.
Privacy policy & cookies
main background