How long to cook garlic
A whole garlic head with the top trimmed roasts in about 30–40 minutes at 400°F (204°C) when wrapped in foil, though the sources run from 30 minutes to about 1½ hours at that setting. Minced garlic stirred into nearly softened vegetables needs only 30–60 seconds in a skillet, and a whole head wrapped in foil takes 15 minutes in an air fryer at about 375°F (190°C).
| Method | Time | Heat |
|---|---|---|
| Roast | 30–40 minutes for a whole head at 400°F (204°C); peeled cloves 30–40 minutes | Oven at 400°F (204°C), garlic wrapped in foil with a little oil; sources also use 375°F (190°C) and 350°F (177°C) |
| Sauté | 30–60 seconds for minced garlic stirred into nearly softened vegetables; 3–4 minutes for sliced garlic cooked in oil until golden and crisp | Medium heat in a skillet with a little oil, stirring often; garlic burns quickly, so keep the heat moderate or low |
| Air fry | About 15 minutes for a whole head, top trimmed and wrapped in foil, at about 375°F (190°C) | About 375°F (190°C), garlic wrapped in foil with a little oil |
Doneness
- A roasted head is done when the cloves feel soft when you press them and have started to turn golden. A firm head needs more time, because the roasting times in the table cover a wide range.
- Peeled cloves sealed in foil are done when they are golden brown and tender.
- Sautéed garlic is judged by smell and color: fragrant but not browned when it cooks with vegetables, just starting to turn golden for minced garlic in oil (about 2 minutes), and golden and crisp for sliced garlic (3–4 minutes).
Quick timer
Garlic timer
40:00
Start checking in 30:00 Done in 40:00
Each preset is the default case of its method. The method pages below have every size and setting.
Before you cook
Whole head
Peel off the loose outer layers but keep the cloves joined, with their own skins left on. Trim the top of the head, add a little oil and wrap it in foil.
Peeled cloves
Loose peeled cloves go into a foil packet that is sealed tightly before they roast.
Pick the cut first
Whole heads, peeled cloves, minced garlic and sliced garlic have different times, so each method page keeps them in separate rows. No sourced time was found for head halves.
Method guides
- How long to roast garlicA whole garlic head with the top trimmed and wrapped in foil roasts for 30–40 minutes at 400°F (204°C): Utah State University Extension gives 30–35 minutes and Oregon State University Extension 40 minutes. Longer times are published too, so judge by feel.
- How long to sauté garlicMinced garlic stirred into nearly softened vegetables needs only 30–60 seconds before the liquid or other ingredients go in. Sliced garlic cooked in oil over medium heat takes 3–4 minutes to turn golden and crisp.
- How long to air-fry garlicA whole garlic head with the top trimmed and wrapped in foil takes 15 minutes in an air fryer at about 375°F (190°C). That comes from Instant Pot's garlic bread recipe and is the only air fryer time found for garlic, so check the cloves early.
Questions people ask
How long do you roast garlic at 400°F (204°C)?
For a whole head in foil with the top trimmed, Utah State University Extension gives 30–35 minutes, Ohio State University Extension and Oregon State University Extension about 40, Food Network Kitchen 45 minutes to 1 hour, and America's Test Kitchen about 1½ hours for heads in a sealed packet. These conflict, so check the cloves early instead of trusting one number.
What temperature should I roast garlic at?
A 400°F (204°C) oven is the most common setting in the table. Whole heads at 375°F (190°C) are listed at about 40–45 minutes, and at 350°F (177°C) the range is 30–60 minutes.
How long does garlic take to sauté?
Minced garlic needs 30–60 seconds when it joins nearly softened vegetables, and about 2 minutes in oil over medium heat until it begins to turn golden. Sliced garlic takes 3–4 minutes to turn golden and crisp. Almost all of these times come from America's Test Kitchen; the only extension figure, NDSU Extension's 2–3 minutes with green beans, does not state the cut.
Can you cook garlic in an air fryer?
Instant Pot's recipe air fries a whole head, top trimmed and wrapped in foil, for 15 minutes at about 375°F (190°C). It is the only air fryer time found for garlic: no extension, Ninja or Cosori garlic time could be read. There is no sourced time for peeled cloves or head halves.
Charts and calculators
Related foods
Sources
- Utah State University Extension. Roasting Vegetables handout (PDF). Accessed November 26, 2026.
- Oregon State University Extension Service. Garlic (Fall). Accessed November 26, 2026.
- America's Test Kitchen. Roasted Garlic. Accessed November 26, 2026.
- America's Test Kitchen. Why You Should Wait to Add Garlic. Accessed November 26, 2026.
- Instant Pot. Cheesy Garlic Bread Fondants. Accessed November 26, 2026.
- Ohio State University Extension. Extension Today: Growing and Cooking Garlic. Accessed November 26, 2026.
- Food Network Kitchen. How to Roast Garlic. Accessed November 26, 2026.
- NDSU Extension, North Dakota State University. All About Garlic! Pocket Guide. Accessed November 26, 2026.
- America's Test Kitchen. Garlic Rice. Accessed November 26, 2026.
- America's Test Kitchen. Sizzling Garlic Shrimp. Accessed November 26, 2026.
- Oregon State University Extension Service (Food Hero). Roasted Garlic. Accessed November 26, 2026.
- Penn State Extension. Growing and Using Garlic. Accessed November 26, 2026.