For a wood fence, use hot-dipped galvanized ring-shank nails (also called deformed shank nails) for the pickets and rails, and galvanized common nails for the framing. The coating prevents rust, and the rings hold better than smooth nails as the wood expands and contracts. Here is what to choose for each part of the fence.
Why Hot-Dipped Galvanized Ring-Shank Nails Are the Default
Ring-shank nails have ridges along the shaft that grip the wood like screws, so they resist pulling out when the fence boards shrink and swell. Hot-dipped galvanized coating is thick and rough, designed for outdoor use; it withstands decades of rain and snow. Electro-galvanized nails (smooth and shiny) have a thinner coating and will rust sooner, leaving streaks on the wood. For a fence that lasts, choose hot-dipped galvanized ring-shank nails for all exposed fasteners.
Nail Sizes for Each Fence Part
Use 8d (2.5 inches) ring-shank nails for attaching pickets to rails, and 16d (3.5 inches) nails for joining rails to posts. Here is the breakdown:
| Fence part | Nail type | Length |
|---|---|---|
| Pickets to rails | 8d hot-dipped galvanized ring-shank | 2.5 in (6.4 cm) |
| Rails to posts | 16d hot-dipped galvanized common or ring-shank | 3.5 in (8.9 cm) |
| Post caps or trim | 6d hot-dipped galvanized finish nails | 2 in (5.1 cm) |
If you are building a privacy fence with 6-foot pickets, the 8d nail reaches through the picket and well into the rail. For a shadowbox or board-on-board fence where pickets overlap, use the same 8d nails but angle them slightly to catch the rail.
When to Use Screws Instead of Nails
Use coated deck screws for the pickets if you want easier removal for repairs, but nails are faster and cheaper for a whole fence. Screws grip better in treated lumber, which can be wet and slippery. If you choose screws, use #8 or #9 exterior-rated screws, 2.5 to 3 inches long, with a corrosion-resistant coating (like ACQ-rated). For rails to posts, nails are fine, but a galvanized or stainless steel lag screw adds extra strength for gates or corners.
Fastener Coating: Galvanized vs. Stainless Steel
Hot-dipped galvanized is the standard for most wood fences because it is affordable and holds up well. Stainless steel nails (type 304 or 316) are better for cedar or redwood, which contain tannins that can corrode galvanized steel over time. If you are building with pressure-treated lumber, use fasteners rated for ACQ (alkaline copper quaternary) treatment; standard galvanized nails may corrode faster. For coastal areas with salt air, stainless steel is the safest choice, though more expensive.
Worked Example: Nails for a 150-Foot Privacy Fence
Suppose you are building a 6-foot-tall privacy fence, 150 feet long, with 6-foot-wide panels. Each panel has about 10 pickets (if pickets are 6 inches wide with a 1-inch gap) and 2 rails. For each picket, you need 2 nails per rail, so 4 nails per picket. That is 40 nails per panel. With 25 panels (150 feet ÷ 6 feet per panel), you need about 1,000 nails for pickets. Add 2 nails per rail-to-post connection: 2 rails × 2 nails × 25 posts = 100 nails. Total: about 1,100 nails. Buy a 5-pound box of 8d hot-dipped galvanized ring-shank nails (roughly 350 nails per pound) and a 1-pound box of 16d nails (about 90 nails per pound).
Rule of Thumb for Nail Length
The nail should penetrate at least 1 inch into the second piece of wood. For a 1-inch-thick picket and a 1.5-inch-thick rail, an 8d nail (2.5 inches) gives about 1.5 inches of penetration, which is plenty. For rails to posts, a 16d nail (3.5 inches) penetrates about 2 inches into the post. If you are using thicker lumber, go up a size.
How to Drive Nails Without Splitting the Wood
Blunt the tip of the nail by tapping it once with your hammer before driving it, or drill a pilot hole for the last inch. This crushes the wood fibers instead of wedging them apart, which prevents splitting, especially near the ends of boards. Space nails about 1 inch from the edge of the picket and 2 inches from the end of the rail. For pickets, drive two nails per rail, staggered slightly so they do not hit the same wood grain.
What About Nail Guns?
If you use a nail gun, choose coil siding nails that are hot-dipped galvanized and ring-shank. These come in strips or coils and are designed for outdoor use. The nail gun drives them quickly, but you still need the same length (8d for pickets, 16d for rails). Check that the nail gun is set to drive the nail flush, not too deep, to avoid weakening the hold.
When to Avoid Nails Altogether
For posts set in concrete, use bolts or screws to attach the rails, not nails, because the post can twist and pull nails out. For gates, use screws or lag bolts for the hinges and latch. If you live in a very windy area, consider screws for all pickets to resist uplift. Nails are fine for most residential fences, but if you plan to reuse the lumber, screws are easier to remove.
Checking Your Work: What to Look For
After driving a nail, check that the head is flush with the wood surface, not buried or sticking out. If the nail bends, pull it out and start with a new one. If the wood splits, move the nail over an inch or use a smaller nail. Over time, look for rust streaks or popped nails; replace them with the same type.
Spotted a mistake? Tell us and we will correct it. How we write and check articles.