# Court Diagonal and Squaring Triangle Calculator

> The diagonals of a sports court: what the corner-to-corner tape should read, how far apart the two may be, and the scaled 3-4-5 triangle to set it out.

Page: https://craftquantities.com/calculators/measurements-conversions/rectangle-diagonal-squaring-calculator/ (calculator). This is the page's Markdown copy; the HTML page is the canonical version.

Version 1.0.0, sources checked 2026-08-30, 4 published test vectors.

Expected diagonal: 104 ft for Court Length 92 ft, Court Width 49 ft and Permitted Corner Offset 0.2 in, the page's opening figures; on the metric page, 28 m, 15 m and 5 mm give 31.8 m. Sources are cited below.

## Inputs

A length, area or volume is entered with its unit. The page opens on the values below: a metric reader sees the metric column, a US customary reader the other.

| Input | id | Opens at (metric) | Opens at (US customary) | Accepts |
|---|---|---|---|---|
| Court Length | `courtLength` | 28 m | 92 ft | mm, cm, m, in, ft, yd; range 1–120 m |
| Court Width | `courtWidth` | 15 m | 49 ft | mm, cm, m, in, ft, yd; range 1–80 m |
| Squaring Triangle | `squaringMultiple` | 12-16-20 — full-size courts | 12-16-20 — full-size courts | `1`, `2`, `3`, `4`, `5` |
| Permitted Corner Offset | `cornerOffset` | 5 mm | 0.2 in | mm, cm, m, in, ft, yd; range 0.001–0.05 m |

- **Court Length**: The long dimension of the rectangle being set out.
- **Court Width**: The short dimension of the same rectangle.
- **Squaring Triangle**: How far the 3-4-5 right-angle triangle is scaled up before it is struck.
- **Permitted Corner Offset**: How far one corner may sit off its true position along the long axis.

## The answer on the opening values

Worked exactly as the page works it, on the values each system opens on.

### Metric

| Result | Value |
|---|---|
| **Expected diagonal** | 31.8 m |
| Diagonal difference at the permitted offset | 8.81 mm |
| Short leg of the squaring triangle | 12 m |
| Long leg of the squaring triangle | 16 m |
| Hypotenuse of the squaring triangle | 20 m |
| Perimeter of the rectangle | 86 m |

### US customary

| Result | Value |
|---|---|
| **Expected diagonal** | 104 ft |
| Diagonal difference at the permitted offset | 0.35 in |
| Short leg of the squaring triangle | 12 ft |
| Long leg of the squaring triangle | 16 ft |
| Hypotenuse of the squaring triangle | 20 ft |
| Perimeter of the rectangle | 282 ft |

## How it is worked out

Equal diagonals prove the figure is a rectangle, and only then do the side dimensions mean anything. Hold the two within the difference shown rather than within the rulebook's dimensional tolerance.

The working the page shows, in order: Diagonal difference at the permitted offset; Short leg of the squaring triangle; Long leg of the squaring triangle; Hypotenuse of the squaring triangle; Perimeter of the rectangle; then expected diagonal.

The method, derived in full:

- [Nominal Sizes, Land Measure and Setting Out](https://craftquantities.com/methodology/nominal-sizes-and-measurement-conventions/): Why a two-by-four is one and a half by three and a half, why a board foot is a volume the board does not contain, and why checking the diagonals finds an error that measuring the sides cannot.

What this calculation does not cover:

- A tape reading is a temperature reading as well. Use one tape at one tension for both diagonals, and note the surface temperature outdoors.
- This proves the rectangle. Arcs, keys and circles are struck from points established off it and carry their own checks.

## Sources

As the calculator cites them (sources checked 2026-08-30):

- The diagonal of a rectangle is the square root of length squared plus width squared. Where one end is displaced by an offset, the two diagonals become the roots of (length + offset)² + width² and (length − offset)² + width², and their difference is what a tape reads as out of square.
- ITF Rules of Tennis — court dimensions, which publish the corner-to-corner diagonal alongside the sides as a check dimension for exactly this reason
- FIBA Official Basketball Rules, court dimensions (28 m by 15 m for a full-size court); FIVB Official Volleyball Rules (18 m by 9 m); BWF Laws of Badminton (13.4 m by 6.1 m for doubles)
- The squaring triangle is a scaled 3-4-5, whose numbers are read in whatever unit the crew is working in — the ratio is what makes the angle, not the unit.

A code or standard has force only where a jurisdiction has adopted it, usually with local amendments; check what is in force with the authority where you build.

## Questions answered on the page

**Why do the diagonals matter more than the sides?**

Because four correct side lengths do not make a rectangle. A parallelogram has the same four sides as the rectangle it was meant to be, and the only thing that separates them is that its diagonals are unequal. Measure both diagonals first; until they agree, the side dimensions are describing a shape you did not intend to mark.

**Why does a small corner offset show up as a bigger diagonal difference?**

Because the two diagonals move in opposite directions. Shift one end along the long axis and one diagonal lengthens while the other shortens, so the difference between them is close to twice the offset multiplied by the ratio of length to diagonal. On a full-size court a five millimetre skew reads as nearly nine millimetres across the tape, which is what makes the check sensitive enough to be worth doing.

**Are the squaring triangle's numbers metres or feet?**

Whichever unit you are working in — that is the point of a ratio. Three, four and five in any consistent unit make a right angle, so a metric crew strikes 12-16-20 in metres and an imperial crew strikes the same numbers in feet. The legs shown here follow the unit toggle so you are not converting anything at the tape.

**Where should the right angle be set?**

At the court centre rather than at a corner. Setting out from a corner pushes all the accumulated angular error to the far end of the court, where there is no room left to absorb it; working from the centre halves the lever arm and shares whatever error remains between the two halves, which is also where a spectator is least able to see it.

**Is this the page for squaring a building or a slab?**

No: for a slab, a foundation, a deck or a frame, use the Squaring Calculator for Layout and Setting Out, which works back from the diagonals you measure to the corner's angle and how far to move it; this page sets out sports courts.

## Related calculators

- [Sports Court Floor Line Marking Paint Calculator](https://craftquantities.com/calculators/materials-quantities/court-line-marking-paint-calculator/)
- [Line Striping Paint Calculator](https://craftquantities.com/calculators/auto-utility/line-striping-paint-calculator/)
- [Flooring Calculator](https://craftquantities.com/calculators/renovation-construction/flooring-calculator/)
- [Squaring Calculator for Layout and Setting Out (3-4-5 Rule)](https://craftquantities.com/calculators/measurements-conversions/layout-squaring-calculator/)

## Run it from a program

- REST: `GET https://api.craftquantities.com/v1/calculate/rectangle-diagonal-squaring-calculator` with each input as a query parameter, a length, area or volume with its unit; `https://api.craftquantities.com/v1/describe/rectangle-diagonal-squaring-calculator` lists the inputs.
- MCP: the `calculate` tool at https://api.craftquantities.com/mcp with `slug` `rectangle-diagonal-squaring-calculator`.
- Definition and test vectors: https://craftquantities.com/api/v1/calculators/rectangle-diagonal-squaring-calculator.json

---
Source: https://craftquantities.com/calculators/measurements-conversions/rectangle-diagonal-squaring-calculator/
Craft Quantities: free to read, cite and link to; the pages are not licensed for republication. Quantities only: no prices, no design and no certification.
