
Rectangle Area Calculator
Calculate the area of any rectangle or square from its width and height with our free rectangle area calculator. Includes room sizing table and examples.
Open toolEnter the Width and Height of any rectangle into this rectangle diagonal calculator to compute its exact corner-to-corner distance in your browser. Built as a fast diagonal of a rectangle calculator for geometry homework, carpentry framing, and sheet-goods layout, it evaluates √(width² + height²) to 12 significant digits and returns 5 for the preloaded 3 × 4 rectangle.
Enter the inputs, then select Calculate.
Result will appear here
The Rectangle Diagonal Calculator divides any rectangle along a straight line between opposite corners into two congruent right-angled triangles whose legs are the width w and height h and whose hypotenuse is the diagonal d. If you want to learn how to calculate the diagonal of a rectangle, apply the Pythagorean theorem (Math.hypot(width, height) in JavaScript) to solve for the hypotenuse. When Width and Height are equal (a square of side s), the formula simplifies to d = s·√2 ≈ 1.41421356237 × s.
d = √(width² + height²), evaluated via Math.hypot(width, height) (for a square w = h = s, d = s·√2)
Scope: Positive finite side lengths Width and Height in [1e-9, 1,000,000,000] measured in the same linear unit (in, ft, cm, m, or mm). Convert feet-and-inches to decimal feet (inches / 12) or total inches before entering. Output is formatted up to 12 significant digits.
Use these 10 reference dimensions to check exact integer Pythagorean triples, standard carpentry deck layouts, paper sizes, and shipping pallets.
| Scenario / Layout | Width (w) | Height (h) | Sum of Squares (w² + h²) | Diagonal (d = √(w² + h²)) | Diagonal-to-Width Ratio (d / w) |
|---|---|---|---|---|---|
| Preloaded 3-4-5 Right Triangle | 3 | 4 | 9 + 16 = 25 | 5 | 1.6667 |
| Classic 5-12-13 Right Triangle | 5 | 12 | 25 + 144 = 169 | 13 | 2.6000 |
| Classic 8-15-17 Right Triangle | 8 | 15 | 64 + 225 = 289 | 17 | 2.1250 |
| Carpentry Deck Frame (12 × 16 ft) | 12 ft | 16 ft | 144 + 256 = 400 | 20 ft | 1.6667 |
| Garage Slab Foundation (20 × 24 ft) | 20 ft | 24 ft | 400 + 576 = 976 | 31.2409987036 ft | 1.5620 |
| Unit Square (10 × 10) | 10 | 10 | 100 + 100 = 200 | 14.1421356237 | 1.4142 (√2) |
| Plywood / Drywall Sheet (4 × 8 ft) | 4 ft | 8 ft | 16 + 64 = 80 | 8.94427191 ft | 2.2361 (√5) |
| US Letter Paper (8.5 × 11 in) | 8.5 in | 11 in | 72.25 + 121 = 193.25 | 13.9014387745 in | 1.6355 |
| ISO A4 Paper (210 × 297 mm) | 210 mm | 297 mm | 44,100 + 88,209 = 132,309 | 363.743041171 mm | 1.7321 |
| North American GMA Pallet (40 × 48 in) | 40 in | 48 in | 1,600 + 2,304 = 3,904 | 62.4819974073 in | 1.5620 |
Follow these three steps to calculate a diagonal of a rectangle in any measurement unit and save the result.
Type the horizontal side length (1e-9 to 1,000,000,000) into Width (3 is preloaded for instant testing).
Type the vertical side length into Height using the exact same unit as Width (convert feet and inches to decimal feet or total inches first).
Click Calculate result to evaluate √(width² + height²), then click Copy result or Download (result.txt) to save the value.
Test these three practical scenarios in the workspace to verify integer Pythagorean triples, foundation squaring, and decimal sheet measurements.
With Width = 3 and Height = 4, clicking Calculate result computes √(3² + 4²) = √(9 + 16) = √25 = 5. Carpenters use multiples of this 3-4-5 ratio (6-8-10, 9-12-15, 12-16-20) to pull square corners with a tape measure on job sites.

