Homemade Garlic & Onion Infused Olive Oil

Introduction

Homemade Garlic & Onion Infused Olive Oil is a simple way to create a fragrant, savory oil for cooking, drizzling, and finishing dishes. Fresh garlic and onion add a rich aroma and delicious flavor to everyday meals, while extra-virgin olive oil provides a smooth, fruity base.

This homemade infusion can be prepared in a small batch and used to enhance roasted vegetables, pasta, soups, bread, salads, and marinades. However, because fresh garlic stored in oil can support the growth of Clostridium botulinum under certain conditions, proper preparation, refrigeration, and storage are essential.

Ingredients List

You’ll Need

  • 1 cup extra-virgin olive oil
  • 4 fresh garlic cloves, peeled and finely sliced
  • ¼ small onion, thinly sliced
  • 1 small sprig fresh rosemary or thyme — optional
  • ¼ teaspoon black peppercorns — optional

Possible Substitutions

  • Use yellow onion, white onion, or shallots.
  • Extra-virgin olive oil can be replaced with a mild olive oil.
  • Rosemary can be substituted with thyme or omitted completely.
  • For a spicier version, add a small amount of dried chili flakes.

Fresh ingredients create the strongest aroma, but they also make safe storage more important.

Timing

StepApproximate Time
Preparation10 minutes
Gentle heating15–20 minutes
Cooling20–30 minutes
Total active preparationAbout 30 minutes

Unlike a long-cooked flavored oil, this method uses gentle heat to extract flavor without browning the garlic or onion.

Step-by-Step Instructions

Step 1: Prepare the Garlic and Onion

Peel the garlic cloves and slice them thinly. Slice the onion into small pieces so that both ingredients can release their aroma efficiently.

Pat the ingredients dry before using them. Avoid adding unnecessary water to the oil.

Step 2: Combine the Ingredients

Place the olive oil, garlic, and onion in a small saucepan.

If desired, add rosemary, thyme, or a few black peppercorns for additional flavor.

Step 3: Heat Gently

Place the saucepan over low heat.

Warm the mixture gently for approximately 15–20 minutes. The goal is to infuse the oil, not deep-fry the garlic.

Keep the temperature low enough that the garlic does not become dark brown or burnt.

Step 4: Watch the Aromatics Carefully

As the oil warms, you should notice a pleasant garlic-and-onion aroma.

Stir occasionally with a clean utensil. If the garlic begins to brown rapidly, reduce the heat or remove the pan from the stove.

Step 5: Cool the Oil

Remove the saucepan from the heat and allow the oil to cool.

Do not seal a hot mixture in a container. Let it cool sufficiently before transferring it.

Step 6: Strain the Infused Oil

For safer short-term storage, strain out the fresh garlic and onion using a clean fine-mesh strainer.

Transfer the flavored oil into a clean, food-safe container.

Step 7: Refrigerate Promptly

Because this recipe contains fresh garlic, refrigerate the finished oil promptly.

For food safety, homemade garlic-in-oil mixtures should not be stored at room temperature. A conservative approach is to make small batches and use them within 4 days, following food-safety guidance for homemade garlic-in-oil preparations.

Nutritional Information

The exact nutritional value depends primarily on the amount of olive oil consumed.

Approximate nutrition for 1 tablespoon of olive oil is:

  • Calories: about 120
  • Fat: about 14 g
  • Saturated fat: about 2 g
  • Carbohydrates: 0 g
  • Protein: 0 g
  • Fiber: 0 g

Garlic and onion contribute small amounts of vitamins, minerals, and plant compounds, but the quantities remaining in the strained oil can vary.

Olive oil is also a source of monounsaturated fat. Nutritional values will vary according to the oil brand, recipe proportions, and serving size.

Healthier Alternatives for the Recipe

Choose Extra-Virgin Olive Oil

Extra-virgin olive oil provides a flavorful base and can help you use less oil because its taste is naturally pronounced.

Increase the Herbs

Add dried herbs such as oregano, rosemary, or thyme for more flavor without adding sugar or salt.

