How to Use This Calculator

Enter any two measurements from your rectangle—these might be length, area, perimeter, or diagonal. The calculator solves for the missing width automatically. You can also work backwards: change the width value to see how it affects the other dimensions in real time. This bidirectional approach makes it useful for exploring different rectangle designs without recalculating manually each time.

Formulas for Rectangle Width

The method for finding width depends entirely on which measurements you already know. Below are the three most common scenarios, derived from fundamental rectangle geometry.

w = A ÷ h

w = (P ÷ 2) − h

w = √(d² − h²)

  • w — Width of the rectangle
  • A — Area of the rectangle
  • h — Length (or height) of the rectangle
  • P — Perimeter of the rectangle
  • d — Diagonal of the rectangle

Understanding Rectangle Dimensions

A rectangle has four sides but only two unique dimensions because opposite sides are equal. By convention, width refers to the shorter dimension, though this depends on how the rectangle is oriented. When a rectangle lies horizontally, the horizontal side is often called the width, while the vertical side is the height or length. In practical applications—such as measuring a room or a screen—width typically means the left-to-right measurement.

The relationships between these dimensions are fixed by geometry. The diagonal always stretches from one corner to the opposite corner, the perimeter is the total distance around all four sides, and the area represents the total space enclosed.

Practical Considerations

Keep these points in mind when calculating or verifying rectangle dimensions.

  1. Check your units — Ensure all input measurements use the same unit system. If you mix metres with inches, your answer will be incorrect. Convert everything to a single unit before entering values.
  2. Watch for rounding errors — If you're working from measurements that have been rounded, small discrepancies can compound. A diagonal derived from rounded length and width values may not match a directly measured diagonal exactly.
  3. Verify the diagonal is the longest dimension — In any rectangle, the diagonal is always longer than either the length or width individually. If your calculated width is larger than the diagonal, double-check your input values for errors.
  4. Perimeter formula requires both dimensions — You cannot find width from perimeter alone. You must also know the length. The formula w = (P ÷ 2) − h relies on knowing h as well.

Worked Example

Suppose you have a rectangular garden with a length of 12 metres and an area of 96 square metres. To find the width:

Using the area formula: w = A ÷ h = 96 ÷ 12 = 8 metres.

Your garden is 8 metres wide. You can verify this by calculating the perimeter (2 × (12 + 8) = 40 metres) or the diagonal (√(12² + 8²) = √208 ≈ 14.4 metres) and checking these seem reasonable for your space.

Frequently Asked Questions

Can I find the width if I only know the perimeter?

No. Perimeter alone tells you the total distance around the rectangle, but infinitely many rectangles share the same perimeter with different width-to-length ratios. You must know either the length, area, or diagonal in addition to the perimeter. For example, a 4 × 6 rectangle and a 2 × 8 rectangle both have a perimeter of 20, but very different widths.

What's the relationship between diagonal, length, and width?

The diagonal, length, and width follow the Pythagorean theorem: diagonal² = length² + width². This means the diagonal is always the longest measurement in a rectangle. If you know the length and diagonal, you can rearrange to find width: w = √(d² − h²). This relationship holds for all rectangles regardless of size.

Why does the width formula from area divided by length work?

Area measures the total space inside a rectangle, calculated as length × width. If you rearrange this formula to isolate width, you get w = Area ÷ length. This is simple algebra: if 12 × width = 96, then width = 96 ÷ 12. It works because area and length have a direct multiplicative relationship.

Can width be larger than length?

Technically yes, though the terminology becomes ambiguous. By convention, width usually refers to the shorter dimension and length to the longer one. However, if your rectangle is oriented horizontally and measures 8 metres across and 6 metres tall, you might reasonably call 8 metres the width and 6 metres the height. The calculator handles any input order—what matters is that you correctly identify which measurements you're entering.

How accurate is this calculator?

The calculator is mathematically exact, assuming your input values are precise. Real-world measurements often have small errors. For instance, a tape measure might be accurate to ±5 mm, so calculated values inherit that uncertainty. For practical purposes like construction or manufacturing, always round appropriately and account for measurement tolerances.

More math calculators (see all)