A wood pool fence is one of the few home projects where getting the design wrong isn’t just a cosmetic problem — it can fail a safety inspection and, far worse, let a small child reach the water unsupervised. A well-built wood pool fence delivers the privacy and warmth that metal and mesh barriers can’t touch, but it has to satisfy strict barrier codes on height, gaps, and gate hardware before it satisfies your eye for style. Most homeowners focus on the look and the wood species first; the pros start with the code, because a beautiful fence that isn’t compliant has to come back down. Here is the right order to build it.
Part of our Decks & Outdoor guide — explore the full guide →
Pool Barrier Code Comes First
Nearly every jurisdiction in the US enforces pool barrier requirements, usually based on the model rules in building and residential codes. While your local code is the final word — always confirm with your building department before buying materials — the widely adopted baseline requirements look like this:
- Minimum height: the barrier must be at least 48 inches tall, measured from the ground on the outside
- Bottom gap: no more than 2 inches between the ground and the bottom of the fence
- Vertical spacing: openings must not allow a 4-inch sphere to pass through
- No climbable footholds: horizontal rails on the outside should be spaced to prevent a child from climbing, or placed on the pool side
- Self-closing, self-latching gates that swing away from the pool, with the latch at least 54 inches above the ground
These numbers exist because they save lives. Design your fence to meet or exceed them from the start, and confirm the exact figures with your inspector, since some areas require 60-inch heights or additional rules for above-ground pools.
Why Rail Placement Matters
The most common code failure on wood pool fences is climbable rails. A privacy fence with horizontal rails on the outside face gives a child a ladder straight over the top. Codes address this by requiring either that horizontal rails be spaced more than 45 inches apart or that they face the pool side where they’re harder to reach. Board-on-board and vertical-picket designs with the structural rails on the interior sidestep this problem cleanly.
Think through the whole perimeter, too. A fence is only as strong as its weakest point, so make sure nothing outside — an AC unit, planter, retaining wall, or woodpile — sits close enough to serve as a step over the barrier.
Choosing the Right Wood
Pool environments are brutal on wood: constant moisture, splashout, chlorine, and sun. Your species choice determines how long the fence survives and how much upkeep it demands. The strong options are:
- Western red cedar: naturally rot- and insect-resistant, stable, and beautiful — a top choice that resists warping in wet conditions
- Redwood: similar natural durability and rich color, though pricier and regional
- Pressure-treated pine: the budget workhorse, treated to resist rot and insects; let it dry before staining
- Tropical hardwoods like ipe: extremely dense and long-lasting, premium priced, best for high-end builds
Whatever you choose, use hardware and fasteners rated for wet, corrosive environments — stainless steel or hot-dipped galvanized — because ordinary screws will rust and streak the wood within a season near a chlorinated pool.
Privacy vs. Visibility Trade-Off
Wood’s big advantage is privacy, but there’s a safety consideration to weigh. A solid privacy fence blocks the view of the pool from the house, which some parents dislike because they can’t glance out and see the water. If supervision visibility matters to you, consider a semi-private design — spaced pickets or a lattice-topped section — that screens sightlines from neighbors while still letting you see the pool from key windows.
Board-on-board construction gives full privacy with a finished look on both sides, worth the extra lumber if neighbors are close. Shadowbox (alternating boards) offers privacy with airflow, which helps the fence dry and reduces wind load.
Setting Posts That Last
The posts carry the whole fence, and in a wet pool environment they take abuse. Set posts in concrete footings below your local frost line — commonly 24 to 36 inches deep — with the concrete crowned above grade so water sheds away rather than pooling around the post base. Space posts every 6 to 8 feet depending on your panel design and wind exposure.
A pro move is to keep wood posts up out of standing water by setting them on a gravel base at the bottom of the hole for drainage, or using metal post anchors. For maximum longevity, some builders use steel or aluminum posts with wood infill panels, marrying rot-proof structure to the warmth of wood.
The Gate: The Most Critical Component
More pool accidents trace to a faulty gate than any other barrier failure, so build the gate to a higher standard than the fence itself. Code requires it to be self-closing and self-latching, swinging outward away from the pool, with the latch mounted high — typically at least 54 inches — so small children can’t reach it. Install a reliable self-closing hinge and a magnetic or spring latch designed for pool gates.
Test the gate obsessively. It should swing shut and latch on its own from any open position, every time, with no push. A gate that latches only when you slam it doesn’t meet the intent of the code and doesn’t protect anyone. Check the closer and latch periodically, since hinges loosen and the gate can sag over time.
Estimating Cost and Materials
A wood pool fence’s cost swings with the species and design you choose. Pressure-treated pine is the budget option, often landing at the lower end of installed per-linear-foot pricing, while cedar and redwood cost noticeably more, and tropical hardwoods like ipe sit at the premium top. Board-on-board and lattice-topped designs use more lumber than a simple picket, adding to the total.
Beyond the boards, budget for the components that make the fence last: concrete for the post footings, corrosion-resistant stainless or hot-dipped galvanized fasteners, and the pool-rated self-closing hinge and self-latching gate hardware, which cost more than standard gate parts but are non-negotiable for code and safety. Factor in permit fees, since most jurisdictions require a permit for a pool barrier and an inspection to confirm compliance. Pulling that permit isn’t red tape — the inspection is a second set of eyes confirming your barrier will actually protect a child.
Layout and Gate Placement Planning
Before setting a single post, plan the full barrier layout. The fence must fully enclose the pool with no gaps a child could slip through, and it should account for the house wall if the home itself forms part of the barrier — in that case, doors leading to the pool area may need alarms or self-closing hardware under many codes. Walk the perimeter and identify every possible access point.
Position gates thoughtfully. Locate them where adults naturally enter but away from spots where a child could reach the latch from a nearby object. Plan for the gate to swing outward, away from the pool, and confirm there’s level ground for it to close freely without dragging. A well-planned layout prevents the frustrating scenario of building most of the fence only to discover a gap or a gate that can’t meet code, which means tearing out finished work and starting a section over.
Finishing and Ongoing Maintenance
Seal the wood to fight moisture. Apply a quality exterior stain or water-repellent sealer after the wood has dried, and plan to reseal every two to three years depending on sun and splash exposure. Cedar and redwood can be left to silver naturally if you prefer, but sealing extends life in a pool setting.
Inspect the fence each season for loose boards, popped fasteners, rot at the post bases, and — above all — a properly functioning gate. Trim back vegetation that traps moisture against the wood. With cedar or treated lumber, corrosion-resistant hardware, and regular sealing, a wood pool fence readily lasts 15 to 20 years while keeping your pool both private and code-compliant. Build it to the barrier requirements first, choose weather-tough wood and hardware second, and give the gate the attention it deserves — that’s the order that produces a fence that’s as safe as it is good-looking.