Updated on April 23rd, 2026

Area of a Rectangle Calculator

Created By Jehan Wadia

Calculation Mode
The calculator will solve for all remaining properties based on your two known values.
Input Values
Rectangle Diagram
a = 8 m b = 5 m d = 9.434 m A = 40 m² P = 26 m
Results
Length (a)
8 m
Width (b)
5 m
Area (A)
40 m²
Perimeter (P)
26 m
Diagonal (d)
9.434 m
Detailed Results in Multiple Units
Formulas Used
For Length (a) & Width (b):
Area: A = a × b
Perimeter: P = 2(a + b)
Diagonal: d = √(a² + b²)

Introduction

The area of a rectangle is the amount of space inside it. To find the area, you simply multiply the length by the width. The formula is Area = Length × Width. For example, if a rectangle is 5 meters long and 3 meters wide, its area is 15 square meters. This calculator does the math for you — just enter the length and width, and it will give you the area right away. It works with any unit of measurement, whether you're using inches, feet, centimeters, or meters. This is one of the most basic and useful formulas in geometry, and you'll use it often in school, building projects, and everyday life.

How to Use Our Area of a Rectangle Calculator

Enter the length and width of your rectangle, and this calculator will give you the area right away.

Length: Type in the length of your rectangle. This is how long one side is. You can use any unit, like inches, feet, or meters.

Width: Type in the width of your rectangle. This is how long the other side is. Make sure you use the same unit as the length.

Once you enter both numbers, the calculator multiplies the length times the width to find the area of the rectangle. The answer is given in square units. For example, if you enter the length and width in feet, your area will be in square feet. If you need to convert between square feet and other area measurements, our Square Footage Calculator can help.

Area of a Rectangle

A rectangle is a four-sided shape where every corner forms a 90-degree angle. The two longer sides are usually called the length, and the two shorter sides are called the width. All rectangles have opposite sides that are equal in length and parallel to each other.

The area of a rectangle is the amount of space inside its borders. You find it by multiplying the length by the width. The formula is simple:

Area = length × width

For example, if a rectangle has a length of 8 meters and a width of 5 meters, its area is 8 × 5 = 40 square meters. The answer is always in square units because you are measuring a flat, two-dimensional space.

Other Rectangle Properties You Can Calculate

Besides area, there are two other important measurements for any rectangle:

  • Perimeter – The total distance around the outside of the rectangle. The formula is P = 2(length + width). For our example, that would be 2(8 + 5) = 26 meters.
  • Diagonal – The straight line that cuts from one corner to the opposite corner. You find it using the Pythagorean theorem: d = √(length² + width²). In our example, d = √(64 + 25) = √89 ≈ 9.434 meters. If you need to work with right triangles formed by the diagonal, our Right Triangle Calculator is a great companion tool.

Working Backwards from What You Know

You do not always start with the length and width. Sometimes you might know the area and one side, or the perimeter and the diagonal. As long as you have any two of the five rectangle properties — length, width, area, perimeter, or diagonal — you can solve for the other three. The calculator above supports all ten possible combinations of two known values, so you can work with whatever measurements you have. Some of these combinations involve solving a quadratic equation, which the calculator handles automatically.

Where This Is Useful

Calculating rectangle area comes up all the time in everyday life. You need it when figuring out how much paint covers a wall, how much carpet fills a room, how many tiles fit on a floor, or how large a garden bed is. Builders, architects, and engineers use these formulas daily, but they are just as handy for school projects and home improvement tasks. For related shapes, you might also find our Triangle Area Calculator or Circle Area Calculator useful.

Key Things to Remember

  • Always make sure both measurements use the same unit before multiplying. If the length is in feet and the width is in inches, convert one so they match.
  • Area is measured in square units (m², ft², cm², etc.), while perimeter and diagonal are measured in regular linear units (m, ft, cm, etc.).
  • A square is a special type of rectangle where the length and width are the same. All rectangle formulas still work for squares.
  • If you are working with three-dimensional rectangular shapes, you may want to look at volume calculators such as our Cylinder Volume Calculator or Sphere Volume Calculator for other common solids.
  • For finding the distance between two points or the midpoint of a line segment, we have dedicated tools that pair well with rectangle geometry problems.

