Peanuts are legumes, full stop. They belong to the family Fabaceae (also called Leguminosae), the same plant family as beans, lentils, chickpeas, and soybeans. They are not true nuts in any botanical sense, and while each peanut shell contains seeds, calling a peanut simply “a seed” misses the bigger picture of what it actually is. The confusion is understandable given the name and the grocery-store shelf placement, but the biology is unambiguous, and it matters for reasons that go well beyond taxonomy.
What Makes a Peanut a Legume
A legume, at its simplest, is a plant that produces its seeds inside a pod. Peas in a peapod, beans in a bean pod, peanuts in a peanut shell: same basic architecture. The peanut plant, Arachis hypogaea, checks every box that defines the legume family. It has the characteristic flower structure, the root nodules that house nitrogen-fixing bacteria, and the fruit type known as a legume pod. Botanically, the peanut shell is the fruit (specifically, an indehiscent legume, meaning a pod that does not split open on its own when ripe), and the edible kernels inside are the seeds.1IntechOpen. Nut Consumption and its Usefulness in the Modern World – Section: 1. Introduction
So when someone asks “is a peanut a seed?”, the answer is that the individual kernels you eat are seeds, but the peanut as a whole organism is a legume plant that produces those seeds in a pod. Calling a peanut “a seed” is like calling a pea “a seed.” Technically true of the individual edible part, but it ignores the defining feature of the fruit that houses it.
Why Peanuts Are Not True Nuts
In everyday language, “nut” means any hard-shelled edible kernel. In botany, the definition is much narrower. A true nut is a one-seeded fruit with a hard, woody outer wall (called a pericarp) that does not split open to release the seed. Hazelnuts, acorns, and beechnuts qualify. Very few of the foods we casually call nuts actually meet this definition.1IntechOpen. Nut Consumption and its Usefulness in the Modern World – Section: 1. Introduction
Walnuts, for example, are technically drupes, a category of fruit where a fleshy layer surrounds a hard stone that contains the seed (think of a peach pit). Almonds are also drupes. Brazil nuts are seeds extracted from a large woody capsule. Cashews grow as an appendage on a fleshy fruit called a cashew apple. The entire “nut” aisle at the supermarket is a botanical free-for-all, with very few actual nuts in the strict sense. Peanuts sit among this misidentified crowd, but their misclassification is arguably the most dramatic: they are not even tree fruits at all. They grow underground.
Growing Underground
This is where peanuts get genuinely strange. The peanut plant flowers above ground like any other legume, producing small yellow blossoms. After pollination, however, the fertilized ovary does something unusual: it elongates into a stalk called a peg that bends downward and pushes into the soil. The pod then develops and matures entirely underground. This process, called geocarpy, is rare in the plant world.2PubMed Central. Peg Biology: Deciphering the Molecular Regulations Involved During Peanut Peg Development
The pod’s shell that forms underground serves a specific protective role in that environment. Research on shell development has found that as the pod matures, its crude fiber, cellulose, and lignin content all increase, creating a barrier against mechanical damage and soil pathogens.3PubMed Central. Deep transcriptomic study reveals the role of cell wall biosynthesis and organization networks in the developing shell of peanut pod This is why raw peanuts pulled from the ground have that characteristic tough, fibrous shell: it evolved as underground armor.
Geocarpy also explains why peanuts are sometimes called “groundnuts,” a name widely used in parts of Africa and Asia. The name is more botanically honest than “peanut,” since it at least tells you where the thing grows. That said, “groundnut” can also refer to other unrelated plants, including Bambara groundnut (Vigna subterranea), a different legume native to Africa that also develops its pods underground.4PubMed Central. Bambara Groundnut: An Underutilized Leguminous Crop for Global Food Security and Nutrition
Nitrogen Fixation and the Legume Connection
One of the most defining traits of legumes is their ability to partner with soil bacteria (rhizobia) that convert atmospheric nitrogen into a form the plant can use. This is why farmers rotate legume crops with other plants: the legumes enrich the soil with nitrogen, reducing the need for synthetic fertilizer. Peanuts participate in this process, and they do it with unusual gusto.
Most legumes depend heavily on a steady supply of energy from photosynthesis to keep their nitrogen-fixing root nodules running. Cut off the light, and fixation drops. Peanuts are different. Research has shown that peanut plants can sustain nitrogen fixation even during prolonged darkness or when the above-ground portion of the plant is removed, apparently by drawing on lipid (fat) reserves stored in their root nodules.5PubMed Central. Nitrogen Fixation in Peanut Nodules during Dark Periods and Detopped Conditions with Special Reference to Lipid Bodies This makes them unusually resilient fixers. Comparative work on the bacterium Bradyrhizobium arachidis found that nitrogenase activity in peanut nodules was about three times higher than in nodules of another legume species studied alongside it.6PubMed Central. Bacteroid Development, Transcriptome, and Symbiotic Nitrogen-Fixing Comparison of Bradyrhizobium arachidis in Nodules of Peanut (Arachis hypogaea) and Medicinal Legume Sophora flavescens
This nitrogen-fixing prowess has practical farming implications. Including peanuts in crop rotation systems can improve soil organic carbon and microbial diversity, helping break cycles of continuous cropping that degrade soil over time.7Agriculture, Ecosystems & Environment. Diversified crop rotation: Synergistically enhancing peanut yield and soil organic carbon stability Cotton-peanut rotations, for instance, have been shown to significantly improve rhizosphere soil environments and promote microbial diversity.8Scientific Reports. Effects of cotton peanut rotation on crop yield soil nutrients and microbial diversity
Why Your Immune System Thinks Peanuts Are Nuts
If peanuts are legumes and not nuts, why does peanut allergy so often overlap with tree nut allergy? This is one of the most clinically relevant consequences of the botanical confusion, and the answer lies in shared protein structures.
Peanuts and tree nuts contain storage proteins from the same broad families, including cupins (like vicilins and legumins) and prolamins (like 2S albumins). These protein families are ancient and widespread across the plant kingdom, and their three-dimensional shapes are similar enough that the immune system can mistake one for another. Researchers have mapped surface-exposed antibody-binding regions on the vicilin allergens of peanuts, walnuts, hazelnuts, and cashews and found them to share closely related structural shapes.9PubMed. Vicilin allergens of peanut and tree nuts (walnut, hazelnut and cashew nut) share structurally related IgE-binding epitopes The 2S albumin proteins found across peanuts, tree nuts, and sesame seeds share a common core structure that helps explain much of the observed co-allergy among these foods.10PubMed Central. The importance of the 2S albumins for allergenicity and cross-reactivity of peanuts, tree nuts, and sesame seeds
Cross-reactivity also occurs between peanuts and their actual botanical relatives. The most common patterns of clinical cross-reactivity among legumes are between peanut and lupine, and between peanut and soy, though the specific patterns depend heavily on geography and local diet.11PubMed. Managing Cross-Reactivity in Those with Peanut Allergy An important caveat: cross-sensitization (testing positive for antibodies against multiple foods) does not always translate into clinically relevant allergy (actually having a reaction when eating those foods). Many people with peanut allergy tolerate other legumes and even some tree nuts without problems.12PubMed Central. Cross-reactivity of peanut allergens
Still, the protein-level overlap between peanuts and tree nuts is one of the reasons food regulators and allergists often group them together in warnings. The botanical distinction between legumes and tree nuts is real, but the immune system does not read taxonomy charts.
The Nutritional Profile Sits Between Both Worlds
Peanuts’ nutritional makeup also helps explain why they ended up categorized alongside tree nuts rather than alongside beans. At about 25 percent protein and nearly 50 percent fat, peanuts are dramatically higher in fat and lower in starch than most legumes. A cup of cooked black beans is mostly carbohydrate with very little fat; a handful of peanuts is mostly fat and protein with very little starch. This caloric density is much closer to what you find in almonds, walnuts, and cashews.
Research comparing the amino acid profiles of peanuts and various tree nuts has found that threonine is the first limiting amino acid in peanuts (meaning it is the essential amino acid present in the lowest proportion relative to human requirements), a pattern distinct from tree nuts like walnuts and Brazil nuts, where lysine is the limiting factor.13PubMed. Chemical composition of selected edible nut seeds This difference is a subtle reminder that despite their similar fat content, peanuts and tree nuts have distinct protein compositions shaped by their different evolutionary lineages.
The roasting process that makes peanuts taste “nutty” also contributes to the identity confusion. During roasting, the Maillard reaction between sugars and amino acids generates hundreds of flavor and aroma compounds. Research on roasting conditions has found that time and temperature combinations significantly affect moisture content, soluble protein levels, and tocopherol (vitamin E) levels in the finished product, all of which influence shelf life and taste.14PubMed. Compositional and mechanical properties of peanuts roasted to equivalent colors using different time/temperature combinations Roasted peanuts taste far more like roasted almonds or cashews than like a bowl of lentil soup, which reinforces the culinary grouping even though the botanical reality is different.
An Ancient Crop With a Complex Genome
Peanuts have been part of the human diet for a very long time. Archaeological macrofossils from the western slopes of the northern Peruvian Andes show that peanuts were being cultivated between roughly 9,200 and 5,500 radiocarbon years before the present, making them one of the earliest known cultivated crops in the Americas.15PubMed. Preceramic adoption of peanut, squash, and cotton in northern Peru Starch grain data suggest peanuts moved into northern Peru’s Zaña Valley about 8,500 years ago, likely from the eastern side of the Andes, though the hulls found at those early sites do not closely resemble modern domesticated varieties.16AOCS Press. Peanuts: Genetics, Processing, and Utilization
By the time Spanish and Portuguese explorers arrived in the Americas, peanuts were already grown throughout tropical and subtropical regions of the hemisphere, from the West Indies to Mexico to Brazil to Peru. European colonizers then carried them to Africa, Asia, and the Pacific Islands. Today, China and India are the world’s largest producers by volume, far exceeding the Americas where the crop originated.
Genetically, the cultivated peanut is an allotetraploid, meaning it carries two complete sets of chromosomes from two different ancestral species. Genomic research has identified these ancestors as Arachis duranensis (which contributed the A subgenome) and Arachis ipaensis (the B subgenome).17American Journal of Botany. RFLP AND CYTOGENETIC EVIDENCE ON THE ORIGIN AND EVOLUTION OF ALLOTETRAPLOID DOMESTICATED peanut, Arachis hypogaea (Leguminosae) The combined genome is around 2.7 billion base pairs, making it larger than the human genome and remarkably challenging to assemble.18Nature Genetics. The genome sequences of Arachis duranensis and Arachis ipaensis, the diploid ancestors of cultivated peanut Researchers have even recreated the original hybridization in the laboratory by crossing the two wild species and producing synthetic tetraploids with 40 chromosomes that mirror the chromosome composition of cultivated peanuts.19G3 Genes|Genomes|Genetics. Spontaneous generation of diversity in Arachis neopolyploids (Arachis ipaënsis × Arachis duranensis)4x replays the early stages of peanut evolution These experiments help scientists understand how the cultivated peanut evolved and how its subgenomes have been exchanging genetic material ever since they merged.
Why the “Nut” Name Persists
Given all of this, you might wonder why we keep calling them peanuts at all. The word “nut” has been used loosely in English for centuries to describe any hard-shelled edible kernel, regardless of botanical classification. Dictionaries happily define “nut” this way alongside the stricter botanical meaning. Food regulatory agencies in most countries treat peanuts and tree nuts as related categories for labeling purposes, primarily because of the overlapping allergy concerns described above. The U.S. Food and Drug Administration lists peanuts alongside tree nuts as a major food allergen, even though the agency is well aware they are legumes.
In nutritional research, peanuts are frequently studied in the same cohort as tree nuts because their consumption patterns and health associations overlap. Many large epidemiological studies lump “nut and peanut consumption” into a single dietary variable. This is defensible from a dietary perspective, since people tend to eat peanuts in the same contexts they eat tree nuts (as snacks, in trail mixes, as butters), and the macronutrient profiles are similar enough to justify grouping them for analysis.
The culinary identity of peanuts, in other words, has diverged completely from the botanical one. Peanuts live in the nut aisle, appear in nut mixes, and trigger nut-allergy warnings. None of that changes the underlying biology. A peanut is a legume that produces seeds inside a pod that develops underground, with no more botanical claim to being a nut than a kidney bean has. The name stuck because language is not science, and grocery stores are not herbaria.
Other Legumes That Grow Underground
Peanuts are not the only legume to bury their pods. Bambara groundnut, grown widely in sub-Saharan Africa, follows a strikingly similar growth pattern: aerial flowers, pegs that push into the soil, and pods that mature underground. Bambara groundnut is nutritionally complementary to cereals and, like peanuts, fixes atmospheric nitrogen to improve soil fertility.4PubMed Central. Bambara Groundnut: An Underutilized Leguminous Crop for Global Food Security and Nutrition Despite these similarities, the two plants are only distantly related within the legume family: peanuts belong to the genus Arachis, while Bambara groundnut belongs to Vigna, the same genus as mung beans and cowpeas.
The fact that geocarpy evolved independently in these separate legume lineages suggests it confers real survival advantages in certain environments. Burying the developing seeds protects them from above-ground herbivores and from desiccation in hot, dry climates. It also places the seeds directly in contact with soil moisture during the critical period of development. The trade-off is that harvesting becomes more labor-intensive, since the pods have to be dug up rather than picked. For commercial peanut farming, this means specialized equipment that lifts the entire plant and shakes the pods free of the soil, a process very different from harvesting any tree nut.