top of page

The science behind brewing the perfect cup of coffee


Coffee, a cherished daily beverage, is a complex interplay of art, ritual, and science. This paper delves into the chemical composition of coffee, investigating its core constituents and the scientific principles governing its preparation. The coffee journey commences with the coffee bean, exploring the intricacies of the two primary species, Arabica and Robusta.

Chemical compounds underpin the unique flavors and aromas that define coffee. Alkaloids, including caffeine and trigonelline, contribute to coffee's bitterness, with robusta beans containing higher caffeine levels. Acids such as quinic, caffeic, and chlorogenic acids shape coffee's acidity, astringency, and bitterness. Sugars, particularly sucrose, transform during roasting into sweeter compounds. Furans, formed during roasting, add malty and sweet notes, distinguishing arabica from robusta.

Dispelling myths, we address the caffeine content in light versus dark roasts and delve into brewing methods as both art and science. Grind size, water quality, and temperature intricacies are explored, each profoundly impacting coffee flavor. Cold brew offers a unique approach, relying on time for extraction.

In conclusion, brewing coffee is a symphony of chemistry where numerous variables converge to craft the perfect cup. This paper seeks to illuminate the chemical intricacies that make coffee a blend of science and art, encouraging coffee enthusiasts to appreciate the chemistry behind their favorite brew. Ultimately, finding the perfect cup is a personal quest guided by science but tailored to one's unique taste, making every sip a delightful journey into the world of coffee's chemistry.

Keywords: Coffee bean, Arabica, Robusta, Alkaloids, Caffeine, Trigonelline, Quinic acid, Caffeic acid, Chlorogenic acid, Furans, Roasting, Brewing methods, Grind size, Water quality, Temperature, Cold brew, Darcy-Forchheimer Law, Pressure methods, Decoction methods, Infusion methods, Sweet notes, Malty notes, Aromatic complexity, Flavor profile.


Coffee is more than just a daily caffeine fix; it's a ritual, an art form, and a science. The official chemical makeup of coffee is 2-3% caffeine, 13% protein, 3-5% tannin, and 10-15% fixed fat. Caffeine is a trimethylxanthine and a purine alkaloid that stimulates the central nervous system (CNS). The major chemical components of coffee include caffeine (C8H10N4O2), chlorogenic acid (C16H18O9), trigonelline (C7H7NO2), and various other organic compounds.

Many coffee enthusiasts have strong opinions about how to make the perfect cup, but separating fact from myth can be challenging. In this article, I’ll delve into the scientific principles behind brewing coffee and explore how various factors, from coffee beans to water temperature, affect the taste of your morning brew.

Coffee beans: it all starts here

Our journey into coffee chemistry starts with the “coffee bean”, which isn't truly a bean but rather the seed of the coffee plant. There are two primary species of coffee beans: arabica and robusta. These beans contain a myriad of chemical compounds that contribute to the rich flavors and aromas we associate with coffee and there distinct flavor profiles.

Understanding coffee compounds

