{
  "version": "v1",
  "source": "https://craftquantities.com",
  "licence": "CC BY 4.0",
  "licenceUrl": "https://creativecommons.org/licenses/by/4.0/",
  "attribution": "Craft Quantities — craftquantities.com",
  "documentation": "https://craftquantities.com/api/",
  "versioning": "Fields are added, never removed or repurposed, within a version. A breaking change becomes /api/v2/ and v1 keeps being built.",
  "slug": "rectangle-diagonal-squaring-calculator",
  "category": "measurements-conversions",
  "title": "Court Diagonal and Squaring Triangle Calculator",
  "description": "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.",
  "url": "https://craftquantities.com/calculators/measurements-conversions/rectangle-diagonal-squaring-calculator/",
  "json": "https://craftquantities.com/api/v1/calculators/rectangle-diagonal-squaring-calculator.json",
  "inputCount": 4,
  "testCaseCount": 4,
  "sourceCount": 4,
  "lastVerified": "2026-08-30",
  "translations": {
    "es-US": "https://craftquantities.com/es/calculators/measurements-conversions/rectangle-diagonal-squaring-calculator/"
  },
  "citation": {
    "author": "Craft Quantities",
    "title": "Court Diagonal and Squaring Triangle Calculator",
    "version": "1.0.0",
    "sourcesChecked": "2026-08-30",
    "url": "https://craftquantities.com/calculators/measurements-conversions/rectangle-diagonal-squaring-calculator/",
    "accessDate": null,
    "accessDateNote": "Add the date you retrieved this. It is deliberately absent: a static file cannot know when you read it, and the build date would be wrong.",
    "permanentVersionedUrl": null,
    "permanentVersionedUrlNote": "Not offered. This site keeps no archive of previous builds, so any such URL would resolve to the current page or to nothing. The version and sourcesChecked fields identify the calculation instead.",
    "formats": {
      "plain": "Craft Quantities. Court Diagonal and Squaring Triangle Calculator. Version 1.0.0. Sources checked 2026-08-30. https://craftquantities.com/calculators/measurements-conversions/rectangle-diagonal-squaring-calculator/",
      "apa": "Craft Quantities. (2026). Court Diagonal and Squaring Triangle Calculator (Version 1.0.0) [Web calculator]. Retrieved from https://craftquantities.com/calculators/measurements-conversions/rectangle-diagonal-squaring-calculator/",
      "harvard": "Craft Quantities (2026) Court Diagonal and Squaring Triangle Calculator (Version 1.0.0). Available at: https://craftquantities.com/calculators/measurements-conversions/rectangle-diagonal-squaring-calculator/",
      "bibtex": "@misc{craftquantities-calculators-measurements-conversions-rectangle-diagonal-squaring-calculator,\n  author       = {{Craft Quantities}},\n  title        = {Court Diagonal and Squaring Triangle Calculator},\n  version      = {1.0.0},\n  year         = {2026},\n  howpublished = {\\url{https://craftquantities.com/calculators/measurements-conversions/rectangle-diagonal-squaring-calculator/}},\n}"
    }
  },
  "inputs": [
    {
      "id": "courtLength",
      "label": "Court Length",
      "type": "number",
      "dimension": "length",
      "defaultValue": 28,
      "min": 1,
      "max": 120,
      "step": 0.01,
      "help": "The long dimension of the rectangle being set out."
    },
    {
      "id": "courtWidth",
      "label": "Court Width",
      "type": "number",
      "dimension": "length",
      "defaultValue": 15,
      "min": 1,
      "max": 80,
      "step": 0.01,
      "help": "The short dimension of the same rectangle."
    },
    {
      "id": "squaringMultiple",
      "label": "Squaring Triangle",
      "type": "select",
      "defaultValue": "4",
      "options": [
        {
          "value": "1",
          "label": "3-4-5 — small rectangles only"
        },
        {
          "value": "2",
          "label": "6-8-10"
        },
        {
          "value": "3",
          "label": "9-12-15"
        },
        {
          "value": "4",
          "label": "12-16-20 — full-size courts"
        },
        {
          "value": "5",
          "label": "15-20-25 — largest available run"
        }
      ],
      "help": "How far the 3-4-5 right-angle triangle is scaled up before it is struck."
    },
    {
      "id": "cornerOffset",
      "label": "Permitted Corner Offset",
      "type": "number",
      "dimension": "length",
      "defaultValue": 0.005,
      "min": 0.001,
      "max": 0.05,
      "step": 0.001,
      "help": "How far one corner may sit off its true position along the long axis."
    }
  ],
  "sources": [
    {
      "label": "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."
    },
    {
      "label": "ITF Rules of Tennis — court dimensions, which publish the corner-to-corner diagonal alongside the sides as a check dimension for exactly this reason"
    },
    {
      "label": "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)"
    },
    {
      "label": "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."
    }
  ],
  "testCases": [
    {
      "name": "Full-size basketball court, 28 m by 15 m",
      "inputs": {
        "courtLength": 28,
        "courtWidth": 15,
        "squaringMultiple": "4",
        "cornerOffset": 0.005
      },
      "expected": 31.76476,
      "toleranceDecimalPlaces": 3,
      "unit": "m",
      "confidence": "high",
      "steps": [
        {
          "label": "Diagonal difference at the permitted offset",
          "value": 8.814799675931795,
          "unit": "mm"
        },
        {
          "label": "Short leg of the squaring triangle",
          "value": 12,
          "unit": "ft"
        },
        {
          "label": "Long leg of the squaring triangle",
          "value": 16,
          "unit": "ft"
        },
        {
          "label": "Hypotenuse of the squaring triangle",
          "value": 20,
          "unit": "ft"
        },
        {
          "label": "Perimeter of the rectangle",
          "value": 86,
          "unit": "m"
        }
      ],
      "basis": "ambiguous"
    },
    {
      "name": "Doubles tennis court, 23.77 m by 10.97 m",
      "inputs": {
        "courtLength": 23.77,
        "courtWidth": 10.97,
        "squaringMultiple": "4",
        "cornerOffset": 0.003
      },
      "expected": 26.179263,
      "toleranceDecimalPlaces": 3,
      "unit": "m",
      "confidence": "high",
      "steps": [
        {
          "label": "Diagonal difference at the permitted offset",
          "value": 5.447823378499805,
          "unit": "mm"
        },
        {
          "label": "Short leg of the squaring triangle",
          "value": 12,
          "unit": "ft"
        },
        {
          "label": "Long leg of the squaring triangle",
          "value": 16,
          "unit": "ft"
        },
        {
          "label": "Hypotenuse of the squaring triangle",
          "value": 20,
          "unit": "ft"
        },
        {
          "label": "Perimeter of the rectangle",
          "value": 69.48,
          "unit": "m"
        }
      ],
      "basis": "ambiguous"
    },
    {
      "name": "Badminton doubles court, 13.4 m by 6.1 m",
      "inputs": {
        "courtLength": 13.4,
        "courtWidth": 6.1,
        "squaringMultiple": "2",
        "cornerOffset": 0.005
      },
      "expected": 14.723111,
      "toleranceDecimalPlaces": 3,
      "unit": "m",
      "confidence": "high",
      "steps": [
        {
          "label": "Diagonal difference at the permitted offset",
          "value": 9.101337204247884,
          "unit": "mm"
        },
        {
          "label": "Short leg of the squaring triangle",
          "value": 6,
          "unit": "ft"
        },
        {
          "label": "Long leg of the squaring triangle",
          "value": 8,
          "unit": "ft"
        },
        {
          "label": "Hypotenuse of the squaring triangle",
          "value": 10,
          "unit": "ft"
        },
        {
          "label": "Perimeter of the rectangle",
          "value": 39,
          "unit": "m"
        }
      ],
      "basis": "ambiguous"
    },
    {
      "name": "Volleyball court, 18 m by 9 m",
      "inputs": {
        "courtLength": 18,
        "courtWidth": 9,
        "squaringMultiple": "3",
        "cornerOffset": 0.005
      },
      "expected": 20.124612,
      "toleranceDecimalPlaces": 3,
      "unit": "m",
      "confidence": "high",
      "steps": [
        {
          "label": "Diagonal difference at the permitted offset",
          "value": 8.94427185478719,
          "unit": "mm"
        },
        {
          "label": "Short leg of the squaring triangle",
          "value": 9,
          "unit": "ft"
        },
        {
          "label": "Long leg of the squaring triangle",
          "value": 12,
          "unit": "ft"
        },
        {
          "label": "Hypotenuse of the squaring triangle",
          "value": 15,
          "unit": "ft"
        },
        {
          "label": "Perimeter of the rectangle",
          "value": 54,
          "unit": "m"
        }
      ],
      "basis": "ambiguous"
    }
  ],
  "usedByAssemblies": [
    {
      "id": "extension-shell",
      "name": "Extension shell, one or two storeys"
    }
  ]
}
