Where the idea comes from

Dark roast tastes stronger. It is smoky, bittersweet and heavy, so it is easy to assume it must carry more caffeine. Then a second idea went around in the other direction: that roasting "burns off" caffeine, so light roast must have more. Both stories sound reasonable. Neither holds up as a meaningful difference in your mug.

The flavor of dark roast comes from the roast itself, the browning and breaking down of sugars and other compounds inside the bean. Caffeine is a different story. It is a fairly stable compound, and most of it is still in the bean at the end of a normal roast, light or dark.

What roasting actually changes

If caffeine stays mostly put, why does the answer depend on how you measure? Because roasting changes the bean around the caffeine.

Those three changes are what make the measuring method matter.

By weight vs by scoop

Measured by weight

Weigh out 20 grams of light roast and 20 grams of dark roast. Because the dark beans lost more of their non caffeine mass, caffeine makes up a slightly larger share of what is left. So gram for gram, dark roast comes out slightly higher. The gap is small.

Measured by scoop

Now use a scoop or tablespoon instead. Dark beans are bigger and less dense, so a level scoop holds fewer grams of dark coffee than of light. Fewer grams means a little less caffeine. So scoop for scoop, light roast comes out slightly higher.

That is the whole puzzle. The beans did not gain or lose much caffeine. The way you measure them changed how much coffee went into the brewer.

The comparison in one table

How you compareWhich has more caffeineHow big a difference
Per beanAbout the sameVery small
Per gram (by weight)Dark roast, slightlySmall
Per scoop (by volume)Light roast, slightlySmall
Arabica vs robustaRobustaLarge, roughly twice as much
More coffee in the same waterThe bigger doseLarge, scales with the dose

The last two rows are the ones worth paying attention to.

What really changes the caffeine in your cup

The species of bean

Robusta coffee carries roughly twice the caffeine of arabica as an approximate general figure. That one choice dwarfs any difference from roast level. If a coffee hits harder than you expect, check whether it contains robusta. Our guide to arabica vs robusta covers the rest of the differences.

How much coffee you use

Caffeine scales with dose. Use 30 grams of coffee instead of 20 for the same amount of water and you have roughly half again as much caffeine to extract, whatever the roast. Pouring a bigger mug does the same thing. This is the simplest lever you have.

How you brew it

Brew method, grind and contact time all affect how much caffeine ends up in the cup. A long steep or a finer grind generally pulls out more. Espresso is very concentrated per ounce, but a single shot is small, so a full mug of drip coffee can hold more caffeine in total than one shot.

Want more or less caffeine? Change the dose or the cup size, or choose a coffee with or without robusta. Switching roast level changes the flavor far more than it changes the caffeine.

So which roast should you choose?

Choose on taste. If you like bright, lively coffee, go lighter. If you like bittersweet and heavy, especially with milk, go darker. If you want something in between that suits almost any brewer, a medium roast is the usual answer. Our guide to coffee roast levels explained walks through how each one looks, tastes and brews.