The Feast

Home cooking recipes for everyday dinners and easy entertaining

How to Bake Garlic in Olive Oil: Easy Roasted Cloves

· 6 min read · Baking and Desserts

Baking garlic in olive oil transforms sharp, pungent cloves into sweet, buttery, spreadable morsels, while the oil itself becomes a flavorful infusion perfect for dressings, dipping bread, or finishing dishes. This method is simple: you place garlic cloves in a baking dish, cover them with olive oil, and roast until tender. The result is a pantry staple that keeps for weeks when stored properly. Before starting, know that you need whole garlic heads or peeled cloves, good-quality olive oil, and about 45–60 minutes of oven time. No special equipment is required beyond a small oven-safe dish and foil.

What You'll Need

  • 1 or more whole garlic heads (or pre-peeled cloves)
  • Extra-virgin olive oil (enough to submerge the garlic)
  • Small oven-safe baking dish (ramekin, small skillet, or loaf pan)
  • Aluminum foil
  • Sharp knife (to trim garlic heads)
  • Optional: fresh herbs like thyme or rosemary, a pinch of salt, or red pepper flakes

Step-by-Step

  1. Preheat the oven to 400°F (200°C). This temperature is hot enough to caramelize the garlic’s natural sugars without burning the oil. If your oven runs hot, 375°F (190°C) also works—just add 10–15 minutes to the baking time.
  2. Prepare the garlic. If using whole heads, slice off the top ¼ inch of each head to expose the cloves. If using peeled cloves, leave them whole—do not chop, as smaller pieces will burn before turning sweet.
  3. Place garlic in the dish. Arrange the heads or cloves in a single layer in your baking dish. If using whole heads, place them cut-side up. For loose cloves, spread them evenly.
  4. Pour olive oil over the garlic. Add enough oil to come about halfway up the sides of the garlic (for whole heads) or to fully submerge loose cloves. The oil should cover the cloves completely if you want them fully confit-style; if you prefer a drier roast, use just enough to coat the bottom, but know the cloves will be less tender.
  5. Season (optional). Add a pinch of salt, a few sprigs of thyme, or a small dried chili if you like. These infuse the oil gently during baking.
  6. Cover with foil. Loosely cover the dish with aluminum foil. This traps steam and prevents the garlic from drying out or browning too quickly on top.
  7. Bake for 40–60 minutes. Check at 40 minutes: the garlic should be soft when pierced with a knife. For whole heads, the cloves should squeeze out easily. For loose cloves, they should be golden and jammy. If not done, return to the oven for 10-minute increments.
  8. Cool slightly. Remove the dish from the oven and let it sit, uncovered, for 10–15 minutes. The garlic will continue to soften as it cools.
  9. Store or use. Use immediately, or transfer the garlic and oil to a clean glass jar. If storing, make sure the garlic is fully submerged in oil to prevent spoilage. Refrigerate and use within 2 weeks.

Common Mistakes

  • Using too little oil. If the garlic isn’t at least half-submerged, it will dry out and become chewy rather than tender. For loose cloves, submerge them completely.
  • Baking at too high a temperature. Above 425°F (220°C), the garlic will brown on the outside before the inside turns sweet, resulting in a bitter, burnt taste. Stick to 375–400°F.
  • Skipping the foil. Without foil, the top layer of garlic dries out and turns leathery. Always cover for the first part of baking.
  • Chopping the cloves. Minced or sliced garlic burns quickly in oil. Keep cloves whole for even, slow cooking.
  • Overcrowding the dish. If cloves are stacked, the ones on top won’t cook evenly. Use a single layer.

Tips

  • Use good-quality olive oil. The oil is a key part of the result—choose one you like the taste of, as its flavor will infuse the garlic.
  • Peel whole heads after roasting. If you roasted whole heads, let them cool until handleable, then squeeze the cloves from the base. The skins slip off easily.
  • Save the oil. The infused oil is liquid gold—use it for salad dressings, drizzling over vegetables, or dipping crusty bread. It keeps as long as the garlic does, as long as no raw garlic bits remain.
  • Add a splash of lemon juice. A teaspoon of lemon juice before baking brightens the flavor and helps preserve the garlic’s color.
  • Batch it. Roast multiple heads at once—the extra effort is minimal, and you’ll have garlic and oil ready for a week of meals.

Troubleshooting

  • Garlic is still hard after 60 minutes. This usually means the oil wasn’t hot enough or the cloves were very large. Return the dish to the oven, covered, for another 15–20 minutes. If the oil is bubbling aggressively, lower the heat to 350°F (175°C) to avoid scorching.
  • Garlic tastes bitter or burnt. The oil got too hot or the garlic was exposed without foil. Discard any blackened cloves—they’re unpalatable. The remaining oil may still be usable if it hasn’t darkened or smoked; taste a tiny drop. If bitter, start over with fresh oil and lower the heat.
  • Oil is cloudy or has white specks after refrigeration. That’s normal—olive oil solidifies when cold. Let the jar sit at room temperature for 20 minutes before using; the oil will clear.
  • Garlic floats above the oil. If cloves aren’t submerged, they can develop mold. Press them down with a spoon or add more oil. If you’re storing, ensure everything is covered by at least ½ inch of oil.
  • Mold develops in the jar. If you see any fuzzy growth, discard the entire batch. This happens when garlic wasn’t fully submerged or the jar wasn’t clean. Always use a dry, sterilized jar and keep it refrigerated.

Frequently Asked Questions

How long does baked garlic in olive oil last?

When stored in a sealed jar in the refrigerator, with the garlic fully submerged in oil, it keeps for up to 2 weeks. Always use a clean spoon to remove portions, and never leave the jar out at room temperature for more than 2 hours total.

Can I use any type of olive oil?

Yes, but extra-virgin olive oil has the most flavor. Lighter olive oil works too, but the final taste will be milder. Avoid using oil that is old or rancid—it will ruin the garlic.

Can I bake garlic without peeling it first?

Yes, for whole heads. Simply slice off the top, drizzle with oil, and roast. The skins protect the cloves and are removed after baking. For loose peeled cloves, you don’t need to peel them—just use them as-is.

Can I freeze baked garlic in olive oil?

Yes. Transfer the garlic and oil to a freezer-safe container, leaving headspace, and freeze for up to 3 months. Thaw in the refrigerator overnight. The texture may soften slightly, but the flavor remains.

What can I do with the leftover garlic oil?

Use it anywhere you’d use regular olive oil, but with a garlicky twist: sauté vegetables, toss with pasta, whisk into vinaigrettes, or brush over bread before toasting. It’s also excellent for roasting potatoes.

Is it safe to leave garlic in oil at room temperature?

No. Garlic in oil is a botulism risk if left at room temperature. Always refrigerate after baking, and discard any batch that has been out for more than 2 hours.

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