Geometry and Construction

Diagonal Calculator: Calculate Rectangle, Square & Screen Diagonals

Calculate the diagonal of any rectangle, square, box, or TV display screen with our free diagonal calculator. Fast Pythagorean theorem calculations online.

Diagonal5.000 units
Shape

Diagonal

Diagonal5.000 units
Interactive Shape & Dimension Diagram
Rectangle
90°θ: 36.9°Side A = 4Side B = 3Diagonal C = 5
Side A (L):4
Side B (W):3
Diagonal (d):5
Angle (θ):36.9° (90° corner)
  • Perimeter14.0000 units
  • Area12.0000 sq units
  • Formulad = √(l² + w²)
Disclaimer: Calculations and projections are for educational and illustrative purposes only and do not constitute certified financial, tax, or investment advice.

Diagonal Calculator Guide: Pythagorean Theorem, 3-4-5 Rule & Construction Squareness

Calculating diagonals accurately is an indispensable geometrical skill across architecture, carpentry, civil engineering, interior design, and package shipping. Whether you are laying out the foundation lines for a new residential building, verifying that a doorway or window frame is square, or ensuring that a large piece of furniture will fit inside a room, understanding diagonal relationships eliminates distortion and costly structural defects.

The Pythagorean Theorem: The Mathematical Foundation

For any two-dimensional rectangle or right-angled triangle, the diagonal represents the hypotenuse connecting two non-adjacent opposite vertices. It is calculated using the timeless Pythagorean theorem:

d = √(Length² + Width²)

Example: A standard room measuring 4 meters in length by 3 meters in width has a diagonal of:

d = √(4² + 3²) = √(16 + 9) = √25 = 5.00 meters

The 3-4-5 Rule in Indian Civil Construction and Masonry

On real-world building sites where laser levels and surveying total stations may not be immediately available, Indian civil masons and site supervisors rely on the practical 3-4-5 rule to establish perfect 90-degree right angles:

  • Measure 3 units (meters or feet) along your established baseline wall and make a pencil or chalk mark.
  • Measure 4 units along the perpendicular wall or string line and make a mark.
  • Measure the diagonal distance directly between the two marks. If the diagonal measures exactly 5 units, the corner is a perfect 90-degree right angle (square).
  • If the diagonal is less than 5 units, the angle is acute (< 90°); if it exceeds 5 units, the angle is obtuse (> 90°).
  • This principle scales identically to any Pythagorean triple: 6-8-10, 9-12-15, or 12-16-20.

Cross-Measuring Diagonals: The Squareness Test

In any four-sided quadrilateral with parallel opposite sides (a parallelogram), the shape is a true rectangle if and only if both opposite corner-to-corner diagonals are identical in length:

  • Tile Flooring: Before laying expensive vitrified or marble floor tiles, masons measure the two room diagonals (Corner A to Corner C, and Corner B to Corner D). If the diagonals differ by more than 5 mm to 10 mm, the room is out-of-square. Correcting reference guidelines prevents narrow, wedge-shaped tile cuts along the skirting boards.
  • Door and Window Frames: Measuring diagonals of pre-hung timber or aluminum door frames ensures they will not jam or bind against hinges during seasonal expansion.

Special Case: Diagonal of a Square

For a square where length equals width (side = s), the formula simplifies to:

d = s × √2 ≈ s × 1.41421356

A square tile measuring 60 cm by 60 cm has a diagonal of 60 × 1.4142 ≈ 84.85 cm.

Space Diagonal: Finding the Longest Item in a 3D Box or Room

When transporting pipes, ladders, curtain rods, or furniture inside a room, shipping container, or truck bed, the maximum linear clearance is dictated by the three-dimensional space diagonal (cuboid diagonal):

d = √(Length² + Width² + Height²)

Example: In a room measuring 5 meters long, 4 meters wide, and 3 meters high, the longest rod that can fit from a bottom corner to the opposite top corner is:

d = √(5² + 4² + 3²) = √(25 + 16 + 9) = √50 ≈ 7.07 meters

Screen Diagonals: Televisions, Laptops & Smartphones

When purchasing display electronics, the advertised screen size (e.g. 55-inch TV or 15.6-inch laptop) refers strictly to the active diagonal viewing area, excluding the bezel:

  • For modern widescreen displays with a 16:9 aspect ratio:
    Width ≈ Diagonal × 0.8716
    Height ≈ Diagonal × 0.4903
  • A 55-inch 16:9 television panel has an active display width of ~47.9 inches and a display height of ~27.0 inches.

Frequently Asked Questions

What formula calculates the diagonal of a rectangle?

The diagonal of a rectangle is calculated using the Pythagorean theorem: d = √(w² + h²), where d is the diagonal length, w is the width, and h is the height. The diagonal acts as the hypotenuse dividing the rectangle into two identical right-angled triangles.

How is the diagonal of a square calculated?

Because all four sides of a square are equal (w = h = a), the formula simplifies to: d = √(a² + a²) = √(2a²) = a√2 (approximately a * 1.41421). For example, a square with side length 10 cm has a diagonal of roughly 14.14 cm.

How does television and smartphone screen diagonal sizing work?

Televisions, monitors, and smartphones are advertised by their viewable diagonal measurement from corner to opposite corner. For a standard 16:9 widescreen display, a 55-inch TV has an actual screen width of roughly 47.9 inches and a height of 27.0 inches.

What is the 3D space diagonal formula for a rectangular box or room?

To find the longest straight line between opposite corners in a three-dimensional box or room, use the 3D space diagonal formula: d = √(length² + width² + height²). This is crucial for verifying whether large furniture or pipes can fit inside a room.