TrackCaffeine

Chocolate and Caffeine: A Comprehensive Guide

By Merey Tleugazin Published November 29, 2025 Updated August 2, 2026 8 min read

A 50 g piece of dark chocolate contains 30 mg of caffeine.

  • 50 g dark chocolate: 30 mg caffeine.
  • 50 g milk chocolate: 10 mg caffeine.
  • 240 ml hot cocoa: 9 mg caffeine.
  • 240 ml mocha (coffee+chocolate): 95 mg caffeine — useful when comparing to coffee.
100 mg · sleep threshold Drip coffee 96 Red Bull (250 ml) 80 Club-Mate 66 Mountain Dew 54 Coca-Cola Diet Coke 46 Dr Pepper 42 Sunkist Orange 41 Pepsi 38 Diet Pepsi 35 Coca-Cola (355 ml) 34 MG OF CAFFEINE PER SERVING
Caffeine per serving for the drinks this page discusses, on one scale, with the 100 mg sleep threshold and the 400 mg daily guidance marked. Free to reuse with a link to this page.

How much caffeine is in common chocolate types?

Dark chocolate

Dark chocolate (dataset value) is the highest among retail chocolate bars: a 50 g serving contains 30 mg of caffeine. Percent cocoa matters — higher cocoa percentage usually increases both caffeine and theobromine, so a 70–85% bar will trend toward the higher end per gram than a 50% bar.

Milk and white chocolate

Milk chocolate (50 g) contains 10 mg of caffeine in the dataset; white chocolate contains negligible cacao solids and is effectively caffeine-free unless the recipe adds cocoa solids or coffee.

Chocolate-flavored drinks and desserts

Hot cocoa (240 ml) contains 9 mg per the dataset — most hot chocolates use cocoa powder, which has far less caffeine than concentrated cocoa solids. Coffee-containing chocolate drinks (mochas, espresso martini) carry far more: a 240 ml mocha is 95 mg and an espresso martini (120 ml) is 65 mg in the dataset because they include brewed espresso.

Cacao beans and processing: where caffeine comes from

Cacao beans naturally contain both caffeine and theobromine. Exact caffeine in raw beans and nibs varies with variety, origin and roast. Published datasets and nutrition databases (including USDA FoodData Central) report wide variability; because beans are concentrated, nibs and pure cocoa powders can deliver more caffeine per gram than sweetened chocolate—but amounts depend on processing and serving size.

Why chocolate bars differ

  • Cocoa solids percentage: more solids → more caffeine and theobromine.
  • Processing: alkalized (Dutched) cocoa may alter alkaloid extraction and flavor but not eliminate caffeine.
  • Serving size: bars, squares and drinking mixes vary and are the simplest reason for different mg totals.

Chocolate compared with coffee, tea and energy drinks

Chocolate contributes caffeine but is usually modest compared with brewed coffee or energy drinks. Below is a compact comparison using dataset values so you can quickly see relative strengths.

Item / servingCaffeine (mg)
Dark chocolate (50 g)30 mg
Milk chocolate (50 g)10 mg
Hot cocoa (240 ml)9 mg
Mocha (240 ml)95 mg
Single espresso (30 ml)63 mg
Drip coffee (240 ml)96 mg
Cold brew (240 ml)200 mg

How long chocolate caffeine stays in your system (decay math)

The population-average caffeine half-life is about 5.7 hours. Rough approximations: after 3 h ≈ 69% remains, after 6 h ≈ 48%, after 9 h ≈ 33%, after 12 h ≈ 23% remains. Use these to estimate mg at later times for planning sleep or tracking intake.

Example: a 240 ml mocha (95 mg) leaves roughly 46 mg after 6 hours and ~22 mg after 12 hours — enough to affect sensitive sleepers.

Item (dose)0 h3 h (~69%)6 h (~48%)9 h (~33%)12 h (~23%)
Dark chocolate (30 mg)30 mg21 mg14 mg10 mg7 mg
Milk chocolate (10 mg)10 mg7 mg5 mg3 mg2 mg
Hot cocoa (9 mg)9 mg6 mg4 mg3 mg2 mg
Mocha (95 mg)95 mg66 mg46 mg31 mg22 mg
Cold brew (200 mg)200 mg138 mg96 mg66 mg46 mg

What affects the number: cocoa percentage, roast, and recipe

Two bars with identical weight can deliver different caffeine: a 70% bar concentrates cocoa solids, so it typically contains more caffeine per gram than a milk chocolate bar. Roasting and grinding determine extractable caffeine; Dutching (alkalization) changes flavor and solubility but does not reliably remove caffeine. Commercial chocolates often blend beans of different origins, smoothing variation.

Health, safety, and timing

Guidelines from authorities: the U.S. Food and Drug Administration (FDA) suggests up to 400 mg/day for healthy adults; for pregnancy many authorities recommend limiting to about 200 mg/day; the American Academy of Pediatrics discourages caffeine for children and adolescents. Chocolate alone rarely reaches high levels, but combined coffee-chocolate drinks or multiple sources can add up quickly.

