Is a Peanut a Nut or a Bean? The Botanical Answer

A peanut is a legume, not a nut. Botanically, it belongs to the family Fabaceae (the same family as beans, lentils, chickpeas, and soybeans), and its fruit is a pod containing seeds, just like a green bean or a snap pea. Calling it a “nut” is a culinary and cultural habit, not a botanical fact, and the distinction runs deeper than just taxonomy. Peanuts share fundamental biological traits with beans and other legumes that no true nut possesses, from how they fruit to how they interact with soil bacteria.

What Makes a Legume a Legume

The defining feature of a legume is its fruit type: a pod (technically called a legume, which is where the family gets its name) that splits along two seams when mature. Think of snapping open a green bean or popping a pea pod. Peanut shells are modified versions of this same structure. They do not split as cleanly as a snap pea, but the architecture is unmistakably a pod with seeds inside, not a hard-shelled single seed like a walnut or hazelnut.

True botanical nuts are something quite different. A true nut is a dry, hard-shelled fruit that does not open at maturity and contains a single seed. Hazelnuts, chestnuts, and acorns fit this definition. Most of what we call “nuts” in the grocery store, including almonds, cashews, walnuts, and pecans, are not true nuts either. Almonds are the pits of drupes (stone fruits, like peaches). Walnuts are also drupe seeds. But peanuts are not even in the conversation for nut-hood. They are pods. The “pea” in “peanut” is actually the more accurate half of the name.

How Peanuts Fix Nitrogen Like Beans Do

One of the most important legume traits peanuts share with beans is the ability to form a symbiotic partnership with soil bacteria called rhizobia. These bacteria colonize the peanut’s roots and form small nodules, tiny lumps visible to the naked eye, where they convert atmospheric nitrogen into a form the plant can use. This process, nitrogen fixation, is a hallmark of the legume family and one reason legumes have enormous ecological and agricultural value.1Applied Soil Ecology. Nodulation in peanut (Arachis hypogaea L.) roots in the presence of native and inoculated rhizobia strains Research has confirmed that peanuts actively form root nodules with compatible rhizobia, fixing their own nitrogen supply directly from the air.2PubMed Central. Nodule-specific AhPUGN1.1 positively regulates nodulation in peanuts

No tree nut does this. Walnuts, almonds, pecans, and cashews all depend entirely on nitrogen already present in the soil. The ability to partner with nitrogen-fixing bacteria is essentially a legume family membership card, and peanuts carry it. This is why farmers often rotate peanuts with other crops: peanuts leave behind nitrogen-enriched soil that benefits whatever is planted next.

The Bizarre Way Peanuts Bury Their Own Seeds

If peanuts are legumes like beans, why do they grow underground while beans dangle from vines? This is the trait that makes peanuts genuinely unusual, even among legumes. The peanut plant flowers above ground like any normal plant, with small yellow blossoms along its stems. After pollination, however, something strange happens. The fertilized ovary develops a stalk-like structure called a gynophore (sometimes called a “peg”) that grows downward, physically pushing the developing pod into the soil. The peanut plant essentially sows its own seeds.3Canadian Journal of Botany. The peanut gynophore: a developmental and physiological perspective

This peg is remarkably sophisticated. It responds to light, gravity, and physical touch, and it undergoes significant hormonal changes as it elongates and drives the developing fruit underground.3Canadian Journal of Botany. The peanut gynophore: a developmental and physiological perspective Recent research has shown that epigenetic modifications, chemical tags on the plant’s DNA and associated proteins, help coordinate the entire process, integrating signals from light, gravity, temperature, and soil conditions to guide peg elongation and successful pod formation below the surface.4PubMed Central. Epigenetic modifications regulate peg elongation and underground fruiting in peanut in response to environmental cues

This underground fruiting behavior is called geocarpy. It is rare in the plant kingdom but not unique to peanuts. A handful of other species do it as well, typically plants living in unstable environments where burying seeds offers protection from fire, herbivores, drought, or other threats. Geocarpy keeps offspring in the favorable microhabitat of the parent plant and helps seeds survive extreme conditions.5Chinese Journal of Plant Ecology. A review of geocarpy and amphicarpy in angiosperms, with special reference to their ecological adaptive significance For peanuts, which originated in hot, dry environments in South America, growing pods underground likely provided a survival edge during droughts and fires that would have destroyed above-ground fruits.

Why Peanuts Need Calcium in the Soil

Because the pods develop underground, peanuts have a nutrient requirement that above-ground legumes like soybeans do not share. The developing pod absorbs calcium directly from the surrounding soil, and if the soil is calcium-deficient, the embryos inside the pod can abort, leading to empty or malformed shells at harvest.6PubMed Central. Transcriptome of peanut kernel and shell reveals the mechanism of calcium on peanut pod development This means peanut farmers have to pay close attention to soil calcium levels in the root zone where pods form, often applying gypsum (calcium sulfate) to the soil at the time of flowering. It is one of those quirks that flows directly from the plant’s unusual geocarpic lifestyle.

