The rustic-modern deck look that keeps showing up in design magazines almost always uses the same trick: welded wire grid panels framed in wood. Hog fence deck railing, built from galvanized hog wire panels set into a timber frame, gives you an open, nearly transparent barrier that preserves the view while still keeping people and pets on the deck. It costs less than glass or cable, installs with common tools, and suits farmhouse, mountain-modern, and industrial styles alike. This guide covers the panels, the all-important code questions, framing, and a clean installation.
Part of our Decks & Outdoor guide — explore the full guide →
What Hog Wire Panels Are
Hog panels, sometimes called cattle or livestock panels, are rigid welded steel grids originally made for agricultural pens. They come galvanized for rust resistance in stock sizes, commonly around 16 feet long and 34 to 50 inches tall, with a grid of roughly 4 by 4 inch openings that tightens near the bottom on some panels.
For deck railing, you cut these panels to length and capture them in a wood or metal frame. The heavy galvanized wire is stiff and holds its shape, which is what makes it work as an infill that does not sag like loose mesh.
The Code Question You Must Answer First
Here is the catch that trips up many DIYers. Standard deck railing code requires that a 4-inch sphere cannot pass through any opening, to protect small children. Many hog panels have openings larger than 4 inches, which means they may not pass inspection as a guard on a deck more than 30 inches above grade.
Before you build, check your local code and talk to your building department. Some jurisdictions accept hog wire, some require a tighter panel, and some treat a low deck differently. If your deck needs a compliant 4-inch guard, choose a panel with a grid of 4 inches or less, or confirm your inspector’s stance in writing.
Choosing Compliant Panels
If code compliance is required, look for welded wire panels specifically sold with openings of 4 inches or smaller, or use a finer welded mesh rated for railing. Some manufacturers now sell railing-specific hog-style panels engineered to meet the 4-inch rule while keeping the open look.
For a ground-level deck or a raised planter surround that is not a required guard, the standard agricultural panel with larger openings is often fine. Match the panel to the legal role the railing has to play.
Building the Frame
The frame carries the load and captures the wire. A common approach uses pressure-treated or cedar 2×4 and 2×2 stock to build a frame between the deck posts, with the hog panel sandwiched in a groove or between trim strips. The top rail must still resist the 200-pound code load, so the posts and top rail carry the real structure while the wire is infill.
Set your posts first, no more than about 6 feet apart, and anchor them to the deck framing, not just the decking boards. A hog wire panel is only as safe as the frame and posts holding it.
Installation Steps
- Set and secure structural posts to the deck rim or blocking at proper height
- Measure and cut hog panels to length with an angle grinder or bolt cutters, wearing eye protection
- Build the wood frame sections to fit between posts
- Capture the panel by routing a groove in the frame or screwing a trim strip over the wire
- Fasten the framed panel between the posts and add the top and bottom rails
- File any cut wire ends smooth so no sharp points remain
Cutting galvanized wire leaves sharp burrs. File or grind every cut end and cap the frame so no one catches a hand on a wire tip, which is the most common injury on these builds.
Material and Finish Choices
Panels come galvanized as standard, and you can leave that raw industrial silver or let it weather to a soft gray. For a warmer or darker look, some builders powder-coat or spray the panels black, which pairs strikingly with cedar framing. Black wire also visually recedes, making the view even more open.
For the frame, cedar and redwood resist rot and take stain beautifully, while pressure-treated lumber is the budget choice. Seal or stain wood frames on all sides before assembly so the hidden edges do not rot where they meet the metal.
Cost Compared to Other Railings
- Hog wire railing, DIY: $15 to $30 per linear foot in materials
- Cable railing: $60 to $120 per linear foot installed
- Glass panel railing: $80 to $150 per linear foot installed
- Standard wood baluster railing: $20 to $40 per linear foot
Hog wire is one of the most affordable ways to get an open, modern railing, especially for DIYers who build the frames themselves. The savings over cable are substantial while delivering a similar view-preserving effect.
Maintenance and Longevity
Galvanized panels shrug off rust for many years, needing only an occasional rinse to keep them clean. Powder-coated panels last even longer and hide grime. The wood frame is the part that needs attention, so re-stain or reseal it every two to three years to prevent rot and keep the look sharp.
Inspect the panel-to-frame connections each season and re-tighten any loose fasteners. A hog wire railing built on a solid frame with proper posts will serve for decades with little more than cleaning and periodic wood care.
Design Ideas Beyond the Deck
The same hog panel and frame system works well beyond a single deck rail. Homeowners use it for stair railings, garden fences, privacy screens softened with climbing vines, and even trellis walls that separate a patio from the yard. On a stair run, the rigid panels follow the rake cleanly and give a crisp modern line that cable struggles to match on angles. Pair the railing with matching hog wire gates for a cohesive look across the whole property. Because the material is inexpensive and the frames are simple to build, it is an easy style to extend once you have built your first section and dialed in the technique.