Humans need roughly one hour of sleep for every two hours they are awake, and the body innately knows when this ratio becomes out of whack.
Very interesting compilation of articles and research about sleep over at Farnam Street.