The Aflatoxin Problem

Growing underground also exposes peanut pods to soil-dwelling fungi that above-ground crops largely avoid. The most concerning of these is Aspergillus flavus, a mold that produces aflatoxins, potent carcinogens that can contaminate peanuts before and after harvest. Research has shown that as pod temperatures approach roughly 35°C, the optimum for A. flavus growth, both fungal colonization of kernels and aflatoxin levels increase.7PubMed. Effect of soil temperature and drought on peanut pod and stem temperatures relative to Aspergillus flavus invasion and aflatoxin contamination Drought stress compounds the problem, because water-stressed plants cannot cool their pods as effectively.

This is a food safety issue that is largely specific to peanuts among the foods we commonly eat as “nuts.” Tree nuts can also carry aflatoxins (pistachios and Brazil nuts are occasionally affected), but the mechanism is different. For peanuts, the risk is built into the biology: the pods sit in warm, moist soil for weeks, in direct contact with the fungus. Regulatory agencies around the world set strict limits on aflatoxin levels in peanut products, and modern processing includes sorting, blanching, and testing to keep contaminated kernels out of the food supply.

Where Peanuts Came From

Cultivated peanuts (Arachis hypogaea) are native to South America, and archaeological evidence traces their use back thousands of years. Macrofossil and starch grain data show peanuts were present in the Zaña Valley of northern Peru about 8,500 years ago, though the hulls found there do not resemble modern domesticated varieties, suggesting they were an earlier, wilder form.8ResearchGate. Origin and Early History of the Peanut By the time Spanish and Portuguese explorers arrived in the Americas, Indigenous peoples were cultivating peanuts across a wide swath of the continent, from the West Indies and Mexico to the coasts of Brazil, Peru, and the Río de la Plata basin.8ResearchGate. Origin and Early History of the Peanut

Genetically, the cultivated peanut is an allotetraploid, meaning it carries four sets of chromosomes derived from two different ancestral species. Phylogenetic research indicates that cultivated peanuts arose from a hybridization event between two wild diploid species, with Arachis duranensis as a likely ancestor contributing one set of chromosomes.9PubMed Central. Chloroplast Phylogenomic Analyses Reveal a Maternal Hybridization Event Leading to the Formation of Cultivated Peanuts The other ancestor contributing the second chromosome set is Arachis ipaensis.10PubMed Central. Identification and characterization of aquaporin genes in Arachis duranensis and Arachis ipaensis genomes, the diploid progenitors of peanut A wild tetraploid species, Arachis monticola, may represent a transitional form between the wild diploid ancestors and the fully domesticated crop.9PubMed Central. Chloroplast Phylogenomic Analyses Reveal a Maternal Hybridization Event Leading to the Formation of Cultivated Peanuts All of these species are legumes in the genus Arachis, none even remotely related to walnut, hazel, or any tree nut genus.

Peanut Allergies and the Tree Nut Confusion

One reason the “nut” label sticks so stubbornly to peanuts is the allergy landscape. Peanut allergy is one of the most common and potentially severe food allergies, and people with peanut allergies are frequently told to also avoid tree nuts. This creates the impression that peanuts and tree nuts are closely related, which botanically they are not.

The overlap is immunological, not taxonomic. Peanut proteins and tree nut proteins share certain structural features that the immune system can cross-react to. A retrospective study found that peanut sensitization (showing immune reactivity on lab tests) was a strong predictor of tree nut sensitization: about 91% of people who reacted to peanut on blood tests also reacted to tree nuts. But clinical allergy, meaning actually having symptoms after eating, was less predictable. Only about half of people clinically allergic to tree nuts were also clinically allergic to peanuts, and about 73% of those clinically allergic to peanuts also reacted to tree nuts.11PubMed Central. A retrospective study of peanut and tree nut allergy: Sensitization and correlations with clinical manifestations

In practical terms, this means that having a positive blood test for one does not guarantee you will react to the other when you actually eat it. Allergists recommend caution because the stakes of a wrong guess are high (anaphylaxis is life-threatening), but the biology driving the overlap is immune cross-reactivity between certain protein shapes, not a close genetic relationship between the plants. Peanuts and tree nuts are about as botanically distant as a rose bush is from a pine tree.

How Peanuts Compare Nutritionally to Nuts and Beans

Nutritionally, peanuts straddle the line between their legume relatives and the tree nuts they are shelved alongside. Like tree nuts, peanuts are high in fat (roughly 50% by weight) and calorie-dense. Like beans, they are high in protein (about 25-28% by weight), considerably more than most tree nuts. They also contain significant fiber and a broad range of minerals.

