
Sleeping soon after you learn something helps you remember it. In a 2012 study, people who learned word pairs in the evening and slept soon afterwards remembered more 24 hours later than people who learned them in the morning and spent the day awake first.
The study was led by Jessica Payne of the University of Notre Dame, with colleagues including Robert Stickgold of Harvard Medical School. Volunteers learned pairs of words at 9 am or 9 pm. Twelve hours later those who had slept remembered more, mainly because a day awake had worn away memory for pairs of unrelated words, which are harder to link in the mind. After 24 hours everyone had had one night's sleep and one day awake, only in a different order, and those who slept soon after learning still remembered more. Memory also faded more slowly across a day awake when a night's sleep had come first, which suggests that sleep steadies new memories against the interference of waking life. It is one reason sleep researchers advise against giving up sleep to cram for an exam.

