The Feast

Home cooking recipes for everyday dinners and easy entertaining

How to Cook Garlic Cloves in Olive Oil

· 5 min read · Dinners

Cooking garlic cloves in olive oil creates a versatile, aromatic condiment that transforms simple dishes into gourmet experiences. This technique, often referred to as confit or slow-roasted garlic, mellows the sharp bite of raw garlic into a sweet, buttery paste while infusing the oil with rich flavor. The result is a dual-purpose ingredient: tender, spreadable garlic and fragrant infused oil suitable for dressings, sautéing, or finishing dishes.

What You'll Need

  • 1 cup extra virgin olive oil (or a neutral oil like grapeseed if you prefer less olive flavor)
  • 6–8 large fresh garlic cloves, peeled
  • A small saucepan or skillet with a heavy bottom
  • A slotted spoon or fine-mesh strainer
  • An airtight glass jar for storage

Step-by-Step

  1. Prepare the Garlic: Peel the garlic cloves. If the cloves are very large, you may halve them lengthwise to ensure even cooking, though whole cloves work well too. Ensure they are dry; pat them gently with a paper towel if there is excess moisture on the surface.
  2. Combine Ingredients: Place the peeled garlic cloves into your saucepan. Pour the olive oil over the garlic until the cloves are completely submerged. It is critical that no garlic pieces stick out above the oil line, as exposed garlic can burn or spoil more quickly during storage.
  3. Heat Gently: Turn the heat to low. There is no need to rush this process. Bring the oil to a gentle simmer. You should see small bubbles forming around the garlic, but the oil should not be boiling vigorously. Boiling will make the garlic tough and bitter.
  4. Simmer Slowly: Let the garlic cook undisturbed for 15–20 minutes. Stir occasionally with a wooden spoon to prevent sticking, especially if your pan has thin spots. The garlic is done when it turns a pale golden color and becomes tender enough to be easily pierced with a fork. It should not be brown or dark gold, which indicates burning.
  5. Remove from Heat: Once the garlic reaches the desired tenderness and color, immediately remove the pan from the heat source. Using a slotted spoon, carefully lift the garlic cloves out of the oil and place them into your prepared airtight glass jar.
  6. Strain and Store: Pour the remaining hot olive oil through a fine-mesh strainer into the jar over the garlic. Seal the jar tightly while the contents are still warm. Allow the mixture to cool to room temperature before refrigerating.

Common Mistakes

One of the most frequent errors is using high heat. Garlic burns easily, and burnt garlic tastes acrid and bitter, ruining both the cloves and the oil. Always start with low heat and resist the urge to increase the temperature to speed things up. Another common mistake is under-submerging the garlic. Any part of the garlic exposed to air will oxidize and potentially harbor bacteria. Ensure the oil covers every clove completely.

Additionally, many home cooks skip the cooling step. Placing a hot jar directly into the refrigerator can cause thermal shock, potentially cracking the glass, and creates condensation inside the lid, which introduces water into the mixture. Water activity promotes bacterial growth, particularly Clostridium botulinum, the bacterium responsible for botulism. Always let the jar sit at room temperature until it is completely cool before sealing and storing.

Tips

To enhance the flavor profile, consider adding aromatics to the oil while it heats. A sprig of fresh thyme, rosemary, or a crushed bay leaf can add depth without significantly increasing safety risks if consumed within a short timeframe. However, keep in mind that herbs introduce moisture, so consume these flavored oils within one week rather than the full month recommended for plain garlic oil.

If you want a stronger garlic punch, do not overcrowd the pan. Cook in batches if necessary. For a smoother texture, you can mash the cooled garlic cloves slightly after removing them from the heat, creating a rustic paste. This "garlic butter" style is excellent for spreading on crusty bread or mixing into mashed potatoes.

Troubleshooting

If the garlic turns brown too quickly, your heat was too high. Discard the batch; burnt garlic cannot be salvaged. If the garlic remains hard after 20 minutes, continue cooking in 2-minute increments, checking frequently. Overcooked garlic becomes rubbery and loses its sweetness.

If the oil appears cloudy or murky after cooling, it may have been heated too aggressively, causing starches to release. This does not necessarily mean it is unsafe, but the texture may be unpleasant. Strain it through a coffee filter for clarity. If you notice any off odors, fizzing, or mold growth upon opening the jar, discard the entire contents immediately. Do not taste-test suspicious preserved foods.

Frequently Asked Questions

Can I leave cooked garlic in olive oil at room temperature?

No. Cooked garlic in oil is a low-acid, moist environment that supports the growth of Clostridium botulinum. It must be stored in the refrigerator and used within one month. Never store it on the counter.

How long does this last in the fridge?

Properly stored in an airtight container in the refrigerator, homemade garlic confit lasts for about 4 weeks. If you freeze it, it can last up to 6 months.

Is it safe to eat the oil?

Yes, the infused oil is safe and delicious. Use it for salad dressings, drizzling over roasted vegetables, or finishing pasta dishes. Note that the smoke point of the oil decreases slightly due to the added solids, so avoid using it for deep frying.

Why did my oil solidify in the fridge?

Olive oil naturally thickens or solidifies when chilled. This is normal and reversible. Simply let the jar sit at room temperature for 15–20 minutes before use, and the oil will return to its liquid state.

Can I use this method for other vegetables?

You can, but be cautious. Vegetables with higher water content (like onions or peppers) introduce more risk for bacterial growth. Stick to low-moisture items like shallots or cherry tomatoes, and reduce storage time to one week.

Does peeling garlic make it harder to cook?

Not necessarily. Peeled garlic cooks faster because the protective skin is removed. However, peeled cloves can split open during cooking. Halving them beforehand helps maintain their shape and ensures even browning.

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions