Home › Picket Spacing Calculator

Timber, fencing & layout

Picket Spacing Calculator

Space fence pickets or railing balusters evenly between two posts. Enter the space between the posts, the width of each picket and the largest gap you want, and the calculator finds how many pickets you need and the exact gap that makes every space the same.

US & metric · No account needed · Calculations stay in your browser

View the measurement guide
Measurement guideNot to scale
Measurement guide for Picket Spacing CalculatorMeasure clear post-to-post span and actual picket width. Equal spaces include a gap at both ends. All geometry is schematic and does not depict a structural design.Clear spanPicket width + clear gaps
Measure clear post-to-post span and actual picket width. Equal spaces include a gap at both ends. View detailed drawings
  1. MeasureEnter your project measurements.
  2. MatchCheck product values and allowances.
  3. ReviewCheck quantities, inputs and sources.

Your project

Change an input to update the estimate. Check units and product assumptions before ordering.

Units
Section
Pickets

YOUR ESTIMATE

Your estimate

Gaps are equal between pickets and at both posts. Measure the space between posts at the top and bottom of each section, as posts are rarely perfectly parallel.

Detailed drawings & current dimensions

Not to scale. Dimension values follow your inputs; the drawing proportions do not. Displayed numbers may be rounded. This is a measurement aid, not an approved construction detail.

Measurement overview

Measurement overviewSchematic measurement view, not to scale. Lettered dimensions correspond to the current input list. Layer heights and repeated items are illustrative, not design details.Clear spanPicket width + clear gaps

Current calculator inputs

Hidden shape inputs are omitted. These values are entered assumptions, not independently verified product data.

Keep this estimate

Export the current estimate as a visual report. Print it or save as PDF. Local saving is optional; no account is required.

Back up or restore saved projects

Data files (JSON) are for restoring editable projects, not for reading or printing. They include saved projects only; save the current estimate first if you want it in the backup.

UNDERSTAND THE ESTIMATE

Measure a clear opening and count end gaps

Use the face-to-face opening between posts and the actual picket width. This layout places a gap at both ends, so N pickets create N + 1 gaps. Measure at top and bottom if posts are not parallel.

A selected guard limit applies a numerical spacing check only. Full compliance also depends on adopted rules, height, member deflection, fixing strength and the location of the guard. A geometry result cannot approve a pool fence.

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
Inputs used in this example
UnitsUS customary
Space between posts (in)72
Picket or baluster width (in)1.5
Largest gap you want (in)3.5
Railing gap limitNone (fence)
Number of sections1
  • 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

  1. Measure the clear space between the two posts, from face to face, not center to center.
  2. 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.
  3. Enter the largest gap you are happy with. For a railing, also choose the gap limit that applies where you live.
  4. 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

WhereRule
US (IRC 2021 R312.1.3)Openings in a required guard must not let a 4 in sphere pass through
US, open side of stairsA 4 3/8 in sphere must not pass through
US, triangle at tread, riser and bottom railA 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:

Deck railing: 72 in between posts, 1.5 in balusters, US guard limit of 4 in, aiming for gaps of about 3.5 in:

How many pickets per foot?

Picket widthNo gap1 in gap2 in gap3.5 in gap
3.5 in (1×4)3.432.672.181.71
5.5 in (1×6)2.181.851.601.33

Tips

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.

ParameterUS reset / unitMetric reset / unitStatus
Space between posts92.5 in2310 mmIllustrative project input; not a prescribed value
Number of sections1 1 Illustrative project input; not a prescribed value
Picket or baluster width3.5 in90 mmIllustrative project input; not a prescribed value
Largest gap you want2 in50 mmIllustrative project input; not a prescribed value
Railing gap limitNone (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.

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.

Related calculators

Browse all calculators by task