On this page

Quick answer

For most cooked recipes, use chopped yellow onion in a 1:1 volume swap: 1/2 cup chopped onion for 1/2 cup chopped shallots. For raw applications, choose sweet onion or green onion whites for a milder flavor. Adjust garlic, salt, and liquid as needed, and cook the substitute until tender.

At a glance

Time
5–10 min
Difficulty
Easy
You'll need
Onion, knife, measuring cup
Best option
Yellow onion, chopped 1:1 by volume
Works for
Soups, sauces, sautéed dishes, and braises
Not covered
Specialty garnishes and exact shallot flavor

What do shallots do in a recipe?

Shallots are small, mild members of the onion family. In most recipes, they provide a gentle onion sweetness, a soft aromatic bite, and a moist texture when chopped. Their flavor is less sharp than a standard yellow onion, so a good substitute must replace both the onion note and some of the texture that the shallot contributes. That matters in soups, sauces, and sautés, where the chopped shallot often forms the main flavor base.

Shallots also brown when cooked. When simply sautéed, they often turn sweet quickly and leave less sharp heat than yellow onion, although they do not develop the same deep color during long caramelizing. Their layers can also stay more noticeable when coarsely chopped. Once finely chopped, they lose much of that visible identity and behave more like onion. Judge the swap by the role in your recipe, not by whether the finished dish contains an identical-looking piece.

Before you swap

Before you swap, check three things: the quantity, the job the shallot is doing, and whether it goes into the pan raw or gets cooked.

  1. Measure the prepared amount. If the recipe calls for 1/2 cup finely chopped shallots, use 1/2 cup finely chopped substitute. A whole shallot and a whole onion are not equal units because their usable volumes differ.
  2. Decide whether the shallot is a star or background note. In a vinaigrette or fresh salsa, its mildness may be central. In a soup with several seasonings, it may only need to soften the other flavors. That choice matters more than the shallot’s name on the ingredient list.
  3. Follow the cooking method. If the shallot is cooked until soft, use an onion that can soften in the same pot. If it is raw, choose a substitute with a milder bite. Finely chopping any of these options helps their flavor blend more closely.

Measure by volume, not by the number of bulbs. If the recipe gives a weight, weigh the prepared substitute and adjust for any difference in texture.

Option 1 Yellow onion

Why it works

Yellow onion is the most useful all-purpose substitute for cooked dishes. It supplies sweet-savory onion flavor and a texture that softens in similar ways, though it usually tastes fuller and sharper than a shallot. Chopped pieces stay more visible, so match the recipe’s requested dice. It is the safest choice when you need a close everyday onion flavor without changing the recipe’s structure.

  • Ratio: Use 1:1 by prepared volume: 1/2 cup chopped yellow onion for 1/2 cup chopped shallots. Compare what you actually chop rather than counting whole bulbs.
  • How to adjust: For soups, stocks, and braises, add it with the other aromatics and let it soften fully. For a sauté, give it a few minutes to lose its raw edge. Add salt near the end and taste before correcting the seasoning. Do not add extra liquid unless the pan looks dry.
  • Best for: Choose it for bean soup, chili, stews, curry, gravies, pan sauces, eggs, and meatball mixtures where onion flavor is welcome.
  • Doesn’t suit: It is a poor match for a delicate salad dressing, a raw garnish, or a dish where mild shallot sweetness must remain distinct.

Option 2 Sweet onion

Why it works

Sweet onion is the better choice when shallots go into a raw salad, salsa, or dressing. Its flavor is rounder and less sharp than yellow onion, which makes it closer to a raw shallot, but it still tastes clearly like onion. It also softens smoothly when cooked, though it will not give the same deep browning. Slice it thinly if you want its stronger flavor to blend throughout the dish.

  • Ratio: Use 1:1 by prepared volume. For example, use 1/4 cup finely chopped sweet onion for every 1/4 cup finely chopped shallot.
  • How to adjust: Chop it as finely as practical for sauces and salsas. For cooked dishes, add it with the aromatics and cook until soft; for raw dishes, slice it just before serving. Taste the finished dish before adding more salt.
  • Best for: Use it in salads, slaws, tacos, fruit-and-onion salads, vinaigrettes, fresh salsas, and cooked dishes that call for a mild onion flavor.
  • Doesn’t suit: It is not the closest choice for a deeply caramelized onion dish or a recipe that depends on a sharp raw onion bite.

Option 3 Red onion

Why it works

Red onion works when you want a stronger onion accent and a color contrast. It has a sharper raw bite than a shallot, and its pigment can tint a dressing or pickle. Chopping it finely reduces its texture, while a short soak in cold water softens the harshest edge without removing its onion flavor. A brief soak is optional, so you can compare the texture before and after.

  • Ratio: Use 1:1 by prepared volume: 1/2 cup finely chopped red onion for 1/2 cup finely chopped shallots.
  • How to adjust: To temper a raw red onion, cover the chopped pieces with cold water for 10 minutes, drain them, and pat them dry. Start with less if the recipe already contains plenty of onion, then taste. Use it quickly so its color and texture stay fresh.
  • Best for: Choose it for slaws, tacos, bean dishes, chutneys, sandwiches, quick pickles, and dishes where a bold onion note belongs.
  • Doesn’t suit: It can overwhelm a mild dressing or fresh salsa. It also changes the color of the finished dish, which may matter in a pale sauce or light-colored pickle.

