Ages

Now you know how chocolate is made!

What next?

Try it yourself ↓

How is chocolate made?

▶ 5:08 video · Watch on YouTube

  1. 0:00 Start
  2. 0:40 The chocolate tree
  3. 1:27 The secret microbes
  4. 2:15 Roast, crack, grind
  5. 3:12 The snap trick
  6. 4:09 Tree to bar

Your turn

Make chocolate yourself

Make some chocolate!

Each lab is one step from the video. Change things and see what happens.

Each lab isolates one step of chocolate making. The models are simplified to show the idea.

Tap the buttons and see what happens.

1

Rewind the bar

Rewind the process chain

Back to the tree

Slide back one step at a time. What was the bar before it was a bar?

Step back through paste, nibs, fermented beans and pod to the tree.

Slide back. What was the chocolate before?

2

Where can cacao grow?

The cacao belt

Where does it grow?

Drag the little tree around the map. Where can it grow, and where is it too cold?

Drag the sapling: commercial cacao needs warmth and year-round rain within about 20° of the equator.

Move the little tree. Where is it warm enough?

A simplified map: real growing also depends on rain, soil and shade.

3

How many days?

Fermentation time

Watch the beans change

Slide the days. When do the beans turn from purple to brown?

Too short a fermentation leaves grey (slaty) or purple beans; about 5–7 days gives well-fermented brown beans.

Slide it. When do the beans turn brown?

4

Mix your own recipe

Recipe and chocolate type

Mix it up!

Change the liquor, cocoa butter and milk. When do you get dark, milk or white chocolate?

Vary liquor, added cocoa butter and milk solids; white chocolate has no cocoa solids.

Try dark, milk and white!

A simplified model: real recipes also set exact legal minimums.

5

Temper a bar

The tempering curve

Make it snap

Drag the three dots on the curve. Can you make a bar that snaps and shines?

Typical for dark chocolate: melt above ~50 °C, cool to ~27 °C, re-warm to 30–32 °C: only Form V survives.

Tap the buttons. Which bar is shiny?

6

Run the whole line

Process variables and flavour

Your chocolate

Pick fermenting days, roast, recipe and temper. What bar did you make?

Fermentation time, roast level, recipe and temper each change the bar.

Pick and see your chocolate!

A picture of the idea: real flavour also depends on the beans and the farm.

How is chocolate made?

Chocolate comes from a tree! The cacao tree grows in warm, rainy places. Its fruit, called a pod, grows right on the trunk. Inside are seeds in sweet white goo. The seeds are cocoa beans.

1. Tiny helpers

A fresh bean is bitter and purple. Farmers pile the beans in a box under banana leaves. Tiny helpers called yeasts and bacteria eat the sweet goo. The pile gets warm, and the beans change inside. Then the beans dry in the sun.

2. Roast and crack

Next the beans are roasted, like toast. The shells come off, and the broken bits are called nibs.

3. Grind and mix

The nibs are ground into a runny brown paste. Add sugar, and sometimes milk. Then stir, and stir, and stir, until it is smooth.

4. The snap trick

Last, the chocolate is warmed, cooled, and warmed a little again. That trick makes a bar shiny, with a big snap!

Did you know? Long, long ago, people didn't eat chocolate bars. They drank chocolate, and it was bitter, not sweet!

← More explainers

How is chocolate made? The short answer

Chocolate is made from the seeds of the cacao tree, called cocoa beans.2 Farmers ferment the beans for about five to seven days and dry them in the sun.510 A factory then roasts them, cracks off the shells, and grinds the inside bits (nibs) into a runny paste called cocoa liquor.1 Mix that paste with sugar, extra cocoa butter and sometimes milk, grind it very fine, stir it for hours (conching), temper it so it sets shiny and snappy, and pour it into moulds.14

Two of those steps are the real magic, and most people have never heard of them: fermentation, where microbes help create the chocolate flavour, and tempering, where you coax the fat into exactly the right crystal.

Where does chocolate come from?

The cacao tree (Theobroma cacao, Greek for "food of the gods") first grew wild in the lowland rainforests of the Amazon and Orinoco river basins in South America.3 It's a fussy tree that grows in the shady forest understory, needs warmth and rain all year, so it's grown only in a belt within about 20 degrees of the equator.23

Today most cocoa comes from West Africa. Côte d'Ivoire and Ghana together produce nearly 60% of the world's cocoa; the ICCO lists them as the two largest producers.715

