There are varied opinions and practices about whether garlic or onion goes in first.
A lot of people say that onions should hit the pan first because they take longer to soften and release their sweetness, while minced garlic is fragile and prone to burning.
For many home cooks, the vibrant, pungent kick of toasted garlic is the essential foundational flavor of a great dish.
Over the years, I have read online discussions, asked cooks and chefs, and I have tried various other methods to see if I was missing out on a better technique.
I have experimented with putting the onions in the pan first to let them sweat down and caramelize.
I have also tried throwing both the onions and the garlic into the oil at the exact same time to see how the flavors meld.
Despite these culinary experiments, I always find myself returning to my roots, as my own preference remains to put the garlic in first.
In the place where I grew up (the Philippines), garlic absolutely goes first. My old folks had a very specific, intense method for stir-frying garlic that required complete focus. They would crank the stove up to high heat, wait until the cooking oil was literally smoking, and then immediately toss in the garlic.
This traditional, high-adrenaline method is perfectly fine if you are prepared to move incredibly fast with your spatula and ingredients. But if you hesitate or become idle for even a few seconds, you will inevitably end up with bitterly burned garlic.

To avoid this culinary disaster, I developed my own modified approach that offers less margin for error. I put the garlic into the pan at the exact same time as the unheated oil, allowing them to heat up together.
It naturally takes a bit more time for the garlic to cook and toast this way. This gentle heating process infuses the oil beautifully and is a foolproof way to prevent the garlic from scorching.
In my own experience, you cannot toast garlic the same way if you put the onions first. So I toss garlic in first.
In my opinion, the great garlic-versus-onion debate boils down to the recipe you’re cooking and your personal cooking preference. The best approach is to experiment in your own kitchen and follow what suits your cooking style and taste buds.
Home cooking is rarely governed by strict academic rules and cultural traditions.
Some recipes and/or dishes might call for the sweet base of early onions, while others need the robust punch of toasted garlic.
If the recipe is silent, I toss the garlic in first. We must remember, beyond any rules or recipes, cooking should be fun and a joyful experience.