Option 4 Green onion whites

Why it works

The tender white parts of green onions provide a fresh, milder onion note that can work in place of shallots without the full sweetness of a mature bulb. They are especially useful when you want onion flavor without a heavy cooked base. The white parts measure and cook more predictably than the thin green tops. Reserve the hollow green tops for garnish because their texture does not match chopped shallot.

  • Ratio: Use 1:1 by prepared volume with the white parts only. For example, use 1/2 cup chopped green onion whites for 1/2 cup chopped shallots.
  • How to adjust: Slice the whites thinly and remove any tough outer layers. Add them with sautéed aromatics if the recipe is cooked, or add them near the end of a simmered dish. Add the green tops just before serving if the recipe calls for a fresh onion garnish.
  • Best for: Use them in eggs, fried rice, noodles, soups, stir-fries, grain bowls, and vegetable dishes that need a light onion flavor.
  • Doesn’t suit: They are not a good substitute for slow caramelizing, a long braise, or a recipe whose main flavor comes from a substantial chopped onion.

Option 5 Garlic

Why it works

Garlic is a partial substitute, not a like-for-like one. It supplies a savory allium flavor, but it does not provide shallot’s gentle sweetness or its soft diced texture. Use it only when the recipe can benefit from a different aromatic note and no other garlic is already supplying that flavor. Garlic also browns faster, so it needs a different place in the cooking sequence than chopped shallot.

  • Ratio: Use 1/2 small garlic clove for 1 medium shallot, or 1 small garlic clove for 2 medium shallots. This is a flavor swap, not a volume swap: 1/2 cup chopped shallots does not mean 1/2 cup garlic.
  • How to adjust: If the recipe already contains garlic, count that toward the swap instead of adding the full amount. Mince the garlic and bloom it briefly in oil, or add it toward the end of an aromatic sauté so it does not burn.
  • Best for: Choose it for soups, stocks, sauces, marinades, eggs, mushrooms, and vegetable dishes where a savory aromatic note is welcome.
  • Doesn’t suit: It will not replace shallots in an onion-forward sauce, a sweet-savory preparation, or any dish that needs the chopped bulk and mild sweetness they provide.

Option 6 Leek whites

Why it works

Leek whites are a close texture match when the shallot is cooked. They bring a mild onion flavor and turn tender, but they lack the shallot’s sweetness and develop very little browning. The tender light-green sections can be used too; the tougher dark-green sections are not a practical substitute. Leek also carries more moisture, which can help a sauce stay fluid.

  • Ratio: Use 1:1 by prepared volume: 1/2 cup chopped leek for 1/2 cup chopped shallots.
  • How to adjust: Separate the layers and rinse them thoroughly before slicing. Cook the leek gently until fully soft rather than using high heat. If the recipe calls for sautéed aromatics, soften the leek first and then add the remaining ingredients.
  • Best for: Use it in soups, stocks, risotto, sauces, quiches, casseroles, and braised dishes where mild onion flavor and a soft texture are wanted.
  • Doesn’t suit: It is not a good choice for raw salads, quick sautés, or dishes that need golden onion flavor and crisp browned edges.

Option 7 Chives

Why it works

Chives work as a finishing substitute. They add a fresh, mild onion flavor and a soft green texture, but they do not reproduce shallot’s layered bite or sweet cooked juices. Think of them as a garnish that also contributes flavor, rather than a replacement for the main aromatic base. They work especially well when the recipe finishes with herbs or another fresh aromatic.

  • Ratio: For a finishing garnish, use 1:1 by volume: 1/4 cup chopped chives for 1/4 cup chopped shallots. For a background flavor in a sauce, start with 1 tablespoon chopped chives per medium shallot.
  • How to adjust: Fold chives into cold sauces, eggs, potatoes, or soups just before serving. Warm them only briefly if the dish is hot. Reduce other strong seasonings before adding salt, and avoid cooking them long enough to lose their fresh flavor.
  • Best for: Use them on eggs, potatoes, cold soups, creamy sauces, soft cheeses, and as a finishing garnish for bowls and plates.
  • Doesn’t suit: They cannot replace shallots in stocks, braises, caramelized dishes, or any recipe that needs the shallot’s cooked body and released juices.

Substitutes compared

