What Makes a Good Substitute for Garlic in Cooking?
Garlic contributes pungency, aroma, umami, and a savory backbone in many cuisines, from Italian pasta sauces to Indian curries and Chinese stir-fries.
The best substitute for garlic in cooking depends on whether you need a similar flavor, a similar aroma, or simply the same depth in a dish.
Because garlic behaves differently when raw, sautéed, roasted, or dried, the right replacement is not always one ingredient.
In many recipes, the best choice is a combination of onion family ingredients, herbs, acids, and umami-rich seasonings that recreate garlic’s role rather than its exact taste.
Best Substitute for Garlic in Cooking: Top Options
1. Shallots
Shallots are one of the closest all-purpose substitutes because they are milder and sweeter than garlic but still provide a savory allium base.
They work especially well in salad dressings, pan sauces, sautés, and roasted vegetables.
- Use about 1 tablespoon finely minced shallot for every 1 clove of garlic.
- Best for: vinaigrettes, compound butter, seafood, eggs, and light sauces.
- Why it works: shallots offer a delicate onion-garlic hybrid profile without overpowering the dish.
2. Onion or Onion Powder
Onion is a practical substitute when garlic is unavailable.
Yellow onion adds body and sweetness when cooked, while onion powder is useful in dry rubs, soups, and spice blends.
It will not taste like garlic, but it restores savory depth.
- Use 1 to 2 tablespoons minced onion for 1 clove of garlic.
- Use 1/4 teaspoon onion powder for 1 clove of garlic.
- Best for: soups, stews, meat dishes, casseroles, and marinades.
If a recipe already includes onion, increase herbs, black pepper, or umami ingredients rather than adding more onion alone, or the dish may taste overly sweet.
3. Garlic-Infused Oil
Garlic-infused oil is ideal when you want garlic aroma without visible pieces of garlic.
It is especially useful for people avoiding garlic solids, including those following low-FODMAP diets under professional guidance.
- Use 1 to 2 teaspoons garlic-infused oil for 1 clove of garlic, adjusting to taste.
- Best for: pasta, roasted vegetables, hummus-style spreads, sautéed greens, and dipping oil.
- Why it works: fat carries aromatic compounds and delivers the familiar garlicky scent.
Use commercially prepared garlic-infused oil or properly made refrigerated versions to reduce food-safety risks associated with homemade infused oils.
4. Asafoetida
Asafoetida, also called hing, is a classic garlic substitute in Indian cooking.
It has a strong sulfurous aroma when raw, but it mellows into a savory, onion-garlic-like flavor once cooked in hot oil or ghee.
- Use a small pinch, often less than 1/8 teaspoon, for a dish serving 4.
- Best for: lentils, curries, vegetable stir-fries, and bean dishes.
- Why it works: it adds pungent, savory complexity similar to allium-heavy recipes.
Because it is concentrated, too much asafoetida can dominate a dish.
Start small and add gradually.
5. Chives or Green Onion
Chives and green onions provide fresh allium flavor with less sharpness than garlic.
They are best used as a finishing ingredient or blended into dips, sauces, and egg dishes rather than as the main savory base.
- Use 1 to 2 tablespoons chopped chives or green onion greens for 1 clove of garlic.
- Best for: sour cream dips, potatoes, omelets, tuna salad, and garnishes.
- Why it works: they contribute freshness and mild pungency without harshness.
6. Garlic Powder or Granulated Garlic
If you are out of fresh garlic, garlic powder is the most direct pantry substitute.
It is not a different flavor so much as a different form of garlic, making it the best choice when you want to preserve the recipe’s original profile.
- Use 1/8 teaspoon garlic powder for 1 clove of garlic.
- Use 1/4 teaspoon granulated garlic for 1 clove of garlic.
- Best for: rubs, soups, sauces, dressings, and spice blends.
Garlic powder distributes evenly and is especially useful in recipes where chopped garlic might burn.
7. Celery Seed or Fennel Seed in Small Amounts
These are not direct replacements, but in certain recipes they can add aromatic complexity when garlic is missing.
Celery seed is earthy and slightly bitter; fennel seed is sweet and licorice-like.
Both should be used sparingly and only when the recipe can support a different aromatic profile.
- Use a pinch of celery seed or crushed fennel seed.
- Best for: tomato sauces, vegetable soups, sausage seasoning, and braised dishes.
- Why it works: the seeds restore layered flavor where garlic normally supplies depth.
How to Choose the Right Substitute Based on the Recipe
For raw recipes
In salsa, aioli, salad dressing, or tzatziki, the goal is often garlic’s sharp bite.
Shallots, finely grated onion, or a small amount of garlic-infused oil can work well, depending on whether you need texture, heat, or aroma.
- Best choices: shallots, onion juice, garlic-infused oil, chives.
- Avoid: strongly sweet substitutes that dilute the sharpness.
For cooked sauces and soups
When garlic is simmered or sautéed, it mainly provides savory foundation.
Onion, shallots, garlic powder, and asafoetida perform well here because they can develop into a rounded base flavor during cooking.
- Best choices: onion, shallots, garlic powder, asafoetida.
- Tip: cook allium substitutes in fat before adding liquid to deepen flavor.
For roasted vegetables and proteins
Roasted dishes need fragrance and browning support.
Garlic powder, shallots, and garlic-infused oil are especially effective, while fresh onion can also work if sliced thinly so it caramelizes rather than steams.
- Best choices: garlic powder, garlic-infused oil, shallots, thin onion slices.
- Tip: add herbs like rosemary, thyme, or oregano to reinforce savory notes.
For beans, lentils, and legumes
Garlic is often used to reduce perceived earthiness in legumes.
Asafoetida is a traditional and highly effective substitute in lentil-based dishes, while onion and shallots can also build a robust base.
- Best choices: asafoetida, onion, shallots, garlic powder.
- Tip: toast spices in oil before adding legumes to mimic garlic’s aromatic role.
Simple Substitution Ratios to Use in a Pinch
These ratios are starting points, not fixed rules.
Taste and adjust based on the other ingredients in the dish.
- 1 garlic clove = 1 tablespoon minced shallot
- 1 garlic clove = 1 to 2 tablespoons minced onion
- 1 garlic clove = 1/8 teaspoon garlic powder
- 1 garlic clove = 1/4 teaspoon granulated garlic
- 1 garlic clove = 1 to 2 teaspoons garlic-infused oil
- 1 garlic clove = small pinch of asafoetida
Best Substitute for Garlic in Cooking by Dietary Need
Low-FODMAP considerations
Many people avoid garlic because it can trigger digestive symptoms.
Garlic-infused oil is often used because the fructans in garlic do not dissolve into oil, but individual tolerance varies and medical advice matters.
Chives and green onion greens are also commonly used in small amounts.
Garlic allergy or intolerance
If garlic causes allergy symptoms, use substitutes from outside the garlic bulb itself.
Shallots, onions, chives, and asparagus-family ingredients may still be suitable for some people, but cross-reactivity and personal tolerance should be considered carefully.
Vegan and vegetarian cooking
Garlic often adds savoriness in plant-based dishes, so replacing it usually requires more than one ingredient.
Combine onion, miso, nutritional yeast, tomato paste, or soy sauce with herbs to restore depth.
Flavor Boosters That Help Any Substitute Work Better
When the substitute is milder than garlic, the dish can still taste balanced if you replace garlic’s supporting role with other flavor-building ingredients.
- Acid: lemon juice, vinegar, or tamarind brightens the dish.
- Umami: miso, soy sauce, tomato paste, mushrooms, or nutritional yeast adds savoriness.
- Herbs: thyme, oregano, parsley, cilantro, and basil help round out the aroma.
- Spices: black pepper, cumin, smoked paprika, and coriander can replace garlic’s complexity.
When Not to Use a Straight Swap
Some recipes rely on garlic for a very specific effect, such as aioli, garlic bread, or garlic confit.
In these cases, a one-to-one replacement may not taste right.
Instead, adjust the technique: use garlic powder for even distribution, garlic-infused oil for aroma, or a blend of shallots and herbs for a softer profile.
If garlic is the dominant ingredient, such as in garlic toast or garlic butter noodles, the most effective substitute is usually a combination of onion family flavor, fat, salt, and herbs rather than a single ingredient.
Frequently Used Pairings for Better Results
- Shallots + thyme for elegant sauces
- Onion powder + smoked paprika for rubs and marinades
- Garlic-infused oil + parsley for pasta and vegetables
- Asafoetida + cumin for lentils and curries
- Chives + lemon zest for fresh dips and potato dishes
Choosing the best substitute for garlic in cooking comes down to matching the recipe’s needs: pungency, aroma, body, or umami.
Once you identify which role garlic is playing, it becomes much easier to swap in the right ingredient and keep the dish balanced.
