TL;DR
Yes. Garlic freezes well for about 3-6 months, and freezing it minced or chopped saves the most prep time later.
A head of garlic can go soft or sprout before you use it all, which is why so many home cooks stash extra in the freezer. The trick is choosing the right form for how you actually cook.
Whole cloves, minced garlic, and garlic paste all freeze differently, and picking the wrong one just means extra chopping later instead of less.
Which form freezes best
Peeled whole cloves freeze fine but turn soft, so they work best in dishes where garlic gets cooked down anyway, like sauces or soups. Minced or chopped garlic freezes in loose portions if spread thin on a tray first, then bagged, so you can pinch off just what you need. Garlic paste can be frozen flat in a bag and snapped into pieces as needed, similar to how you'd break off a piece of a chocolate bar.
The ice cube tray trick
Mixing minced garlic with a little olive oil and freezing it in an ice cube tray gives pre-portioned cubes, usually about 1 teaspoon each, that drop straight into a hot pan. Once frozen solid, usually after about 4 hours, pop them into a labeled freezer bag so the tray is free again. This method works especially well for people who cook with garlic almost every day.
How long it keeps quality
Frozen garlic holds good flavor for about 3-6 months. It's still safe past that point if kept at 0°F, but the flavor fades and the texture gets increasingly soft and watery, and garlic-in-oil cubes in particular start to taste flat after around 4 months.
What changes after thawing
Thawed garlic loses its crunch and becomes noticeably softer, so it's not a good swap for raw uses like a garlicky vinaigrette or fresh salsa. It works fine in anything cooked, including stir-fries, roasted dishes, marinades, and simmered sauces, and there's usually no need to thaw it first since a small piece melts into a hot pan within seconds.
Storage tip
Garlic has a strong smell that spreads fast in a freezer, so double-bag it or use a dedicated airtight container, and press out as much air as possible before sealing. Keeping it away from ice cream and other foods that absorb odors easily is worth the extra step too.
Fresh garlic versus jarred versus frozen
Store-bought minced garlic in a jar already has a long fridge life thanks to added preservatives, so freezing is really aimed at fresh garlic you've prepped yourself. Freezing your own batch also tends to taste closer to fresh than jarred garlic does, since it hasn't been sitting in acid and preservatives for weeks before you buy it.
Garlic is one of the easiest freezer staples to keep on hand: mince it, portion it, and it's ready whenever a recipe calls for it. Just plan on using thawed garlic in cooked dishes rather than raw ones.