How They Make Chocolate: From Bean to Bar

Chocolate starts as seeds inside a tropical fruit and goes through roughly a dozen steps before it becomes a bar. The process involves fermentation, drying, roasting, grinding, and a series of precise temperature manipulations that transform bitter, astringent seeds into something smooth and complex. Each stage builds on the last, and skipping or rushing any one of them produces noticeably inferior chocolate.

Where Cacao Grows

Cacao trees grow only in a narrow band within about 20 degrees of the equator, with most commercial production concentrated within 10 degrees north and south. The trees need consistent warmth, high humidity, heavy rainfall, nitrogen-rich soil, and shelter from wind. Global production hit roughly 4.7 million metric tonnes in the 2024/25 season. West Africa dominates, with Côte d’Ivoire and Ghana producing the bulk, followed by countries in Southeast Asia and Latin America.

The cacao tree produces large, colorful pods that grow directly from the trunk and main branches. Each pod holds 30 to 50 seeds surrounded by a white, sweet, slimy pulp. Workers split the pods open by hand and scoop out the seeds and pulp together. At this stage, the seeds taste nothing like chocolate. They’re bitter, astringent, and slightly acidic.

Fermentation Develops Flavor

Freshly harvested cacao seeds are piled into wooden boxes or heaped on banana leaves and left to ferment for five to seven days. This is arguably the most important step in the entire process, because it creates the chemical precursors that later become chocolate flavor during roasting.

Microbes in the sugary pulp first convert the sugars into ethanol in an oxygen-free environment, then produce lactic and acetic acids. These acids seep into the beans as the temperature climbs. During the first four days, heat builds steadily through an exothermic phase. By days four through six, internal temperatures stabilize around 45 to 48°C (113 to 118°F), a range that promotes the breakdown of bitter compounds called polyphenols. Those polyphenols oxidize and form larger, insoluble molecules, reducing bitterness and astringency. About 30% of the caffeine-like compounds in the bean are also lost during this stage, simply diffusing out through the shell.

The fermentation temperature matters so much that controlled fermentation, holding temperatures between 45 and 50°C in the later days, is now used to produce finer-flavored beans with less harsh bitterness.

Drying and Shipping

After fermentation, the beans are still too wet to store safely. They need to be dried to a moisture content of 6% to 8% to prevent mold and allow the chemical changes from fermentation to continue developing. In many producing countries, beans are spread on raised wooden platforms or concrete patios and turned regularly in the sun for several days. Some producers use greenhouse-style dryers that speed the process. Once dry, the beans are packed into burlap sacks and shipped to chocolate factories, which are often on the other side of the world.

Roasting Brings Out Chocolate Flavor

Roasting is where the flavor precursors built during fermentation finally become recognizable chocolate flavor. Factories roast cacao beans at temperatures ranging from 250°F up to 350°F for anywhere from 30 to 90 minutes, depending on the bean origin and the flavor profile the maker wants. Craft chocolate makers often pull beans once they reach an internal mass temperature of 245 to 275°F, tasting samples along the way starting around 235 to 240°F.

The Maillard reaction, the same browning chemistry that makes toast and coffee flavorful, drives much of the flavor development. Lighter roasts preserve more of the fruity, acidic notes unique to a bean’s origin. Darker roasts push toward deeper, more traditionally “chocolatey” flavors but can mask the bean’s character.

Cracking and Winnowing

Roasted beans have a thin, papery shell that needs to be removed. Machines crack the beans into pieces, and fans blow away the lighter shell fragments. What’s left are called nibs: small, crunchy chunks of pure roasted cacao. These nibs are the raw material for everything that follows. You can eat them as they are (they taste intensely chocolatey and slightly bitter), but they’re far from smooth.

Grinding Into Chocolate Liquor

The nibs are ground, and because cacao beans are roughly 50% fat (cocoa butter), the friction and heat of grinding eventually turn the solid nibs into a thick liquid called chocolate liquor, or cocoa mass. Despite the name, there’s no alcohol in it. This liquor is the base of all chocolate. At this point, a maker can go in two directions: press the liquor to separate cocoa butter from cocoa solids (used for cocoa powder), or continue refining it into eating chocolate.