Coffee gets its signature flavors from various chemical compounds present in the beans. These compounds include:

  1. Alkaloids: Caffeine and trigonelline are two prominent alkaloids found in coffee. Alkaloids are naturally occurring organic compounds that contain nitrogen and have distinct pharmacological effects on the human body. They are responsible for the characteristic bitterness of coffee. Interestingly, robusta beans tend to contain more caffeine and are, consequently, more bitter than their arabica counterparts.

    1. Caffeine: Caffeine is perhaps the most well-known alkaloid in coffee. It is responsible for the characteristic bitterness that many coffee drinkers both love and sometimes dislike. A crucial component of coffee's flavor profile is the bitterness that caffeine imparts. Caffeine is a central nervous system stimulant, and it's what gives coffee its reputation as a "pick-me-up" drink. It can increase alertness and reduce the perception of fatigue, which is why many people rely on coffee to start their day. The caffeine content in coffee can vary widely depending on factors like the coffee bean variety and the brewing method. Robusta beans, as mentioned, generally contain more caffeine compared to arabica beans. This higher caffeine content contributes to the more pronounced bitterness found in robusta coffee.

    2. Trigonelline: Trigonelline is another alkaloid present in coffee, and it also contributes to the coffee's bitterness. However, it's worth noting that trigonelline is not as bitter as caffeine. Trigonelline is interesting because it serves as a precursor to one of coffee's most appealing characteristics: aroma. During the roasting process, trigonelline breaks down into various volatile compounds, some of which are responsible for the delightful aroma of coffee. As such, it plays a pivotal role in coffee's overall sensory experience. The alkaloid content in coffee can vary not only between different coffee bean varieties (such as arabica and robusta) but also within the same variety due to factors like growing conditions, altitude, and the specific coffee plant's genetics. These variations contribute to the diverse flavor profiles found in different coffees from around the world. In summary, alkaloids, particularly caffeine and trigonelline, are essential components of coffee that influence its taste, aroma, and stimulant properties. While caffeine is known for its bitterness and energy-boosting effects, trigonelline plays a role in creating the aromatic complexity that coffee enthusiasts appreciate. Understanding the chemistry of these alkaloids adds depth to our appreciation of the coffee brewing process and the nuances of coffee flavor.

  2. Acids: Coffee contains various acids, chemical compounds found naturally that significantly influence its flavor profile. Coffee contains several types of acids, with three of the most notable ones being quinic acid, caffeic acid, and chlorogenic acid.

    1. Quinic acid: Quinic acid is one of the primary acids responsible for lending a sour or acidic taste to coffee. It is found in varying levels in coffee beans, contributing to the overall acidity of the brew. The presence of quinic acid is what gives coffee its perceived brightness and liveliness on the palate. This acidity is often described in terms of its fruitiness or citrus-like qualities, and it adds complexity to the coffee's flavor.

    2. Caffeic acid: Caffeic acid, like quinic acid, contributes to the acidity of coffee but also has a bitter taste. It is responsible for some of the bitter notes in coffee. Caffeic acid is known for its antioxidant properties, which are beneficial for human health. However, in coffee, it can also contribute to the overall bitterness when present in higher concentrations.

    3. Chlorogenic acid: Chlorogenic acid is one of the most abundant acids in coffee. It contributes to the coffee's astringency, which is a dry, puckering sensation in the mouth. Chlorogenic acid undergoes changes during the roasting process. As coffee beans roast, chlorogenic acid breaks down into other compounds, including those responsible for the brown color and roasted aroma of coffee. Robusta coffee beans tend to have higher levels of chlorogenic acid compared to Arabica beans. This is one reason why robusta coffee often has a more astringent and bitter taste profile than arabica coffee. The precise balance and concentration of these acids can vary based on factors such as the coffee bean variety, growing region, altitude, and roasting method. Specialty coffee enthusiasts often appreciate the acidity in coffee as it contributes to its complexity and the unique flavor notes associated with different coffee origins. In summary, acids play a vital role in shaping the taste and sensory experience of coffee. While quinic acid provides brightness and fruitiness, caffeic acid contributes to both acidity and bitterness. Chlorogenic acid, in particular, affects astringency, and its levels differ between coffee bean varieties, contributing to the flavor distinctions between arabica and robusta coffees. Understanding the chemistry of these acids enhances our appreciation of the intricate flavors found in coffee.

  3. Sucrose (sugar): Sucrose is present in coffee beans and adds sweetness to the final cup. During the roasting process, sucrose in coffee beans undergoes thermal decomposition, leading to the formation of several sweeter-tasting compounds. Some of these compounds include:

    1. Glucose: Sucrose breaks down into glucose, which is a type of simple sugar. Glucose contributes sweetness to the coffee's flavor profile.

    2. Fructose: Another simple sugar produced from the breakdown of sucrose is fructose. It is also sweet and adds to the overall sweetness of the coffee.

    3. Caramelization products: As sucrose decomposes, it can undergo caramelization. This chemical reaction results in the formation of various caramel compounds, which are known for their sweet, caramel-like flavors. These compounds can include furans and pyrazines, contributing to the coffee's sweetness and complexity. These sweeter-tasting compounds formed during roasting play a crucial role in enhancing the coffee's overall flavor, providing a pleasant sweetness that balances the bitterness and acidity often associated with coffee.

  4. Furans: Furans are a group of organic compounds that are responsible for many of the desirable flavors found in coffee. These compounds develop during the roasting process and contribute to the rich, aromatic, and complex flavor profile of coffee. Among the various flavor notes attributed to furans, the most notable are malty and sweet notes. During roasting, furans are created when certain precursors, such as carbohydrates and unsaturated fatty acids, undergo complex chemical reactions at high temperatures, which occur during the roasting of coffee beans. This transformation is often associated with the Maillard reaction, a chemical process that gives coffee its brown color and characteristic roasted aroma.

    1. Malty notes: Furans are particularly associated with the development of malty flavor notes in coffee. This includes flavors reminiscent of malted grains, cereals, or even toasted bread. These notes add depth and complexity to the coffee's taste, which is often perceived as warm and comforting.

    2. Sweet notes: Furans also contribute to the sweet notes found in coffee. As coffee beans roast, some of the compounds formed from the breakdown of sugars and amino acids have sweet-tasting properties. These compounds, influenced by furans, can impart a delightful sweetness to the coffee, complementing its overall flavor profile.

