Coffee comes from the roasted and ground seeds of Coffea plants, which grow as evergreen shrubs or small trees in a narrow equatorial band between roughly 25 degrees north and 30 degrees south. The seed inside each fruit, called a cherry, is what we call a coffee bean. Humans have turned that seed into a beverage for at least 500 years, and the plant's biology, chemistry, and post-harvest handling determine nearly everything about how the cup tastes.

The botany: a fruit seed, not a bean

A coffee "bean" is a seed. Each cherry usually holds two seeds pressed flat against each other, though a single round seed forms occasionally and is sold as a peaberry. The fruit ripens from green to red or yellow over several months. Inside the cherry sit layers: skin, pulp, mucilage, a parchment hull, and finally the silver skin wrapped around the seed itself. Removing those layers without damaging the seed is the central challenge of processing.

Two species dominate world trade. Arabica (Coffea arabica) accounts for roughly 60 percent of production and grows best between 900 and 2,000 meters, where cooler air slows ripening. Robusta (Coffea canephora) tolerates heat, disease, and lower altitudes, and carries about twice the caffeine. Arabica is self-pollinating and lower-yielding; robusta is hardier and more bitter. That trade-off explains why cheap blends lean on robusta and specialty bags advertise arabica.

How a seed becomes a cup: the mechanism

The flavor in your cup forms in layers, and each layer depends on what happened before it. Green coffee has almost no aroma. The signature smells of coffee are created during roasting, when heat drives Maillard reactions between amino acids and sugars, caramelization, and Strecker degradation. Those reactions generate hundreds of volatile compounds. Roasting temperature and time decide which ones dominate, which is why the same green bean roasted light or dark tastes like two different products.

Before roasting, the cherry must be processed to strip the fruit and dry the seed to a stable moisture level, typically around 10 to 12 percent. Drying too fast cracks the seed; drying too slowly invites mold and off-flavors. Processing method leaves its own chemical fingerprint. Washed coffees ferment the mucilage off in water tanks, producing cleaner, brighter acidity. Natural-process coffees dry with the fruit still attached, letting sugars and microbes seep into the seed and adding fruity, fermented notes. Honey processing sits between the two. None of these methods is inherently better; they steer flavor in different directions.

The final step is extraction. Hot water dissolves soluble compounds from ground roasted coffee, pulling acids, sugars, and bitter alkaloids at different rates. Grind size and contact time control which compounds reach the cup. That is why a fine grind over-extracted in an espresso machine tastes harsh, and a coarse grind under-extracted in a drip brewer tastes sour and thin.

The scale: by the numbers

Coffee is one of the most traded agricultural commodities on earth. Global production runs roughly 170 to 180 million 60-kilogram bags per year, which works out to about 10 to 11 million metric tons of green coffee. Brazil alone supplies roughly a third of the world's arabica and a large share of total output. Vietnam is the leading robusta producer.

The crop supports an estimated 12.5 million smallholder farms, most of them under 5 hectares, and as many as 100 million people depend on coffee income across growing, processing, and trade. More than 70 countries produce coffee, but only a handful dominate volume. A single mature coffee tree yields roughly 1 to 2 pounds of roasted coffee per year, so the bag on a grocery shelf represents real acreage and labor. Prices move constantly with weather and currency, so any specific figure dates quickly; treat published farmgate and retail prices as snapshots, not constants.

Where it grows: the belt and its limits

Coffee needs warm days, cool nights, steady rainfall, and well-drained volcanic or loamy soil. The arabica belt hugs highlands in Latin America, East Africa, and parts of Asia. Colombia's steep slopes, Ethiopia's forests, and Central America's volcanic ranges all fit the profile. Robusta fills the hotter lowlands of Vietnam, Indonesia, Brazil's Espírito Santo, and West Africa.

Altitude acts as a slow-ripening dial. Higher elevations mean cooler nights, slower fruit development, and denser seeds that many tasters associate with more acidity and complexity. The catch is that arabica is genetically narrow and vulnerable. Leaf rust disease, a fungus, has caused major losses across Latin America, and increasingly erratic rainfall pushes growers to move uphill or abandon land.

Edge cases and the climate squeeze

Climate change is reshaping the map. Arabica thrives in a tight temperature window, and warming pushes suitable land upslope. Higher ground is scarcer, so the total area suited to arabica is projected to shrink in many producing regions. Wild arabica populations in Ethiopia's forests face particular risk because they carry genetic diversity that cultivated varieties lack.

