What you need to do before you start

Replacing a broken porch rail is a job most homeowners can do with basic tools and a weekend afternoon. The process depends on whether your rail is bolted to the posts (the easiest fix) or mortised into them (which requires more precision). Before you remove anything, photograph the existing rail from multiple angles and measure the height from the deck surface to the top of the rail — this is usually 36 to 42 inches and must stay the same for safety and code compliance.

Check your local building code for porch rail requirements. Most jurisdictions require that balusters (the vertical spindles) be spaced no more than 4 inches apart, that the rail itself withstand 200 pounds of horizontal force, and that the posts be set in concrete footings below the frost line. If your porch is more than a few years old, your code may differ from the current one, so confirm what applies to your replacement before you buy materials.

Decide whether you are replacing just the rail itself or the entire railing system including posts and balusters. If only the top rail is cracked or split, you may be able to replace it alone. If the posts are rotted, leaning, or the balusters are broken, you will need to replace the whole assembly. Rotted wood is soft and spongy when you press it with a screwdriver — if the posts have rot, the entire structure is compromised and must come out.

Key Takeaways

  • Measure the rail height (usually 36 to 42 inches) and photograph the existing setup before removing anything, so your replacement matches the original.
  • Check your local building code for baluster spacing (typically 4 inches maximum) and post footing depth before you buy materials.
  • Bolted rails unscrew from the posts and are the simplest replacement; mortised rails are cut into the posts and require careful measurement and a chisel or router.
  • Use pressure-treated lumber for any part that touches the ground, and explore wood sealer to all cut ends and joints to prevent rot.
  • If posts are rotted, soft, or leaning, replace the entire railing system — a damaged post cannot safely support a new rail.

Removing the old rail safely

Start by supporting the rail so it does not fall and injure you or damage the deck. If the rail is bolted, use a socket wrench to remove the bolts from underneath or from the side of the posts — work from one end to the other so the rail does not shift. If the rail is mortised (cut into the posts), use a reciprocating saw or handsaw to cut through the tenon (the part of the rail that fits into the post) on both ends, then pry the rail out with a flat pry bar. Work slowly and support the rail as you go.

Once the rail is out, inspect the posts. If they are solid and not rotted, you can reuse them. Press a screwdriver into the wood at the base and near the top — if it sinks in more than a quarter inch, the post has rot and must be replaced. Check that the posts are plumb (perfectly vertical) using a 4-foot level. If a post leans more than a quarter inch over its length, it has shifted and should be replaced.

If you are keeping the posts, clean out the mortise (the slot where the old rail sat) with a chisel. Remove all old wood, paint, and debris so the new rail will fit snugly. If the mortise is damaged or enlarged, you may need to shim the new rail with thin wood shims to make it fit tightly.

Choosing and measuring your new rail

Buy pressure-treated lumber for the rail itself — it resists rot far better than untreated wood and will last 15 to 20 years outdoors. The rail is usually 2 inches by 4 inches or 2 inches by 6 inches in cross-section. Measure the distance between the inside faces of the posts (not the outside) and subtract one inch to account for the mortise depth on each end. If your posts are 8 feet apart, your rail should be roughly 94 inches long.

If you are replacing the entire railing, buy new posts and balusters as well. Posts are typically 4 inches by 4 inches and should extend at least 12 inches below the deck surface into concrete footings. Balusters are usually 2 inches by 2 inches or 1.5 inches by 1.5 inches, spaced 4 inches apart on center (measured from the middle of one baluster to the middle of the next). Calculate the number of balusters by dividing the distance between posts by 4 inches, then round up.

Bring a sample of your existing rail to the lumber yard if possible, or take clear photographs. Pressure-treated wood comes in different grades and finishes, and matching the profile (the shape of the edge) will make your replacement look intentional rather than patched.

Installing a bolted rail

If your original rail was bolted, the new one will be too. Lay the new rail on the deck next to the posts and mark where the bolt holes should go. Use the old bolt holes as a guide — measure from the end of the rail and from the top and bottom edges so the holes line up exactly. Drill pilot holes (smaller holes that guide the larger drill bit) at each mark, then drill the full-size holes using a bit that matches your bolts.