CountryShare of world cocoa (2021)
Côte d'Ivoire39.4%
Ghana14.7%
Indonesia13%
Brazil5.4%
Ecuador5.4%

Source: FAO data, summarised in a 2023 review.11

Cacao flowers, and so the pods, grow straight out of the trunk and older branches (botanists call this cauliflory). The tiny flowers are pollinated by midges, flies only a few millimetres long.317 A pod can be up to 35 cm (14 inches) long, ribbed, and yellow, orange, red or purple. Inside are 20 to 60 seeds wrapped in sweet white pulp.3 A tree starts bearing fruit after about four years and can grow up to 70 pods a year.3 Most cacao is grown on small farms of less than two hectares (five acres).3

Step 1: Fermentation, the step you've never heard of

A fresh cocoa bean doesn't taste like chocolate. Cut one open and it's purple and bitter. The chocolate flavour doesn't exist yet. It gets built, starting on the farm.

Farmers pile the beans, still covered in pulp, into heaps, holes or wooden boxes and cover them with banana leaves.2 Then wild microbes move in, in a relay:89

  1. Yeasts eat the sugary pulp and make alcohol. They also make fruity, flowery aroma molecules. A food-science study found that without yeasts, beans never develop proper chocolate character.89
  2. Lactic acid bacteria take over as the pulp drains away.9
  3. Acetic acid bacteria turn the alcohol into acetic acid (the acid in vinegar).9

All this activity heats the pile to about 40–52 °C. The acid soaks into the bean, kills the seed's embryo so it can't sprout, and sets the bean's own enzymes loose. The enzymes chop proteins and sugars into small pieces (amino acids, peptides and simple sugars). These are the flavour building blocks that turn into chocolate flavour when the beans are roasted later.910 Purple pigments also break down into brown ones.10

Fermentation usually takes about five to eight days, depending on the farm.59 Want to know more about the helpers? See how enzymes work and how bacteria reproduce. The same kind of microbe teamwork turns milk into cheese and makes bread rise: see how cheese is made and where yeast comes from.

Step 2: Drying

Next the beans are spread out to dry, usually in the sun. Drying takes their moisture from about 60% down to 7% or less, so they don't go mouldy on their trip to the factory. It takes about 3 days in the dry season and up to 15 days when it's rainy.10

Step 3: Roasting, cracking and grinding in the factory

Roasting. In the factory the beans tumble in a drum roaster at about 110–160 °C. Heat drives the Maillard reaction (the same browning that happens to toast), which turns the flavour building blocks from fermentation into the rich, roasted taste of chocolate.11

Cracking and winnowing. The roasted beans are cracked, and a stream of air blows the light shells away. What's left are crunchy pieces called cocoa nibs.5

Grinding. Nibs are about half cocoa butter. Grinding releases the fat, which melts, and the tiny ground bits float in it as a thick brown paste called cocoa liquor or cocoa mass. Despite the name, it has no alcohol at all: here "liquor" just means liquid, and US food rules define chocolate liquor simply as finely ground cacao nibs.122

What is chocolate made of?

Everything in chocolate comes from the liquor, plus a few extras:45

  • Cocoa butter: press the liquor hard and pale yellow fat runs out. This is cocoa butter.
  • Cocoa powder: the dry cake left after pressing is ground into cocoa powder. (A Dutch chemist, C.J. van Houten, patented this in 1828.)2
  • Sugar, and for milk chocolate milk powder.
TypeRecipeTypical rule of thumb
Dark chocolateLiquor + sugar + extra cocoa butterUsually at least 35% total cocoa content (cocoa solids + cocoa butter)11
Milk chocolateLiquor + sugar + cocoa butter + milk powderAt least about 12–14% milk solids11
White chocolateCocoa butter + sugar + milk (no liquor)At least 20% cocoa butter11
100% chocolateJust liquor (sometimes with extra cocoa butter)No sugar at all

Because white chocolate has no cocoa solids, Britannica notes that it's "technically not a chocolate".4

Step 4: Refining and conching

The mixture is ground again until the solid bits are smaller than about 0.04 mm (40 micrometres). Any bigger and your tongue feels them as grit.11 Then comes conching: big machines stir and air the warm chocolate for anywhere from a few hours to several days. This turns a gritty paste into something silky and smooths out harsh flavours.1

Step 5: Tempering, the secret of the snap

Have you ever melted a chocolate bar in a hot car and let it harden again? It comes out dull, soft and streaky. The ingredients are the same. What changed is the crystals.

