Doctors usually recommend mattresses that reduce pain to help you sleep comfortably. However, most medical experts agree a mattress alone won’t “fix” longstanding pain. If pain is keeping you up at night, investing in a new mattress might help you sleep better. Your doctor can also make recommendations for treatments, lifestyle changes, and other measures that will decrease your pain over time.