For eating chocolate, the liquor is combined with sugar and, for milk chocolate, powdered milk. This mixture then goes through refining, where steel rollers or ball mills grind the particles down to a target of about 20 microns. That number matters because the human tongue can detect any particle larger than roughly 35 microns as gritty. Going below 15 microns, though, creates problems: the particles have so much surface area that the available cocoa butter can’t coat them all, making the chocolate thick and difficult to work with.

Conching Smooths and Polishes

After refining, the chocolate is a dry, crumbly powder. It doesn’t flow, and it still carries sharp, acidic off-flavors, particularly acetic acid left over from fermentation. Conching fixes both problems.

A conche is essentially a large heated mixer that kneads, shears, and aerates the chocolate for hours. The process unfolds in three phases. During the dry phase, the powdery mass is agitated and heated. In the plastic phase, strong shear forces break apart clumps of sugar and cocoa particles that have fat trapped inside them. As those clumps shatter, the fat releases and gradually coats every solid particle, replacing harsh solid-on-solid friction with a smooth, fat-lubricated flow. In the final liquid phase, the chocolate becomes a flowing melt.

Throughout conching, heat and airflow drive off volatile acids. Acetic acid, which tends to concentrate on the surface of cocoa particles, evaporates over time. This is why longer conching generally produces mellower, less acidic chocolate. Industrial conching can run anywhere from a few hours to over 24 hours for premium dark chocolate. The result is a homogeneous, glossy mass with a harmonious flavor and a viscosity low enough to mold.

Tempering Creates the Snap

Cocoa butter is unusual because it can crystallize in six different forms, each with a different melting point and texture. Only one of those forms, called Form V, produces chocolate that is glossy, snaps cleanly, and melts smoothly on your tongue. Form V crystals melt at about 93°F (34°C), which is just below body temperature, giving well-tempered chocolate that satisfying melt-in-your-mouth quality.

Tempering is the process of heating the chocolate to melt all existing crystals, then cooling it in a controlled way to encourage only Form V crystals to form. For dark chocolate, the working temperature is brought down to about 88°F (31°C). Milk chocolate goes slightly lower, around 84°F (29°C), because the added milk fat and sugar shift the crystallization range downward. White chocolate follows a similar pattern at even lower temperatures.

If chocolate isn’t properly tempered, the cocoa butter crystallizes in unstable forms. The result is a bar that looks dull, feels waxy, crumbles instead of snapping, and eventually develops a white, powdery coating called bloom. Bloom isn’t harmful, but it’s a sign the fat has migrated to the surface and recrystallized in the wrong form.

Dark, Milk, and White Chocolate

The differences between chocolate types come down to which components of the cacao bean are included and what’s added. Dark chocolate contains cocoa solids, cocoa butter, and sugar. Milk chocolate adds milk powder or condensed milk. White chocolate contains no cocoa solids at all, only cocoa butter, sugar, and milk.

Regulatory standards vary by country. In the U.S., milk chocolate needs only 10% cocoa solids. In the UK, the minimum is 25%. White chocolate must contain at least 20% cocoa butter in the UK to legally be called chocolate. Dark chocolate has no formal minimum in many countries, but bars typically range from 50% to 100% cocoa solids.

Dutch-Processed Cocoa

When chocolate liquor is pressed to remove cocoa butter, the remaining dry cake is ground into cocoa powder. Natural cocoa powder has a pH of 5 to 6, giving it a sharp, somewhat bitter, reddish-brown character. Dutch-processed cocoa goes through an additional step: the solids are treated with an alkaline solution that raises the pH to a neutral 7. This produces a darker powder with a smoother, milder flavor. The difference isn’t just cosmetic. Natural cocoa is acidic enough to react with baking soda in recipes, while Dutch-processed cocoa is not, which is why baking recipes often specify one or the other.

Molding and Packaging

Once tempered, the liquid chocolate is poured into molds and vibrated to remove air bubbles. As it cools, the Form V crystals set, and the chocolate contracts slightly, making it easy to pop out of the mold. The entire journey from harvested pod to finished bar takes weeks to months, depending on how long the beans ferment, dry, and how the manufacturer schedules production. Most of the flavor you taste in a finished bar was determined long before it reached the factory, in the genetics of the tree, the fermentation, and the roast.