Question: how much caffeine keeps you up at night?
Answer: Caffeine has a half-life of about 5 hours. Someone who consumes 40 milligrams (mg) of caffeine will have 20 mg remaining in their system after 5 hours.