DeparturesThe Complete Chemistry And Physics Of Espresso Extraction

Diffusion and Mass Transfer

Espresso extraction chemistry — a brass portafilter chamber with dark coffee droplets, Victorian botanical illustration style.
The Complete Chemistry and Physics of Espresso Extraction

In the last station, we learned that espresso extraction happens in a specific order: fruit acids dissolve first, followed by sugars, and finally bitter compounds. But how do these flavor molecules actually travel from inside a solid coffee ground into your cup? This journey depends on two fundamental physical principles: diffusion and mass transfer.

Roasting coffee uses intense heat to break down cell walls, creating a highly porous structure. When hot water hits the coffee grounds in your espresso machine, it floods into these tiny, microscopic pores. The water dissolves the trapped flavor molecules, turning them into solutes—substances dissolved in a liquid.

Once dissolved, these solutes must find their way out. We can see the physical evidence of this process by looking at spent coffee grounds, which are common lignocellulosic biomass residues, or plant-based waste material left over after brewing . The empty pores in this leftover material are the exact pathways our flavor molecules just traveled through to reach your cup.

Everything in nature wants to spread out. Molecules naturally move from crowded areas, which have a high concentration, to less crowded areas, which have a low concentration. This movement is called diffusion. Fick’s First Law describes this movement when conditions remain stable and unchanging over time.

Think of a crowded commuter train pulling into an empty station. When the doors open, people naturally flow out onto the open platform. The more crowded the train and the emptier the platform, the faster people will move. In coffee, the "crowded train" is the inside of the coffee particle, packed with dissolved sugars and acids. The "empty platform" is the fresh brewing water. This difference in crowding is called the concentration gradient.

Espresso extraction happens very quickly, so conditions do not stay the same for long. As molecules rush out of the coffee ground, the inside becomes less crowded, and the brewing water becomes more crowded. The concentration gradient shrinks as time passes.

In simple terms, Fick’s first law calculates a constant flow of molecules, but Fick’s second law describes what happens in the real world over time . As flavor molecules leave the coffee ground, the inside becomes less crowded, so the escape rate slows down. This is why the first few seconds of an espresso shot are thick and intense, while the end of the shot is thin and watery.

Not all molecules move at the same speed. The speed at which a specific molecule travels through a fluid is measured by its diffusion coefficient, a number representing how easily a substance moves .

Small, light molecules like fruit acids have a high diffusion coefficient, so they zip through water quickly. Large, complex bitter molecules have a low diffusion coefficient, making them move sluggishly. This is why acids extract before bitter compounds. Engineers often change physical structures to improve these rates, such as optimizing the structure of 3D-printed flexible batteries to improve internal movement . We do this in coffee by grinding the beans. By crushing the bean and increasing the surface area, we shorten the distance molecules must travel, which speeds up extraction.

Furthermore, heat plays a massive role. According to the First Law of Thermodynamics, energy is always transferred and conserved . The heat from the brewing water transfers into the coffee grounds, increasing the energy of the water molecules. This heat makes the water molecules bounce around violently, which increases the diffusion coefficient of the solutes and pulls them out faster.

Diffusion only covers the journey from the inside of the pore to the surface of the coffee ground. Once the molecule reaches the surface, it is swept away by the rushing brewing water. This larger movement of material is called mass transfer. While the initial roasting process relies on heat and mass transfer to develop the bean's chemical profile , brewing relies on mass transfer to physically move those chemicals into your cup.

Diffusion gets the flavor out of the pore, but the rushing water carries it away to your cup. In the next station, Hydrodynamics of the Coffee Bed, we will explore exactly how that water flows through the tightly packed espresso puck.

Explore related books & resources on Amazon ↗As an Amazon Associate I earn from qualifying purchases. #ad

Verified Sources

1PubMed Central

Spent Coffee Grounds as an Adsorbent Material for Metal Ions.

Pyrzynska K · 2026 · Materials (Basel, Switzerland)

2OpenAlex

Determination of Diffusion Coefficients Based on Ficks Second Law for Various Boundary Conditions

Christian Wolfrum, H. Lang, H. Moser et al. · 1988 · Radiochimica Acta

4OpenStax

15.1 The First Law of Thermodynamics — 15 Thermodynamics (The AP Physics Collection)

OpenStax · 2015 · OpenStax (Rice University)

5PubMed Central

A preliminary model to establish a digital twin for coffee roasting.

Bruno MJ, Egidi N, Fatone L et al. · 2026 · Scientific reports