The Feast

Home cooking recipes for everyday dinners and easy entertaining

Is Garlic in the Onion Family? Yes, Here's How

· 6 min read · Dinners

Yes, garlic is in the onion family, botanically known as Allium. Both garlic (Allium sativum) and onions (Allium cepa) belong to the same genus, which also includes shallots, leeks, and chives. This shared classification explains why they look alike, smell alike, and behave similarly in the kitchen.

What Does "Onion Family" Mean Botanically?

The onion family is the common name for the genus Allium, which sits within the plant family Amaryllidaceae. This family includes roughly 900 species, but the ones you eat are mostly in the Allium genus. Botanical classification is based on shared physical traits and genetic relationships, not just flavor. Garlic and onions both grow from bulbs, have hollow or flat leaves, and produce flowers in a distinctive cluster called an umbel.

More importantly, both garlic and onions contain sulfur compounds, specifically alliin and the enzyme alliinase. When you cut or crush them, these compounds mix and form volatile molecules like allicin, which give them their sharp smell and taste. This chemical similarity is a direct result of their close evolutionary relationship.

How Garlic and Onions Differ Within the Family

Even though they share a genus, garlic and onions are distinct species with different structures and uses:

  • Garlic (Allium sativum) grows as a single bulb composed of multiple cloves, each wrapped in a papery skin. It has flat, solid leaves.
  • Onions (Allium cepa) form a single large bulb with concentric layers. Their leaves are hollow and round.
  • Shallots (Allium cepa var. aggregatum) are a botanical variety of onion, growing in clusters like garlic but with a milder flavor.
  • Leeks (Allium ampeloprasum) and chives (Allium schoenoprasum) are also in the same genus but are grown for their stalks or leaves rather than bulbs.

These differences matter for cooking: garlic’s cloves are easier to mince and release more allicin per gram, which is why it has a stronger, more pungent flavor than onion.

Why People Confuse Garlic with Onions

The confusion is understandable. Both are bulbous, both are used as aromatic bases in cooking, and both have a similar sulfurous smell when cut. In many languages, the word for garlic literally means "onion" with a modifier. For example, in Latin, garlic is allium sativum, but in Old English it was garleac, meaning "spear leek," and leeks are also in the Allium genus. The shared chemistry and overlapping culinary roles make it easy to assume they are the same plant, but they are separate species within the same genus.

How to Choose Fresh Garlic and Onions

When buying garlic, look for bulbs that feel firm and heavy for their size, with dry, papery skins and no soft spots or green sprouts. Avoid bulbs with dark spots or a musty smell, which indicate mold. For onions, choose ones that are firm, have tight, shiny skin, and no visible sprouting. Both should be stored in a cool, dry, well-ventilated place, but not in the refrigerator, because cold and moisture can cause sprouting and spoilage.

If you buy garlic that has started to sprout, it is still safe to eat, but the flavor will be more bitter and less pungent. Onions that have sprouted are also safe but may taste stronger and have a slightly woody texture.

Common Problems: Why Do Garlic and Onions Make You Cry?

When you cut an onion, you break cells and release an enzyme called alliinase, which converts sulfur compounds into a gas called propanethial S-oxide. This gas travels to your eyes and reacts with the water in them to form a mild sulfuric acid, which irritates the tear glands. Garlic does not make you cry as much because it contains less of the volatile compound that reaches your eyes; instead, it produces more allicin, which is heavier and less volatile, so it stays in the food and your mouth.

To reduce tearing when cutting onions, try chilling them for 30 minutes before cutting, or cut them under running water. Using a very sharp knife also helps because it crushes fewer cells, releasing less gas.

Cooking and Storage Safety for Garlic and Onions

Both garlic and onions are low-acid vegetables, so they must be handled properly to prevent bacterial growth, particularly Clostridium botulinum, which causes botulism. Never store raw garlic or onions in oil at room temperature; this creates an anaerobic environment that can allow botulinum spores to grow. Instead, keep them in the refrigerator and use within 7 days. If you make garlic or onion infused oil, always refrigerate it and use it within a week, or freeze it for longer storage.

For cooked dishes, the USDA recommends reheating leftovers to an internal temperature of 165°F (74°C) to kill any bacteria. Perishable foods containing garlic or onions should not be left at room temperature for more than 2 hours (1 hour if the room is above 90°F). After that, refrigerate them promptly.

Comparing Garlic and Onion Flavor and Nutrition

Garlic has a sharper, more intense flavor than onion, with a hint of sweetness when roasted. Onions are milder and can be eaten raw in salads, while raw garlic is usually too pungent for most people. Both are low in calories and provide small amounts of vitamin C, vitamin B6, and manganese. They also contain antioxidants, but neither is a significant source of protein or fiber. The health benefits often associated with garlic and onions come from their sulfur compounds, but these are not a substitute for medical treatment, and no specific health claims are made here.

Alternatives to Garlic and Onions

If you cannot eat garlic or onions due to allergy, intolerance, or FODMAP sensitivity, you can use other members of the Allium family like chives or leeks, but they may still cause issues. For a non-allium substitute, try using celery, fennel, or asafoetida powder (hing) to mimic the savory depth. Asafoetida, when cooked in oil, has a flavor reminiscent of garlic and onion but is not related botanically. Always check with a healthcare provider for specific dietary advice.

Frequently Asked Questions

Is garlic a vegetable or an herb?

Garlic is a vegetable, specifically a bulb vegetable. It is not an herb, because herbs are typically the leafy green parts of plants, whereas garlic is grown for its underground bulb.

Can you substitute garlic for onions in a recipe?

You can substitute, but the flavor will be different. Garlic is more pungent and less sweet than onion, so use about half the amount and adjust to taste. For a closer match, use shallots, which are a cross between garlic and onion in flavor.

Are garlic and onions poisonous to pets?

Yes, garlic and onions are toxic to dogs and cats. They contain thiosulfates, which can damage red blood cells and cause anemia. Even small amounts can be harmful, so keep them away from pets and call a vet if your pet eats any.

Why does garlic turn blue or green when pickled?

This happens when garlic reacts with copper or iron in the vinegar or cooking water. The sulfur compounds in garlic form a blue-green pigment. It is harmless and safe to eat, though the color may be surprising.

Can you eat garlic sprouts?

Yes, garlic sprouts are safe to eat. The green sprout in the center of a clove is edible but has a bitter taste. You can remove it before cooking if you prefer a milder flavor.

In this article
  1. What Does "Onion Family" Mean Botanically?
  2. How Garlic and Onions Differ Within the Family
  3. Why People Confuse Garlic with Onions
  4. How to Choose Fresh Garlic and Onions
  5. Common Problems: Why Do Garlic and Onions Make You Cry?
  6. Cooking and Storage Safety for Garlic and Onions
  7. Comparing Garlic and Onion Flavor and Nutrition
  8. Alternatives to Garlic and Onions
  9. Frequently Asked Questions