To check whether a 12 ft 6 in by 16 ft deck rim-joist frame is square, convert 6 in into 0.5 ft (6 / 12 = 0.5) and enter Width = 12.5 and Height = 16. The calculator outputs 20.3039405042 feet (or enter 150 and 192 inches directly to get 243.647286051 inches, which is 20 ft 3-5/8 in).

Entering Width = 8.5 and Height = 11 for a standard US Letter sheet computes √(72.25 + 121) = √193.25 = 13.9014387745 inches, giving the minimum circular scanner platen or rigid mailer diagonal needed to fit the unbent sheet.

The single number returned in the output panel represents the straight-line distance between opposite vertices in the same linear unit you entered for Width and Height.
Congruent diagonals (d1 = d2) and 90° corner verification: In Euclidean geometry, a parallelogram is a true rectangle if and only if its two diagonals have the exact same length. When framing a wall or pouring a concrete pad, adjust the corners until both corner-to-corner tape measurements equal the calculated diagonal d.
Circumcircle diameter and center intersection: The two diagonals cross at the exact geometric center (centroid) of the rectangle and bisect each other into four equal segments of length R = d / 2. Consequently, d is the diameter of the smallest circle that completely encloses the rectangle, and d / 2 is its circumradius.

Keep these unit conversion rules and companion geometry tools in mind before exporting your measurement.
Consistent linear units and positive bounds: Both Width and Height must be strictly positive numbers between 1e-9 and 1,000,000,000 expressed in the same unit (in, ft, cm, m, or mm). Never enter feet in Width and inches in Height without converting to a single unit first.
Related rectangle and right-triangle tools: Need the surface area w × h in square units? Open the Rectangle Area Calculator. For TVs and monitors specified by diagonal inches and aspect ratio, open the Screen Size Calculator. To solve for a missing side leg from a known hypotenuse and leg, switch to the Pythagorean Theorem Calculator, or compute 3D box volume in the Rectangular Prism Volume Calculator.


Calculate the area of any rectangle or square from its width and height with our free rectangle area calculator. Includes room sizing table and examples.
Open tool
Calculate the hypotenuse of any right triangle from its two perpendicular legs with our free Pythagorean theorem calculator. Includes triples table and steps.
Open tool
Use this screen size calculator and monitor size calculator to calculate screen size from diagonal and aspect ratio (16:9, 21:9, 16:10, 2.39:1) in inches or cm.
Open toolChoose another tool for your next calculation, conversion, or text task.

Use this rectangular prism volume calculator to compute box and tank volume V = l × w × h. Includes a 10-row table, fraction conversions, and worked examples.
Open tool
Use this rectangular prism surface area calculator to find total 6-face box area SA = 2(lw + lh + wh), lateral 4-wall area 2h(l + w), and missing edges.
Open tool
Find the diagonal of an axial rectangle through a right cylinder.
Open tool
Use this parallelogram area calculator to find 2D area A = b × h from base length and perpendicular height, plus trig, vector, and diagonal formulas.
Open toolAnswers about using Rectangle Diagonal Calculator and understanding its results.
If you are wondering how do you calculate diagonal of a rectangle with width w and height h, square both side lengths, add the squares together, and take the square root: d = √(w² + h²). For a rectangle measuring 6 m wide by 8 m high, d = √(36 + 64) = √100 = 10 m.
Convert the inches portion into decimal feet by dividing by 12 (1 in = 0.0833 ft, 3 in = 0.25 ft, 6 in = 0.5 ft, 9 in = 0.75 ft), or multiply the feet by 12 and add the inches so both Width and Height are entered in total inches.
After fastening two adjacent sides at their target width w and height h, measure both diagonals from corner to corner with a tape measure. Racking the frame until both diagonal measurements equal d = √(w² + h²) confirms that all four corners form true 90° right angles.
Yes. In any flat rectangle with four 90° corners, both diagonals are congruent (d1 = d2 = √(w² + h²)) and bisect each other at the center. If the two diagonals measure differently on a job site, the frame is skewed into a non-rectangular parallelogram.
Given the diagonal d and one side length w, subtract w² from d² and take the square root (h = √(d² - w²)) in the Pythagorean Theorem Calculator. Alternatively, if you know the rectangle's surface area A alongside d, solve the quadratic system w² + h² = d² and w·h = A.
Choose another tool for your next calculation, conversion, or text task.