JoyOne factory · fence takeoff
Fence Post Spacing Calculator: Equal Bays, Real Spacing and Post Count
Give it the run, the maximum spacing you will accept and any gate, and it divides the run into equal bays, then reports the spacing in feet and inches rather than a decimal.
7' 1 11/16" o.c.
7 bays · 8 posts
7' 1 11/16"
7 equal bays · 8 posts · 2 rails per bay
- Bays
- 7equal, per run
- Posts
- 86 intermediate
- Actual spacing
- 7' 1 11/16"2.18 m o.c.
- Rail runs
- 142 rails per bay
- Rail boards
- 148 ft stock
- Railed length
- 50' 0"0 gate deducted
The same run at four maximum spacings
| Maximum | Bays | Posts | Actual spacing | Rail runs | Selected |
|---|---|---|---|---|---|
| 6 ft | 9 | 10 | 5' 6 11/16" | 18 | |
| 7 ft | 8 | 9 | 6' 3" | 16 | |
| 8 ft | 7 | 8 | 7' 1 11/16" | 14 | yours |
| 10 ft | 5 | 6 | 10' 0" | 10 |
50' 0" run. Fewer bays means fewer posts and longer rails; the widest bay is shown, because it is the one that will sag.
Spacing is divided per run, so a corner resets the tape and no bay is left short at the end.
Worked examples
Every number below comes from the same engine that runs in the browser, at build time, so the examples cannot drift from the calculator above.
| Run | Maximum | Bays | Posts | Actual spacing |
|---|---|---|---|---|
| 24' 0" | 6 ft | 4 | 5 | 6' 0" |
| 24' 0" | 8 ft | 3 | 4 | 8' 0" |
| 50' 0" | 6 ft | 9 | 10 | 5' 6 11/16" |
| 50' 0" | 8 ft | 7 | 8 | 7' 1 11/16" |
| 100' 0" | 6 ft | 17 | 18 | 5' 10 9/16" |
| 100' 0" | 8 ft | 13 | 14 | 7' 8 5/16" |
Equal division per run. None of these runs produces a sliver bay at the end, which is the whole point of dividing rather than stepping.
Equal bays, not eight feet at a time
The lazy way to space posts is to walk 8 ft, mark, walk 8 ft, mark, and finish with whatever is left. On a 50 ft run that gives six bays of 8 ft and a last bay of 2 ft, which is not a fence, it is a mistake with pickets on it. The right way is to divide: 50 ft with a maximum of 8 ft gives ceil(50/8) = 7 bays, and 50/7 = 7.142857 ft, which is 7 ft 1 11/16 in on centre. Every bay the same, no short bay, and rails that can all be cut from the same stock.
The calculator does that division per run, not across the whole fence, because a corner resets the tape. Two runs of 25 ft are not one run of 50 ft: each divides separately, each gets its own bays, and the corner post is shared between them. That is also why a fence with many turns needs more posts than a straight run of the same length.
The maximum spacing is a limit, not a target. If the division comes out at 7 ft 1 11/16 in against an 8 ft maximum, that is what you build: the posts land on that pitch and the rails are cut to it. Reducing the maximum to 7 ft gives eight bays of 6 ft 3 in on the same run, which is one more post and one more rail run per rail height.
Why 8 ft is the default, and when it is the wrong number
Eight feet is not a rule of physics; it is a supply-chain fact. QUIKRETE’s fence guide tells you to divide the run into equal intervals of 6, 8 or 10 ft so that standard precut rails work without cutting, and rails are sold in 6, 8 and 10 ft lengths. An 8 ft bay with an 8 ft rail means no waste and no joints, which is why the number is everywhere and why the default here is 8.
Six feet is the stronger choice. Shorter bays mean a shorter rail span, less sag under a load, and less leverage on each post when the wind pushes. On an exposed site, on a fence over 6 ft, or on any fence carrying a wide gate, 6 ft bays are worth the extra posts. On a 250 ft fence the difference is 32 bays against 42, which is ten posts and 20 rail runs.
Ten feet is the cheap choice and it is a false economy on a wood fence with 2x4 rails: a 10 ft 2x4 on edge will sag between posts under its own weight plus a picket load, and the fence will read as wavy within a couple of seasons. If the run must be divided at 10 ft, use a deeper rail or a mid-rail.
What the maximum spacing changes on a 50 ft run
- 6 ft maximum: 9 bays of 5 ft 6 5/8 in, 10 posts, 9 rail runs per rail height.
- 8 ft maximum: 7 bays of 7 ft 1 11/16 in, 8 posts, 7 rail runs per rail height.
- 10 ft maximum: 5 bays of 10 ft, 6 posts, and rails that have to be joined or bought long.
Gates break the rhythm, so divide on both sides of them
A gate is an opening with a post at each side, and those two posts are fixed by the gate, not by the spacing. So a run with a gate in it is really two runs that happen to be collinear, and each divides on its own. The calculator centres the gate and divides the remaining length into equal runs: a 100 ft side with a 4 ft gate becomes two 48 ft runs, each of which divides into six bays of 8 ft.
Centring is a default, not a rule. If the gate has to sit at the driveway, type the run as two sides that meet at the gate instead — the arithmetic is identical and the plan will show the gate where it belongs. What matters is that neither side of the gate is left with a sliver bay, because a 1 ft bay beside a gate post does nothing but collect a rail cut and a picket.
The gate posts themselves are usually a heavier stock and set deeper, and that is not spacing arithmetic. A 4 ft gate weighs 30 to 50 lb and swings on a lever, so the hinge post takes a load the line posts never see. Bracing it to the first line post, or setting it a foot deeper, is the difference between a gate that latches in year three and one that does not.
Reading the spacing in feet and inches, not decimals
A spacing of 7.142857 ft is not a number anyone can mark on a rail. The calculator prints it as 7 ft 1 11/16 in, rounded to the nearest sixteenth, and it prints the total the bays add up to so you can see the rounding is absorbed. Marking from a decimal on a tape measure is how a fence ends up 3/8 in out at the far end of a run, which is visible in the picket line even when it is invisible in the rail.
The right way to mark is to measure the bay once, then use a story pole or a spacer block cut to that length for the rest. A tape hooked and re-hooked seven times accumulates error; a block does not. On a long run, mark the post centres with a chalk line and a square rather than a tape, so the marks stay consistent across the run.
Spacing also decides the rail order. A bay shorter than the rail stock means one rail per bay per rail height with a cut-off; a bay longer means a joint, and a joint belongs over a post, never mid-span. The result card flags any bay that is longer than the rail length you chose, which is the one place where a spacing answer becomes a materials answer.
When the spacing answer is not the whole answer
A post spacing that satisfies a rail length can still be wrong for the site. On a slope, posts are usually set plumb and the rails follow the grade, which means each bay’s rail length is a little different from the plan’s; on a steep slope the rails are tilted, and the panel heights step rather than rack. Neither is a spacing error, but both change the cut list.
On a corner, the two runs meet at an angle that the plan draws as 90° and the yard may not have. Measure the angle at each corner before ordering rails: a 45° corner needs a mitred rail or a corner post with two face-mount hangers, and the length on the drawing is the length along each leg, not the distance between the posts.
And on any fence that will carry a gate, a pergola or a windbreak, the spacing is an input to a structural question. Eight feet is fine for a 4 ft picket fence in a sheltered yard; it is optimistic for a 6 ft solid panel fence on a ridge. The calculator will divide at 6 ft just as happily, and the extra four posts are cheaper than the repair.
Questions people ask before digging
How do I divide a fence run into equal post spacing?
Divide the run by the maximum spacing you will accept and round up to get the number of bays, then divide the run by that number to get the spacing. A 50 ft run with an 8 ft maximum gives 7 bays of 7 ft 1 11/16 in. Round the spacing to the nearest sixteenth, not to the nearest foot, and mark the bays with a spacer block rather than a tape.
How many posts for a 100 foot fence?
Fourteen at 8 ft maximum spacing: 13 bays of 7 ft 8 5/16 in, plus one. At 6 ft maximum it is 18 posts: 17 bays of 5 ft 10 9/16 in plus one. A gate in the middle adds two gate posts and splits the run into two shorter runs that divide separately.
Should fence posts be 6, 8 or 10 feet apart?
Eight feet is the standard because rails and most panels are sold in 8 ft lengths, and QUIKRETE’s fence guide says to divide the run into equal intervals of 6, 8 or 10 ft for exactly that reason. Six feet is stronger in wind and for heavy gates; 10 ft sags with 2x4 rails unless the rails are heavier.
What is the maximum spacing for fence posts?
There is no code number for a private fence in most US jurisdictions; the limit comes from the rail. A 2x4 rail on edge will sag over 8 ft with a picket load and will sag visibly over 10 ft. Six feet is a better limit for a tall or exposed fence, and 8 ft is the usual compromise.
How does a gate change the post spacing?
A gate fixes two posts at its own width, so the run on each side divides independently. A 100 ft side with a centred 4 ft gate becomes two 48 ft runs, each six bays of 8 ft. If the gate is off-centre, treat the two sides as separate runs so neither ends up with a bay too short to fill.
Every number on this site, with where it came from
| Value | As used here | Basis | Source |
|---|---|---|---|
| Post hole diameter | 3x the post | “The diameter of the posthole should be 3 times the post diameter.” SAKRETE gives the same rule with a worked example: “a 4 in post will require a 12 in hole”. | QUIKRETE, “Setting Posts” project sheet |
| Post hole depth (manufacturer rule) | 1/3 of overall post + 6 in gravel | “Hole depth should be 1/3 the overall post length, plus 6 in (150 mm) for the gravel base.” SAKRETE’s version is one third of the height above ground. This site takes the deeper of the two. | QUIKRETE, “Setting Posts” project sheet |
| Frost line | at least 6 in below it | “When the post is to be used for structural support … the hole must extend at least 6 in (150 mm) below the frost line.” The local frost depth itself is set by the building department, not by this page. | QUIKRETE, “Setting Posts” project sheet |
| Gravel base under a post | 6 in | “place 6 in (150 mm) of … gravel or crushed stone in the hole to aid in drainage.” | QUIKRETE, “Setting Posts” project sheet |
| Bag yield, fast-setting | 0.375 cu ft (50 lb), 0.45 cu ft (60 lb) | Data sheet yield table. SAKRETE’s high-strength mix yields 0.30 / 0.45 / 0.6 cu ft at 40 / 60 / 80 lb, so a “bag” is never a fixed volume. | QUIKRETE Fast-Setting Concrete Mix, data sheet 1004 |
| Bag yield, standard mix | 0.30 / 0.375 / 0.45 / 0.60 / 0.675 cu ft | Yield table for 40, 50, 60, 80 and 90 lb bags. | QUIKRETE Concrete Mix, data sheet 1101 |
| Bag count, worked example | 2 x 50 lb bags | “Two 50 lb bags … will set a 3 in square post in a 9 in diameter hole 30 in deep.” The engine reproduces that count from the hole and post volumes, with the 6 in gravel base included. | QUIKRETE Fast-Setting Concrete Mix, data sheet 1004 |
| Post spacing convention | 6, 8 or 10 ft equal intervals | “Divide this length into equal intervals of 6 ft, 8 ft, or 10 ft … In this way standard precut lumber can be used for the crossrails.” 8 ft is the default here because 8 ft is the rail length sold everywhere. | QUIKRETE, “Fence and Trellis Designs” project sheet |
| Rail count convention | 2 rails to 6 ft, 3 above | Convention, not code. The manufacturer’s fence design uses a top rail plus bottom and middle rails, i.e. three; two rails on a 4–6 ft fence is the common trade practice this site starts from. | QUIKRETE, “Fence and Trellis Designs” project sheet |
| Stain coverage | 250–600 ft²/gal, one coat | Product details state coverage of 250 ft²/gal to 600 ft²/gal with one coat recommended. The default here is the low end, 250 ft²/gal, and every field is editable. | Cabot Australian Timber Oil |
| Dressed lumber sizes | 4x4 = 3.5 in, 6x6 = 5.5 in, 1x6 = 5.5 in | PS 20 surfaced sizes, read from the standard: nominal thickness and width are reduced by planing. The engine keeps them in one table and a test asserts each value. | ALSC, American Softwood Lumber Standard PS 20 |
| Feet to metres | 1 ft = 0.3048 m exactly | The international foot is defined as exactly 0.3048 m; the metric column is a conversion, not a second measurement. | NIST SP 811, Guide for the Use of the SI |
Sources
- QUIKRETE, “Setting Posts” project sheet
Step 1: the hole is three times the post diameter, one third of the overall post length plus 6 in for gravel, and at least 6 in below the frost line for a structural post. - QUIKRETE Fast-Setting Concrete Mix, data sheet 1004
Yield: 50 lb = 0.375 cu ft, 60 lb = 0.45 cu ft. Also: “Two 50 lb bags … will set a 3 in square post in a 9 in diameter hole 30 in deep” — the bag-count check this site’s engine is tested against. - QUIKRETE Concrete Mix, data sheet 1101
Yield: 40 lb = 0.30, 50 lb = 0.375, 60 lb = 0.45, 80 lb = 0.60, 90 lb = 0.675 cu ft. - QUIKRETE, “Fence and Trellis Designs” project sheet
Plotting the fence: divide the overall length into equal intervals of 6, 8 or 10 ft so precut rails work. Rails are usually 2x4 in 6, 8 or 10 ft lengths. Finishing: top rail first, then “position bottom and middle rails”. - SAKRETE, “Setting Posts” project guide
Hole width about 3x the post width (“a 4 in post will require a 12 in hole”); hole depth about one third of the post height above ground (“a 6 ft tall fence requires a 2 ft deep hole”); dig about 6 in below the frost line. - SAKRETE High Strength Concrete Mix
Yield: 0.30 cu ft (40 lb), 0.45 cu ft (60 lb), 0.6 cu ft (80 lb). - Cabot Australian Timber Oil
Product details: coverage 250 ft²/gal – 600 ft²/gal, one coat recommended. - ALSC, American Softwood Lumber Standard PS 20
Reading of PS 20, not a quotation: nominal sizes are planed to standard surfaced sizes, so a 4x4 is 3 1/2 in square, a 6x6 is 5 1/2 in square, a 1x6 is 5 1/2 in wide and 3/4 in thick, and a 2x4 is 3 1/2 in wide. - NIST SP 811, Guide for the Use of the SI
The international foot is exactly 0.3048 m, so 1 ft = 0.3048 m and 1 m = 3.280 839 895 ft.
These are quantity estimates. Post depth and frost depth are set by your local building department, hole and footing sizes by your soil and your inspector, and panel and stain coverage by the product you actually bought. Check the manufacturer’s label and your local code before you dig, and call 811 (in the US) or your local utility locator before the first hole. Nothing you type leaves your browser.