Home › Calculators › Caffeine Calculator

Caffeine Calculator

Count the caffeine in your coffee, tea, cola, energy drinks and chocolate, compare it with the 400 mg daily guideline, and see how caffeine builds up and wears off through the day based on its roughly 5 hour half-life.

Last updated:

Drinks today (number of servings)
×
×
×
×
×
×
×
×
×
mg

Check the label of pre-workouts, pills or specialty drinks.

Timing and limit
hours

0 = all at once.

hours

About 5 h on average; often 2 to 10 h.

mg
Enter your values to see the result.
Advertisement
Advertisement

How to use the Caffeine Calculator

  1. Enter how many servings of each drink you have in a day. Decimals work (0.5 for half a can).
  2. Add other caffeine in mg for anything not listed, such as a pre-workout or a large coffee-shop drink.
  3. Set the time of your first drink, how many hours your drinks are spread over and your bedtime.
  4. Pick a daily limit and adjust the half-life if you know you process caffeine faster or slower.
  5. Press Calculate caffeine to see your total, the share of your limit, the level at bedtime and the 24-hour curve.

How the caffeine calculation works

  • Total caffeine = Σ (servings × caffeine per serving)
  • Caffeine left after t hours from one dose = dose × 0.5t ÷ half-life
  • With several drinks, the remaining amounts from every serving are added together.

Example: two 95 mg coffees at 8:00 and 14:00 with a 5 hour half-life. At 22:30 the first cup has 14.5 hours behind it (95 × 0.52.9 ≈ 13 mg) and the second 8.5 hours (95 × 0.51.7 ≈ 29 mg), so about 42 mg is still in your system at bedtime.

Caffeine in common drinks

Drink or foodServingTypical caffeine
Brewed coffee8 oz / 240 ml95 mg (70 – 140)
Espresso1 oz / 30 ml shot63 mg
Instant coffee8 oz / 240 ml62 mg
Decaf coffee8 oz / 240 ml2 – 5 mg
Black tea8 oz / 240 ml47 mg
Green tea8 oz / 240 ml28 mg
Cola12 oz / 355 ml can30 – 40 mg
Energy drink8.4 oz / 250 ml can80 mg
Energy drink16 oz / 473 ml can150 – 300 mg
Dark chocolate (70 – 85%)1 oz / 28 gabout 23 mg

Values are typical averages; brands differ. The FDA guideline of 400 mg a day applies to healthy adults. Children, teens, pregnant people and anyone with a heart condition or on medication should follow advice from their doctor.

Frequently asked questions

How much caffeine is too much in a day?

The U.S. FDA says up to 400 mg a day is not generally associated with negative effects in healthy adults, which is about four 8 oz cups of brewed coffee. During pregnancy, ACOG and many health agencies advise staying under 200 mg a day. Sensitivity varies a lot from person to person.

What is the half-life of caffeine?

In healthy adults the half-life of caffeine is about 5 hours on average, with a typical range of roughly 2 to 10 hours. Smoking shortens it, while pregnancy, some medicines and liver conditions can make it much longer.

How is the caffeine left in my body calculated?

Each serving decays exponentially: amount left = dose × 0.5^(hours ÷ half-life). The calculator spaces your servings evenly over the hours you enter and adds up what remains from each one. It ignores the 30 to 60 minutes caffeine takes to be absorbed, so it is an estimate.

How much caffeine is in a cup of coffee?

An 8 oz (240 ml) cup of brewed coffee has about 95 mg on average, but it can range from roughly 70 to 140 mg depending on the beans and brewing method. A 1 oz espresso shot has about 63 mg, and large coffee-shop drinks can contain 200 to 400 mg.

When should I stop drinking caffeine before bed?

Because of the long half-life, caffeine from an afternoon coffee is still partly active at night. A study by Drake and colleagues found that 400 mg taken 6 hours before bed still reduced sleep, so many sleep experts suggest a cutoff of 6 to 8 hours before bedtime.

Are the caffeine values exact?

