Fence rail calculator — how many rails?

Count the horizontal rails (stringers) your fence needs, from the number of sections and the rails per section.

Confirm panel/picket dimensions and bag yield against your product and order a little extra (~10%) for waste, corners, terrain and uneven runs. Panel sizes, picket widths, gaps and bag yields vary by product and brand.

Calculator

ft
ft
rails
2 rails under ~4 ft; 3 rails at 5–6 ft.
Rails needed75 rails
Sections25 sections
Rails per section3

25 sections × 3 rails = 75 rails. Fences under ~4 ft use 2 rails; 5–6 ft fences use 3 (labeled typicals).

Rails — also called stringers or backers — are the horizontal members that run between posts and carry the pickets or boards. Counting them is a two-step: first the number of sections (the spans between posts), then multiply by how many rails each section gets.

How many rails per section is a height call. Short fences under about 4 ft use two rails (top and bottom); 5–6 ft fences add a middle rail for three, which keeps tall boards from cupping and warping. Very tall or heavy privacy fences sometimes run four. When rails are sold in fixed sticks (commonly 8 ft), each section usually takes one stick per rail, so the rail count doubles as a stick count on 8 ft spacing.

Formula

sections = ceil(line_length_ft ÷ post_spacing_ft)\nrails    = sections × rails_per_section

Worked example

200 ft run at 8 ft spacing, 3 rails per section:

  • sections = ceil(200 ÷ 8) = 25
  • rails = 25 × 3 = 75 rails

Reference table

Rails by run length at 8 ft spacing:

LengthSections2 rails3 rails
50 ft71421
100 ft132639
150 ft193857
200 ft255075
300 ft3876114

Your rails per section: 3. 2 rails under ~4 ft, 3 rails at 5–6 ft (typical).

Frequently asked questions

How many rails does a 6 ft fence need?
A 5–6 ft fence typically uses three rails — top, middle and bottom — so tall boards stay flat. Fences under about 4 ft usually get away with two rails.
What is a section on a fence?
A section is one span between two neighboring posts. The number of sections is the fence length divided by the post spacing, rounded up; rails are counted per section.
How do rails relate to rail sticks I buy?
When rails come in fixed-length sticks that match the post spacing (often 8 ft), each section needs one stick per rail, so the rail count is also your stick count. Longer spacing than the stick length changes that.