Cocoa butter can crystallise in six different forms, named Form I to Form VI.1213 Each one packs its fat molecules differently and melts at a different temperature.5 Only Form V gives chocolate its gloss, its crisp snap and a melting point close to that of your mouth.12

Crystal formMelts at aboutWhat the chocolate is like
I, II17 °C, 21 °CSoft, crumbly, melts too easily
III26 °CFirm, poor snap
IV28 °CFirm, good snap, melts too easily
V34 °CGlossy, firm, best snap, melts in the mouth
VI36 °CHard, takes weeks to form

Melting points from the standard textbook table, as summarised on Wikipedia.14

Tempering is a three-step temperature routine that gets rid of every crystal except Form V:11

  1. Melt above 50 °C, so every old crystal disappears.
  2. Cool to about 27 °C. Crystals start to form, good ones and bad ones.
  3. Re-warm to about 30–32 °C (the exact numbers are typical for dark chocolate; milk and white chocolate use slightly lower ones). The weaker crystals melt, and the Form V crystals survive.

The surviving Form V crystals act as seeds: as the chocolate sets in the mould, the rest of the fat copies their shape. Chocolate makers can also add ready-made Form V seed crystals to melted chocolate, which is how the "seeding" method works at home.1214

Who made chocolate first? A short history

People in Mesoamerica have used cacao for thousands of years. Cacao was cultivated in Mesoamerica more than 3,000 years ago; the Olmec, the Maya and later the Aztecs all used it, and the word kakaw ("cacao") may come from the Olmec.4 Traces of cacao on pottery found in Honduras may date back as far as 1400 BCE.6

For about 90% of its history, chocolate was a drink, not a sweet.6 The Aztecs roasted and ground the beans on a stone, added spices, and whipped it with water into a foamy, bitter drink.2 Cacao beans were so valuable they were used as money. One Aztec document says 100 beans could buy a turkey hen.6 When the drink reached Spain in the 1500s, Europeans found it too bitter and sweetened it with sugar or honey.26

Chocolate bars for eating are new. (Earlier, cacao was pressed into solid cakes, but only to make drinks.) In 1847, the English firm of Joseph Fry mixed cocoa butter back into cocoa and sugar to make a paste that could be moulded into bars. In 1876, Daniel Peter in Switzerland added dried milk to make milk chocolate.26

Who grows our cocoa?

Most cocoa grows on small family farms, and the work is hard. The US Department of Labor estimates that 1.56 million children do child labour on cocoa farms in Côte d'Ivoire and Ghana. A 2020 study by NORC at the University of Chicago for the US Department of Labor found that most of these children do hazardous work, such as using sharp tools or carrying heavy loads.16 The International Labour Organization defines child labour as work that is dangerous, too long, or done by children who are too young, and that gets in the way of school.18 Since 2010, the governments of those countries, the US Department of Labor and the chocolate and cocoa industry have worked together through a group called the CLCCG to reduce it.7 Certification schemes such as Fairtrade and Rainforest Alliance ban child labour on certified farms and run systems to find and help children at risk, though no label can promise a farm is perfect.19

A safety note for pet owners: chocolate is poisonous to dogs. It contains theobromine (plus some caffeine), and dogs clear theobromine from their bodies very slowly. Dark chocolate, baking chocolate and cocoa powder are the most dangerous. If a dog eats chocolate, call a vet.2021

Common misconceptions about chocolate

"Chocolate is made from coca." No. Chocolate comes from cacao (cocoa). Coca is an unrelated plant; only the names sound alike. Chocolate's tree is Theobroma cacao.3
"Cocoa beans taste like chocolate." Fresh beans are bitter and purple. The flavour is built by fermentation microbes and then roasting.811
"Chocolate liquor has alcohol in it." It's just ground cocoa nibs. The word "liquor" here means liquid.1
"Melted chocolate sets the same as before." Without tempering it sets in the wrong crystal forms: dull, soft and streaky.12
"White chocolate is just chocolate with less cocoa." It has no cocoa solids at all, only cocoa butter, milk and sugar.4

FAQ

How is chocolate made, step by step?

Farmers cut ripe cacao pods from the trunk by hand, scoop out the seeds (cocoa beans) in their white pulp and ferment them for about five to seven days, then dry them in the sun. At the factory the beans are roasted, cracked and winnowed to get nibs, which are ground into a paste called cocoa liquor (no alcohol: 'liquor' just means liquid). Some liquor is pressed into cocoa butter and cocoa powder. For chocolate, liquor is mixed with sugar, extra cocoa butter and sometimes milk, ground very fine, conched for hours, tempered, then poured into moulds.