No. The calculator uses typical values from sources such as the USDA food database. Real products vary, so check the label of energy drinks and specialty coffees and enter the amount in the Other caffeine field for a better estimate. This tool is informational and is not medical advice.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Sleep CalculatorFind the best bedtime or wake-up time using 90-minute sleep cycles.Coffee Ratio CalculatorWork out coffee and water amounts for pour over, French press, espresso and more.Water Intake CalculatorHow much water to drink a day, with an hourly drinking schedule.Half Life CalculatorSolve radioactive decay for amount left, half-life, time or initial amount, with a curve.Coffee Brew TimerStep-by-step brew timer for pour-over, Chemex, French press and AeroPress with water targets.Nap CalculatorFind when to wake from a 20-minute power nap or 90-minute nap, plus the best time to nap.Sleep Schedule AdjusterGradually shift your bedtime and wake-up time with a day-by-day plan.Tea Steeping TimerTea timer with green, black, oolong, white and herbal presets, water temperature and re-steeps.Percentage CalculatorWork out percentages, increases and decreases.Percentage Change CalculatorPercent increase or decrease between two values, and reverse.Percentage Difference CalculatorFind the percent difference between two values, with the formula.Ratio CalculatorSimplify, solve and scale ratios with step-by-step working.Proportion CalculatorSolve A/B = C/D for x with cross multiplication steps.Scientific CalculatorTrig, logs, powers and more in your browser.Fraction CalculatorAdd, subtract, multiply and divide fractions with steps.Multiplication Table GeneratorPrintable multiplication charts up to 30 × 30, single tables and practice sheets.Times Tables PracticeTimed times tables drills with a number pad, streaks and an accuracy heatmap.Fraction VisualizerInteractive fraction circles and bars: equivalents, comparing, adding and simplifying.Number Line GeneratorDraw number lines with any range, fractions or decimals, points, jumps and inequalities.Significant Figures CalculatorCount sig figs, round to any number of significant figures and do arithmetic with sig fig rules.Scientific Notation ConverterConvert numbers to and from scientific, engineering and E-notation, with exact digits and SI prefixes.Percent Error CalculatorPercent error between experimental and theoretical values, for one result or several trials.Rounding CalculatorRound to decimal places, significant figures or the nearest 10, 100 or 0.5, any rule.Long Division CalculatorDivide with quotient, remainder, decimals and a step-by-step long division layout.Cube Root CalculatorFind cube roots and nth roots, check perfect cubes and simplify radicals.2-Stroke Oil Mix CalculatorHow much 2-stroke oil to add to gas for 50:1, 40:1, 32:1 and more, in fl oz or ml.Math Worksheet GeneratorCreate printable addition, subtraction, multiplication and division worksheets with answer keys.Simplify Fractions CalculatorReduce any fraction to lowest terms with GCD steps, mixed number, decimal and equivalents.Complex Number CalculatorAdd, subtract, multiply, divide complex numbers; polar form, modulus, argument, powers and roots.Big Number CalculatorExact + − × ÷ mod and powers for huge integers with hundreds of digits, plus digit count.Three-Phase Power CalculatorkW, kVA and kVAR from volts, amps and power factor, or three-phase current from kW or kVA.Compression Ratio CalculatorStatic engine compression ratio from bore, stroke, chamber, gasket, deck and piston volume.Expanded Form CalculatorWrite any number or decimal in expanded form, word form and a place value chart.Mixed Number CalculatorAdd, subtract, multiply and divide mixed numbers, or convert improper fractions, with steps.Nth Root CalculatorAny root of any number: real nth root, simplified radical and all complex roots.Long Multiplication CalculatorMultiply whole numbers or decimals with the column method shown digit by digit.Matrix Multiplication CalculatorMultiply matrices up to 8×8 with every dot product shown, exact fractions and a size check.Order of Operations Calculator (PEMDAS)Solve arithmetic expressions step by step with PEMDAS/BODMAS, brackets, powers and fractions.Number Properties CalculatorIs it prime, perfect, square, triangular or Fibonacci? See every property of a number.Paper Tape CalculatorAdding machine calculator with a running paper tape: edit entries, subtotals, notes, print or export.Pi Digits CalculatorCalculate π to up to 100,000 digits, find any number or your birthday in pi, and download it.PSAT Score CalculatorEstimate your PSAT/NMSQT section scores, total score and National Merit Selection Index.Rational Expressions CalculatorSimplify, add, subtract, multiply and divide rational expressions with excluded values.Rationalize the Denominator CalculatorRemove square roots and cube roots from a denominator, with conjugates and full steps.Reverse Percentage CalculatorFind the original value before a percentage increase or decrease, or the whole from a part.Riemann Sum CalculatorLeft, right, midpoint and trapezoid sums of f(x) on [a, b] with a table and rectangle graph.Sum CalculatorPaste any list or column of numbers to get the total, count, average, min and max instantly.Unit Rate CalculatorFind the unit rate (per 1) from two quantities, compare rates and see the steps.Virtual Base Ten BlocksDrag ones, rods, flats and cubes onto a place value mat to model regrouping, addition and subtraction.Compare Fractions CalculatorCompare two or more fractions with <, > or = and put them in order, with steps.Equivalent Fractions CalculatorList equivalent fractions, check if two are equal, or find a missing number, with bars.Map Scale CalculatorConvert map distance to real distance and back for scales like 1:24,000 or 1 in = 1 mi.Math Formulas Cheat SheetSearchable algebra, geometry, trig, calculus and statistics formulas with a printable sheet.
See all 46 Arithmetic & Number Calculators →