Use It as a Finishing Oil

Instead of pouring large amounts into a dish, use a small drizzle immediately before serving. A little strongly flavored oil can add plenty of aroma.

Make Smaller Batches

Preparing smaller quantities reduces the temptation to keep homemade garlic oil for too long and helps maintain freshness.

Serving Suggestions

Use your Homemade Garlic & Onion Infused Olive Oil to add flavor to:

  • Crusty bread
  • Roasted potatoes
  • Steamed vegetables
  • Pasta
  • Grilled chicken
  • Baked fish
  • Homemade pizza
  • Bean or lentil soups
  • Grain bowls
  • Fresh salads

For an especially simple appetizer, drizzle a small amount over warm toasted bread and sprinkle with dried herbs.

You can also add a teaspoon to roasted vegetables just before serving for a fragrant finishing touch.

Common Mistakes to Avoid

1. Storing Fresh Garlic Oil at Room Temperature

This is the most important safety issue. Fresh garlic in oil can create conditions favorable to botulinum toxin production.

Keep homemade garlic oil refrigerated and use it promptly.

2. Using Wet Ingredients

Excess moisture can affect the quality and storage stability of infused oil.

Pat fresh ingredients dry before preparation.

3. Burning the Garlic

High heat can produce bitter flavors.

Keep the temperature low and remove the oil from the heat if the garlic begins browning too quickly.

4. Making a Very Large Batch

Large quantities are harder to use quickly.

A small batch is more practical for homemade preparation.

5. Using an Unclean Container

Always use a clean, food-safe container and clean utensils when preparing and handling the oil.

Storing Tips for the Recipe

Food safety is especially important with homemade garlic-infused oil.

  • Refrigerate the finished oil promptly.
  • Keep the container tightly covered.
  • Do not leave homemade garlic oil sitting on the counter for extended periods.
  • Make small batches whenever possible.
  • For the safest approach, use refrigerated homemade garlic-in-oil preparations within 4 days.
  • Discard the oil if you are unsure how long it has been stored or how it was handled.

Never taste a questionable homemade garlic-in-oil mixture to determine whether it is safe.

For longer storage, commercially prepared garlic-infused oils made using validated preservation or acidification processes are a safer option.

Conclusion

Homemade Garlic & Onion Infused Olive Oil adds rich flavor to everyday meals with simple ingredients. Prepare it gently, refrigerate it promptly, and use small batches within safe storage limits. Try this flavorful recipe, share your experience in the review section or leave a comment on our blog, and subscribe for more updates!

FAQs

Can I use fresh garlic in olive oil?

Yes, fresh garlic can be used to flavor olive oil, but homemade garlic-in-oil mixtures require careful handling because of the risk of botulism. Refrigerate promptly and use within a short period.

Can I leave garlic-infused olive oil on the counter?

It is not recommended for homemade preparations containing fresh garlic. Refrigerate the oil rather than storing it at room temperature.

How long does homemade garlic and onion oil last?

For a conservative food-safety approach, refrigerate homemade garlic-in-oil preparations and use them within 4 days.

Can I use dried garlic instead?

Dried garlic has substantially less available moisture than fresh garlic and may be more suitable for certain infused-oil preparations. However, use a tested food-preservation method if you intend to store flavored oil for an extended period.

Can I use this oil for cooking?

Yes. It can be used in cooking or as a finishing oil. Avoid overheating it unnecessarily, particularly if you want to preserve the delicate flavor of extra-virgin olive oil.

Can I add rosemary or thyme?

Yes. Herbs can add wonderful aroma and flavor. For homemade preparations containing fresh ingredients, however, the same careful refrigeration and short-storage principles should be followed.

Does garlic-infused olive oil have health benefits?

Olive oil is a source of monounsaturated fat and garlic contains various plant compounds. However, this recipe should primarily be considered a flavorful food ingredient rather than a treatment for a medical condition.

What should I do if I forgot the oil at room temperature?

If homemade garlic-in-oil has been left at room temperature for an extended period, the safest choice is to discard it rather than taste it or attempt to make it safe by reheating.