Practical notes: a single 50 g dark chocolate (30 mg) is small relative to an 8 oz drip coffee (96 mg) or a 240 ml cold brew (200 mg). But a chocolate dessert that also includes brewed espresso (mocha, affogato) can push intake into the hundreds of mg.

Tracking, practical tips and theobromine

If you are sensitive to caffeine or timing sleep, track all sources: bars, hot chocolate mixes, chocolate desserts and coffee drinks. Apps such as CoffeeLog let you add chocolate servings alongside coffee to see daily totals automatically. Remember chocolate also contains theobromine — a related stimulant with milder central nervous effects but a longer duration.

When to avoid: for sensitive sleepers consider stopping chocolate with caffeine at least 6–8 hours before bedtime; for late-afternoon coffee or mocha consider the decay numbers above to judge residual mg at bedtime.

Authorities and data

This guide uses product values from standardized nutrition datasets and compares them to regulatory guidance from FDA, and clinical guidance from organizations such as the American Academy of Pediatrics; USDA FoodData Central is the primary food-value reference for cocoa products. For medical decisions consult a clinician.

How can I combine chocolate and coffee and stay under the 400 mg daily limit?

Yes — you can combine chocolate and coffee and stay under the 400 mg/day guideline by adding the mg values from each item and keeping the total below 400 mg. For example, a 240 ml mocha (95 mg) plus a 50 g dark chocolate bar (30 mg) equals 125 mg total, well under the 400 mg/day advice from the FDA (U.S. Food and Drug Administration).

FDA's healthy adult limit is 400 mg/day.

Practical arithmetic makes this easy: start with the dataset value for each item and add them. Using dataset values, a drip coffee (240 ml) is 96 mg and a cold brew (240 ml) is 200 mg; a mocha (240 ml) is 95 mg and a 50 g dark chocolate is 30 mg, so drip coffee + dark chocolate = 126 mg (96 + 30) and cold brew + dark chocolate = 230 mg (200 + 30). These sums are explicit dataset numbers and let you compare against the FDA 400 mg/day limit; use our caffeine half-life calculator or safe daily limit tool if you want body-weight adjustments.

How can I keep chocolate plus coffee under the 200 mg pregnancy limit?

Limit total caffeine to about 200 mg/day during pregnancy; common chocolate-plus-coffee combinations can remain below that if you choose modest servings. For instance, a 240 ml mocha (95 mg) plus a 50 g dark chocolate bar (30 mg) totals 125 mg, leaving a 75 mg buffer toward the 200 mg/day pregnancy recommendation from EFSA and other authorities (EFSA, 2015).

The pregnancy limit is 200 mg/day.

Use dataset values to check combinations: an espresso (single, 30 ml) is 63 mg and milk chocolate (50 g) is 10 mg, so an espresso + milk chocolate = 73 mg (63 + 10). A Starbucks Caffè Mocha (Grande, dataset entry 473 ml = 175 mg) plus a dark chocolate square (50 g = 30 mg) would be 205 mg and would exceed 200 mg, so choose smaller sizes or skip an additional coffee. Our caffeine pregnancy guide and the NHS advice cited there can help plan choices; log intake with a tracking tool or the site calculator to stay safely under the 200 mg target.

Will baking or heating chocolate reduce its caffeine?

No — ordinary baking and cooking do not reliably reduce the caffeine content of chocolate by a meaningful amount. Caffeine is chemically stable at common cooking temperatures and survives typical baking processes.

Caffeine is a heat-stable alkaloid.

Because caffeine resists decomposition at temperatures used for baking, a 50 g dark chocolate piece that starts at 30 mg (dataset) will retain roughly the same order of magnitude after being melted into batter; losses from dissolution into batter or marginal transfer to a pan are trivial compared with variation between recipes and serving sizes. Manufacturers alter caffeine content mainly by changing cocoa solids, recipe and added coffee—not by heating—so if a recipe uses brewed espresso as an ingredient the brewed coffee contribution is the dominant extra caffeine (espresso shot = 63 mg in the dataset). If you need zero-caffeine desserts, see our caffeine-free hot chocolate and decaffeinated chocolate guides for practical swaps.

How soon before bedtime should I avoid chocolate-containing drinks and desserts?

For most people, stop caffeine-containing chocolate and coffee at least 6 hours before bedtime to avoid measurable sleep loss; the Drake et al. sleep study (2013) found a 400 mg dose 6 hours before bedtime reduced total sleep time by more than an hour. A conservative buffer of 8–10 hours suits sensitive sleepers.

Sleep disruption is measurable reductions in total sleep time and sleep efficiency.

