Split Rail Fence Calculator
This split rail fence calculator tells you how many posts and rails to buy for your fence line, including gates, corners and spare rails. It also recommends a post length and minimum burial depth, then estimates material cost.
How to Use This Split Rail Fence Calculator
Enter the total length of the fence line, choose how many rails per section and the rail length you plan to buy, then add any gates, corners, and your local frost depth. Press Calculate to see the number of posts, rails to purchase (including spare rails), the post length to order, the minimum burial depth, and an estimated material cost. A side-by-side table compares 8, 10, 11 and 12 ft rails so you can see which size is cheapest for your layout.
Why This Matters
Split rail is the classic choice for ranch boundaries, horse paddocks, driveways, and front-yard property lines, and it is sold by the piece. Posts and rails come in separate bundles, so a miscount means a second trip to the farm store, and rail lots can vary from one delivery to the next. Ordering a little over is far cheaper than finishing a fence with mismatched stock.
Consider a 250 ft frontage with one 10 ft driveway gap. A rough guess of "250 divided by 10" gives 25 sections, but that ignores the overlap in the post mortises, the extra gate posts, and the fact that each stretch of fence rounds up to a whole section. The real answer is 26 sections and 28 posts, and with three rails per section you need 78 rails before spares. At about $15 per post and $10 per rail, being off by even four posts and a dozen rails is a $180 error.
Post depth matters just as much. A post set too shallow will heave in freeze-thaw cycles and lean within a couple of winters. This calculator rounds burial depth up, so you buy a slightly longer post rather than a shorter one.
How It's Calculated
- Post spacing = rail length − (overlap ÷ 12). A 10 ft rail with a 6 in overlap gives 9.5 ft between post centers.
- Net fence length = total length − (gates × gate width).
- Runs (straight stretches between gates, corners, or ends): open run = gates + corners + 1; closed loop = gates + corners (minimum 1).
- Sections = runs × round up[(net length ÷ runs) ÷ post spacing]. The net length is split evenly across runs, and every run rounds up on its own, because you cannot buy part of a section.
- Posts: open run = sections + gates + 1; closed loop = sections + gates. Every run needs a post at each end, but a corner post is shared by the two runs that meet there and is counted once. Gate posts (two per gate) are included.
- Rails = sections × rails per section. Rails to buy = round up[rails × (1 + spare %)].
- Burial depth = the largest of local frost depth, 24 in, or half the above-ground height (so at least one-third of the post is underground), rounded up to the next 6 in. Post length = round up[(height + burial) ÷ 12] feet, minimum 5 ft.
These are common rule-of-thumb methods for rural and residential fencing, not a building code. Local codes, zoning, setbacks, and permit rules vary, and the results are not engineering, permit, or inspection approval. Call 811 before digging, and check with your local building department, especially for height limits or pool and livestock enclosures. If your runs are very different lengths, calculate each run separately and add the totals, since the even split here is an approximation.
Worked Example
Fence length 250 ft, open run, one 10 ft gate, no corners, three rails per section, 10 ft rails, 6 in overlap, 48 in height, 30 in frost depth, 5% spare rails, $15 per post, $10 per rail.
- Spacing = 10 − 6/12 = 9.5 ft.
- Net length = 250 − (1 × 10) = 240 ft.
- Runs = 1 gate + 0 corners + 1 = 2, so each run is 120 ft.
- Sections per run = round up(120 ÷ 9.5 = 12.63) = 13, so total sections = 26.
- Posts = 26 + 1 + 1 = 28.
- Rails = 26 × 3 = 78. With 5% spare: 81.9, rounded up to 82 rails.
- Burial = largest of 30, 24, and 24 (half of 48) = 30 in. Post = (48 + 30) ÷ 12 = 6.5, rounded up to a 7 ft post, which buries 36 in.
- Cost = (28 × $15) + (82 × $10) = $420 + $820 = $1,240, before gate hardware, tax, and delivery.
Tips & Common Mistakes
- Measure post-to-post, not rail-to-rail. Rails sit in the mortises of the post, so the center-to-center spacing is always shorter than the rail.
- Order spare rails. Natural split wood checks, bows, and cracks. Three to five percent spare is normal; go higher for rough-cut or cedar stock.
- Do not forget gate posts. Gates need two sturdy posts, and many installers set them deeper than line posts. Hinges, latches, and the gate itself are extra.
- Mark and check corners. A corner post serves two runs, so it is counted once, but it needs mortises drilled at the right angle. Buy pre-drilled corner posts or plan to drill them on site.
- Check height limits and property lines. Many towns limit front-yard fence height, and a survey is cheaper than moving a fence.
- Tamp the backfill. Add 4 in of gravel at the bottom of each hole for drainage, and tamp soil or gravel in layers around the post.
Frequently Asked Questions
How far apart should split rail fence posts be?
Posts are usually set 8 to 11.5 ft apart, depending on rail length. Subtract the overlap in the mortise, about 6 in, from the rail length. A 10 ft rail typically gives a post spacing of about 9.5 ft.
How many rails do I need per section?
Two rails make a low boundary marker of about 3 ft. Three rails suit most yards and driveways at around 4 ft. Four rails create a taller fence of about 5 ft that is better for horses or larger animals.
How deep should split rail fence posts be buried?
A common rule is to bury at least one-third of the post length and set the bottom below your local frost line, with a minimum of about 24 in. This calculator rounds that depth up to the next 6 in and picks a post length to match. Your local building department can confirm the frost depth.
Do I need concrete for split rail fence posts?
Not always. Many installers use well-tamped gravel or soil for line posts, and save concrete for gate posts, corners, and loose or sandy soil. Whichever you use, the burial depth matters more than the backfill material.
How do gates change the post count?
Each gate adds a pair of posts, one on the hinge side and one on the latch side, and splits the fence into separate runs. This calculator subtracts the gate opening from the fence length and adds the gate posts to the total.
Can a split rail fence keep animals in?
Rails alone leave gaps, so they work for horses and cattle but not for small pets or sheep. Many people add welded or woven wire mesh to the inside face. Wire mesh is not included in this calculator, so measure the fence length and buy a roll with about 10% extra.