Your memory could suffer
If you have trouble sleeping on an old mattress, your memory could also suffer. Dr. Siegel says one of the functions of sleep is memory consolidation. And if you’re uncomfortable at night due to an old mattress, that isn’t happening to the optimal extent.
The REM sleep stage is specifically known to help us retain information. One study had two groups of people perform the same task. Half of the group was then allowed to sleep before completing the task again. Those who slept were able to complete the task better the second time since they retained the prior information better.