Onions, garlic and shallots: types and how to use them

How yellow, red and white onions, shallots, leeks and garlic differ, and how to chop, store, soften and caramelize them

Onions, shallots and garlic bulbs on a wooden board with a knife

Yellow onions are the all-purpose choice for cooking, red onions suit raw and quick-pickled uses, shallots give a finer, sweeter flavor, and garlic is added late so it doesn’t burn. Cook onions slowly over medium-low heat for 8 to 10 minutes to soften, and 40 to 60 minutes to caramelize. Garlic needs only 30 to 60 seconds in hot fat before it turns pale gold; past that it turns bitter.

The alliums at a glance

TypeFlavorBest forCook time to soften
Yellow onionSharp raw, sweet when cookedSoups, stews, sautés, caramelizing8-10 min medium
White onionCrisp, clean, sharperMexican salsas, stir-fries6-8 min
Red onionMild, slightly sweet, colorfulSalads, pickling, grilling8-10 min, color fades
Sweet onion (Vidalia, Walla Walla)Low sulfur, juicyRaw on burgers, ringsBurns easily, 5-7 min
ShallotDelicate, between onion and garlicVinaigrettes, pan sauces, French dishes3-5 min
Spring onion (scallion)Mild, grassyGarnish, stir-fries, quick cooking1-2 min
LeekSweet, mellowSoups, gratins, braises8-10 min
GarlicPungent raw, mellow roastedAlmost everything savory30-60 sec
ChivesDelicate onionGarnish, eggs, potatoesAdd at end

Choosing and storing

Pick onions, shallots and garlic that feel heavy and hard, with dry papery skins and no soft spots, sprouts or mold. Store them in a cool, dry, dark, ventilated spot, such as a basket or mesh bag, but not next to potatoes, which give off moisture and speed spoilage.

  • Whole onions: 1 to 2 months in the pantry; sweet onions less.
  • Garlic heads: 3 to 5 months; once the head is broken, use the loose cloves within 10 days.
  • Shallots: 1 to 2 months.
  • Cut onion: wrap and refrigerate for up to 7 days.
  • Spring onions and leeks: refrigerate, 1 to 2 weeks.

Don’t store peeled garlic in oil at room temperature. USDA and FDA both warn that garlic-in-oil mixtures can allow botulism bacteria to grow; keep them in the fridge, use within 4 days, or freeze. See our produce storage guide for more.

How to cut an onion without wasting time

  1. Cut off the stem end, leaving the root end intact, which holds the layers together.
  2. Halve through the root, peel, then lay each half flat.
  3. Make horizontal cuts toward the root (2 or 3 for dice), then vertical cuts, keeping the tip attached.
  4. Slice across for a dice about 5 mm (1/4 in) wide.

To cry less, use a sharp knife, since a dull one crushes more cells and releases more irritants. Chilling the onion for 15 minutes helps a little. More on technique in our guide to knife skills.

How to cook onions

Soften (sweat)

Heat 1 tbsp oil or butter over medium-low, add 1 diced medium onion (about 150 g / 5 oz) with a pinch of salt, and cook 8 to 10 minutes, stirring now and then, until translucent but not browned. Salt draws out water and prevents browning.

Brown

Use medium-high heat and cook 10 to 12 minutes, stirring often, until golden edges appear. This is for chili, curries and stews that want a savory base.

Caramelize

Slice 4 onions (about 600 g / 1 1/4 lb) into half-moons. Cook in 2 tbsp butter or oil over medium-low heat for 40 to 60 minutes, stirring every 3 to 4 minutes, until deep amber and jammy. If they stick, add 1 tbsp water and scrape. Rushing at high heat just burns them. The onions shrink to about a quarter of their volume, so start with more than you think you need.

Roast or grill

Wedge them with the root attached, toss in oil and roast at 200 °C (400 °F) for 25 to 35 minutes.

Garlic: raw, roasted, fried

  • Raw: crushed or minced gives the sharpest taste. Use half the amount you’d cook; raw garlic in dressings gets stronger as it sits.
  • Sliced: slow-cooked in oil, mellow and sweet. Whole cloves in braises turn soft and mild.
  • Roasted: slice the top off a head, add 1 tsp oil, wrap in foil and roast at 200 °C (400 °F) for 35 to 45 minutes until the cloves squeeze out like butter.
  • Fried: add after the onions, 30 to 60 seconds before liquid goes in. Pull the pan off the heat if it colors too fast.

One medium clove is roughly 1 tsp minced. Chopping or crushing releases more of the pungent compounds than leaving cloves whole.

Shallots and substitutes

Three small shallots are roughly 1 medium onion. In a pinch, replace shallots with the white part of spring onions, or with half a yellow onion plus a pinch of sugar. For other swaps, see ingredient substitutes.

Quick pickled red onions

Slice 1 red onion thinly, pack into a jar, and pour over a hot mix of 120 ml (1/2 cup) vinegar, 120 ml (1/2 cup) water, 1 tsp sugar and 1 tsp salt. Let it sit for 30 minutes. The acid turns the slices bright pink and softens the raw bite. Keep covered in the fridge for up to 2 weeks. They suit tacos, salads, burgers and grain bowls.

Rough equivalents: one medium onion is about 150 g (5 oz), or roughly 1 cup chopped. A leek white-and-light-green part is 1 to 1 1/2 cups sliced.

Common mistakes

  • Burning garlic: add it after onions, and stop at pale gold.
  • Caramelizing on high heat: use medium-low and patience, 40 to 60 minutes.
  • Storing onions in the fridge whole: they go soft and make other foods smell; keep them cool and dry in the pantry.
  • Storing garlic in oil at room temperature: refrigerate for up to 4 days or freeze.
  • Crowding the pan: onions steam instead of brown. Use a wide pan.
  • Removing the green sprout from garlic as a rule: it’s harmless but bitter, so remove it from older cloves.

FAQ

Why do onions make me cry?

Cutting breaks cells and releases a sulfur compound that irritates your eyes. A sharp knife, a cold onion and good ventilation reduce it.

Can I use red onion instead of yellow?

Yes, though it’s milder and loses its color when cooked. It works well raw, grilled or pickled.

How much is one clove of garlic?

A medium clove is about 1 tsp minced or 3 g. Large recipes often call for far more than the average clove, so go by weight if the recipe gives it.

Is it safe to eat sprouted onions or garlic?

Sprouted but firm ones are safe; trim the sprout. Discard any that feel soft, slimy or moldy.

Alliums anchor French cuisine, Indian cuisine and Mexican cuisine.

Sources

II
About the author
Ivan Ivanov
Founder ofSupreme CommerceGiantParts

Ivan Ivanov is the founder of Supreme Commerce OOD and editor-in-chief of DayNightCook. He chooses the dishes and topics and reviews the recipes and guides before they go live. Recipes are researched from published cookbooks, food-history sources and official food-safety guidance (USDA, EFSA, UK FSA), and every recipe lists its sources. Some content is prepared with the help of AI tools and checked under our AI Transparency Policy.

Clear steps, real sources, food that works at home

  • Sources under every recipeCookbooks, food history and official food-safety guidance
  • Metric and clear timingsGrams, millilitres and real cooking times
  • Honest about authenticityEach recipe notes how close it is to the original

Keep exploring