What Chemicals Are in Coffee and What They Do

A single cup of coffee contains over 1,000 chemical compounds, ranging from caffeine and antioxidants to acids, oils, aroma molecules, and trace minerals. Some of these chemicals are present in the raw bean, while others form only during roasting, when high heat triggers a cascade of reactions that transform the bean’s sugars, proteins, and acids into entirely new substances.

Caffeine and Other Alkaloids

Caffeine is the compound most people associate with coffee, and it’s remarkably stable. Roasting reduces caffeine content by only about 2.5%, meaning most of what’s in the green bean survives the heat. A standard 8-ounce cup of drip coffee delivers roughly 95 mg of caffeine, while a single 1-ounce espresso shot contains about 63 mg. Cold brew tends to pack the most punch, often exceeding 150 mg per 8-ounce glass due to its long steeping time. Robusta beans carry nearly double the caffeine of Arabica beans, so the species matters as much as the brewing method.

Trigonelline is the second most abundant alkaloid in coffee, present at about 0.84 g per 100 g in roasted beans. It contributes to coffee’s bitter flavor, but its more interesting role happens during roasting: at temperatures near 200°C, a portion of trigonelline converts into niacin (vitamin B3). Lightly roasted coffee contains about 10 mg of niacin per 100 g, while a dark Italian roast can contain up to 40 mg per 100 g. That means a few cups of dark roast coffee can contribute meaningfully to your daily B3 intake.

Chlorogenic Acids: Coffee’s Main Antioxidant

Chlorogenic acids are the most abundant phenolic compounds in coffee and the primary source of its antioxidant activity. Green coffee beans contain about 4.2 g per 100 g, but roasting cuts that by roughly 54%, leaving around 1.9 g per 100 g in the roasted product. Even after that steep decline, chlorogenic acids remain one of the most concentrated antioxidants in the Western diet simply because people drink so much coffee.

Inside the body, chlorogenic acids work through several pathways. They help reduce the production of harmful reactive oxygen species, which are linked to inflammation and high blood pressure. They also influence blood sugar by slowing glucose absorption in the intestine and improving how cells respond to insulin. These mechanisms are a major reason coffee consumption is consistently associated with lower rates of type 2 diabetes in large population studies.

Organic Acids and Coffee’s pH

Coffee is mildly acidic, with a pH that typically falls between 4.0 and 4.3 depending on how dark it’s roasted. Lighter roasts are more acidic (around pH 3.97), while darker roasts drift closer to pH 4.25. That difference is small on paper but noticeable on the palate, and it comes down to shifts in the specific acids present.

Chlorogenic acid and quinic acid are the two most abundant, each present at concentrations of 0.6 to 0.8 mg/mL in a brewed cup. Citric acid sits in the middle range at 0.2 to 0.5 mg/mL, and it’s the one most responsible for the bright, tangy flavor some people love in lighter roasts. As roasting intensifies, citric and malic acid levels drop while quinic, acetic, and lactic acid levels rise. This is why dark roasts taste less bright and more flat or bitter. Quinic acid, which increases with darker roasting, is also thought to contribute to the stomach discomfort some people experience after drinking coffee.

Oils and Diterpenes

Coffee beans contain a lipid fraction that makes up roughly 10 to 15% of the roasted bean’s weight. Within that fat, two compounds stand out: cafestol and kahweol. These are diterpenes found exclusively in coffee, and they have a direct effect on cholesterol levels. Cafestol reduces the number of LDL receptors on liver cells by about 35%, which means the liver clears less “bad” cholesterol from the bloodstream. The result is higher circulating LDL cholesterol and triglycerides.

Here’s where brewing method becomes important. Boiled, French press, and Turkish-style coffees retain these oils because there’s no paper filter to trap them. Studies have confirmed that consuming unfiltered coffee raises serum cholesterol, while filtered coffee has little or no effect. If you drink several cups a day and your cholesterol is a concern, the filter matters more than the bean.

Aroma Compounds

The rich smell of coffee comes from a complex mix of volatile organic compounds, with researchers identifying well over 800 distinct molecules in roasted beans. The two dominant families are pyrazines and furans, each contributing different notes to the aroma profile.

Pyrazines produce nutty, roasted, and earthy aromas. The most abundant include 2-methylpyrazine, 2,5-dimethylpyrazine, and 2-ethylpyrazine. These form during the Maillard reaction, where amino acids and sugars react under heat. Furans contribute sweet, caramel-like, and slightly bready notes. Compounds like 2-acetylfuran, furfural, and 5-methylfurfural are common in this group. A third family, guaiacols, adds smoky and spicy undertones that intensify with darker roasting.

Brewing method affects which of these volatiles end up in your cup. Cold brew, for instance, tends to extract higher concentrations of pyrazines and furans compared to espresso, giving it a sweeter, nuttier aroma profile. Even the type of water you use makes a difference: filtered water produces measurably higher levels of certain pyrazines than tap or bottled water.

Minerals and Vitamins

Black coffee isn’t a nutritional powerhouse, but it does carry modest amounts of several minerals. An 8-ounce cup provides about 116 mg of potassium (roughly 2 to 3% of the daily recommended intake), 7 mg of magnesium, and a trace amount of manganese. For someone drinking three or four cups a day, the potassium in particular starts to add up to a meaningful dietary contribution.

Combined with the niacin generated during roasting, this means coffee delivers small but real amounts of micronutrients alongside its more headline-grabbing compounds.

Contaminants From Processing

Two unwanted chemicals deserve mention: acrylamide and ochratoxin A.

Acrylamide forms when sugars and amino acids react at high temperatures, and it’s present in all roasted coffee. Light roast coffee contains the least, around 94 µg/kg, while fast-roasted dark coffee can exceed 400 µg/kg, the EU’s benchmark level. Slow roasting reduces acrylamide by about 35% compared to fast roasting at the same darkness level. In practical terms, the amount of acrylamide in a cup of coffee is quite small relative to other dietary sources like fried potatoes and toasted bread, but it’s a chemical that’s present and worth knowing about.

Ochratoxin A is a mycotoxin produced by mold that can grow on coffee beans during storage. Testing of commercial coffees routinely detects it, with one study finding it in 82% of samples tested. However, concentrations almost always fall well below regulatory limits, which the EU recently tightened to 3 µg/kg for roasted and ground coffee. Even at high consumption levels of three cups per day, estimated daily intake remains far below thresholds considered harmful.