The best mattress for a bad back is of medium-firm density. As a result, your back pain will worsen after sleeping on an extremely soft mattress. Instead, for a bad back, a medium-firm is considered the ideal middle ground: not too soft and not too firm.