Dimensions of a Rectangle Calculator

Find rectangle dimensions from area and perimeter, area and one side, perimeter and one side, or diagonal and one side. Shows length, width, area, perimeter, diagonal, and aspect ratio.

cm²
cm
Length
6.00 cm
Longer side of the rectangle
Width
4.00 cm
Shorter side of the rectangle
Area
24.00 cm²
A = length × width
Perimeter
20.00 cm
P = 2(length + width)
Diagonal
7.21 cm
d = √(L² + W²)
Aspect Ratio
1.50 : 1
Length ÷ Width

Dimension Comparison

Length
6.00 cm
Width
4.00 cm
Diagonal
7.21 cm

Common Rectangle Sizes

NameLengthWidthRatioDiagonal
Letter118.51.29:113.90
A429.7211.41:136.37
HD (16:9)1691.78:118.36
Square10101.00:114.14
Golden16.18101.62:119.02
Credit Card8.565.3981.59:110.12
Planning notes, formulas, and examples

About the Dimensions of a Rectangle Calculator

Rectangles are one of the most common shapes in everyday life — from screens and paper sizes to rooms and fields. But often you do not know both dimensions directly. Instead, you may know the area and perimeter of a room, the diagonal and one wall length, or a side and the total fencing needed. Our Dimensions of a Rectangle Calculator works backward from five different combinations of known values to find the missing length and width. Once both sides are determined, the page computes area, perimeter, diagonal (via the Pythagorean theorem), and the aspect ratio so you can compare proportions at a glance. The math behind the area-and-perimeter mode involves solving a quadratic equation — the semi-perimeter gives the sum of the sides while the area gives their product, producing a pair of values from the quadratic formula. The diagonal-and-side mode applies Pythagoras directly. A visual bar chart shows how length, width, and diagonal compare, and a reference table of well-known rectangle sizes (Letter, A4, HD 16:9, golden rectangle, credit card) puts your result in real-world context. Whether you are laying out a garden, sizing a display, or solving geometry homework, this calculator handles the algebra and lays out the resulting dimensions clearly.

When This Page Helps

This calculator is useful whenever the sides of a rectangle are not measured directly, but can be inferred from other known constraints. That happens in room planning, sign design, screen sizing, fencing problems, printing layouts, and homework problems where you are given area plus perimeter, one side plus the diagonal, or another mixed pair of values.

It is especially practical because it keeps both the reverse-solved dimensions and the follow-up properties attached to the same rectangle. Once length and width are found, you can immediately confirm the area, perimeter, diagonal, and aspect ratio, then compare the proportions against familiar reference rectangles such as Letter, A4, HD 16:9, or a square.

How to Use the Inputs

  1. Select which pair of values you know from the "Known Values" dropdown.
  2. Choose the measurement unit (cm, in, m, ft).
  3. Enter the two known values in the input fields.
  4. Read the six output cards: Length, Width, Area, Perimeter, Diagonal, Aspect Ratio.
  5. Compare dimensions visually in the bar chart below the outputs.
  6. Check the reference table to see how your rectangle compares to standard sizes.
Formula used
From Area + Perimeter: s = P/2; L, W = (s ± √(s² − 4A)) / 2. From Area + Side: other = A / side. From Perimeter + Side: other = P/2 − side. From Diagonal + Side: other = √(d² − side²). Diagonal: d = √(L² + W²). Aspect ratio = L / W.

Example Calculation

Result: Length = 6 cm, width = 4 cm, diagonal ≈ 7.21 cm

Given Area = 24 cm² and Perimeter = 20 cm: s = 10, disc = 100 − 96 = 4, L = (10+2)/2 = 6 cm, W = (10−2)/2 = 4 cm. Diagonal = √(36+16) = √52 ≈ 7.21 cm. Aspect ratio ≈ 1.50:1.

Tips & Best Practices

  • If the discriminant is negative for the area + perimeter method, no real rectangle exists with those values — check your inputs.
  • A perfect square has aspect ratio 1:1 and diagonal = side × √2.
  • The golden rectangle has aspect ratio ≈ 1.618:1, widely used in art and design.
  • For room layout, measure the diagonal to double-check — it is harder to measure inaccurately than walls.
  • Screen "size" is the diagonal; use diagonal + aspect ratio to find exact width and height.

Solving Rectangle Dimensions Backward

Many rectangle problems are inverse problems: the final dimensions are unknown, but enough related information is available to recover them. Area plus one side is the simplest case because the other side is just area divided by side. Diagonal plus one side uses the Pythagorean theorem. Area plus perimeter is the most algebra-heavy mode because the missing sides come from a quadratic relationship involving both the sum and the product of the sides.

Practical Uses Beyond Textbook Geometry

Reverse rectangle calculations appear in floor plans, banner and poster design, enclosure sizing, monitor dimensions, garden bed planning, and material cutting. If you know the perimeter of a fenced area and one side, you can recover the other side immediately. If you know a screen diagonal and one measured edge, you can estimate the missing dimension and compare the shape to familiar aspect ratios.

Interpreting Ratio And Validity

The aspect ratio helps you understand shape, not just size. A 1:1 ratio means a square, while larger ratios indicate a longer, narrower rectangle. Some input pairs are impossible, and the calculator guards against those cases. For example, area can be too large for a given perimeter, or a known side can be longer than the diagonal. Those failures are mathematically useful because they tell you the original measurements are inconsistent.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • No — infinitely many rectangles share the same area. You need a second constraint such as perimeter, one side, or the diagonal.