Skip to content
Free calculator · no sign-up

Caffeine calculator

Enter your weight, what you drink and when. You get the pre-workout dose range for your size, how your intake compares with the safe limits, and a decay curve showing how much caffeine is left when you go to bed.

Your inputs are saved in this browser and shared across all calculators.

1 About you

kg
Limits for

2 Your caffeine

mg
×
mg

everything else, in mg

3 Timing

h

Caffeine

—

This dose–
mg caffeine

Per kg of body weight–
Pre-workout range (3–6 mg/kg)–
EFSA single-dose guide200 mg
Total today–
Daily limit–
Left at bedtime–
Drops under 100 mg at–

Caffeine in your system

Decay of this dose after it is absorbed, using your half-life setting. The dot marks bedtime. The dashed line is 100 mg, the single dose EFSA notes can affect sleep in some adults when taken close to bedtime.

Caffeine in common drinks

Typical values. Coffee varies a lot with bean, roast and brew method, and supplements vary by brand, so check the label.

SourceCaffeineServings for 3 mg/kgServings to daily limit

Embed this calculator

Free to use on your website or blog. Paste this code where you want the calculator to appear.

Free forever, no ads inside the widget. Please keep the credit link below the calculator.

Preview

How the caffeine calculator works

It does three things. It scales the sports-nutrition dose range to your body weight, compares what you take with published safety limits, and estimates how much of a dose is still in your blood hours later.

Pre-workout range 3–6 mg × body weight (kg) EFSA guidance single dose 200 mg (about 3 mg/kg) per day 400 mg (healthy adults) per day 200 mg (pregnancy, breastfeeding) Caffeine left dose × 0.5 ^ (hours since dose / half-life) Time to reach X mg half-life × log2(dose / X)

The pre-workout dose

Caffeine is one of the few supplements with consistent evidence for performance. The ISSN position stand reports small to moderate improvements in endurance, strength and sprint work at 3–6 mg/kg, most often taken an hour before training. Response is individual: genetics, habitual intake and anxiety levels all change how a dose feels. More is not better. Around 9 mg/kg, studies report many more side effects and no extra benefit.

Why sports doses and safety limits overlap

For anyone over about 67 kg, even 3 mg/kg is more than EFSA's 200 mg single-dose figure, and 6 mg/kg can pass the 400 mg daily figure by itself. The EFSA numbers mark intakes with no safety concern for the general population, not a point where harm begins. Still, they're a good reason to count your coffee and your pre-workout together, and to use the low end of the range on most days.

Caffeine half-life and sleep

Caffeine is absorbed within about 45 minutes and then cleared at a steady proportional rate. With a 5-hour half-life, half the dose is gone after 5 hours, three quarters after 10. The curve under the calculator shows that decay from the time you took it, and the label shows what's left at bedtime.

Sleep is where caffeine quietly costs lifters the most. Sleep can get shorter and lighter without you noticing any trouble falling asleep. If the bedtime figure is above roughly 100 mg, move the dose earlier, cut it, or train without it. The slider lets you adjust the half-life: move it toward 3 hours if you smoke, and toward 7 or beyond if you use oral contraceptives or know you're a slow metabolizer.

Limitations

Drink values are averages. Lab tests of coffee-shop coffee have found the same order varying two-fold from day to day. The decay model treats the dose as absorbed instantly and ignores other caffeine already in your system unless you add it under "Other caffeine today". Half-life in pregnancy can stretch past 10 hours, beyond the slider's range.

The limits here are for healthy adults. Children and teenagers should have far less. If you're pregnant or breastfeeding, have a heart condition, high blood pressure, an anxiety disorder or reflux, or take stimulant or other prescription medication, ask your doctor what amount is right for you. Pure caffeine powder is dangerous to measure at home and best avoided.

Frequently asked questions

How much caffeine should I take before a workout?

The International Society of Sports Nutrition puts the effective range at 3–6 mg per kg of body weight, taken about 60 minutes before exercise. For a 70 kg person that is 210–420 mg. Benefits may start at around 2 mg/kg, and going past 6 mg/kg adds side effects without adding performance. If you rarely use caffeine, start at the bottom of the range.

How much caffeine is safe per day?

The European Food Safety Authority concluded that up to 400 mg a day from all sources, and single doses up to 200 mg, raise no safety concerns for healthy adults. That is roughly four cups of brewed coffee. During pregnancy and breastfeeding the figure is 200 mg a day. Tolerance differs a lot between people, so some feel unwell at much lower amounts.

How long does caffeine stay in your system?

The half-life in healthy adults averages about 5 hours, with a normal range of roughly 3 to 7. After 200 mg at 4 pm, about 75 mg is still circulating at 11 pm. Smoking shortens the half-life, and pregnancy, oral contraceptives and some medicines lengthen it considerably. It takes around five half-lives, about a day, for a dose to clear almost completely.

When should I stop drinking caffeine before bed?

At least six hours, and earlier for large doses. In one sleep-lab study, 400 mg taken six hours before bedtime still cut sleep by more than an hour, even though participants did not always notice. A simple rule is no caffeine after early afternoon. Use the bedtime row above to see what your own dose leaves behind.

How much caffeine is in a cup of coffee?

A 240 ml (8 oz) cup of brewed coffee has about 95 mg on average, a single espresso about 63 mg and a cup of instant about 60 mg. Coffee shop servings are larger and can reach 200–300 mg. Black tea has around 47 mg per cup, a 250 ml energy drink about 80 mg, and most caffeine tablets 100 or 200 mg.

Sources & further reading

  1. Guest NS, VanDusseldorp TA, Nelson MT, et al. (2021). International society of sports nutrition position stand: caffeine and exercise performance . J Int Soc Sports Nutr 18:1 · doi:10.1186/s12970-020-00383-4
  2. EFSA Panel on Dietetic Products, Nutrition and Allergies (NDA) (2015). Scientific Opinion on the safety of caffeine . EFSA Journal 13(5):4102 · doi:10.2903/j.efsa.2015.4102
  3. Drake C, Roehrs T, Shambroom J, Roth T (2013). Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed . J Clin Sleep Med 9(11):1195–1200 · doi:10.5664/jcsm.3170