Coffee also has a spoilage clock. Green coffee stays viable for months in cool, dry storage, but roasted coffee stales within weeks of exposure to oxygen, light, and moisture because volatile aromatics escape and fats oxidize. Ground coffee stales far faster than whole bean. That is why roasters stamp "roasted on" dates, not "best by" dates.

Counterintuitive detail: a darker roast does not contain more caffeine by weight of ground coffee. Darker beans lose mass during longer roasting, so a scoop of dark roast can contain slightly less caffeine than the same scoop of light roast. Bitterness, not caffeine, drives the perception of strength. This trips up people who assume dark equals stronger.

Common misconceptions, corrected

Coffee does not grow in the tropics by accident. The plant evolved in Ethiopian highland forests, where it still grows wild among other trees. The legend of a goatherd named Kaldi noticing energized goats is folklore, not documented history.

A second misconception: "single origin" does not guarantee quality. It describes traceability to one region, farm, or lot, which helps buyers assess consistency, but a poorly processed single origin can taste worse than a well-handled blend. Blends exist to balance flavors and stabilize supply across harvests.

A third: the coffee belt is not a uniform quality zone. Within one farm, slopes facing different directions can ripen at different speeds and warrant separate picking passes. Sorting fruit by ripeness is one of the highest-leverage steps a producer controls.

Watch for these red flags when evaluating sourcing claims: No roast date anywhere on the package. "100 percent arabica" used as a quality claim when it only names the species. Origin described only as a country with no region, farm, or cooperative. Flavor notes that promise specific fruits without any processing information. Prices far below typical farmgate costs presented as ethical sourcing.

Comparison: arabica versus robusta

Trait Arabica Robusta
Optimal altitude 900 to 2,000 m Sea level to 800 m
Caffeine content About 1.2 percent About 2.2 percent
Disease resistance Low High
Flavor profile Acidity, complexity Bitter, earthy, heavy body
Share of world trade Roughly 60 percent Roughly 40 percent
Pollination Self-pollinating Cross-pollinating

Processing and harvest timeline

Stage Approximate timing What changes
Flowering Triggered by rain White blossoms appear
Fruit development 6 to 9 months Cherries swell and ripen
Selective harvest Peak ripeness window Only red or yellow fruit picked
Processing Within hours to a day Fruit stripped, mucilage removed
Drying 1 to 4 weeks Moisture drops toward 10 to 12 percent
Resting 30 days or more Green seed stabilizes
Roasting Minutes, before packaging Aromatics form
Staling onset Days after opening Volatiles escape, fats oxidize

Practical actions: reading the chain from the bag

You can reconstruct a coffee's likely origin and handling from packaging cues.

First, find the roast date. Whole bean coffee tastes best within about 2 to 4 weeks of roasting, so buy bags roasted recently. Second, look for a named region, farm, or cooperative. Traceability signals that someone tracked the lot. Third, note the processing method on the bag; washed and natural coffees demand different brewing. Fourth, check altitude if listed, since elevations above roughly 1,600 meters more often carry the acidity many drinkers value in arabica. Fifth, store beans in an airtight container away from light and heat, and grind just before brewing to preserve aromatics. Sixth, expect to pay more for traceable, high-altitude arabica; if the price seems implausibly low, ask what share reached the farmer.

Thresholds can conflict across sources. Some roasters mark peak freshness at 7 to 14 days, others say 30. The reconciliation is straightforward: flavor peaks early and declines gradually, so drink within two weeks for best results and accept that coffee remains safe and drinkable well beyond that window. Likewise, altitude guidance overlaps between species, so treat ranges as tendencies, not hard rules.

What science cannot tell you yet

Many flavor claims remain correlation, not causation. Researchers can measure volatile compounds and link them to growing conditions, but predicting a cup score from soil chemistry and processing data is not reliable. Terroir claims in coffee borrow language from wine without the same controlled evidence base. Much of what tasters describe as regional character may reflect processing, roast level, or brewing more than the land itself.

The climate outlook also carries wide uncertainty. Projected shifts in suitable arabica land vary substantially across models and emissions scenarios. What is clear is direction, not precise acreage. Finally, genetic diversity in cultivated coffee is narrow, and breeding for disease resistance and heat tolerance is slow work. The seed in your cup comes from a plant under real pressure, and the next few decades will test how well the industry adapts.