A gap between your bed and the wall is a common annoyance—it swallows pillows, phone chargers, and socks, and it makes the bed look unfinished. This guide shows you how to close that gap for good, whether your bed is on a frame, a platform, or just a mattress on the floor. You’ll need a few basic tools and about a couple of hours, depending on the method you choose.
What You’ll Need
- Measuring tape
- Pencil or chalk
- Rubber mallet (or a hammer with a cloth)
- Furniture pads or felt strips (for sliding beds)
- Non-slip rug pad or gripper (for floor mattresses)
- Wood shims or cardboard (for uneven floors)
- Anti-tip wall anchor kit (if you have children or pets)
- Optional: pool noodle or foam pipe insulation (to fill large gaps)
Step-by-Step
- Identify the cause. First, check why the gap exists. Slide the bed toward the wall—does it stop because the headboard hits the wall, or because the frame’s legs are caught on something? Look under the bed for loose screws, bent brackets, or a warped frame. Also check if the floor is level by placing a level or a straight board on the floor near the wall.
- Clear the area. Move the bed away from the wall completely. Remove all bedding, pillows, and anything stored under the bed. This gives you room to work and prevents damage.
- Tighten the frame. Using a screwdriver or wrench, tighten all bolts and screws on the bed frame, especially where the side rails meet the headboard and footboard. A loose frame can cause the bed to shift and create a gap. If any screws are stripped, replace them with slightly larger ones.
- Level the floor. If the floor is uneven, place shims under the bed legs that are lower. Slide a shim under a leg until the bed is level, then trim the excess with a utility knife. For carpeted floors, use a thin piece of plywood instead of shims to avoid sinking.
- Add friction or grip. For beds on hard floors, attach felt furniture pads to the bottom of each leg. These let the bed slide easily but also grip the floor enough to prevent gradual drifting. For a mattress directly on the floor, place a non-slip rug pad under the mattress—this keeps it from sliding away from the wall.
- Push the bed firmly against the wall. With the frame tightened and legs padded, push the bed against the wall. Use your body weight to press the headboard flush. If the headboard has decorative knobs or edges that hit the wall first, you may need to add a small spacer (like a piece of wood) behind the headboard legs to allow the bed to sit closer.
- Secure the bed in place. Once the bed is flush, install an anti-tip wall anchor if you have children or pets. These kits attach the bed frame to the wall stud, preventing the bed from tipping and also preventing it from sliding away. Follow the kit’s instructions—usually you screw a bracket to the wall and attach a strap to the bed frame.
- Fill the gap if it remains. If there’s still a small gap (less than a few inches) because of a curved wall or baseboard, use a pool noodle or foam pipe insulation. Cut it to the length of the bed, then wedge it between the mattress and the wall. This fills the gap without damaging the wall.
- Test the bed. Sit on the edge and lie down. Move around as you normally would. The bed should stay in place. If it slides again, repeat the process—often you need to add more friction or tighten the frame further.
Common Mistakes
- Forgetting to check the headboard. Many beds have a headboard that is wider than the mattress. The headboard hits the wall first, leaving a gap between the mattress and the wall. In that case, you need to adjust the headboard brackets or add a spacer behind the headboard, not just push the whole bed.
- Using a hammer directly on the frame. This can dent or scratch the metal or wood. Always use a rubber mallet or wrap a cloth around a regular hammer.
- Ignoring an uneven floor. If you just push the bed against the wall on a sloped floor, it will slide back within a day. Shimming the legs is essential.
- Overtightening screws. This can strip the threads or crack wooden frames. Tighten until snug, then stop.
- Not securing the bed for safety. If you have small children, a bed that can be pushed away from the wall can trap a child between the bed and the wall. Always use an anti-tip anchor.
Tips
- Place a rubber mat or a piece of carpet under the bed legs on hardwood floors—this adds grip and protects the floor.
- If your bed has wheels, remove them or replace them with locking casters. Wheels are the most common reason beds drift away from the wall.
- For a quick fix, use a rolled-up towel or a pool noodle placed between the mattress and the wall. It’s not permanent but works in a pinch.
- Check the gap after a few nights. Beds often settle and shift as the mattress breaks in. Re-tighten the frame and re-push the bed if needed.
- If you have a platform bed with a solid base, the gap might be due to the mattress being slightly smaller than the frame. In that case, use a mattress pad or a thicker mattress to fill the space.
Troubleshooting
- The bed still slides after a day. This usually means the floor is too slippery. Add more friction—use rubber pads designed for furniture, or place a non-slip rug under the entire bed. If the bed has legs with plastic glides, replace them with rubber ones.
- The headboard is too wide for the wall. If the headboard extends beyond the mattress on both sides, it will hit the wall and leave a gap. You can remove the headboard entirely, or attach a thin piece of plywood to the back of the headboard to extend it so it sits flush with the wall.
- The wall is curved or has a baseboard. Baseboards create a natural gap. You can either remove the baseboard behind the bed (not recommended) or fill the gap with a foam strip. For a curved wall, you may need to use a custom-cut piece of wood to fill the space.
- The frame is bent or broken. If the frame is visibly warped or a leg is broken, no amount of pushing will fix it. You’ll need to replace the frame or the damaged part. Check the manufacturer’s warranty first.
- The bed is too heavy to move. If you can’t push the bed alone, ask someone to help. Alternatively, use a furniture slider under the legs to reduce friction, then push it into place.
- The gap is from the mattress shifting. If the mattress moves on top of the frame, use a non-slip mattress pad or a fitted sheet with elastic straps that go under the mattress corners.
Frequently Asked Questions
- Q: Can I just use a pool noodle to fill the gap? A: Yes, a pool noodle works as a temporary fix. Cut it to length and wedge it between the mattress and the wall. It won’t look perfect, but it will stop items from falling through.
- Q: Will an anti-tip anchor really keep the bed from moving? A: Yes, if installed correctly into a wall stud, the anchor holds the bed frame in place. It’s also a safety feature for children and pets.
- Q: My bed is on carpet—why does it still slide? A: Carpet can be slippery if the bed legs have smooth plastic glides. Replace them with rubber or felt pads, or place a rug gripper under the legs.
- Q: How do I fix a gap caused by a thick baseboard? A: You can remove the baseboard behind the bed, but that’s a big job. Instead, use a piece of foam or a wooden spacer to fill the gap between the mattress and the wall.
- Q: Is it safe to push the bed hard against the wall? A: Yes, but make sure the wall is drywall and not just plaster. Pushing too hard can dent the wall. Use a rubber mallet or your body weight gradually.
- Q: What if my bed frame has a central support leg that hits the wall? A: That leg is meant to be under the bed, not against the wall. If it’s misaligned, loosen the frame, reposition the leg, and tighten again.