{
  "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": "equal-spacing-calculator",
  "category": "measurements-conversions",
  "title": "Equal Spacing Calculator (Balusters or Spindles, Posts, Battens)",
  "description": "Space balusters, posts, battens or fixings equally: the fewest that keep every gap or centre under your maximum, and each mark from one end.",
  "url": "https://craftquantities.com/calculators/measurements-conversions/equal-spacing-calculator/",
  "json": "https://craftquantities.com/api/v1/calculators/equal-spacing-calculator.json",
  "inputCount": 8,
  "testCaseCount": 5,
  "sourceCount": 3,
  "lastVerified": "2026-10-05",
  "citation": {
    "author": "Craft Quantities",
    "title": "Equal Spacing Calculator (Balusters or Spindles, Posts, Battens)",
    "version": "1.0.0",
    "sourcesChecked": "2026-10-05",
    "url": "https://craftquantities.com/calculators/measurements-conversions/equal-spacing-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. Equal Spacing Calculator (Balusters or Spindles, Posts, Battens). Version 1.0.0. Sources checked 2026-10-05. https://craftquantities.com/calculators/measurements-conversions/equal-spacing-calculator/",
      "apa": "Craft Quantities. (2026). Equal Spacing Calculator (Balusters or Spindles, Posts, Battens) (Version 1.0.0) [Web calculator]. Retrieved from https://craftquantities.com/calculators/measurements-conversions/equal-spacing-calculator/",
      "harvard": "Craft Quantities (2026) Equal Spacing Calculator (Balusters or Spindles, Posts, Battens) (Version 1.0.0). Available at: https://craftquantities.com/calculators/measurements-conversions/equal-spacing-calculator/",
      "bibtex": "@misc{craftquantities-calculators-measurements-conversions-equal-spacing-calculator,\n  author       = {{Craft Quantities}},\n  title        = {Equal Spacing Calculator (Balusters or Spindles, Posts, Battens)},\n  version      = {1.0.0},\n  year         = {2026},\n  howpublished = {\\url{https://craftquantities.com/calculators/measurements-conversions/equal-spacing-calculator/}},\n}"
    }
  },
  "inputs": [
    {
      "id": "runLength",
      "label": "Length of the Run",
      "type": "number",
      "dimension": "length",
      "defaultValue": 2.4,
      "min": 0.01,
      "max": 1000,
      "step": 0.01,
      "help": "The distance the items are spread across, measured between the faces they start and finish against."
    },
    {
      "id": "itemWidth",
      "label": "Width of Each Item",
      "type": "number",
      "dimension": "length",
      "defaultValue": 0.041,
      "min": 0,
      "max": 1,
      "step": 0.001,
      "help": "The face width of one baluster, post, batten or fixing, measured along the run; 0 for marks to points."
    },
    {
      "id": "endCondition",
      "label": "How the Run Starts and Finishes",
      "type": "select",
      "defaultValue": "gaps",
      "options": [
        {
          "value": "gaps",
          "label": "Gap at each end (between posts)"
        },
        {
          "value": "items",
          "label": "Item at each end"
        }
      ],
      "help": "A gap at each end, for balusters between two posts; or an item at each end, for a line of posts or battens."
    },
    {
      "id": "solveFor",
      "label": "Count",
      "type": "select",
      "defaultValue": "limit",
      "options": [
        {
          "value": "limit",
          "label": "Fewest under a maximum"
        },
        {
          "value": "count",
          "label": "A number I choose"
        }
      ],
      "help": "Let the page find the count from a maximum spacing, or give the count and get the spacing."
    },
    {
      "id": "limitApplies",
      "label": "The Maximum Applies To",
      "type": "select",
      "defaultValue": "gap",
      "options": [
        {
          "value": "gap",
          "label": "The clear gap between items"
        },
        {
          "value": "centres",
          "label": "The centre-to-centre spacing"
        }
      ],
      "help": "A guard's opening limit is a clear gap; a fixing pitch or a span is usually given as centres."
    },
    {
      "id": "maxSpacing",
      "label": "Largest Spacing Allowed",
      "type": "number",
      "dimension": "length",
      "defaultValue": 0.1,
      "min": 0.001,
      "max": 100,
      "step": 0.001,
      "help": "The most the gap or centres may be, from your code, the maker's instructions or the design: 100 mm (3.94 in) and 4 in (101.6 mm) are guard-opening limits."
    },
    {
      "id": "itemCount",
      "label": "Number of Items",
      "type": "number",
      "defaultValue": 10,
      "min": 1,
      "max": 1000,
      "step": 1,
      "help": "How many items to space out, counting the end items if the run starts and finishes on one."
    },
    {
      "id": "markAt",
      "label": "Marks To",
      "type": "select",
      "defaultValue": "centre",
      "options": [
        {
          "value": "centre",
          "label": "The centre of each item"
        },
        {
          "value": "nearEdge",
          "label": "The near edge of each item, the side facing the start"
        }
      ],
      "help": "Where each mark is measured to: the middle of the item, or the edge nearer the start of the run."
    }
  ],
  "sources": [
    {
      "label": "International Residential Code R312.1.3 — openings in a required guard must not allow passage of a 4 in (101.6 mm) diameter sphere; one example of the maximum a reader enters"
    },
    {
      "label": "Approved Document K (2013 edition), Section 3 — guarding in a building likely to be used by children under five should not have openings that allow passage of a 100 mm (3.94 in) sphere; the metric example"
    },
    {
      "label": "NIST Handbook 44 (2026 edition), Appendix C: 12 inches = 1 foot and 1 inch = 2.54 centimetres exactly, the basis of the tape readings and of the millimetres a metric reader is shown",
      "url": "https://www.nist.gov/document/2026-nist-handbook-44-appendix-c"
    }
  ],
  "testCases": [
    {
      "name": "2.4 m between posts, 41 mm spindles, gaps at most 100 mm: 17 spindles",
      "inputs": {
        "runLength": 2.4,
        "itemWidth": 0.041,
        "endCondition": "gaps",
        "solveFor": "limit",
        "limitApplies": "gap",
        "maxSpacing": 0.1,
        "itemCount": 10,
        "markAt": "centre"
      },
      "expected": 17,
      "toleranceDecimalPlaces": 0,
      "unit": "items",
      "confidence": "high",
      "steps": [
        {
          "label": "Clear gap between items",
          "value": 3.7248468941382327,
          "unit": "in (3 3/4 in)"
        },
        {
          "label": "Centre-to-centre spacing",
          "value": 5.339020122484689,
          "unit": "in (5 5/16 in)"
        },
        {
          "label": "Equal spaces across the run",
          "value": 18,
          "unit": "spaces"
        },
        {
          "label": "Largest gap allowed",
          "value": 3.937007874015748,
          "unit": "in (3 15/16 in)"
        },
        {
          "label": "Item 1, centre from the start",
          "value": 4.531933508311461,
          "unit": "in (4 9/16 in)"
        },
        {
          "label": "Item 2, centre from the start",
          "value": 9.870953630796151,
          "unit": "in (9 7/8 in)"
        },
        {
          "label": "Item 3, centre from the start",
          "value": 15.209973753280842,
          "unit": "in (1 ft 3 3/16 in)"
        },
        {
          "label": "Item 4, centre from the start",
          "value": 20.548993875765525,
          "unit": "in (1 ft 8 9/16 in)"
        },
        {
          "label": "Item 5, centre from the start",
          "value": 25.888013998250216,
          "unit": "in (2 ft 1 7/8 in)"
        },
        {
          "label": "Item 6, centre from the start",
          "value": 31.227034120734906,
          "unit": "in (2 ft 7 1/4 in)"
        },
        {
          "label": "Item 7, centre from the start",
          "value": 36.5660542432196,
          "unit": "in (3 ft 0 9/16 in)"
        },
        {
          "label": "Item 8, centre from the start",
          "value": 41.90507436570429,
          "unit": "in (3 ft 5 7/8 in)"
        },
        {
          "label": "Item 9, centre from the start",
          "value": 47.24409448818898,
          "unit": "in (3 ft 11 1/4 in)"
        },
        {
          "label": "Item 10, centre from the start",
          "value": 52.583114610673654,
          "unit": "in (4 ft 4 9/16 in)"
        },
        {
          "label": "Item 11, centre from the start",
          "value": 57.92213473315836,
          "unit": "in (4 ft 9 15/16 in)"
        },
        {
          "label": "Item 12, centre from the start",
          "value": 63.26115485564305,
          "unit": "in (5 ft 3 1/4 in)"
        },
        {
          "label": "Item 13, centre from the start",
          "value": 68.60017497812773,
          "unit": "in (5 ft 8 5/8 in)"
        },
        {
          "label": "Item 14, centre from the start",
          "value": 73.93919510061242,
          "unit": "in (6 ft 1 15/16 in)"
        },
        {
          "label": "Item 15, centre from the start",
          "value": 79.2782152230971,
          "unit": "in (6 ft 7 1/4 in)"
        },
        {
          "label": "Item 16, centre from the start",
          "value": 84.6172353455818,
          "unit": "in (7 ft 0 5/8 in)"
        },
        {
          "label": "Item 17, centre from the start",
          "value": 89.9562554680665,
          "unit": "in (7 ft 5 15/16 in)"
        }
      ],
      "basis": "cited",
      "sourceIndex": 1
    },
    {
      "name": "8 ft between posts, 1.5 in balusters, gaps at most 4 in: 17 balusters",
      "inputs": {
        "runLength": 2.4384,
        "itemWidth": 0.0381,
        "endCondition": "gaps",
        "solveFor": "limit",
        "limitApplies": "gap",
        "maxSpacing": 0.1016,
        "itemCount": 10,
        "markAt": "centre"
      },
      "expected": 17,
      "toleranceDecimalPlaces": 0,
      "unit": "items",
      "confidence": "high",
      "steps": [
        {
          "label": "Clear gap between items",
          "value": 3.916666666666667,
          "unit": "in (3 15/16 in)"
        },
        {
          "label": "Centre-to-centre spacing",
          "value": 5.416666666666667,
          "unit": "in (5 7/16 in)"
        },
        {
          "label": "Equal spaces across the run",
          "value": 18,
          "unit": "spaces"
        },
        {
          "label": "Largest gap allowed",
          "value": 4,
          "unit": "in"
        },
        {
          "label": "Item 1, centre from the start",
          "value": 4.666666666666667,
          "unit": "in (4 11/16 in)"
        },
        {
          "label": "Item 2, centre from the start",
          "value": 10.083333333333334,
          "unit": "in (10 1/16 in)"
        },
        {
          "label": "Item 3, centre from the start",
          "value": 15.5,
          "unit": "in (1 ft 3 1/2 in)"
        },
        {
          "label": "Item 4, centre from the start",
          "value": 20.916666666666668,
          "unit": "in (1 ft 8 15/16 in)"
        },
        {
          "label": "Item 5, centre from the start",
          "value": 26.333333333333336,
          "unit": "in (2 ft 2 5/16 in)"
        },
        {
          "label": "Item 6, centre from the start",
          "value": 31.75,
          "unit": "in (2 ft 7 3/4 in)"
        },
        {
          "label": "Item 7, centre from the start",
          "value": 37.16666666666667,
          "unit": "in (3 ft 1 3/16 in)"
        },
        {
          "label": "Item 8, centre from the start",
          "value": 42.583333333333336,
          "unit": "in (3 ft 6 9/16 in)"
        },
        {
          "label": "Item 9, centre from the start",
          "value": 48.00000000000001,
          "unit": "in (4 ft 0 in)"
        },
        {
          "label": "Item 10, centre from the start",
          "value": 53.41666666666667,
          "unit": "in (4 ft 5 7/16 in)"
        },
        {
          "label": "Item 11, centre from the start",
          "value": 58.83333333333334,
          "unit": "in (4 ft 10 13/16 in)"
        },
        {
          "label": "Item 12, centre from the start",
          "value": 64.25,
          "unit": "in (5 ft 4 1/4 in)"
        },
        {
          "label": "Item 13, centre from the start",
          "value": 69.66666666666667,
          "unit": "in (5 ft 9 11/16 in)"
        },
        {
          "label": "Item 14, centre from the start",
          "value": 75.08333333333334,
          "unit": "in (6 ft 3 1/16 in)"
        },
        {
          "label": "Item 15, centre from the start",
          "value": 80.50000000000001,
          "unit": "in (6 ft 8 1/2 in)"
        },
        {
          "label": "Item 16, centre from the start",
          "value": 85.91666666666667,
          "unit": "in (7 ft 1 15/16 in)"
        },
        {
          "label": "Item 17, centre from the start",
          "value": 91.33333333333334,
          "unit": "in (7 ft 7 5/16 in)"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    },
    {
      "name": "A 30 m fence line of 100 mm posts at no more than 2.4 m centres takes 14 posts",
      "inputs": {
        "runLength": 30,
        "itemWidth": 0.1,
        "endCondition": "items",
        "solveFor": "limit",
        "limitApplies": "centres",
        "maxSpacing": 2.4,
        "itemCount": 10,
        "markAt": "centre"
      },
      "expected": 14,
      "toleranceDecimalPlaces": 0,
      "unit": "items",
      "confidence": "high",
      "steps": [
        {
          "label": "Clear gap between items",
          "value": 86.61417322834646,
          "unit": "in (7 ft 2 5/8 in)"
        },
        {
          "label": "Centre-to-centre spacing",
          "value": 90.55118110236222,
          "unit": "in (7 ft 6 9/16 in)"
        },
        {
          "label": "Equal spaces across the run",
          "value": 13,
          "unit": "spaces"
        },
        {
          "label": "Largest centres allowed",
          "value": 94.48818897637796,
          "unit": "in (7 ft 10 1/2 in)"
        },
        {
          "label": "Item 1, centre from the start",
          "value": 1.968503937007874,
          "unit": "in (1 15/16 in)"
        },
        {
          "label": "Item 2, centre from the start",
          "value": 92.51968503937009,
          "unit": "in (7 ft 8 1/2 in)"
        },
        {
          "label": "Item 3, centre from the start",
          "value": 183.0708661417323,
          "unit": "in (15 ft 3 1/16 in)"
        },
        {
          "label": "Item 4, centre from the start",
          "value": 273.6220472440945,
          "unit": "in (22 ft 9 5/8 in)"
        },
        {
          "label": "Item 5, centre from the start",
          "value": 364.17322834645677,
          "unit": "in (30 ft 4 3/16 in)"
        },
        {
          "label": "Item 6, centre from the start",
          "value": 454.724409448819,
          "unit": "in (37 ft 10 3/4 in)"
        },
        {
          "label": "Item 7, centre from the start",
          "value": 545.2755905511812,
          "unit": "in (45 ft 5 1/4 in)"
        },
        {
          "label": "Item 8, centre from the start",
          "value": 635.8267716535435,
          "unit": "in (52 ft 11 13/16 in)"
        },
        {
          "label": "Item 9, centre from the start",
          "value": 726.3779527559057,
          "unit": "in (60 ft 6 3/8 in)"
        },
        {
          "label": "Item 10, centre from the start",
          "value": 816.9291338582678,
          "unit": "in (68 ft 0 15/16 in)"
        },
        {
          "label": "Item 11, centre from the start",
          "value": 907.4803149606302,
          "unit": "in (75 ft 7 1/2 in)"
        },
        {
          "label": "Item 12, centre from the start",
          "value": 998.0314960629923,
          "unit": "in (83 ft 2 1/16 in)"
        },
        {
          "label": "Item 13, centre from the start",
          "value": 1088.5826771653544,
          "unit": "in (90 ft 8 9/16 in)"
        },
        {
          "label": "Item 14, centre from the start",
          "value": 1179.1338582677167,
          "unit": "in (98 ft 3 1/8 in)"
        }
      ],
      "basis": "cited",
      "sourceIndex": 2
    },
    {
      "name": "660 mm at 40 mm spindles lands exactly on the 100 mm limit with 4 spindles",
      "inputs": {
        "runLength": 0.66,
        "itemWidth": 0.04,
        "endCondition": "gaps",
        "solveFor": "limit",
        "limitApplies": "gap",
        "maxSpacing": 0.1,
        "itemCount": 10,
        "markAt": "centre"
      },
      "expected": 4,
      "toleranceDecimalPlaces": 0,
      "unit": "items",
      "confidence": "high",
      "steps": [
        {
          "label": "Clear gap between items",
          "value": 3.937007874015748,
          "unit": "in (3 15/16 in)"
        },
        {
          "label": "Centre-to-centre spacing",
          "value": 5.511811023622048,
          "unit": "in (5 1/2 in)"
        },
        {
          "label": "Equal spaces across the run",
          "value": 5,
          "unit": "spaces"
        },
        {
          "label": "Largest gap allowed",
          "value": 3.937007874015748,
          "unit": "in (3 15/16 in)"
        },
        {
          "label": "Item 1, centre from the start",
          "value": 4.724409448818898,
          "unit": "in (4 3/4 in)"
        },
        {
          "label": "Item 2, centre from the start",
          "value": 10.236220472440946,
          "unit": "in (10 1/4 in)"
        },
        {
          "label": "Item 3, centre from the start",
          "value": 15.748031496062996,
          "unit": "in (1 ft 3 3/4 in)"
        },
        {
          "label": "Item 4, centre from the start",
          "value": 21.25984251968504,
          "unit": "in (1 ft 9 1/4 in)"
        }
      ],
      "basis": "cited",
      "sourceIndex": 1
    },
    {
      "name": "Ten 50 mm battens across 3 m, one at each end, are 277.8 mm apart in the clear",
      "inputs": {
        "runLength": 3,
        "itemWidth": 0.05,
        "endCondition": "items",
        "solveFor": "count",
        "limitApplies": "gap",
        "maxSpacing": 0.1,
        "itemCount": 10,
        "markAt": "nearEdge"
      },
      "expected": 10,
      "toleranceDecimalPlaces": 0,
      "unit": "items",
      "confidence": "high",
      "steps": [
        {
          "label": "Clear gap between items",
          "value": 10.936132983377078,
          "unit": "in (10 15/16 in)"
        },
        {
          "label": "Centre-to-centre spacing",
          "value": 12.904636920384952,
          "unit": "in (1 ft 0 7/8 in)"
        },
        {
          "label": "Equal spaces across the run",
          "value": 9,
          "unit": "spaces"
        },
        {
          "label": "Item 1, near edge from the start",
          "value": 0,
          "unit": "in"
        },
        {
          "label": "Item 2, near edge from the start",
          "value": 12.904636920384952,
          "unit": "in (1 ft 0 7/8 in)"
        },
        {
          "label": "Item 3, near edge from the start",
          "value": 25.809273840769904,
          "unit": "in (2 ft 1 13/16 in)"
        },
        {
          "label": "Item 4, near edge from the start",
          "value": 38.71391076115486,
          "unit": "in (3 ft 2 11/16 in)"
        },
        {
          "label": "Item 5, near edge from the start",
          "value": 51.61854768153981,
          "unit": "in (4 ft 3 5/8 in)"
        },
        {
          "label": "Item 6, near edge from the start",
          "value": 64.52318460192475,
          "unit": "in (5 ft 4 1/2 in)"
        },
        {
          "label": "Item 7, near edge from the start",
          "value": 77.42782152230971,
          "unit": "in (6 ft 5 7/16 in)"
        },
        {
          "label": "Item 8, near edge from the start",
          "value": 90.33245844269466,
          "unit": "in (7 ft 6 5/16 in)"
        },
        {
          "label": "Item 9, near edge from the start",
          "value": 103.23709536307962,
          "unit": "in (8 ft 7 1/4 in)"
        },
        {
          "label": "Item 10, near edge from the start",
          "value": 116.14173228346458,
          "unit": "in (9 ft 8 1/8 in)"
        }
      ],
      "basis": "cited",
      "sourceIndex": 2
    }
  ]
}