Frequently Asked Questions

What is the formula for the area of a rectangle?

The formula is Area = length × width. You multiply the long side by the short side. The answer is always in square units, like square meters (m²) or square feet (ft²).

What units can I use in this calculator?

You can use many units including nanometers, millimeters, centimeters, meters, kilometers, inches, feet, yards, miles, and nautical miles. The calculator also supports area units like mm², cm², m², km², hectares, in², ft², yd², acres, and mi². You can mix different units for each input, and the calculator will convert them for you.

Can I find the length if I only know the area and width?

Yes. Change the calculation mode to Area & Width (b). Enter the area and the width, and the calculator will divide the area by the width to find the length. The formula is length = area ÷ width.

How does the calculator find the diagonal of a rectangle?

It uses the Pythagorean theorem. The diagonal formula is d = √(length² + width²). The diagonal is the straight line from one corner to the opposite corner, and it forms a right triangle with the two sides.

What does the Perimeter & Diagonal mode do?

If you know the perimeter and diagonal but not the sides, this mode finds the length, width, and area. It uses algebra to set up and solve a quadratic equation behind the scenes. You just enter the two values and the calculator does the rest.

Why do I get an error that says no valid rectangle exists?

Some combinations of numbers are impossible. For example, the diagonal must always be longer than either side. Or the perimeter might be too small for a given area. When the math has no real solution, the calculator tells you no valid rectangle can be made with those numbers.

Can I use different units for length and width?

Yes. You can set the length in feet and the width in meters, for example. The calculator converts everything to the same base unit internally before doing the math, so your results will be correct.

What is the difference between area and perimeter?

Area is the space inside the rectangle, measured in square units. Perimeter is the total distance around the outside edge, measured in regular units. Two rectangles can have the same perimeter but very different areas.

How do I read the detailed results section?

The detailed results section shows every calculated value — length, width, area, perimeter, and diagonal — converted into multiple common units. This saves you from having to do extra conversions on your own.

Does this calculator work for squares?

Yes. A square is just a rectangle where the length and width are the same. Enter equal values for both sides, and all the formulas work perfectly.

What are all 10 calculation modes available?

The 10 modes are based on which two values you know:

  1. Length & Width
  2. Area & Length
  3. Area & Width
  4. Perimeter & Length
  5. Perimeter & Width
  6. Diagonal & Length
  7. Diagonal & Width
  8. Area & Perimeter
  9. Area & Diagonal
  10. Perimeter & Diagonal

Each mode solves for the three remaining properties.

Why is my area shown in square units instead of regular units?

Area measures a flat, two-dimensional space. When you multiply a length unit by itself (like meters × meters), you get square units (m²). This is normal and correct. Perimeter and diagonal use regular linear units because they measure distance, not space.

How accurate are the results?

The calculator uses up to 10 significant digits in its internal math and displays results with up to 8 significant figures. This is more than enough precision for school work, construction, and most professional uses.


Related Calculators

Midpoint Calculator

Visit Midpoint Calculator

Distance Calculator

Visit Distance Calculator

Right Triangle Calculator

Visit Right Triangle Calculator

Triangle Area Calculator

Visit Triangle Area Calculator

Circle Area Calculator

Visit Circle Area Calculator

Sphere Volume Calculator

Visit Sphere Volume Calculator

Cylinder Volume Calculator

Visit Cylinder Volume Calculator

Cone Volume Calculator

Visit Cone Volume Calculator

Hexagon Calculator

Visit Hexagon Calculator

Arc Length Calculator

Visit Arc Length Calculator

Law of Cosines Calculator

Visit Law of Cosines Calculator

Law of Sines Calculator

Visit Law of Sines Calculator

Trapezoid Area Calculator

Visit Trapezoid Area Calculator

Area of a Parallelogram Calculator

Visit Area of a Parallelogram Calculator

Octagon Calculator

Visit Octagon Calculator

Surface Area Calculator

Visit Surface Area Calculator

Perimeter Calculator

Visit Perimeter Calculator