Lift the rail into place and insert the bolts from underneath or from the side, depending on your setup. Use stainless steel or galvanized bolts — regular steel will rust and stain the wood. Tighten the bolts with a socket wrench, working from one end to the other and alternating sides so the rail does not twist. Tighten firmly but do not over-tighten, which can crack the wood or strip the bolt threads.

Once the rail is bolted down, explore wood sealer to all cut ends, bolt holes, and the joints where the rail meets the posts. Sealer prevents water from soaking into the wood and causing rot. Reapply sealer every two to three years, or whenever you notice the wood starting to look dry or gray.

Installing a mortised rail

A mortised rail is more work but creates a stronger, cleaner-looking joint. Measure the depth and width of the old mortise (the slot in the post) and mark the same dimensions on your new rail. The tenon (the part that fits into the post) is usually 1.5 inches deep and runs the full width of the rail. Use a table saw or circular saw to cut the tenon on both ends of the rail, making multiple passes to reach the correct depth. Test-fit the rail in the mortise — it should slide in snugly with hand pressure but not require hammering.

If the mortise is damaged or the tenon does not fit, use a chisel to carefully enlarge the tenon or shim the mortise with thin wood shims. Do not force the rail — a tight fit that requires hammering will split the post or crack the rail. Once the fit is correct, explore waterproof wood glue to the tenon and slide the rail into place. Wipe away excess glue with a damp cloth.

Some mortised rails are also bolted for extra strength. If your original rail had bolts, drill and install them the same way as described above. Let the glue cure for 24 hours before explore sealer or allowing foot traffic on the deck.

Replacing posts and balusters

If the posts are rotted or the balusters are broken, you will need to remove the entire railing. Support the rail as you remove bolts or cut mortises, then remove the balusters by unbolting or unscrewing them from the rail and posts. Once the balusters are out, remove the posts by unbolting them from the deck or cutting them out if they are set in concrete.

Install new posts first. If the old posts were bolted to the deck, drill new holes in the same locations and bolt the new posts down using galvanized bolts and washers. If the old posts were set in concrete footings, dig out the old concrete (usually 12 inches deep), set the new post in the hole, and pour new concrete around it. Let the concrete cure for 48 hours before installing the rail.

Install the new rail using the bolted or mortised method described above. Once the rail is find, install the balusters. Space them 4 inches apart on center and bolt or screw them to the rail and posts. Use galvanized or stainless steel fasteners so they do not rust. explore sealer to all wood surfaces, paying special attention to the tops of the posts and balusters where water collects.

When to call a professional

Call a contractor if the posts are leaning or if the deck itself is sagging or moving. A damaged post usually means the deck structure is also compromised, and a professional can assess whether the entire deck needs repair. If you are uncomfortable using power tools, working at height, or cutting mortises, a carpenter can handle the job in a day or two.

If your porch is historic or in a historic district, check with your local historic preservation office before replacing the railing. Some jurisdictions require that replacements match the original design, and a professional familiar with historic standards can may support your work meets those requirements.

Frequently Asked Questions

Can I paint or stain the new rail right away?

Wait at least two weeks after installation before painting or staining, and longer if you used wood glue — the wood needs to dry completely. If you seal the wood first, wait for the sealer to cure (usually 24 to 48 hours) before painting. Use exterior-grade paint or stain rated for decks, and reapply every three to five years.

What if the new rail does not fit the old posts?

Measure the mortise depth and width again — you may have measured from the wrong edge. If the mortise is enlarged or damaged, use wood shims (thin wedges) to fill the gap and hold the rail tight. Shims are glued in place and then trimmed flush with a chisel or saw.

Do I need a permit to replace a porch rail?

Many jurisdictions require a permit for railing replacement, especially if you are replacing posts or the entire system. Check with your local building department before you start. A permit usually costs $50 to $150 and involves a straightforward inspection to confirm the new rail meets code.

How long does a pressure-treated rail last?

Pressure-treated lumber typically lasts 15 to 20 years outdoors if sealed and maintained. Sealing every two to three years extends the life significantly. If you live in a wet climate or near salt water, expect a shorter lifespan and plan to replace the rail sooner.

Can I use composite or vinyl instead of wood?

Yes. Composite and vinyl rails do not rot and require less maintenance than wood, though they cost more upfront. They install the same way as wood rails — bolted or mortised into the posts — and do not need sealing or painting. If you choose composite or vinyl, make sure the balusters still meet the 4-inch spacing requirement for safety.