Science reveals how to craft the perfect chocolate flavor
New research reveals how temperature, pH, and microbes shape chocolate flavor during fermentation.

Researchers from the University of Nottingham have uncovered how microbes, temperature, and pH combine to shape chocolate flavor—offering a way to standardize and improve the fermentation process. (CREDIT: CC BY-SA 4.0)
Chocolate is more than a sweet treat. Its rich taste begins long before the beans are roasted or molded into bars. A key part of that journey is fermentation, the natural process that gives cocoa its signature flavor. Now, researchers at the University of Nottingham have found a way to control this step, which could help chocolate makers craft better-tasting bars every time.
Most chocolate starts with cocoa beans fermented on tropical farms. Workers pile beans into boxes or heaps, where bacteria and fungi break down the beans over several days. These microbes transform the beans’ sugars and acids into compounds that create chocolate’s unique flavor. But because this process relies on wild microbes from the environment, the flavor changes from farm to farm—and even batch to batch.
Dr. David Gopaulchan from the School of Biosciences told The Brighter Side of News, “Once cocoa pods are harvested, the beans are usually left to ferment right on the farm, where naturally occurring microbes break them down in piles, baskets, or wooden boxes.” In these setups, farmers have little control over which microbes dominate the process. That means the taste can vary wildly between harvests, making it hard to deliver a consistent product.
The team from Nottingham wanted to solve that problem. By analyzing cocoa fermentation on Colombian farms, they pinpointed which factors shape flavor—specifically, temperature, pH, and the makeup of the microbial community. Then, using this knowledge, they created a lab-grown mix of microbes that mimicked the natural process with surprising accuracy. The result? Lab-fermented beans that produced chocolate with the same fine flavors as those made in the field.
What Really Shapes Chocolate Flavour?
Fermentation isn’t just important—it’s essential. Without it, cocoa beans remain bitter and harsh. The process softens that bitterness, brings out deep aromas, and creates complex flavor notes like fruit, floral, nutty, or even spicy. In this study, researchers found that two abiotic factors—temperature and pH—play a critical role. But they also showed that microbes themselves, the biotic factors, are equally crucial.
The research team recorded fermentation data from a cocoa farm in Colombia’s Santander region, a major cocoa-producing area. For seven days, they monitored temperatures at different depths of the bean pile. They saw the temperature rise in a curve, much like how microbes grow. This pattern suggested that microbial activity was driving the heat, as microbes feed on the sugars in the pulp and release energy.
Related Stories
- Dark chocolate and children’s health: Surprising new findings
- Surprising research uncovers why eating chocolate feels so good
They also tracked pH changes in different parts of the bean. In the outer layer, or testa, the pH started below 4. That’s very acidic. Over time, it rose, indicating chemical changes driven by microbial metabolism. However, inside the bean, in the cotyledon, the pH dropped in a separate pattern. This told scientists that fermentation happens in compartments: one in the pulp, another inside the bean. The testa acts as a barrier, keeping these changes distinct.
Interestingly, temperature and cotyledon pH were closely linked. As the bean warmed, the inner pH dropped. This correlation supports the idea that microbes are driving both chemical and physical changes. It also means that farmers could one day monitor these values to know when fermentation is complete—without relying on guesswork or color alone.
Mapping Microbes and Their Role
Beyond tracking physical changes, the team took a deep dive into the microbial community. They used metagenomics, a method that studies the DNA of all microbes in a sample. This revealed which bacteria and fungi were present and what they were doing. Over 40 microbial community profiles were collected from two independent fermentations. The data showed consistent shifts in microbial types over time.
During the first two days, yeasts and lactic acid bacteria dominated. These microbes break down sugars and produce alcohol and acids. Later, acetic acid bacteria and other fungi took over, generating heat and more complex flavors. The researchers used alpha and beta diversity indexes to study how rich and different these communities were at each stage.
Dr. Gopaulchan explains, “This research signals a shift from spontaneous, uncontrolled fermentations to a standardized, science-driven process.” Just like cheese and beer use starter cultures, chocolate could one day be made with reliable microbial mixes to guarantee quality.
One of the study’s most groundbreaking results came when scientists created a synthetic microbial community. This curated mix of bacteria and fungi was added to unfermented beans in a lab. The result was remarkable: the beans underwent the same temperature and pH shifts as farm-fermented beans and produced nearly identical flavors. These findings were verified with advanced metabolic tracking, genetic analysis, and a trained tasting panel.
A New Era for Chocolate Making
This discovery could transform how chocolate is made, especially in regions where climate or other conditions make fermentation difficult. Using synthetic starter cultures could lead to higher-quality beans, more predictable flavors, and better prices for farmers.
It also opens up new creative possibilities. With more control over fermentation, chocolate makers could tweak microbial communities to design custom flavor profiles. Want chocolate with hints of raspberry or smoky undertones? That might one day be possible by adjusting the microbial recipe.
According to the study published in Nature Microbiology, “Using a defined and metabolically competent microbial consortium, the feasibility of replicating fine flavour attributes of chocolate under controlled conditions was confirmed.” This could be a game-changer.
Moreover, understanding which microbes contribute to bitterness, acidity, or desirable notes allows producers to avoid flaws and enhance appeal. Over time, this could help small farms compete with industrial producers, leveling the playing field through better science.
This study also offers practical tools. By focusing on simple metrics like bean temperature and pH, even small-scale farmers could better track their fermentations. These indicators, along with improved knowledge of microbes, could lead to a standard “fermentation recipe” shared across farms.
The researchers hope their findings will inspire further work. As they put it, “By effectively domesticating the fermentation process, this work lays the foundation for a new era in chocolate production.”
Chocolate may never taste the same again — and that’s a good thing.
Note: The article above provided above by The Brighter Side of News.
Like these kind of feel good stories? Get The Brighter Side of News' newsletter.

Joshua Shavit
Science & Technology Writer
Joshua Shavit is a Los Angeles-based science and technology writer with a passion for exploring the breakthroughs shaping the future. As a co-founder of The Brighter Side of News, he focuses on positive and transformative advancements in AI, technology, physics, engineering, robotics and space science. Joshua is currently working towards a Bachelor of Science in Business and Industrial Engineering at the University of California, Berkeley. He combines his academic background with a talent for storytelling, making complex scientific discoveries engaging and accessible. His work highlights the innovators behind the ideas, bringing readers closer to the people driving progress.