Where Do Food Molecules Come From? Air, Sun & Soil

Every food molecule you eat was built from just a few raw ingredients: carbon dioxide from the air, water, minerals from the soil, and energy from sunlight. Plants, algae, and certain bacteria assemble these simple components into the carbohydrates, fats, and proteins that fuel every living thing on Earth. Animals, including humans, then eat those organisms (or eat other animals that ate them), reshuffling and repackaging those same molecules along the way.

Air and Sunlight: Where It All Starts

The origin story of nearly every food molecule begins with photosynthesis. Plants pull carbon dioxide out of the atmosphere and water up through their roots, then use sunlight as the energy source to fuse those ingredients into glucose, a simple sugar. This single reaction is the entry point for almost all the carbon in every piece of food you’ve ever eaten. The basic equation is straightforward: six molecules of carbon dioxide plus six molecules of water, powered by light, produce one molecule of glucose and release oxygen as a byproduct.

An enzyme called Rubisco drives the key step, grabbing carbon dioxide and locking it into an organic molecule. It’s the most abundant protein on Earth, which makes sense given the scale of the job. On land, plants carry out roughly 60% of global carbon fixation. In the ocean, microscopic algae called phytoplankton handle the rest, fixing about 50 gigatons of carbon per year, which accounts for approximately 40% of the global total. Between these two systems, the planet produces all the raw organic material that eventually becomes food.

From Sugar to Everything Else

Glucose is just the starting point. Once a plant has built this simple sugar, it can rearrange it into virtually any food molecule.

Starches and fiber are the simplest conversions. Plants chain glucose molecules together into long strands to store energy (starch) or to build structural walls (cellulose, which we call fiber). When you eat rice, potatoes, or bread, you’re eating glucose chains that a plant assembled for its own energy reserves.

Fats and oils require a few more steps. Plants break glucose down through a process called glycolysis, producing smaller carbon-based fragments. These fragments are then reassembled into fatty acids inside chloroplasts, the same structures where photosynthesis happens. Those fatty acids combine with glycerol to form the fats stored in seeds, nuts, and avocados. The process is why high-fat plant foods like olive oil and sunflower seeds are so energy-dense: fats pack more than twice the calories per gram as carbohydrates because they contain more carbon-hydrogen bonds, all originally built from sugar intermediates.

Proteins are the most complex transformation, because they require an ingredient that air and water can’t supply: nitrogen.

Where Protein Gets Its Nitrogen

The atmosphere is about 78% nitrogen gas, but plants can’t use it in that form. Nitrogen gas is locked in an extremely stable bond between two nitrogen atoms, and breaking it requires specialized biology. About 65% of the biosphere’s usable nitrogen comes from biological nitrogen fixation, a process carried out by soil bacteria that convert atmospheric nitrogen into ammonium, a form plants can absorb.

The most productive version of this system involves a partnership between legumes (beans, peas, lentils, clover) and bacteria called rhizobia. These bacteria colonize nodules on legume roots and perform a remarkable exchange. The plant feeds the bacteria carbon-based acids for energy, and in return, the bacteria fix nitrogen and cycle amino acids back to the plant. Research on pea nodules has shown this isn’t a simple handoff of ammonium. Instead, the plant and bacteria shuttle amino acids back and forth in a cooperative cycle, with the bacteria functioning almost like tiny organs inside the root.

Once a plant has ammonium, it combines it with carbon skeletons from glucose metabolism to build amino acids. These amino acids are then linked into proteins. Every protein in a lentil, a grain of wheat, or a leaf of spinach was assembled this way: carbon from the air, hydrogen from water, and nitrogen pulled from the atmosphere by bacteria.

Minerals That Complete the Picture

Carbon, hydrogen, oxygen, and nitrogen account for the bulk of food molecules, but they’re not the whole story. Plants absorb a range of mineral nutrients from the soil through their roots, and these minerals end up in the food you eat.

The macronutrients (needed in larger amounts) include phosphorus, which is a core component of DNA and the energy-carrying molecule ATP; magnesium, which sits at the center of chlorophyll and also plays a role in hundreds of enzyme reactions; and potassium, which regulates fluid balance in plant cells and later in your own. Nitrogen also falls in this category, though it often enters through biological fixation rather than soil uptake alone. Phosphorus deficiency in soil directly limits how much protein and genetic material a plant can build, which is why fertilizers focus heavily on it.

Micronutrients are needed in tiny quantities but are no less important. Iron, zinc, manganese, and copper all serve as cofactors, meaning they sit inside enzymes and make chemical reactions possible. When you eat iron-rich spinach or zinc-rich pumpkin seeds, those minerals were pulled from the soil by root systems and incorporated into the plant’s own molecular machinery. You’re essentially recycling them.

What Animals Add (and Don’t Add)

Animals don’t create food molecules from scratch. They take in molecules that plants (or other organisms) already built and rearrange them. When a cow eats grass, it breaks down plant carbohydrates, fats, and proteins into their component parts, then reassembles them into beef muscle, milk fat, and other tissues.

There’s a catch, though. Nine amino acids are classified as essential for humans, meaning your body cannot synthesize them at all, or not fast enough to meet demand. You have to eat them. These amino acids were originally constructed by plants or microorganisms. Your body can build the remaining “nonessential” amino acids on its own, using nitrogen and carbon from other sources in your diet, but the essential nine must come ready-made from food.

This is also why animal-based foods are less efficient as a food source than plants. Each step up the food chain loses a significant amount of energy. The classic estimate is that only about 10% of the energy at one level transfers to the next, though actual transfer efficiency varies considerably depending on the ecosystem. A lake, a grassland, and a coral reef all have different conversion rates. The principle holds regardless: eating plants directly captures more of the original solar energy than eating an animal that ate the plants.

The Ocean’s Invisible Contribution

It’s easy to think of food molecules as coming from farms and forests, but the ocean is a massive producer. Phytoplankton, single-celled organisms floating near the surface, perform photosynthesis just like land plants. They fix roughly 50 gigatons of carbon annually, building the sugars and fats that feed the entire marine food web. Every fish, shrimp, and piece of seaweed you eat traces its molecular origins back to these microscopic organisms capturing carbon dioxide and sunlight in the upper ocean.

Phytoplankton are also unusually rich in omega-3 fatty acids, which is why fish (which eat phytoplankton or eat organisms that did) are the primary dietary source of these fats. The omega-3s in a salmon fillet weren’t made by the salmon. They were built by algae and passed up the food chain.

Tracing a Meal Back to Its Source

Consider a simple meal: rice, black beans, and vegetables with olive oil. The starch in the rice is glucose chains, assembled from CO2 and water using sunlight in a paddy field. The protein in the black beans contains nitrogen that bacteria fixed from the atmosphere inside root nodules. The fat in the olive oil started as sugar in an olive tree’s chloroplasts, then was converted to fatty acids and packed into the fruit. The iron in the vegetables was drawn from soil particles by root cells. Every calorie and every nutrient traces back to a plant capturing simple inorganic materials and transforming them into the complex molecules your body runs on.

Over 30% of the total organic material plants produce each year is built underground in roots, a portion that’s even higher in dry environments. This belowground production feeds soil ecosystems, recycles nutrients, and keeps the whole system running. The food on your plate is just the visible fraction of an enormous global chemistry project powered by sunlight.