Extended daytime and nighttime activities are major contributors to the growing sleep deficiency epidemic1,2, as is the high prevalence of sleep disorders like insomnia. The consequences of chronic insufficient sleep for health remain uncertain3. Sleep quality and duration predict presence of pain the next day in healthy subjects4–7, suggesting that sleep disturbances alone may worsen pain, and experimental sleep deprivation in humans supports this claim8,9. We demonstrate that sleep loss, but not sleep fragmentation, in healthy mice increases sensitivity to noxious stimuli (referred to as ‘pain’) without general sensory hyper-responsiveness. Moderate daily repeated sleep loss leads to a progressive accumulation of sleep debt and also to exaggerated pain responses, both of which are rescued after restoration of normal sleep. Caffeine and modafinil, two wake-promoting agents that have no analgesic activity in rested mice, immediately normalize pain sensitivity in sleep-deprived animals, without affecting sleep debt. The reversibility of mild sleep-loss-induced pain by wake-promoting agents reveals an unsuspected role for alertness in setting pain sensitivity. Clinically, insufficient or poor-quality sleep may worsen pain and this enhanced pain may be reduced not by analgesics, whose effectiveness is reduced, but by increasing alertness or providing better sleep.