Compared to typical dry beans, peanuts have far more fat and far fewer carbohydrates. A cup of cooked black beans is mostly starch and protein with very little fat; a cup of peanuts is mostly fat and protein with relatively little starch. Compared to tree nuts like almonds or walnuts, peanuts have a similar fat-and-protein-heavy profile, though the fatty acid composition differs in the details. Peanuts are relatively high in monounsaturated fat, a profile more similar to olive oil than to the polyunsaturated-heavy profile of walnuts.

This nutritional ambiguity is part of why regulatory and dietary frameworks often lump peanuts with tree nuts rather than with beans. The U.S. Food and Drug Administration regulates peanut products under the same section of the Code of Federal Regulations as tree nut products. Nutritional studies frequently group them together under the umbrella of “nuts and seeds” because their macronutrient profiles and health associations are more alike than different, even though the plants are unrelated.

Antinutrients and Why Processing Matters

Like other legumes, raw peanuts contain compounds collectively called antinutrients, substances like phytates, trypsin inhibitors, and oxalates that can interfere with nutrient absorption or protein digestion. This is a characteristic peanuts share with their legume cousins. Dry beans, lentils, and soybeans all contain these same types of compounds, which is why most legumes are traditionally cooked or processed before eating.

Research shows that common processing methods, including roasting, boiling, and germination (sprouting), significantly reduce these antinutrient levels in peanuts while also improving protein digestibility and even increasing the measurable protein, lipid, and mineral content of the seeds.12International Journal of Advanced Multidisciplinary Research and Studies. Effects of Roasting, Germination and Cooking on the Nutritional Value of Peanut Seeds JL-24 (Arachis hypogaea) A separate study comparing multiple heat treatments found that autoclaving, boiling, roasting with salt, and oil-roasting were all effective at lowering antinutrient levels and improving in vitro protein digestibility.13Food Science and Technology Research. Effect of heat treatments on certain antinutrients and in vitro protein digestibility of peanut and sesame seeds

This is another area where peanuts behave more like beans than like tree nuts. You can eat a raw almond or walnut without any concern about trypsin inhibitors. But raw peanuts, like raw kidney beans or raw soybeans, benefit meaningfully from heat treatment. The fact that most peanuts reach consumers already roasted, boiled, or processed into butter means this rarely becomes a practical problem, but it is a genuine legume trait lurking beneath the “nut” label.

Why the “Nut” Label Persists

Language does not follow botanical classification, and it probably never will. The word “nut” in everyday English refers to any hard-shelled, oil-rich, edible seed that you crack open and eat. By that folk definition, peanuts qualify perfectly. They come in a shell, they are rich in oil and protein, they taste savory and fatty, and they can be roasted, salted, and snacked on exactly like almonds or cashews. No one at a baseball game is going to start calling them “ground legume pods.”

Food regulations reflect this cultural reality. Peanuts are regulated alongside tree nut products in most countries, and food allergen labeling laws typically require peanuts to be declared on packaging regardless of whether the label lists “tree nuts” separately. The disconnect between botanical truth and culinary habit is stable and well understood by the food industry, even if it confuses consumers who are trying to figure out what they are actually eating.

The confusion is not entirely harmless, though. For people with legume allergies (as opposed to tree nut allergies), the “nut” label can obscure a real risk. Someone allergic to soy, another legume, might not think to watch out for cross-reactivity with peanuts because peanuts are filed under “nuts” in their mental model. The botanical distinction matters most in exactly these situations, where miscategorization could lead to a wrong assumption about what is safe to eat.

Other Plants That Fruit Underground

Peanuts are the most economically important geocarpic plant, but they are not alone. The bambara groundnut (Vigna subterranea), widely grown in sub-Saharan Africa, also buries its pods in the soil after above-ground flowering. It is, like the peanut, a legume. Several species of wild clover and a few other scattered plants across different families exhibit geocarpy or amphicarpy (producing both above-ground and below-ground fruits on the same plant).

The ecological logic behind geocarpy appears to be consistent across these unrelated species. Plants that bury their seeds tend to live in habitats where disturbance, drought, fire, or herbivory makes above-ground seed survival risky.5Chinese Journal of Plant Ecology. A review of geocarpy and amphicarpy in angiosperms, with special reference to their ecological adaptive significance The soil acts as a protective vault, maintaining seed viability through conditions that would destroy exposed seeds. For peanuts, this adaptation proved so successful that it persisted through domestication, even as humans took over the job of planting and protecting the crop. The gynophore mechanism that once helped wild peanuts survive South American dry seasons now just means that farmers have to dig up their harvest instead of picking it off a vine.