Where does chocolate come from?

Chocolate comes from the seeds of the cacao tree (Theobroma cacao), which first grew wild in the Amazon rainforest. Its flowers and pods grow straight from the trunk, and tiny flies called midges pollinate the flowers. Today it's grown within about 20 degrees of the equator. Côte d'Ivoire and Ghana in West Africa grow nearly 60% of the world's cocoa, according to the US Department of Labor; the ICCO lists them as the two biggest producers.

What is 100% chocolate made of?

100% chocolate is only cocoa beans: ground cocoa nibs (cocoa liquor), sometimes with some extra cocoa butter, which also comes from the bean. There's no sugar or milk, so it tastes very bitter.

Is chocolate made from coca?

No. Chocolate comes from cacao (also called cocoa), a tropical tree. Coca is a completely different plant. The names only sound alike.

What is white chocolate made of?

White chocolate is made of cocoa butter, sugar and milk solids, often with vanilla. It has no cocoa solids (the brown part of the bean), which is why it's pale and why some people say it isn't really chocolate.

What does tempering chocolate do?

Tempering is a heat-cool-warm routine that makes the cocoa butter set in its best crystal shape, called Form V. For dark chocolate it is typically: melt above about 50 °C, cool to about 27 °C, then warm to about 31 °C so only Form V crystals survive (milk and white chocolate use slightly lower numbers). That gives chocolate its shine, its clean snap and its smooth melt. Chocolate that is just melted and cooled sets dull, soft and streaky.

Who made the first chocolate bar?

For thousands of years people in Mesoamerica, including the Olmec, Maya and Aztecs, used cacao, mostly as a frothy, bitter drink; the Aztecs even used the beans as money. Europeans sweetened it with sugar in the 1500s. In 1847 the English firm of Joseph Fry mixed cocoa butter back into cocoa and sugar to make a paste that could be moulded into bars. In 1876 Daniel Peter in Switzerland added dried milk to make milk chocolate.

Is chocolate safe for dogs?

No. Chocolate contains theobromine (and some caffeine), which dogs break down very slowly, so it can make them seriously ill. Dark chocolate, baking chocolate and cocoa powder are the most dangerous. Keep chocolate out of reach, and call a vet if a dog eats some.

Do children work on cocoa farms?

On some farms in West Africa, yes. A 2020 study for the US Department of Labor estimated that about 1.5 million children in Côte d'Ivoire and Ghana do child labour on cocoa farms, much of it hazardous, like using sharp tools or carrying heavy loads. Governments, chocolate companies and certification groups such as Fairtrade and Rainforest Alliance are working to find these children and help families keep them in school.

Did this help it click?

Sources

  1. Britannica, How Is Chocolate Made?
  2. Britannica, Cocoa (food)
  3. Britannica, Cacao (plant)
  4. Britannica, Chocolate
  5. Britannica, Cocoa butter
  6. Smithsonian Magazine, A Brief History of Chocolate
  7. US Department of Labor (ILAB), Child Labor in Cocoa
  8. Ho, Zhao & Fleet (University of New South Wales), Yeasts are essential for cocoa bean fermentation, Int. J. Food Microbiology, 2014
  9. Gutiérrez-Ríos et al., Yeasts as producers of flavor precursors during cocoa bean fermentation, Fermentation, 2022
  10. Unravelling cocoa drying technology: a review of the influence on flavor formation and quality, 2025
  11. Can chocolate be classified as an ultra-processed food? A review on processing, Foods, 2023
  12. Chocolate tempering: a perspective, 2025
  13. Tempering of cocoa butter and chocolate using minor lipidic components, Scientific Reports, 2021
  14. Wikipedia, Tempered chocolate (crystal-form table, citing Beckett)
  15. International Cocoa Organization (ICCO), Growing cocoa
  16. NORC at the University of Chicago, Child labor grows in certain areas of cocoa production (2020 study for the US Department of Labor)
  17. University of Oxford, Plants 400: Theobroma cacao (flowers on trunk, midge pollination)
  18. International Labour Organization (ILO), Child labour
  19. Rainforest Alliance, Certified cocoa (child labour: assess-and-address)
  20. Merck Veterinary Manual, Chocolate toxicosis in animals
  21. ASPCA Animal Poison Control, People foods to avoid feeding your pets
  22. US FDA, 21 CFR Part 163, Cacao products (definitions of cacao nibs, chocolate liquor, white chocolate)