One interesting aspect to note is that the levels of furans can vary between different coffee bean varieties. Arabica beans, which are known for their nuanced and diverse flavor profiles, generally contain higher levels of furans compared to robusta beans. This difference contributes to the distinct taste characteristics of these two coffee varieties.

The roast level also has an impact on the extent of furan formation. Darker roasts tend to have more pronounced roasted and malty flavors as the Maillard reaction continues to create furans at higher temperatures. In contrast, lighter roasts may exhibit more subtle and nuanced furan-driven flavors.

In conclusion, furans are a group of compounds that significantly contribute to the flavor complexity of coffee, particularly by adding malty and sweet notes. Their formation during the roasting process enhances the overall sensory experience of coffee drinkers. Understanding the chemistry of furans helps coffee enthusiasts appreciate the diverse and intricate flavors present in their favorite brews, whether they prefer the robust characteristics of a dark roast or the nuanced flavors of a light roast.

Choosing the right bean is crucial to achieving the flavor profile you desire, whether it's caramel and fruity (Arabica) or almondy and bitter (Robusta).

The caffeine myth: light vs. dark roasts

Roasting coffee is where the magic happens. The Maillard reaction, a complex chemical reaction between amino acids and sugars, occurs during this stage. It imparts a delightful brown color and intricate flavors to coffee. Roasting can also affect the solubility of coffee compounds, impacting the final taste.

Some coffee drinkers believe that light roasts contain more caffeine than dark roasts. However, this is a myth. Caffeine content remains relatively consistent during roasting. The perceived difference in caffeine levels may be due to lighter roasts taking up more space, leading to fewer beans being used per cup.

Brewing methods: the art and science

Brewing coffee is a blend of chemistry and physics, where we manipulate water to interact with coffee grounds. Brewing coffee is a combination of art and science, with various methods producing unique results:

  1. Infusion methods: Pour-over and drip brewing allow water to flow over coffee grounds, resulting in a milder flavor, perfect for lighter, fruitier notes.

  2. Decoction methods: Methods like percolator coffee involve boiling the grounds, yielding strong but potentially bitter coffee due to the short contact time.

  3. Pressure methods: Espresso, made by forcing hot water through compacted grounds, offers a deep flavor and creamy texture.

Different brewing methods alter the extraction process, affecting the taste of your coffee, so select one that aligns with your flavor preferences.

Chemistry: fundamental aspects

  1. Finding the right size: Grinding your coffee beans to the correct size is crucial. Coffee grounds that are too fine can lead to over-extraction, resulting in bitterness. On the other hand, coarser grounds may under-extract, leading to a sour taste. Finding the right grind size is essential to achieving the perfect balance.

  2. The Darcy-Forchheimer Law, named after the engineers that developed it, was originally designed to explain how water flows through a column of sand. But it works just as well for coffee! It predicts how water is going to flow over those coffee grounds, depending on factors like the gradient the water's pressure is applied, and it plays a significant role in grind size optimization.

  3. Water quality matters: Water plays a significant role in coffee extraction. You also need to make sure that water has enough bicarbonate in it to keep the acidic components in check. Hard water, rich in ions like magnesium and calcium, can enhance flavor extraction by binding to coffee compounds. Magnesium, in particular, forms strong bonds with coffee molecules, enhancing overall flavor. However, water with too many minerals may lead to overly bitter or astringent coffee. So yes, that one coffee shop boasting about how they triple osmosis filter their water might be doing more to make even less flavorful coffee.

  4. Temperature matters: When water comes into contact with coffee grounds, it extracts soluble compounds. Temperature plays a crucial role. Hot water increases molecular motion, leading to more interaction with the coffee compounds, resulting in a flavorful brew. However, excessively hot water can also extract bitter compounds, so a temperature balance is essential. Ideally, the water temperature should be between 90°C and 96°C (195°F and 205°F). Higher temperatures can extract more bitter compounds, leading to a bitter taste. Lower temperatures may not extract enough flavor. It's a delicate balance that can significantly impact your brew.

  5. Cold Brew is a different approach: Cold brewing is a unique method where time, not temperature, extracts flavor. Cold water slowly draws flavor compounds from the coffee grounds, resulting in a sweeter and less acidic brew.