Apply the half-life model (population-average half-life 5.7 hours) to see residual mg at bedtime: a 240 ml mocha (95 mg, dataset) consumed 6 hours before bedtime leaves 95 × 0.5^(6/5.7) ≈ 46 mg remaining; a 50 g dark chocolate (30 mg) consumed 6 hours prior leaves 30 × 0.5^(6/5.7) ≈ 14 mg remaining. Drake et al.'s finding that late-day 400 mg affects sleep is a useful anchor for sensitive sleepers, but individual sensitivity varies; use our last cup before bed tool to calculate personalized cut-off times and the caffeine half-life calculator to see mg left at bedtime.

How does theobromine change the stimulant effects of chocolate?

Theobromine co-occurs with caffeine in cacao and contributes longer-lasting, milder stimulation of the heart and mood without the same strong central alerting effect as caffeine. Because theobromine's subjective effects differ, people can feel chocolate's physiological impact even when caffeine mg are modest.

Theobromine is a methylxanthine related to caffeine.

Theobromine typically outnumbers caffeine in many chocolate products by mass, and although our dataset focuses on caffeine mg, theobromine alters heart rate and vasodilation more than wakefulness; that is why a high-cocoa dark chocolate (30 mg caffeine per 50 g in the dataset) can still produce a noticeable buzz for some people even though the caffeine mg are lower than a cup of coffee. If you track stimulant exposure for athletic or cardiac reasons, include both chocolate and coffee entries in your log and consult our caffeine dosage guide or teenager safety resource for age- and condition-specific advice; for pre-workout timing see our coffee pre-workout guide.

Bottom line

Chocolate adds meaningful caffeine but usually in modest amounts: the dataset lists 50 g dark chocolate at 30 mg and 50 g milk chocolate at 10 mg, while a 240 ml mocha is 95 mg and a 240 ml drip coffee is 96 mg. The FDA and EFSA set a healthy-adult reference around 400 mg/day (FDA, EFSA, 2015), and EFSA/NHS guidance for pregnancy is about 200 mg/day; use the dataset values above to add items and check totals.

For timing, use the population-average half-life 5.7 hours to estimate residual mg: remaining mg = dose × 0.5^(hours/5.7). Examples: a 240 ml mocha (95 mg) leaves ≈46 mg after 6 hours and ≈22 mg after 12 hours; a 50 g dark chocolate (30 mg) leaves ≈14 mg after 6 hours and ≈7 mg after 12 hours. If you must minimize sleep disruption or respect pregnancy limits, pick smaller servings, avoid combined coffee-chocolate drinks late in the day, and use our tools like the half-life calculator and last-cup planner to make precise choices.

Chocolate and Caffeine: A Comprehensive Guide
Chocolate and Caffeine: A Comprehensive Guide

Frequently asked questions

How much caffeine is in dark chocolate?

A 50 g serving of dark chocolate contains 30 mg of caffeine per the dataset. Higher cocoa percentage increases caffeine per gram, so very-dark bars may be slightly higher.

Does white chocolate have caffeine?

White chocolate contains little to no cocoa solids and is effectively caffeine-free unless cocoa solids or coffee are added; it is not a meaningful caffeine source.

How does cacao compare to coffee for caffeine?

Cacao-based foods are far lower per serving: 50 g dark chocolate = 30 mg vs 240 ml drip coffee = 96 mg. Brewed coffee and cold brew deliver far more caffeine per typical serving.

Can chocolate keep me awake at night?

Yes — depending on amount and timing. A mocha (95 mg) leaves ~46 mg after 6 hours and ~22 mg after 12 hours; sensitive sleepers can be affected at these levels.

Is chocolate safe during pregnancy?

Pregnancy guidance frequently recommends limiting caffeine to about 200 mg/day. A 50 g dark chocolate (30 mg) is small relative to that limit, but total daily sources should be counted.

How can I track chocolate caffeine intake?

Track all sources — bars, hot cocoa, desserts, and coffee drinks — and sum mg. Tools such as CoffeeLog make this easier by logging individual servings and computing daily totals.

How much caffeine is in coffee ice cream (100 g)?

A 100 g serving of coffee ice cream contains 30 mg of caffeine according to the dataset.

CoffeeLog · iOS

Track this automatically with CoffeeLog

This site answers the question once. CoffeeLog answers it every day — logging what you drink, showing caffeine fade in real time, and telling you the last cup you can have before it reaches your sleep.

Read next

  1. Black Tea vs Green Tea: Caffeine Content Explainedcomparison
  2. Coffee's Health Effects: Benefits and Potential Risksguide
  3. Packaged Iced Coffee: Caffeine Content Comparisonguide
  4. 15 Delicious Caffeine-Free Drinks at Starbuckslisticle
  5. How Much Caffeine Does It Take to Stay Awake?guide
  6. Monster Energy Drink: Guarana, Taurine, and Ingredient Breakdownguide
  7. Caffeine half-life calculatorCalculator
  8. Last cup before bedCalculator

TrackCaffeine provides general reference information about caffeine. It is not medical advice. Caffeine values are public-source estimates, not exact measurements.

Track caffeine automatically Get the app