This calculator estimates the posts, rails, and pickets needed for a straight fence run.
100 ft fence, 8 ft post spacing, 5.5" pickets with no gap, 2 rails. Posts = ⌈100÷8⌉ + 1 = 14. Pickets per section = ⌈96÷5.5⌉ = 17. Total pickets = 17 × 13 = 221. Rail length = 2 × 100 = 200 linear ft.
You also need: concrete for post holes (about 2 bags per post), galvanized nails or screws (roughly 3.5" for rails, 2.5" for pickets), a post hole digger, and gravel for drainage at the bottom of each hole. Add 10% extra pickets for waste and future repairs.