AI Tools Free

Rectangle Diagonal Calculator

Enter 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.

Free to useNo sign-upRuns in your browser
Enter your details

Enter the inputs, then select Calculate.

Your result
Enter your details

Result will appear here

How to Calculate the Diagonal of a Rectangle (Formula & Proof)

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.

Rectangle Diagonal Calculator formula diagram showing d = √(width² + height²) = 5 for a 3 by 4 rectangle
Pythagorean right-triangle diagram for the Rectangle Diagonal Calculator showing how Width = 3 and Height = 4 form a hypotenuse of d = √(3² + 4²) = 5.

Rectangle Diagonal Reference Table (Pythagorean Triples & Layouts)

Use these 10 reference dimensions to check exact integer Pythagorean triples, standard carpentry deck layouts, paper sizes, and shipping pallets.

Scenario / LayoutWidth (w)Height (h)Sum of Squares (w² + h²)Diagonal (d = √(w² + h²))Diagonal-to-Width Ratio (d / w)
Preloaded 3-4-5 Right Triangle349 + 16 = 2551.6667
Classic 5-12-13 Right Triangle51225 + 144 = 169132.6000
Classic 8-15-17 Right Triangle81564 + 225 = 289172.1250
Carpentry Deck Frame (12 × 16 ft)12 ft16 ft144 + 256 = 40020 ft1.6667
Garage Slab Foundation (20 × 24 ft)20 ft24 ft400 + 576 = 97631.2409987036 ft1.5620
Unit Square (10 × 10)1010100 + 100 = 20014.14213562371.4142 (√2)
Plywood / Drywall Sheet (4 × 8 ft)4 ft8 ft16 + 64 = 808.94427191 ft2.2361 (√5)
US Letter Paper (8.5 × 11 in)8.5 in11 in72.25 + 121 = 193.2513.9014387745 in1.6355
ISO A4 Paper (210 × 297 mm)210 mm297 mm44,100 + 88,209 = 132,309363.743041171 mm1.7321
North American GMA Pallet (40 × 48 in)40 in48 in1,600 + 2,304 = 3,90462.4819974073 in1.5620

How to Use the Diagonal of a Rectangle Calculator

Follow these three steps to calculate a diagonal of a rectangle in any measurement unit and save the result.

Enter the Rectangle Width

Type the horizontal side length (1e-9 to 1,000,000,000) into Width (3 is preloaded for instant testing).

Input and settings
Rectangle Diagonal Calculator input fields populated with Width = 3 and Height = 4
Step 1 workspace capture showing Width = 3 and Height = 4 in the input fields.

Enter Height in the Same Unit

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).

Tool result
Rectangle Diagonal Calculator output panel displaying diagonal 5
Step 2 workspace capture showing the computed diagonal 5 in the result panel.

Calculate and Export the Diagonal

Click Calculate result to evaluate √(width² + height²), then click Copy result or Download (result.txt) to save the value.

Review the details
Rectangle Diagonal Calculator complete workspace with result 5 and export buttons
Step 3 full workspace view showing the diagonal 5 with Copy result and Download actions.

Worked Rectangle Diagonal Examples: 3-4-5 Triangle, Deck Squaring & Paper Sheets

Test these three practical scenarios in the workspace to verify integer Pythagorean triples, foundation squaring, and decimal sheet measurements.

Preloaded 3-4-5 baseline (Width = 3, Height = 4 → 5)

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.

Rectangle Diagonal Calculator 3 by 4 example returning 5
Worked Example 1: Classic 3-4-5 Pythagorean rectangle (Width = 3, Height = 4) returning diagonal 5.

Squaring a 12 ft 6 in by 16 ft deck frame (12.5 × 16 → 20.3039405042 ft)

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).

Rectangle Diagonal Calculator deck layout example returning 20.3039405042
Worked Example 2: Deck frame squaring check (Width = 12.5 ft, Height = 16 ft) returning 20.3039405042 ft.

US Letter paper & envelope clearance (8.5 × 11 in → 13.9014387745 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.

Rectangle Diagonal Calculator US Letter paper example returning 13.9014387745
Worked Example 3: US Letter sheet (Width = 8.5 in, Height = 11 in) returning 13.9014387745 in.

How to Interpret Diagonal Length, Circumradius & Corner Squareness

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.

Rectangle Diagonal Calculator output interpretation showing congruent diagonals and circumradius
Geometric interpretation guide showing congruent diagonals d1 = d2 intersecting at the centroid with circumradius R = d / 2.

Rectangle Diagonal Unit Rules, Input Bounds & Related Geometry Calculators

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.

Rectangle Diagonal Calculator scope and unit validation summary card
Validation rules and unit-consistency summary for the Rectangle Diagonal Calculator covering [1e-9, 10^9] bounds and decimal-feet conversions.

Frequently Asked Questions About Rectangle Diagonal Calculator

Answers about using Rectangle Diagonal Calculator and understanding its results.

How do you calculate diagonal of a rectangle?

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.

How do I enter feet and inches into this rectangle diagonal calculator?

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.

How do carpenters use the diagonal to square a rectangular frame?

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.

Are both diagonals of a rectangle always equal?

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.

How do I find a rectangle's width or height if I already know the diagonal?

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.

Calculate with your input

Choose another tool for your next calculation, conversion, or text task.

Calculate