Setting up a new mattress should be simple. Then you put the bed together and notice a gap between the mattress and headboard.
That gap is more than annoying. Pillows can slide behind the bed. Phones and remotes can disappear into the space too.
It is easy to blame the bed frame or assume the headboard is the wrong size. Often, the issue is the height of the mattress compared with the bottom of the headboard. If the mattress sits too low, it leaves open space behind the pillows.
Recommended for you
Looking for a bed built with targeted multi-zone support to keep your hips elevated and your spine properly aligned? Check out the ergonomic mattress collection at Emma Colchón.
Why Does the Headboard Gap Happen?
A gap forms when the bottom of the headboard sits higher than the top of the mattress. The bigger the difference, the more space you have behind the pillows.
The mattress is only one part of the setup. The frame and foundation also affect where the top of the mattress ends up.
Thin Mattresses
An 8- to 10-inch mattress can sit quite low on some bed frames. If the headboard was designed for a taller mattress, you may end up with several inches of open space.
This is especially noticeable with a frame that has fixed mounting points. You may not have enough room to lower the headboard.
Thick Mattresses
A thick mattress can cause the opposite problem. A 14- to 16-inch mattress may cover part of the headboard instead of leaving a gap underneath it.
It can also change how the bed feels to use. You may have less room to sit against the headboard. Outlets or switches behind the bed may also become harder to reach.
The Bed Frame Has Moved
Sometimes the mattress and headboard are the right height, but the frame has shifted.
This can happen with lightweight metal frames on smooth floors. Getting in and out of bed can slowly push the frame away from the wall. Even a small movement can make a narrow gap much more noticeable.
If the gap keeps appearing after you push the bed back, check the frame legs and the floor before changing the mattress.
The 3 Measurements You Need Before Buying

