How to Make Bed Rails for Toddlers and Adults

Building your own bed rails is a straightforward woodworking project that most people can finish in an afternoon with basic tools. The design depends on who the rail is for: a toddler who rolls in their sleep needs a simple barrier, while an adult who needs help getting in and out of bed requires a sturdier, weight-bearing structure. Both versions share the same core principle: a solid rail securely anchored to the bed frame with no dangerous gaps.

Decide What Type of Rail You Need

Before cutting anything, figure out what the rail actually needs to do. A toddler bed rail is a passive barrier that keeps a sleeping child from rolling off the edge. It doesn’t need to support body weight, so lightweight materials and a simple design work fine. An adult bed rail, on the other hand, often serves as a grab bar for someone sitting up, standing, or repositioning in bed. That means it needs to handle significant lateral and downward force without shifting.

The sizing requirements differ too. For toddlers, federal safety standards require the top of the rail to sit at least 5 inches above the mattress surface. For adults, the rail typically needs to rise 16 to 20 inches above the mattress to provide a useful handhold when sitting up. Measure your specific mattress thickness before you start, because a rail that barely clears the mattress won’t prevent a fall or provide meaningful support.

Materials and Tools

Solid wood is the best choice for a DIY bed rail. Pine or poplar boards are affordable, easy to work with, and strong enough for both toddler and adult applications. For a toddler rail, 1×4 lumber works well for the vertical supports and a 1×3 or 1×4 for the horizontal rail itself. For an adult rail that will bear weight, step up to 2×4 lumber for the uprights and a 1.5-inch hardwood dowel or a shaped 2×4 for the top grab bar.

PVC pipe is sometimes suggested as an alternative, and it does resist moisture and requires no finishing. But for a weight-bearing adult rail, wood provides more rigidity at the connection points. PVC joints can rotate or flex under lateral stress unless heavily reinforced with screws and adhesive, which defeats the simplicity advantage. For a toddler barrier that won’t be grabbed or leaned on, PVC is a reasonable option.

You’ll need a saw (miter saw or circular saw), a drill with bits, wood screws, sandpaper, and wood glue. For attachment, pick up a couple of heavy-duty ratchet straps or nylon webbing with buckles. If you’re building for a toddler, grab some mesh fabric or additional slats to fill the open space in the rail.

Building a Toddler Bed Rail

Start by measuring the section of bed you want to cover. Most toddler rails span about two-thirds of the bed length, leaving a gap at one end so the child can climb in and out. A typical rail for a twin bed runs 30 to 40 inches long.

Cut two vertical support pieces from 1×4 lumber. These should be tall enough that the horizontal rail clears the mattress by at least 5 inches, plus the depth needed to extend below the mattress for anchoring. If your mattress is 8 inches thick, the total height of each upright from bottom to top should be roughly 20 to 22 inches: 8 inches for the mattress depth, about 5 inches hidden between the mattress and box spring for anchoring, and 7 to 9 inches of visible rail above the mattress.

Cut a horizontal rail to your desired length and attach it to the tops of both uprights using wood screws and glue. Pre-drill your holes to prevent splitting. Add a second horizontal piece near the bottom of the uprights to create a rigid rectangular frame. If you want to fill the open space between the two horizontal rails (recommended to prevent a child from sliding through), you can staple mesh fabric across the frame or add vertical slats spaced no more than 2.375 inches apart. That spacing prevents a child’s head from fitting between them.

Sand all surfaces and edges thoroughly. Round over any sharp corners with sandpaper or a router. A child rolling against a sharp edge in their sleep is an injury waiting to happen. Finish with a non-toxic paint or sealant.

Anchoring the Toddler Rail

The bottom portion of the frame slides between the mattress and box spring (or platform). The weight of the mattress and the sleeping child holds it in place. To prevent the rail from tipping outward if a child pushes against it, attach a flat board or plywood plate (about 12 by 18 inches) perpendicular to the bottom of each upright, creating an L-shaped foot that sits flat on the box spring under the mattress. The broader the foot, the more stable the rail.

For extra security, run a strap from the base of the rail frame around or under the bed frame and cinch it tight. Check the strap tension every couple of weeks, since mattress compression can loosen it over time.

Building an Adult Bed Rail

An adult rail is shorter in length (typically 18 to 24 inches) but needs to be much sturdier. It usually sits near the head of the bed where someone grabs it to sit up or swing their legs over the side.

Cut two uprights from 2×4 lumber, each about 24 to 28 inches tall (accounting for the portion that slides below the mattress). Connect them at the top with a 1.5-inch hardwood dowel or a shaped piece of hardwood that’s comfortable to grip. The grab bar should sit 16 to 20 inches above the top of the mattress. Use heavy-duty bolts or lag screws at the joints rather than wood screws alone, since this rail will experience repeated pulling and pushing forces.

Add a cross brace between the two uprights at the midpoint to prevent racking (the frame twisting into a parallelogram shape when force is applied from the side). A diagonal brace from the bottom of one upright to the top of the other adds even more rigidity.

Anchoring for Weight-Bearing Use

The anchoring system matters more here than with a toddler rail. Each upright should have a wide base plate (at least 12 by 24 inches of 3/4-inch plywood) that extends well under the mattress. Screw and glue the base plates to the uprights. Then use heavy-duty straps wrapped around the bed frame itself, not just friction from the mattress weight. Attach the strap to the base plate or the upright using a bolt or heavy-duty D-ring, route it around the bed frame’s side rail or leg, and tighten with a ratchet or cam buckle.

Test the rail before anyone relies on it. Push and pull it firmly in every direction. Sit on the edge of the bed and pull yourself up using only the rail. If it shifts at all, re-tighten or add a second anchor strap.

Eliminating Dangerous Gaps

The single biggest safety concern with any bed rail is entrapment: the risk that someone (especially a child or a frail adult) gets trapped in the gap between the rail and the mattress. Federal safety standards now require commercial adult portable bed rails to pass entrapment testing across multiple zones, including the gap between the rail and the mattress, between the rail and the headboard, and within the rail structure itself.

For a DIY rail, this means you need to actively close those gaps. The space between the inside face of your rail and the edge of the mattress should be either less than 2.4 inches (too small for a head to enter) or completely filled. Foam wedge fillers, which tuck between the mattress edge and the rail, create a flush surface and eliminate the gap entirely. You can buy these or cut dense upholstery foam to fit. Secure the foam to the rail with fabric straps or adhesive-backed hook-and-loop tape so it can’t shift during the night.

Also check the gap between the end of the rail and the headboard or footboard. If it’s between 2.5 and 9 inches, it’s large enough to trap a head or limb but too small for a body to pass through safely. Either extend your rail to within 2 inches of the headboard or leave a gap wider than 9 inches.

Finishing and Maintenance

Sand the entire rail to at least 150-grit smoothness. For a toddler rail, use a non-toxic water-based polyurethane or milk paint, since young children may mouth the surface. For an adult rail, any interior wood finish works. Pay special attention to the grab bar surface: it should be smooth but not slippery. A satin finish provides better grip than a high-gloss coat.

Inspect your rail monthly. Check that all screws and bolts are tight, straps haven’t loosened, and the rail doesn’t wobble. Wood joints can loosen over time with repeated stress, especially on an adult rail that gets pulled on daily. If a joint develops play, disassemble it, apply fresh wood glue, and re-fasten with a slightly larger screw or add a metal corner brace for reinforcement.