Substitute Ratio Best for How the flavor changes
Yellow onion 1:1 prepared volume Cooked soups, stews, sauces, and sautés Fuller and sharper onion flavor; browns more deeply
Sweet onion 1:1 prepared volume Raw salads, salsas, and dressings Rounder and milder, but still distinctly onion-like
Red onion 1:1 prepared volume Slaws, tacos, pickles, and bold salads Sharper raw bite and a burgundy color
Green onion whites 1:1 prepared volume Eggs, rice, noodles, soups, and stir-fries Fresh, light onion flavor with a softer texture
Garlic 1/2 small clove per medium shallot Soups, sauces, marinades, and savory vegetables Sharper and pungent, with no onion sweetness
Leek whites 1:1 prepared volume Soups, stocks, risotto, quiche, and casseroles Mild onion flavor with little browning
Chives 1:1 for garnish; 1 Tbsp per medium shallot for background flavor Eggs, potatoes, cold sauces, and fresh garnishes Delicate onion note without a cooked body

When not to substitute

  • When the dish must contain no onion-family ingredients. If an allergy or medical restriction calls for an allium-free recipe, do not use onion, green onion, garlic, leek, or chives. Follow the recipe’s directions for omission instead.
  • When the recipe already uses a full onion and garlic. Adding another onion-family substitute can make the allium flavor overly strong. Keep the shallot or use the omission stated in the recipe.
  • When a mild raw flavor is essential. Yellow and red onion can be too assertive in a delicate vinaigrette, fresh salsa, or simple salad dressing. Sweet onion is closer, but it is still not identical.
  • When appearance and texture define the dish. Whole pickled shallots, onion rings, and dishes built around distinct golden onion pieces will not look or behave the same after chopping and swapping.
  • When deep caramelization is the main goal. Onion jam, caramelized onion tarts, and dishes reduced with browned onions depend on color, concentrated sweetness, and roasted flavor that a simple shallot substitute may not provide.

Mistakes to avoid

  • Swapping equal numbers of whole bulbs. A medium onion and a medium shallot do not yield the same chopped volume. Measure the usable pieces after trimming and chopping.
  • Using a sharp raw onion where a delicate flavor is required. Yellow and red onion can make a dressing or salad taste much more strongly flavored. Choose sweet onion or green onion whites, then taste.
  • Adding the full swap and the full amount of other seasonings. Garlic, salt, vinegar, and strong spices can become unbalanced when you substitute without adjusting. Add them gradually and correct after tasting.
  • Cooking every substitute the same way. Garlic burns quickly, leeks need gentle cooking, and yellow onion takes longer to soften than a finely chopped shallot may appear to require. Follow the method that suits the substitute.
  • Leaving chopped produce out or tasting it to check safety. Refrigerate within 2 hours, or within 1 hour when the temperature is 90°F or above. Do not taste food to decide whether it is safe; when in doubt, throw it out.

How to store it so you have it next time

  • Whole, dry shallots and onions: Keep them in their skins in a cool, dry, well-ventilated place away from sunlight and dampness. Do not refrigerate whole dry onions. Storage life varies with the produce, so check the USDA FoodKeeper app for onion guidance rather than relying on a fixed date.
  • Peeled or chopped: Put the pieces in an airtight container and refrigerate at 40°F or below. Use chopped shallots and onions within about 4 to 5 days, and discard them at the first sign of mold, slime, or spoilage.
  • Extra chopped supply: Freeze measured portions in airtight containers or bags at 0°F or below. Thaw only what you need in the refrigerator, and cook or use the thawed pieces promptly.
  • Green onion tops and chives: Store the tender tops in a clean container or loosely wrapped in the refrigerator at 40°F or below. Use them while they are fresh and crisp; discard any that are limp, slimy, or discolored.

If storage conditions or age make you unsure whether an ingredient is safe, throw it out.

Frequently asked questions

What is the best substitute for shallots?

For most cooked recipes, use chopped yellow onion in a 1:1 volume swap. For raw dishes, try sweet onion or the white parts of green onions, then adjust the seasoning to taste.

How much onion should I use for one shallot?

Start with about 1/4 cup of chopped yellow onion for one medium shallot. If the recipe measures shallots by the cup, use the same prepared volume, such as 1/2 cup chopped onion for 1/2 cup chopped shallots.

Can I use garlic instead of shallots?

Yes, but only as a background flavor. Use 1/2 small garlic clove for each medium shallot and reduce any other garlic in the recipe; garlic will not supply the same sweetness or texture.

Can I use green onions or chives?

Green onion whites can replace shallots at the same measured volume in eggs, rice, noodles, and soups. Chives are better as a fresh finishing garnish, with 1/4 cup chopped chives for 1/4 cup chopped shallots.

Does using onion make the dish taste too strong?

It can, especially if the shallot was meant to be a mild background note. Choose one substitute, add it gradually when you can taste the dish, and reduce other strong seasonings before adjusting with salt.

How long can I keep chopped shallots?

Keep them in an airtight container in a refrigerator at 40°F or below, and use them within about 4 to 5 days. Check the USDA FoodKeeper app for current guidance, and throw them out if their condition or storage time makes you uneasy.

What this guide is based on

Revision history

  1. Updated and re-checked against sources.
  2. First published.

Did this fix it?

Mixtvnowcom.org editors Editorial team

The Mixtvnowcom.org editors write and check every guide on the site against the manufacturer instructions and official sources it lists, and keep each guide's revision history up to date.

More guides from the editors