The gap between your mattress and headboard is the culprit, and closing it is straightforward. You can fill the space with a foam wedge, fix the root cause by raising your mattress height, or use a simple DIY hack with items you already own. The right fix depends on how big your gap is and whether you want a permanent or quick solution.
Why Pillows Keep Falling Behind the Bed
Before you fix the problem, it helps to understand why the gap exists in the first place. The most common reason is that your mattress sits too low for your headboard. This happens when people use a bed frame without a box spring or foundation, leaving several inches of open space between the top of the mattress and the headboard. If your mattress surface is noticeably below the top of the headboard’s inner edge, that’s your answer.
The second common cause is the bed frame itself drifting away from the wall. Mattresses slide on metal platform beds because there’s very little friction between the mattress bottom and the metal surface. Frames without side rails are especially prone to this. Every time you shift in your sleep, the whole setup can inch forward, widening the gap night after night. Even a centimeter of movement adds up over weeks.
Foam Wedge Gap Fillers
The most popular fix is a foam wedge designed specifically for this problem. These are triangular pillows that sit in the gap between your mattress and headboard, creating a seal that keeps your sleeping pillows from sliding through. Most models fill gaps up to 6 or 7 inches wide and come in standard bed sizes. A queen-size wedge is typically around 60 inches long and 10 inches deep, while king-size versions run about 76 inches.
When shopping for one, you’ll see two main foam types. High-density foam holds its shape better over time and pushes back quickly when compressed. It’s the more durable option for something that takes nightly pressure. Memory foam, by contrast, conforms more closely to the space but can develop soft spots over months of being compressed in the same position. For a gap filler that just needs to stay put and hold firm, high-density foam is the better choice.
Some wedge fillers now come with built-in side pockets for your phone, remote, or glasses. If you’re someone who keeps things on the bed while reading or watching TV, this small feature can be genuinely useful. Most models also have removable, washable covers, which matters since the wedge sits right where dust and skin cells collect.
The Pool Noodle Trick
If you want a fix for under five dollars, a pool noodle works surprisingly well. Wedge one (or two stacked together for larger gaps) between the mattress and headboard, then tuck it under your fitted sheet to hold it in place. The sheet keeps it from shifting and hides it completely.
For a more polished look, you can wrap the noodle in fabric that matches your bedding. Some people use a pillowcase or a strip of matching material secured with safety pins. It’s the same functional result as a commercial wedge filler, just without the precise fit. This works best for gaps under about 3 inches. For anything wider, the noodle compresses too much to be effective.
A rolled-up towel is another zero-cost option. A bath towel rolled tightly and tucked behind the mattress fills a small gap and stays in place reasonably well, though it tends to flatten and shift more than foam does.
Fix the Gap at Its Source
Sometimes the better solution is eliminating the gap rather than filling it. If your mattress looks noticeably low inside the headboard frame, you may simply need a box spring or bunkie board to raise the mattress height. Many modern bed frames are designed to hold both a foundation and a mattress, and using just a mattress alone leaves inches of exposed headboard that create the pillow-swallowing gap. Adding the right foundation can close the space entirely.
If you already have a foundation and the gap is small, try scooting the mattress flush against the headboard. This sounds obvious, but on frames where the mattress sits between the headboard posts, the mattress may not reach the headboard itself. In that case, a body pillow laid horizontally behind your sleeping pillows can bridge the remaining space. It disappears under your regular bedding when the bed is made.
Stop the Bed From Drifting
If your bed slowly creeps away from the wall, no gap filler will be a permanent fix. You need to address the movement itself. EVA foam bumper pads stick to the back of your headboard and press against the wall, preventing the frame from shifting. These come in packs of various thicknesses, typically around 5mm for fine-tuning and 20mm for larger gaps. They also protect your wall from scuff marks and reduce the banging noise some headboards make.
For more aggressive sliding, adjustable threaded bed stoppers screw into the back of the headboard frame and brace directly against the wall. These are small metal or plastic posts that extend between 1 and 5 inches, locking the bed in a fixed position. They’re particularly useful for heavier frames on hardwood or tile floors where the whole bed tends to glide.
Non-slip pads placed under the bed frame’s feet or between the mattress and platform add friction at the points where movement starts. A kit combining foam headboard bumpers with non-slip foot pads addresses both contact points at once.
Choosing the Right Fix for Your Setup
- Gap under 2 inches: A pool noodle under the fitted sheet or a rolled towel will do the job. No need to spend money.
- Gap of 2 to 6 inches: A foam wedge gap filler is your best option. Look for high-density foam and a washable cover.
- Mattress sits visibly low in the frame: Add a box spring, bunkie board, or platform foundation to raise the mattress to the intended height.
- Bed moves away from the wall: Attach foam bumper pads to the headboard back, or use threaded stoppers to brace the frame against the wall.
- No headboard at all: Push the bed frame flush against the wall and place non-slip pads under the feet to prevent drift. A long body pillow against the wall serves as both a buffer and a makeshift headboard.
Most people find that a combination works best. A foam wedge or pool noodle handles the immediate problem, while bumper pads or non-slip feet prevent the gap from reappearing over time.

