NutriSeek

Can the caffeine in chocolate affect your sleep?

General nutrition researchAnswered by NutriSeek AI · October 17, 2026

Originally asked: “Can caffeine in chocolate affect sleep?”

Yes, but usually only a little — and mostly if you're caffeine-sensitive or eat dark chocolate late at night. A 1 oz (28 g) square of 70–85% dark chocolate supplies about 22 mg of caffeine (USDA lists 80 mg per 100 g), roughly a quarter of what's in a standard cup of coffee. Milk chocolate has far less.

How much caffeine is actually in chocolate

All figures below come from USDA data, scaled to a typical portion:

Food Portion Caffeine Theobromine
Dark chocolate, 70–85% 1 oz (28 g) ~22 mg ~225 mg
Milk chocolate 1 oz (28 g) ~6 mg ~57 mg
Unsweetened cocoa powder 1 tbsp (5.4 g) ~12 mg ~111 mg
Hot cocoa, homemade 1 cup (250 g) ~5 mg ~170 mg

For reference, brewed coffee typically runs 80–100 mg of caffeine per 8 oz cup. So you'd need to eat roughly four ounces of dark chocolate — about a whole large bar — to match one coffee.

Don't forget theobromine

Theobromine is caffeine's chemical cousin and the main stimulant in cocoa; chocolate contains about ten times more of it than caffeine. It's a much milder stimulant, but it stays in the body longer (its half-life is roughly 7–8 hours, versus about 5 hours for caffeine), and it's a mild diuretic, which can mean extra trips to the bathroom overnight.

The research here is thinner than for caffeine. A few small controlled studies have found that evening theobromine or cocoa can slightly fragment sleep or reduce sleep efficiency, but results are inconsistent and the effects are small. Treat this as suggestive rather than settled.

Who's most likely to notice it

The caffeine-and-sleep evidence overall is strong: caffeine blocks adenosine, the brain chemical that builds up during the day and makes you sleepy. Controlled trials show caffeine taken even 6 hours before bed can measurably shorten and disrupt sleep. Whether chocolate's smaller dose matters depends on:

  • Your sensitivity. People metabolise caffeine at very different rates, partly due to genetics (a liver enzyme called CYP1A2). Slow metabolisers feel small doses more.
  • Total daily caffeine. A square of dark chocolate after an afternoon coffee adds to the same pool.
  • How much you eat. Half a 100 g dark bar is ~40 mg of caffeine — comparable to a cup of tea.
  • Timing. Within 2–3 hours of bed is when it's most likely to register.
  • Other ingredients. Dark chocolate is calorie-dense (598 kcal per 100 g per USDA) and milk chocolate is 52 g sugar per 100 g; a large late-night portion can disturb sleep through heartburn or blood-sugar swings as much as through caffeine.

Practical takeaways

  • A small square of dark chocolate after dinner is unlikely to wreck most people's sleep.
  • If you suspect it does, switch the evening treat to milk chocolate (about a quarter the caffeine) or move dark chocolate to earlier in the day for a week and see whether sleep improves.
  • Children, people with anxiety or reflux, and anyone with heart rhythm problems may be more affected by even modest amounts.
  • If you're pregnant, caffeine limits (commonly 200 mg a day) include chocolate — worth confirming your target with your midwife or doctor. If you take medication that interacts with caffeine (some asthma drugs, certain antibiotics and antidepressants), ask a pharmacist.

Ask next

More in this topic

Health & Conditions

Foods in this answer

Full nutrition facts