Cocoa beans come from the cacao tree (Theobroma cacao), a small evergreen that grows naturally in the tropical rainforests of South America. Every cocoa bean starts as a seed inside a large, colorful pod that sprouts directly from the trunk or thick branches of the tree. From there, the beans go through fermentation and drying before they resemble anything you’d associate with chocolate.
The Cacao Tree’s Natural Habitat
The cacao tree is native to the upper Amazon basin, where it still grows wild as an understory tree beneath the canopy of taller rainforest species. It typically reaches 4 to 8 meters tall and thrives in warm, humid, shaded conditions. Ancient peoples carried it north into Central America and Mexico long before Europeans arrived. After the Spanish conquest, cacao spread to the Caribbean, West Africa, and Southeast Asia, where it now dominates global production.
Cacao can only grow within roughly 20 degrees north and south of the equator, a belt sometimes called the “cocoa belt.” Most commercial production happens in an even narrower band, within 10 degrees of the equator. The trees need fairly constant temperatures, high humidity, heavy rainfall, nitrogen-rich soil, and shelter from strong wind. That combination of requirements is why cacao farming remains concentrated in a handful of tropical regions rather than spreading to temperate climates.
Inside the Cacao Pod
Cacao trees flower directly on their trunks and main branches, a trait called cauliflory. Only a small fraction of those flowers get pollinated, mostly by tiny midges. The fertilized flowers develop into thick, ridged pods roughly the size and shape of a small football. Depending on climate and tree variety, a pod takes five to seven months to fully ripen after pollination. Most trees produce pods twice a year, though in some equatorial regions pods ripen continuously and can be harvested year-round. In West Africa, the world’s largest producing region, there are typically two harvest windows: a main harvest early in the year and a smaller one around midyear.
Crack open a ripe pod and you’ll find 20 to 40 seeds arranged in rows, each coated in a sweet, white, slippery pulp. These seeds are the cocoa beans, though at this stage they taste nothing like chocolate. They’re bitter, astringent, and pale purple inside. The surrounding pulp plays a critical role in what happens next.
Three Main Varieties
Not all cocoa beans are the same. Cacao is traditionally grouped into three major varieties, each with a distinct flavor profile and history.
- Criollo is the oldest cultivated type, originally grown in Central America and Mexico. It produces beans with complex, mild flavors often described as floral, honey-like, and almond-scented. Criollo trees are lower-yielding and more disease-prone, making their beans rare and expensive. They contain more caffeine and less of the bitter compound theobromine compared to other types.
- Forastero is the workhorse of the cocoa industry, originating in the Amazon basin. It accounts for the vast majority of the world’s cocoa supply. Forastero beans have a stronger, more straightforwardly bitter and nutty flavor, with higher theobromine levels. The trees are hardier and produce more fruit.
- Trinitario is a natural hybrid of the first two, originating on the island of Trinidad. It combines some of the flavor complexity of Criollo with the hardiness of Forastero, and it fills the middle ground in both quality and volume.
How Raw Seeds Become Cocoa Beans
Freshly harvested cacao seeds don’t taste or smell like chocolate. The transformation happens through fermentation. Workers pile the wet beans, still coated in their sugary pulp, into wooden boxes or heaps and leave them to ferment spontaneously. Naturally occurring yeasts and bacteria break down the pulp first into alcohol, then into acetic acid, generating significant heat in the process. The rising temperature and acids penetrate the beans, killing the seed embryo and triggering a cascade of internal chemical reactions. Proteins break down into amino acids, and the precursors of chocolate’s characteristic flavor begin to form.
Fermentation typically lasts about seven days, with the beans turned every 24 hours to ensure even exposure. The exact timing varies by variety. Criollo beans often ferment faster than Forastero. Getting this step right is essential: underfermented beans taste flat and overly astringent, while overfermented beans develop off-flavors.
After fermentation, the beans are spread out to dry, usually on wooden platforms or raised beds under the sun. Drying takes roughly five to six days and reduces the moisture content from around 60% down to 6 to 8%. This low moisture level prevents mold during storage and shipping. Fermentation actually continues during the early hours of drying, further developing flavor. Once dried, the beans are packed into burlap sacks and shipped to chocolate manufacturers, who roast, crack, and grind them into the cocoa products you recognize.
Where Cocoa Is Grown Today
West Africa produces the majority of the world’s cocoa, with Côte d’Ivoire and Ghana leading by a wide margin. Indonesia, Ecuador, Cameroon, Nigeria, and Brazil are also significant producers. The crop remains overwhelmingly a smallholder enterprise: millions of small farms, many under 5 hectares, grow cacao alongside other crops or under the shade of taller trees.
How farmers grow cacao matters for both yield and environmental impact. Full-sun monocultures, where cacao is planted in open fields without shade trees, can produce about 40% higher cocoa yields. But agroforestry systems, where cacao grows beneath a canopy of shade trees alongside fruit or timber species, produce far more total food per hectare (up to 81% more) and carry significantly lower environmental impacts across nearly every measure. The most diverse agroforestry setups can operate without any external fertilizer or pesticide inputs at all. This tradeoff between raw cocoa output and overall sustainability is one of the central tensions in modern cocoa farming.
From Tree to Chocolate Factory
By the time dried cocoa beans arrive at a processing facility, they’ve already gone through their most important transformation on the farm. At the factory, the beans are roasted at carefully controlled temperatures to fully develop the flavor compounds that fermentation set in motion. The outer shell is cracked away, leaving behind pieces called nibs. These nibs are ground into a thick paste called cocoa liquor (which contains no alcohol), and from there the liquor is either pressed to separate cocoa butter from cocoa powder, or blended with sugar, milk, and additional cocoa butter to make chocolate.
Every step from pod to bar matters, but the flavor of any chocolate bar is largely determined long before it reaches the factory. The variety of cacao, the soil and climate where it grew, how long the pods hung on the tree, and how carefully the beans were fermented and dried all leave their mark. That’s why single-origin chocolate from different countries or even different farms can taste remarkably different, even when processed the same way.