Grab a tape measure and write down these three measurements before buying a mattress or headboard.
1. Base to Headboard Bottom
Measure from the surface that supports the mattress to the bottom edge of the headboard panel.
This tells you how high the mattress needs to sit to cover the open space. Do not measure from the floor unless the mattress actually rests at floor level.
If the measurement is 10 inches and your mattress is 12 inches thick, the top of the mattress will sit about 2 inches above that point. The actual result can change if the mattress compresses or if the support surface is different from what you measured.
2. Headboard Mounting Range
Check the mounting points on the back of the headboard or bed frame.
If there are several bolt holes or vertical slots, measure the distance between the lowest and highest positions. This tells you how much adjustment you have.
A few inches of adjustment can be enough to fix a small gap without replacing the mattress.
3. Total Bed Height
Measure from the floor to the top of the mattress after you fully assemble the bed.
Your frame, foundation or box spring, and mattress all add to this height. A mattress that looks suitable on its own can make the finished bed much taller once you add the base.
A useful test is simple: sit on the edge of the bed with your feet on the floor. If getting up feels awkward because the bed is very high or very low, the total height may need adjusting.
There is no single bed height that works for every person. Your height, mobility, and the type of frame all matter.
Mattress Thickness Guide: Which Profile Do You Have?
| Mattress type | Approx. thickness | Common setup | Headboard consideration |
|---|---|---|---|
| Low profile | 8–10 inches | Platform beds, daybeds, and some bunk beds | Check that the headboard is not mounted too high |
| Standard profile | 11–12 inches | Many standard bed frames | Usually gives you more room to work with |
| High profile | 13–16+ inches | Pillow-top mattresses and taller beds | Check that the mattress will not cover too much of the headboard |
These ranges are only a starting point. Mattress thickness varies by model, and the foundation underneath it can change the finished height by several inches.
A 12-inch mattress on a low platform will sit very differently from a 12-inch mattress on a tall box spring.
Recommended for you
Looking for a bed built with targeted multi-zone support to keep your hips elevated and your spine properly aligned? Check out the ergonomic mattress collection at Emma Colchón.
4 Ways to Fix a Bed Gap
If you already have a gap behind your bed, you may not need a new mattress. Start with the simplest fix that fits your setup.
Fix 1: Use a Bed Gap Filler
A bed gap filler is a foam wedge that sits between the mattress and headboard. Push it into the open space so the wider part sits against the headboard.
It gives pillows a solid surface to rest against and stops small items from falling behind the bed.
Measure the gap first. A filler that is too narrow may move around, while one that is too large can push against the mattress.
Fix 2: Lower the Headboard
Check whether your headboard has adjustable mounting holes or slots.
If it does, lower the headboard and tighten the bolts again. The bottom of the headboard should sit close to the top of the mattress without pressing into it.
For a wall-mounted headboard, check the mounting hardware before moving anything. Some brackets allow height adjustment. Others need to be remounted at a different position.
Fix 3: Change the Base Height
If the mattress sits too low, a taller foundation can raise it. If the mattress sits too high, a lower foundation can bring it down.
Measure the change before buying anything. For example, replacing a 9-inch box spring with a 4-inch foundation would lower the mattress by about 5 inches.
Make sure the replacement base is suitable for your mattress. Some mattresses require a particular type of support or spacing between the support points.
Fix 4: Use Firm Decorative Pillows
If the gap is narrow, large firm pillows can help keep sleeping pillows from slipping behind the bed.
Place them upright against the headboard and put your normal sleeping pillows in front. This is a workaround rather than a fix for the height difference.
If the gap is wide enough for pillows or objects to fall through, fixing the bed height is the better option.
Common Mistakes That Create Bed Gaps
1. Forgetting the Base Height
Mattress thickness is only one part of the finished bed height.
An 11-inch mattress on a 9-inch box spring sits much higher than the same mattress on a low platform base. Include the frame, foundation or box spring, and mattress when checking the final height.
2. Ignoring Baseboard Trim
Baseboard trim sticks out from the wall. A bed frame or headboard that reaches the floor can hit this trim and stop the bed from sitting close to the wall.
That can leave a gap behind the mattress even when the mattress and headboard heights seem to match.
Check the back of the frame before assuming the mattress is the problem.
3. Buying the Mattress Without Checking the Headboard
A thick pillow-top mattress can cover part of a headboard that looked fine with a thinner mattress.
Measure the distance from the mattress support surface to the bottom of the headboard before choosing the mattress thickness.
Also check the finished bed height. A thicker mattress may solve a gap while creating a different problem by covering too much of the headboard.
4. Mounting a Headboard on an Uneven Wall
Walls are not always perfectly flat. A wall-mounted headboard can tilt if the mounting points do not sit evenly.
Check the headboard from the side after mounting it. If one part sits farther from the wall than another, adjust the mounting hardware instead of forcing the board flat.
5. Using Soft Pillows to Fill a Large Gap
Soft sleeping pillows are not a good way to fill a large space. They compress under pressure and can slide behind the mattress.
If the gap is several inches wide, fix the height or use a proper bed gap filler instead.
How to Fix It on Different Bed Setups
Example A: Low-Profile Foam Mattress on a Metal Frame
The problem: A 9-inch foam mattress sits low on the frame, leaving a gap below the headboard.
The first thing to check: Look at the headboard mounting slots. If you can lower the headboard, that is usually the simplest option.
If there are no lower mounting points, measure the gap and choose a suitable bed gap filler.
Example B: Thick Pillow-Top on a Box Spring
The problem: A 15-inch pillow-top mattress sits on a 9-inch box spring. The finished bed is so tall that it hides much of the headboard.
The fix: Measure the height of the current base and compare it with a lower foundation. Moving from a 9-inch base to a 4-inch base would lower the mattress by about 5 inches.
Before making the change, check that the lower foundation provides the support your mattress requires.
Example C: Wall-Mounted Headboard on a Smooth Floor
The problem: The headboard stays fixed to the wall, but the bed frame slowly moves away from it.
The fix: Put non-slip pads under the frame legs and check that the frame is sitting squarely. If the frame keeps moving, check whether the floor is especially smooth or the frame is too light for the setup.
A wall-mounted headboard does not stop a separate bed frame from moving.
Pre-Purchase Checklist
Before buying a mattress or headboard, check these four things:
- Measure the headboard gap. Measure from the mattress support surface to the bottom of the headboard panel.
- Add up the bed height. Include the frame, foundation or box spring, and mattress. Do not use mattress thickness as the finished bed height.
- Check what is behind the bed. Make sure the finished bed will not block outlets, switches, windows, or other things you need to reach.
- Check the mounting system. Find out whether the headboard attaches to the bed frame, wall, or floor. Look for adjustable holes or slots before assuming the height cannot be changed.
Conclusion
A gap behind the bed usually comes down to the relationship between three things: the mattress height, the base underneath it, and the headboard position. Measuring those parts before buying anything gives you a much better idea of how the finished bed will look.
If you already have the bed, start with the measurements rather than replacing the mattress. The headboard may be adjustable. The base may be too tall or too short. And if the frame keeps sliding away from the wall, the mattress thickness may not be the problem at all.
The practical takeaway is simple: measure from the mattress support surface to the bottom of the headboard, then check the mounting range and total bed height. Those three numbers tell you far more than the mattress thickness printed on the product listing.
