What’s in Coffee? Caffeine, Tannic Acid & Key Compounds
Ever wondered why your coffee tastes bitter, smells rich, or gives you that jolt of energy? It’s not just about the roast or origin—it’s the complex mix of chemical compounds inside each bean that creates the flavors, aromas, and effects you love (or tolerate) every morning. If you’ve ever sipped a bitter brew or noticed your coffee losing flavor over time, the answer lies in what’s actually in it.
Coffee contains seven major chemical components: caffeine, tannic acid, fats, proteins, sugars, minerals, and crude fiber. These determine everything from the bitter kick to the aroma and even how long your coffee stays fresh. Caffeine alone makes up a small but powerful part of the mix, while tannic acid and fats shape taste and smell. Understanding these compounds helps explain why coffee behaves the way it does.
Caffeine: The Stimulant Powerhouse
Caffeine is the most talked-about compound in coffee. It belongs to the group of plant xanthines (like theobromine in cocoa and theophylline in green tea) and barely breaks down during roasting. This compound affects nearly every part of your body—your brain, heart, blood vessels, muscles, and kidneys. In moderation, caffeine stimulates the cerebral cortex, improving sensory perception, memory, and mood. It also boosts heart activity, dilates blood vessels, enhances circulation, and speeds up metabolism. Additionally, caffeine reduces muscle fatigue and stimulates digestive fluid production. Its diuretic effect helps flush excess sodium (which hinders water metabolism) from your system, meaning caffeine doesn’t linger like other stimulants—it’s typically excreted within about two hours. And yes, caffeine is the main reason your coffee tastes bitter.
Tannic Acid: Flavor and Freshness Foe
Tannic acid, when refined, turns into a light yellow powder that dissolves easily in water. But when boiled, it decomposes into quinolone, which worsens coffee’s flavor. Even worse, if brewed coffee sits for hours, its color darkens and the taste becomes dull—that’s why coffee aficionados insist on drinking it fresh. Tannic acid contributes to the astringency in coffee, and its breakdown over time is a key reason freshness matters so much.
Fats, Sugars, and Other Key Players
Fats in coffee play a huge role in flavor. Analysis shows coffee contains various fats, primarily acidic fats (whose strength varies by coffee type) and volatile fats (the main source of aroma). Once roasted coffee beans are exposed to air, these fats undergo chemical changes that degrade both flavor and scent. Proteins, meanwhile, are a calorie source, but most don’t dissolve in drip coffee—meaning you’re not getting much nutrition from your cup, which is why coffee is often favored by those watching their calorie intake. Sugars in coffee create a natural sweetness (even without added sugar), but most convert to caramel during roasting, giving coffee its signature brown color. Minerals like lime, iron, sulfur, sodium carbonate, phosphorus, chlorine, and silicon make up a tiny portion of coffee’s makeup, contributing only slight astringency. Crude fiber, which carbonizes during roasting, interacts with caramelized sugars to shape the coffee’s color—but powdered fiber can negatively impact flavor, which is why pre-ground or powdered coffee isn’t ideal for tasting the full profile.
The Science of Roast: Flavor, Aroma, and Balance
The color, aroma, and taste of coffee are the result of complex chemical reactions during roasting. To achieve the best roast, green beans must undergo precise chemical changes to balance their key compounds. Coffee’s aroma shifts with heat, so roasting time should be minimized, and temperatures kept as low as possible while still triggering the necessary chemical reactions. This ensures the optimal balance of compounds in the shortest time possible. The aroma of coffee is its lifeblood, reflecting the production process, roast technique, climate, altitude, bean variety, processing method, harvest, storage, and even the roaster’s skill. Chromatographic gas analysis reveals that coffee aroma consists of hundreds of volatile compounds, including acids, alcohols, aldehydes, ketones, esters, sulfur compounds, phenols, and nitrogen compounds. Fats, proteins, and sugars are major contributors to aroma, with lipids balancing the coffee’s acidity and bitterness for a smooth taste. When aroma fades, quality does too—the link between scent and quality is undeniable.
Chemical Composition of Green Coffee Beans
Here’s a breakdown of the key chemical components in raw coffee beans:
| Component | Content (%) |
|---|---|
| Carbohydrates | 60.0 |
| Reducing Sugar | 1.0 |
| Sucrose | 7.0 |
| Pectin | 2.0 |
| Starch | 10.0 |
| Pentosan | 5.0 |
| Hemicellulose | 15.0 |
| Cellulose | 18.0 |
| Lignin | 2.0 |
Frequently Asked Questions

What is the main stimulant in coffee and how does it affect the body?
Caffeine is the primary stimulant in coffee. It affects the brain, heart, blood vessels, muscles, and kidneys. It stimulates the cerebral cortex, improving senses, memory, and mood, while increasing heart activity, dilating blood vessels, and boosting metabolism. Caffeine also reduces muscle fatigue and aids digestion. It’s diuretic, helping flush excess sodium, and is typically excreted within about two hours.
Why does coffee taste bitter and how is bitterness created?
Bitterness in coffee is mainly caused by caffeine. This compound is a plant xanthine that remains stable during roasting, contributing significantly to coffee’s characteristic bitter taste.
What role do fats play in coffee flavor and freshness?
Fats are crucial for coffee’s aroma and flavor. Volatile fats are the main source of coffee’s scent, while acidic fats vary by bean type. However, once roasted beans are exposed to air, fats chemically break down, leading to flavor and aroma loss. That’s why coffee loses its freshness quickly.
Does coffee contain sugar, and how does roasting affect it?
Yes, coffee contains natural sugars that provide subtle sweetness. During roasting, most sugars convert to caramel, which gives coffee its brown color and enhances its flavor profile. This is why roasted coffee tastes less sweet than unroasted but develops richer complexity.
Why is it important to drink coffee soon after brewing?
Tannic acid in coffee breaks down when brewed coffee is left standing, producing quinolone, which worsens the taste. The coffee also darkens in color and loses aroma. For the best flavor, it’s recommended to drink coffee shortly after brewing.
What minerals are found in coffee and how do they affect taste?
Coffee contains trace minerals like lime, iron, sulfur, sodium carbonate, phosphorus, chlorine, and silicon. These make up a small portion of the bean’s composition and contribute only slight astringency to the overall flavor.
Recommended FrontStreet Beans for Exploring Coffee Chemistry
Try FrontStreet Coffee’s Ethiopia Huakui for bright acidity and floral notes, Yirgacheffe for citrus and berries, or PWN Golden Mandheling for classic earthy richness with low acidity. Each highlights different compounds—like sucrose, acids, and fats—that shape flavor. Freshly roasted within 5 days · Orders placed before 17:00 ship the same day · Next-day delivery across most of Guangdong Province.
FrontStreet Coffee is a long-established specialty coffee roaster in Guangzhou China, selling freshly roasted beans from its own farm in Yunnan as well as dozens of carefully selected single-origin beans from around the world for both pour-over and espresso. The products deliver consistently excellent quality and great value, with shipping within 24 hours. Guangzhou's FrontStreet Coffee shop is recommended by many coffee lovers, and the beans are now available online at the Tmall 。
Important Notice :
前街咖啡 FrontStreet Coffee has moved to new addredd:
FrontStreet Coffee Address: 315,Donghua East Road,GuangZhou
Tel:020 38364473