Conclusion: the perfect cup

Brewing coffee is indeed a chemical symphony, where numerous compounds, temperature, grind size, and water quality converge to create the perfect cup. As a chemist, I find it intriguing how subtle variations in these factors can dramatically alter the coffee's taste and aroma. So, the next time you savor that cup of coffee, appreciate the intricate chemistry behind it. It's a testament to the blending of science and art that has made coffee an integral part of our lives.

In the end, the perfect cup of coffee is the one you enjoy the most. While science can offer insights and guidelines for improving your brew, personal preference should always take precedence. Armed with this knowledge, you can experiment with different beans, brewing methods, and water temperatures to find your ideal cup of liquid gold. After all, a great cup of coffee is a blend of art, science, and your unique taste.

So go ahead and savor your morning brew, knowing that you've uncovered some of the intriguing science behind that rich, aromatic, and sometimes nutty cup of coffee.

Enjoy your brew, and may your appreciation for its chemistry enhance your coffee experience!


Tips for Brewing the Perfect Cup of Coffee

  1. Use fresh, cold water.

  2. Grind your coffee beans to a medium-coarse grind.

  3. Use the correct amount of coffee and water.

  4. Clean your brewing equipment regularly.

  5. Experiment with different brewing methods and coffee beans to find what you like best.


Analytical Procedures

Title: Analytical Procedure for Brewing Coffee

Objective: To prepare a consistently flavored and aromatic cup of coffee.


  1. Fresh coffee beans (whole or ground)

  2. Clean, cold water

  3. Coffee grinder (if using whole beans)

  4. Coffee maker (e.g., drip brewer, French press, espresso machine)

  5. Filter (if using drip brewer)

  6. Coffee scale

  7. Timer

  8. Coffee mug

  9. Spoon or stirring stick

  10. Optional: thermometer


  1. Select high-quality coffee beans: Choose freshly roasted and high-quality coffee beans to ensure the best flavor.

  2. Measure coffee beans: Use a coffee scale to measure the desired amount of coffee beans. A common ratio is 1 to 2 tablespoons of coffee per 6 ounces of water, but adjust to your taste preference.

  3. Grind coffee beans (if needed): If using whole beans, grind them to the appropriate coarseness for your chosen brewing method. Espresso requires a fine grind, while French press needs a coarse grind.

  4. Measure water: Measure the cold, clean water using a coffee scale or a measuring cup. The water quality is crucial, so use filtered or bottled water if possible.

  5. Preheat equipment (if applicable): If your brewing method involves preheating, such as with an espresso machine or pour-over, follow the manufacturer's instructions.

  6. Prepare the coffee maker: Set up your coffee maker according to the brewing method you're using (e.g., insert a filter for a drip brewer).

  7. Add coffee grounds: Place the measured coffee grounds into the coffee maker or brew basket.

  8. Heat water: Heat the measured water to the appropriate temperature for your brewing method. For most methods, water should be between 90°C to 96°C (195°F to 205°F). Use a thermometer to ensure accuracy.

  9. Brew the coffee: Start the brewing process, following the specific instructions for your coffee maker. The brewing time and method may vary (e.g., drip brewing, French press steeping, espresso extraction).

  10. Monitor brewing time: Use a timer to keep track of the brewing time. Over-extraction (brewing for too long) or under-extraction (brewing for too short a time) can affect the flavor.

  11. Serve the coffee: Once the brewing process is complete, carefully pour the brewed coffee into a clean coffee mug.

  12. Taste and adjust (optional): Taste the coffee and adjust the flavor by adding more water or coffee grounds as needed.

  13. Enjoy: Sip and savor your well-brewed cup of coffee.

  14. Clean equipment: Properly clean and maintain your coffee maker and accessories to ensure longevity and consistent results.

By following this analytical procedure for brewing coffee, you can achieve a well-balanced and flavorful cup of coffee tailored to your taste preferences while maintaining consistency in every brew. Adjustments can be made to the procedure based on the specific brewing method and personal preferences.


Agrotec Informe Logo.png
bottom of page