OneStopList

Gods and goddesses

Are Onions Nightshades? The Straight Answer

Updated November 20, 2026

No, onions are not nightshades. Onions belong to the Amaryllidaceae family (specifically the Allium genus), while nightshades belong to the Solanaceae family. This is a common misconception, likely because both groups are staples in many diets and some people group them together when discussing food sensitivities. However, botanically and chemically, they are entirely different plants.

What Exactly Are Nightshades?

Nightshades are a family of flowering plants called Solanaceae. This family contains over 2,000 species, including some very common food plants and some highly toxic ones. The name “nightshade” comes from the old belief that these plants were associated with darkness and night, partly because some species grow in shady areas and partly because of their historical use in potions and poisons.

Key food nightshades include:

  • Tomatoes
  • Potatoes (but not sweet potatoes – those are in the morning glory family)
  • Eggplants
  • Peppers (bell peppers, chili peppers, paprika)
  • Goji berries
  • Tomatillos

Nightshades contain alkaloids, such as solanine and capsaicin, which are part of their natural defense against insects. In high concentrations, these alkaloids can be toxic to humans, but the levels in cultivated food varieties are generally safe for most people. Some individuals, however, report sensitivity to these compounds, experiencing digestive issues or joint pain, which has led to the popularity of nightshade-free diets.

What Are Onions, Then?

Onions are part of the Allium genus, which also includes garlic, leeks, shallots, chives, and scallions. The Allium genus belongs to the Amaryllidaceae family, which is part of the order Asparagales. This is the same order as asparagus, but the Amaryllidaceae family is distinct from the Solanaceae family.

Alliums are characterized by their pungent aroma and flavor, which come from sulfur-containing compounds. When you cut an onion, you break cells that release an enzyme called alliinase, which reacts with other compounds to produce syn-propanethial-S-oxide – the chemical that makes your eyes water. This is a completely different chemical pathway from the alkaloids found in nightshades.

Why Do People Confuse Onions with Nightshades?

There are a few reasons for this confusion:

  • Dietary elimination lists: Many anti-inflammatory diets or elimination diets list both nightshades and alliums as foods to avoid, but for different reasons. They often appear on the same “avoid” list, leading people to assume they belong to the same botanical family.
  • Shared culinary uses: Both onions and nightshades (like tomatoes and peppers) are foundational to many cuisines, especially in Mediterranean, Latin American, and Indian cooking. They are often cooked together, so people associate them.
  • Similar sensitivity symptoms: Some people report digestive discomfort after eating both onions and nightshades, but the underlying causes are different. Onion sensitivity is often due to FODMAPs (fermentable oligosaccharides, disaccharides, monosaccharides, and polyols), specifically fructans, which are poorly absorbed in the small intestine. Nightshade sensitivity is usually attributed to alkaloids.

Are Onions in the Same Family as Garlic?

Yes, onions and garlic are in the same genus, Allium. This is one of the most well-established facts in botany. The Allium genus includes hundreds of species, but the most common culinary ones are:

  • Onion (Allium cepa)
  • Garlic (Allium sativum)
  • Leek (Allium ampeloprasum)
  • Shallot (Allium oschaninii or Allium cepa var. aggregatum)
  • Chives (Allium schoenoprasum)
  • Scallion or green onion (various Allium species)

All of these share similar chemistry, including the sulfur compounds that give them their characteristic smell and taste. They also share similar growing habits – they are bulbous or rhizomatous perennials.

Are There Any Plants That Are Both Alliums and Nightshades?

No. A plant cannot belong to two different families. The botanical classification system is hierarchical: kingdom, phylum, class, order, family, genus, species. Allium is a genus within the family Amaryllidaceae, while nightshades are genera (like Solanum, Capsicum, Lycopersicon) within the family Solanaceae. These two families diverged millions of years ago and are not closely related.

There is a plant called “black nightshade” (Solanum nigrum) that has small black berries, but it is not an onion. There is also a plant called “onion weed” (Asphodelus fistulosus), but it is not a true onion and not a nightshade. The confusion likely arises from common names, but botanical classification is clear.

Do Onions and Nightshades Share Any Allergens?

While they are not botanically related, some people may have allergies or intolerances to both. However, the allergens are different. Onion allergy is rare but can occur, and it is usually a reaction to proteins in the onion. Nightshade allergy is also rare, and it is typically a reaction to proteins in the nightshade plant. More common are intolerances or sensitivities, which are not true allergies but can cause discomfort.

For example, someone with irritable bowel syndrome (IBS) might find that both onions and nightshades trigger symptoms, but for different reasons. Onions are high in fructans, which are FODMAPs that can ferment in the gut and cause bloating. Nightshades contain alkaloids that can irritate the gut lining in sensitive individuals. So, a person might react to both, but it is not because they are in the same family.

Frequently Asked Questions

Are sweet potatoes nightshades?

No, sweet potatoes (Ipomoea batatas) are not nightshades. They are in the morning glory family (Convolvulaceae). They are often confused with regular potatoes, which are nightshades, but they are botanically distinct.

Are onions safe on a nightshade-free diet?

Yes, onions are safe on a strict nightshade-free diet because they are not nightshades. If you are following a nightshade-free diet for medical reasons, you can continue to eat onions unless you also have a separate onion sensitivity.

Can I be allergic to both onions and nightshades?

Yes, it is possible to be allergic to both, but they are separate allergies. If you suspect you have allergies, it is best to see an allergist for testing. It is not uncommon for people to have multiple food sensitivities, but they are not related botanically.

Are tomatoes and onions in the same family?

No. Tomatoes are nightshades (Solanaceae), and onions are alliums (Amaryllidaceae). They are not in the same family, order, or even the same major group of flowering plants.

Why do some diets group onions with nightshades?

Some elimination diets, like the autoimmune protocol (AIP) diet, restrict both nightshades and alliums (including onions) for different reasons. Nightshades are restricted because of alkaloids, and alliums are restricted because they may stimulate the immune system or cause digestive issues in some people. The grouping is for dietary convenience, not botanical relationship.

Are shallots and leeks nightshades?

No, shallots and leeks are alliums, just like onions and garlic. They are in the Amaryllidaceae family and are not related to nightshades.

Related

How pages are sourced and corrected: Sources and editorial policy.