20 minutes of exercise can boost a tired brain after a poor night's sleep.
A study asked 24 people to complete maths tests and puzzles both before and after riding a bike while deprived of sleep and it was found that being active improved performance.
The research showed that a brief burst of moderate activity is able to undo some of the cognitive damage that is caused by sleep deprivation.
Experts conclude that while there is no alternative to good quality sleep, those running on empty can keep themselves going by getting hot and sweaty.
Dr. Joe Costello, the study author from the University of Portsmouth, said: "In the short term, some exercise may help both your psychological and cognitive performance.
"However, it will not replace the sleep debt and a daytime nap may be something to consider if possible."