This rectangle area calculator works from any two of five measurements: length, width, diagonal, perimeter or area. Type two of them and the other three appear, along with the area in square feet, square yards, square inches, square metres and square centimetres. A second tab finds the area of a triangle from its base and height, from three sides, or from two sides and the angle between them.
The starting example is a room 12 ft long and 9 ft wide, which has an area of 108 ft².
How is the area of a rectangle calculated?
Area is length times width. The perimeter adds all four sides and the diagonal comes from the Pythagorean theorem, which are the standard definitions.
Area = Length × Width
Perimeter = 2 × (Length + Width)
Diagonal = √(Length² + Width²)
Worked example: a 12 ft by 9 ft room
Area = 12 × 9 = 108 ft²
Perimeter = 2 × (12 + 9) = 42 ft
Diagonal = √(144 + 81) = √225 = 15 ft
108 ft² ÷ 9 = 12 yd²
Both sides must use the same unit before you multiply. The unit menu applies to every length field at once, and the area is shown in that unit squared.
Starting from two other values
The tool does not need length and width. Any two of the five values fix a rectangle, with one limit: a length and width are interchangeable, so when you give the diagonal and perimeter, the diagonal and area, or the perimeter and area, the longer root is called the length.
- Length or width plus the diagonal: the other side is √(diagonal² − side²). With length 12 and diagonal 15, width is √81 = 9.
- Length or width plus the perimeter: the other side is half the perimeter minus the side you know.
- Length or width plus the area: the other side is the area divided by the side.
- Perimeter and area: the sides are the roots of a quadratic. With half-perimeter 21 and area 108, 21² − 4 × 108 = 9, so the sides are (21 + 3) ÷ 2 = 12 and (21 − 3) ÷ 2 = 9.
- Diagonal and perimeter, or diagonal and area: the same quadratic idea. A diagonal of 15 with an area of 108 gives (L − W)² = 225 − 216 = 9, so the sides are again 12 and 9.
Some pairs describe no rectangle, and the tool says so. The test for area and perimeter is that the perimeter squared must be at least 16 times the area. For 108 and 42 it holds, since 42² = 1,764 and 16 × 108 = 1,728.
How is the area of a triangle calculated?
The triangle tab offers three routes, using the standard triangle area formulas.
Base and height: Area = 0.5 × Base × Height
Three sides (Heron): Area = 0.25 × √((a+b+c)(−a+b+c)(a−b+c)(a+b−c))
Two sides and the angle between them: Area = 0.5 × a × b × sin(C)
Height means the perpendicular distance from the base to the opposite corner, not the length of a slanted side. For the sides-based routes the tool also reports the perimeter and the height on side a, and for the angle route it adds the third side. If the sides cannot close into a triangle, it shows an error instead of a number.
Worked example: three triangles
Base 8, height 5: Area = 0.5 × 8 × 5 = 20
Sides 3, 4, 5: s = 6, Area = √(6 × 3 × 2 × 1) = 6
Sides 9 and 5, angle 30°: Area = 0.5 × 9 × 5 × 0.5 = 11.25
The last case gives 11.25 in². Angles alone cannot fix a triangle’s area, which is why every route here needs at least one length.
Worked examples for different jobs
Worked examples
Flooring with a waste allowance
The 12 ft by 9 ft room has 108 ft². Enter 10 in the waste box and the tool shows 118.8 ft². At a price of 2.5 per ft², the cost shown is 118.8 × 2.5 = 297. The waste percentage and price are your inputs, since the right allowance depends on the material and the layout.
A room measured in feet and inches
A room of 12 ft 6 in by 9 ft 3 in is 12.5 ft by 9.25 ft. Enter those decimals in feet to get 115.625 ft². Convert inches to feet by dividing by 12 first, because the length fields take one unit at a time.
Finding a missing side
A rug is 12 ft long with an area of 108 ft². Enter length 12 and area 108 and the width fills in as 9 ft, with a perimeter of 42 ft and a diagonal of 15 ft.
What the tool leaves out
It treats the shape as a true rectangle with four right angles, so it does not handle slanted or L-shaped rooms. For those, split the plan into rectangles and triangles and add the results. It does not combine inches with feet in one box and it does not subtract openings such as doors. The waste and price boxes multiply the area only, so packaging sizes and coverage per unit are not included.
Frequently asked questions
How do I find the area of a rectangle?
Multiply length by width, in the same unit. A 12 ft by 9 ft room has 12 × 9 = 108 ft².
How do I find the area from the diagonal and one side?
Find the other side as √(diagonal² − side²), then multiply. A diagonal of 15 with a side of 12 gives a side of 9 and an area of 108.
Can I find the area from the perimeter alone?
No. Many rectangles share one perimeter. You need a second value, such as one side or the area, and the perimeter squared must be at least 16 times the area.
What is the area of a triangle with three known sides?
Use Heron’s formula. Sides 3, 4 and 5 give a semi-perimeter of 6 and an area of √(6 × 3 × 2 × 1) = 6.
How do I convert the area to square yards or square metres?
The tool shows both. For 108 ft², that is 12 yd² and about 10.03 m².
Does it add a waste allowance?
It can multiply the area by a percentage you enter and by a price per square unit. For 10% waste on 108 ft², the area becomes 118.8 ft².




