Lumber NewBoard feet, cost and cut list Cabinet NewDrawers, doors and shelves in one cut list StairsStraight and U-shaped, 1:1 templates DrawersSizes, cut list and drilling Shelf SagShelf sag and load capacity Spacing / SlatsEven spacing and gaps Heat LossHeat loss and payback Smart Mix (2K)Ratios and amounts for 2K mixes
Plans with a 3D model Build-ready PDF and a 3D model in the browser. Browse plans →
The calculators are free. PRO unlocks dimensioned drawings, templates and the full PDF. What is PRO →
ČeštinaCZ EnglishEN DeutschDE PolskiPL FrançaisFR EspañolES
Calculators
LumberNew CabinetNew Stairs Drawers Shelf Sag Spacing / Slats Heat Loss Smart Mix (2K)
CalcWood PRO Support development
Terms of Service Privacy Policy
↑↓ selectEnter openEsc close

    BLACK FRIDAY 50% off your first 3 months of CalcWood PRO Ends in $29 $14.50 Get 50% off
    CalcWood Logo
    CALCWOOD.
    BASIC VERSION – FREE, NO REGISTRATION
    PRO PRO FEATURES ARE OPTIONAL AND PAID

    Picket spacing calculator

    Short answer: a section 92 1/2″ wide between posts with 3 1/2″ pickets and a gap of about 2″ takes 16 pickets. The gap comes out at 2 1/8″ everywhere, including next to both posts.
    Counter
    Calculated projects: 0
    Need help with the terms?
    Practical tips and quick search in the knowledge cards are waiting below.
    Loading preview...
    Quick start – what are you building?
    What do you want to calculate?
    +
    -
    +
    -
    +
    -
    LAYOUT, MARGINS & SLOPE Layout start and end, edge offsets, slope angle and gap limit.
    +
    Link copied!

    Practical Applications

    Spacing Calculator & Calcwood Project

    Watch a quick video introducing the entire Calcwood project. The video includes English subtitles.

    What can this calculator do?

    • Three Calculation Modes: Calculate by item count, target gap, or exact center-to-center spacing with automatic centering.
    • Smart Margins: Set custom offsets for left and right edges.
    • Four Edge Layouts: Start and end with a slat or a gap, including asymmetric edge variants.
    • Running Dimensions: Mark everything from a single zero point.
    • Visual Preview: Instant updates of your layout as you type.
    • PDF Export: Clean technical drawings for your workshop with the same 0.5 mm rounding as the web results.
    • Slopes & railings: Lay out items on a sloped stair railing line, with lengths entered horizontally or along the slope. You get the item footprint, the gap along the slope, the cut angle and the rise.
    • Do not exceed: The entered gap or center spacing is never exceeded; the calculator adds an item instead. The end items then sit exactly on the margins.
    • Quick start profiles: Dowels, dominos & screws, slatted wall, fence, railing, deck and joists – typical values from practice in one click.

    Professional Tips for Perfect Precision

    Perfect layout is the mark of a pro. Avoid these common mistakes with this tool:

    The 4″ Baluster Rule (IRC 2021)IRC 2021 R312.1.3: a required guard must not have openings that let a 4″ sphere pass through, from the walking surface up to the required guard height. Guards are required where the walking surface is more than 30″ above the grade below (R312.1.1) and must be at least 36″ high (R312.1.2). The gap between balusters must therefore stay under 4″ – a gap of exactly 4″ fails.
    How Many Balusters or Pickets Do I Need?With a gap at both posts, n balusters leave n + 1 gaps. Count = (space between posts − max gap) ÷ (baluster width + max gap), rounded up. Then recalculate the real gap = (space − count × width) ÷ (count + 1). Example: 72″ between posts, 1 1/2″ balusters, 4″ max gap: (72 − 4) ÷ 5.5 = 12.36 → 13 balusters, real gap (72 − 19.5) ÷ 14 = 3 3/4″.
    Fence Pickets per 8 ft SectionThe same formula works for a fence. 96″ between posts, 5 1/2″ pickets (1×6), about 2″ gap: (96 − 2) ÷ 7.5 = 12.53 → 13 pickets, real gap (96 − 71.5) ÷ 14 = 1 3/4″. Multiply by the number of sections for your total, and measure the real space between posts – it is rarely exactly 96″.
    Cumulative ErrorNever measure piece-by-piece. Small errors add up and can throw your layout off by inches.
    Math CertaintyHitting an exact gap across a total width requires complex equations. We solve them instantly.
    Scrap PreventionPlan your layout to avoid ugly, tiny offcuts at the ends of your project.
    Running DimsPull your tape measure once, lock it, and mark all points. It’s the fastest route to precision.
    On-Center SpacingCrucial for drilling. Center-to-center distance is often more important than the gap itself.
    Visual BalanceSymmetry defines quality. Adjust edge offsets with two clicks for a professional look.
    Edge EndingsThe layout can start and end with an item or a gap, so you can solve the connection to a wall, post, frame or corner precisely.
    Slopes & RailingsOn a sloped line an item takes up a wider footprint and the gaps are longer than in the horizontal projection. The calculator converts both and shows the cut angle and rise.
    A Limit, Not an AverageFor railings, battens and joists the largest allowed gap is what matters. Switch to Do not exceed and the calculator adds an item rather than breaking the limit.
    Fixed End CentersFor dowels, dominos and screws keep the first and last center at the same distance from the end. Enter the spacing as a maximum and the rest is divided evenly between them.
    Moving WoodOutdoors, wood swells and shrinks. Choose the gap for decks and fences based on the moisture of the boards at installation, not on how they should look in a month.
    Start from a ProfileNot sure where to begin? Pick a profile for what you are building. The calculator prefills values from practice and highlights in yellow what to adjust for your material.

    ⚠️ Pro Tip: Always layout the entire project using running dimensions before you start any final cuts or drilling.

    Frequently asked questions

    All questions on the FAQ page
    How do you calculate picket spacing?

    Add the picket width to the gap and divide the space between the posts by that, with one extra gap for the end. Round to whole pickets and share the leftover evenly into all gaps. A 92 1/2″ section with 3 1/2″ pickets and a gap of about 2″ takes 16 pickets with 2 1/8″ gaps.

    How many fence pickets do I need?

    Work it out per section between posts and multiply by the number of sections. Sections of different widths each get their own count, so enter each one in the calculator; it spaces the pickets evenly from post to post.

    How far apart should fence pickets be?

    Most picket fences have gaps of 1½″ to 2½″, about half the picket width. Closer pickets give more privacy, wider gaps look lighter and need fewer pickets.

    Why am I missing a few centimeters at the end of my fence or paneling?

    A cumulative error occurred. Never measure from piece to piece (from slat to slat). Every millimeter of inaccuracy adds up. The calculator generates continuous running dimensions – you pull the tape measure once, lock it, and just make marks.

    How to calculate a fence or paneling so I don't end up with an ugly offcut at the end?

    In the calculator, you can play with the edge offsets. Set symmetrical edges so that you end up with a full slat or an equal gap on both sides. The visual balance of the start and end determines whether the work looks professional.

    What is the center-to-center spacing good for?

    It is an absolutely crucial dimension for drilling holes (e.g., for dowels or screws). Center-to-center spacing is often more important in structural joints than the actual gap between the materials.

    I have a set number of slats, or I want a specific gap or spacing. Which mode should I choose?

    The calculator has three modes. “I have item count” calculates the gap. “I want a specific gap” calculates the number of items. “I want a specific center spacing” calculates the number of items so that the spacing stays exact, and centres the whole layout.

    I only need to mark centre points for screws or holes, not slats. Is that possible?

    Yes. Enter an item width of 0 and the calculator will calculate centre positions only, for example for screws, drilled holes, dowels or mounting points. The results, the preview and the PDF then show the centre marks.

    How do I lay out stair railing balusters on a slope?

    In the advanced settings enter the slope angle and choose whether you measure lengths horizontally or along the slope. The calculator works out the layout plus the values along the slope: center-to-center spacing, gap, the item footprint on the sloped edge, the cut angle and the rise. The drawings show a side view and a detail. Quick start offers a Railing profile.

    How can I make sure the gap or spacing never exceeds an allowed value?

    Switch Entered gap (or Entered spacing) to Do not exceed. The calculator picks the smallest number of items that stays within the value and keeps the end items exactly on the margins. Useful for railings, battens, joists, dowels or screws. Always check the actual limit against your local rules and your project.

    What are the quick start profiles?

    Six tiles above the calculator (dowels, dominos & screws, slatted wall, fence, railing, deck, joists & battens) prefill typical values from practice. Changed fields are highlighted in yellow, so you can see right away what to adjust for your material. Click the tile again to clear the profile. Profiles are free.

    Ratings & Reviews

    Checking calculator ratings...
    Loading reviews...
    ✕

    Did the calculator help you?

    Your feedback helps improve CalcWood for all woodworkers and DIYers around the world.

    UPDATES & CHANGELOG
    +
    v1.5 ( October 2026)
    • Slopes & railings: Lay out items on a sloped line, with lengths measured horizontally or along the slope. Results show the spacing and gap along the slope, the item footprint, the cut angle and the rise, plus side view and detail drawings on the web and in the PDF.
    • Do not exceed: Use the entered gap or center spacing as a maximum. The end items then sit exactly on the margins and the rest is divided evenly.
    • Quick start profiles: Dowels, dominos & screws, slatted wall, fence, railing, deck, joists & battens. One click prefills typical values from practice, a second click clears the profile.
    • Advanced settings for everyone: Layout, margins and slope are free. PRO unlocks all running dimensions and drawing dimensions; the first two are always free. The basic calculation stays completely free.
    • Better on mobile: Changed values are highlighted on phones too, and the reset-to-auto button no longer covers the number.
    v1.06 ( October 2026)
    • Center points only: A zero item width now calculates center positions for screws, holes, dowels, or mounting points.
    • Clearer outputs: Results, the technical preview, and PDF now show center marks and their positions in this mode.
    • Preview fixes: Improved center rendering, dimensions, detail positioning, and localized view labels.
    v1.05 ( October 2026)
    • Units in every language: You can switch between metric and imperial units in every language version of the calculator.
    • Layout preserved: Switching units preserves the calculation mode, item count, edge layout and expert settings. Unchanged values return without losing precision.
    • Clear manual changes: User-modified values are highlighted in yellow, making it easy to see which inputs differ from their defaults.
    v1.04 ( September 2026)
    • Added a new calculation mode based on an exact center-to-center spacing.
    • The calculator automatically determines the maximum item count, preserves the requested spacing, and centers the entire layout evenly.
    • Results, the technical drawing, and the PDF now show the fixed offset, automatic centering, and first center position separately.
    v1.03 ( September 2026)
    • Added four edge layout types: slat–slat, gap–gap, slat–gap, and gap–slat.
    • The new asymmetric variants make it easier to handle layouts connected to a wall, post, frame, or corner.
    • Redesigned the layout switch icons into wider technical diagrams with equal slat widths and clearer gap visualization.
    • The PDF export now respects the selected edge layout and rounds metric values to the same 0.5 mm precision as the web results.
    v1.02 ( September 2026)
    • Added a separate center-to-center spacing value to the results and PDF export for faster layout marking of slats, pickets, battens, or grooves.
    • Improved the center dimension label in the running dimensions list, making it clear that the slat center is measured from the start edge.
    v1.01 ( June 2026)
    • Added full fraction support for the imperial system (inches). When you switch the calculator to inches, all results and PDF exports are now automatically displayed in easy-to-read fractions (up to 1/16 inch precision).
    • Decimal numbers entered as input are automatically converted to the nearest practical fraction, making workshop tasks much easier.
    v1.00 ( March 2026)
    • First public release of the even spacing calculator.
    • Calculation based on piece count or target gap size.
    • Support for symmetric and asymmetric edge margins.
    • PDF generation with running dimensions and precise technical drawing.
    • Option to choose between "Slat - Slat" or "Gap - Gap" layout types.
    • Feature to easily share the configuration via a URL link.
    Have a suggestion or found a bug?
    +

    Related calculators

    Work this out too

    What I use for this

    The tools I use for this in my own workshop.

    All my tools →

    When you buy through a link, you support the development of CalcWood. It costs you nothing extra.

    Plans to build it yourself

    Build it yourself. With plans where every part is dimensioned.

    New 3D model PDF in English 44 A4 sheets

    Multifunction workbench

    One rolling bench for your table saw, router and assembly work. The saw sits flush with the top, so you get a big flat surface around the blade, and the whole bench rolls wherever you need it.

    • Fits 5 table saws: Bosch, Metabo, DeWalt, Festool, HiKOKI
    • 2 versions: with saw and router, or without machines
    • Material list and sheet cutting plan, so you buy only what you need
    • Dust collection for saw and router hidden in the walls, plug the vacuum in from outside
    • 10 drawers, adjustable shelf under the saw
    • Step-by-step build
    Price BLACK FRIDAY −30%$36.90 $25.83
    See the plans →