UNDERSTAND THE ESTIMATE
Try a checked example
A clear 72 in opening with 1.5 in pickets and a requested maximum 3.5 in gap needs fourteen pickets. The fifteen equal spaces are (72 − 14 × 1.5) ÷ 15 = 3.4 in. No guard-code limit is selected in this geometry example; a required guard needs separate code and construction checks.
Show all example inputs
| Units | US customary |
|---|---|
| Space between posts (in) | 72 |
| Picket or baluster width (in) | 1.5 |
| Largest gap you want (in) | 3.5 |
| Railing gap limit | None (fence) |
| Number of sections | 1 |
- Pickets per section: 14
- Actual clear gap (in): 3.4
- Pickets for entered sections: 14
Illustrative project geometry and stated assumptions; not a product endorsement or construction specification.
Example checked on October 22, 2026. Calculation method and limits.
How to use the picket spacing calculator
- Measure the clear space between the two posts, from face to face, not center to center.
- Measure the actual width of your pickets or balusters. A nominal 1×4 picket is usually 3.5 in wide and a 2×2 baluster about 1.5 in.
- Enter the largest gap you are happy with. For a railing, also choose the gap limit that applies where you live.
- The calculator adds pickets until every gap is no larger than your maximum and works out the exact, equal gap.
The formula
Pickets = (space − gap) ÷ (picket width + gap) (rounded up) Actual gap = (space − pickets × picket width) ÷ (pickets + 1) On-center spacing = picket width + actual gap Pickets per foot = 12 ÷ (picket width + gap) (inches) Pickets per metre = 1,000 ÷ (picket width + gap) (millimetres)There is one more gap than there are pickets, because the layout starts and ends with a gap at each post. That keeps the pickets centered in the section.
Gap limits for railings and guards
| Where | Rule |
|---|---|
| US (IRC 2021 R312.1.3) | Openings in a required guard must not let a 4 in sphere pass through |
| US, open side of stairs | A 4 3/8 in sphere must not pass through |
| US, triangle at tread, riser and bottom rail | A 6 in sphere must not pass through |
| England (AD K 2013, 1.39 / 3.3) | Where children under five may use the building, guarding should prevent passage of a 100 mm sphere |
| Australia (NCC 2022, 11.3.4(4)) | Specified barrier openings must prevent passage of a 125 mm sphere; exceptions and state variations require review |
The calculator keeps modeled straight gaps smaller than the selected reference limit. This is only an opening-width check. Codes are adopted and amended locally, so check with your building department. Garden fences usually have no gap rule, but pool fences have their own requirements.
Worked examples
Fence section: 92.5 in between 4×4 posts (8 ft centers), 3.5 in pickets, gaps no larger than 2 in:
- Pickets: (92.5 − 2) ÷ (3.5 + 2) = 16.5, so 17 pickets.
- Gap: (92.5 − 17 × 3.5) ÷ 18 = 1.83 in, about 1 13/16 in, with pickets every 5 5/16 in.
Deck railing: 72 in between posts, 1.5 in balusters, US guard limit of 4 in, aiming for gaps of about 3.5 in:
- Balusters: (72 − 3.5) ÷ (1.5 + 3.5) = 13.7, so 14 balusters.
- Gap: (72 − 14 × 1.5) ÷ 15 = 3.4 in (about 3 3/8 in), below the selected 4 in reference threshold. This alone does not establish guard safety or code compliance.
How many pickets per foot?
| Picket width | No gap | 1 in gap | 2 in gap | 3.5 in gap |
|---|---|---|---|---|
| 3.5 in (1×4) | 3.43 | 2.67 | 2.18 | 1.71 |
| 5.5 in (1×6) | 2.18 | 1.85 | 1.60 | 1.33 |
Tips
- Cut a spacer block to the exact gap and use it between pickets instead of measuring each one.
- Start at one post and check the remaining space every few pickets so small errors don't build up.
- Buy a few extra pickets to allow for split or warped boards.
- For posts, rails and pickets for a whole fence, use the fence calculator.
Calculation basis, defaults & source review
What this model calculates
Select an integer picket count; equal gaps at both posts and between pickets = (clear span − count × width)/(count + 1). Add pickets if needed for the selected opening threshold.
Fixed assumptions and limits
- Opening threshold: User-selected reference; straight clear gaps only. No selected limit establishes full guard/fence code compliance.
Limits depend on code edition, opening location and guard type. Post sizes, loads, all other openings and structural adequacy require separate review.
Reset inputs for comparison
These are starting values, not a prescription or a record of your current inputs. Your estimate and exported report show the values actually used. Select a matching manufacturer reference or enter exact product data where supported.
| Parameter | US reset / unit | Metric reset / unit | Status |
|---|---|---|---|
| Space between posts | 92.5 in | 2310 mm | Illustrative project input; not a prescribed value |
| Number of sections | 1 | 1 | Illustrative project input; not a prescribed value |
| Picket or baluster width | 3.5 in | 90 mm | Illustrative project input; not a prescribed value |
| Largest gap you want | 2 in | 50 mm | Illustrative project input; not a prescribed value |
| Railing gap limit | None (fence) | None (fence) | Illustrative project input; not a prescribed value |
Evidence and applicability
- ICC 2021 IRC, Chapter 3 — 2021 IRC; R311.7.5.1 and R311.7.5.2 reference screening only. 7.75 in maximum riser and 10 in minimum tread are edition-specific reference checks; local adoption and all other provisions are unverified. Review status: primary indexed text reviewed; direct chapter fetch access-limited.
- ICC-hosted 2021 IRC Residential Plan Review training — Shums Coda Associates 2024 training, pages 25–27. Explains the 2021 IRC stair and guard reference dimensions; training material is not the adopted local code or a project approval. Review status: code-publisher-hosted training PDF reviewed.
- England Approved Document K — 2013 edition, Table 1.1, printed page 5. Private-stair rise/going, pitch and 2R+G context; paragraphs 1.39 and 3.3 discuss 100 mm sphere protection where children under five may use the building. England and edition-specific; not universal local compliance. Review status: primary government PDF table reviewed.
- ABCB NCC Housing Provisions — barriers and handrails — NCC 2022, 11.3.4(4); edition-specific reference. 125 mm sphere opening criterion for the stated barriers; exceptions, loads, edge gaps and state variations require separate review. Review status: primary code provision reviewed.
- NIST — revised unit conversion factors — International foot definitions; web reference checked 22 October 2026. Unit definitions and conversion factors only; not material density or product coverage. Review status: primary content reviewed.
Arithmetic, model and source-scope review: 22 October 2026. Indexed-only or access-limited sources are identified explicitly. Review does not verify your measurements, every product or every possible input. Independent professional engineering approval has not been obtained.
Sources and technical limitations
The IRC link is one reference edition for guards. UK and Australian presets are reference checks, not evidence of local adoption; confirm the applicable jurisdiction and any separate pool or stair requirements.
- ICC 2021 IRC, Chapter 3 — 2021 IRC; R311.7.5.1 and R311.7.5.2 reference screening only
7.75 in maximum riser and 10 in minimum tread are edition-specific reference checks; local adoption and all other provisions are unverified. Review: primary indexed text reviewed; direct chapter fetch access-limited.
- ICC-hosted 2021 IRC Residential Plan Review training — Shums Coda Associates 2024 training, pages 25–27
Explains the 2021 IRC stair and guard reference dimensions; training material is not the adopted local code or a project approval. Review: code-publisher-hosted training PDF reviewed.
- England Approved Document K — 2013 edition, Table 1.1, printed page 5
Private-stair rise/going, pitch and 2R+G context; paragraphs 1.39 and 3.3 discuss 100 mm sphere protection where children under five may use the building. England and edition-specific; not universal local compliance. Review: primary government PDF table reviewed.
- ABCB NCC Housing Provisions — barriers and handrails — NCC 2022, 11.3.4(4); edition-specific reference
125 mm sphere opening criterion for the stated barriers; exceptions, loads, edge gaps and state variations require separate review. Review: primary code provision reviewed.
- NIST — revised unit conversion factors — International foot definitions; web reference checked 22 October 2026
Unit definitions and conversion factors only; not material density or product coverage. Review: primary content reviewed.
Engineering safety: This tool only estimates materials or selected geometry. It does not check structural adequacy, loads, connections, foundation stability or full building-code compliance. Use a qualified design professional and the locally adopted code before construction.
Frequently asked questions
How do you calculate picket spacing?
Divide the space between posts minus one gap by the picket width plus the gap and round up to get the number of pickets. Then the exact gap is (space − pickets × picket width) ÷ (pickets + 1). For 92.5 in, 3.5 in pickets and a 2 in maximum gap, that is 17 pickets with 1.83 in gaps.
How many pickets per foot do I need?
Divide 12 by the picket width plus the gap in inches. 3.5 in pickets with 2 in gaps need about 2.2 per foot, and 5.5 in pickets with no gap also need about 2.2 per foot.
What is the maximum gap between balusters?
Under the US International Residential Code, a 4 in sphere must not pass through a guard, or 4 3/8 in on the open side of stairs. England’s AD K 2013 includes a 100 mm sphere criterion where young children may use the building; NCC 2022 11.3.4(4) uses 125 mm for specified barriers, subject to its scope and exceptions.
How many balusters do I need for a 6 ft railing?
For 72 in between posts and 1.5 in balusters with gaps under 4 in, you need 14 balusters with gaps of about 3 3/8 in.