You cook onions before putting them on a pizza when you want sweetness, colour and a dry topping, and you leave them raw when the pie needs a sharp bite to cut through fat. Thickness and heat do the rest. A paper-thin raw slice will soften and brown in the time a pizza takes; a thick raw wedge will steam, stay crunchy in the middle, and leave a wet patch on the cheese underneath it.
So the honest answer is that both are right, and the choice depends on the rest of the pizza.
The water an onion carries
An onion is mostly water held inside rigid cell walls. Heat breaks those walls down and the water leaves, which is the whole reason a cooked onion tastes concentrated and a raw one tastes bright and loud. On a pizza that water has nowhere good to go. It sits on top of the cheese, dulls the browning, and on a thin crust it can soak the dough directly under the topping.
A home oven bake is short. The onion has a handful of minutes to lose that water while the crust and the cheese are running their own clock, and a thick slice simply cannot do it in time. This is why pizzeria onions taste different from the ones you scattered raw at home: they were cooked hours earlier, on a stove, on their own schedule.
Cut direction matters too. Slicing pole to pole, from root end to tip, follows the grain of the onion and gives you slices that hold their shape and cook slowly. Slicing across the equator cuts through the grain and gives rings that collapse faster and sweeten faster. For a raw scatter, cut pole to pole and cut thin. For anything you intend to cook down, cut across.
Four ways to cook an onion before it hits the dough
The choice comes down to how far along the sweetness you want the onion to be when it goes on.
- Sweat. Sliced onion, a little oil, moderate heat, no colour. Ten minutes gets you soft and mild, with the raw sulphur edge gone. This is the fastest useful option and the one to use when the onion is a background note.
- Caramelize. Low heat, a long time, stirring while the sugars brown and the volume collapses to a fraction of what you started with. The result is jammy, sweet and dark, and it behaves like a condiment rather than a vegetable.
- Roast. Wedges or thick rings on a tray in a hot oven until the edges char. You keep more texture than caramelizing gives you and you gain smoky bitterness at the tips.
- Char under a broiler or grill. Fast, aggressive, blackened in places. Good on a pie that already has heat or smoke in it, where a little burnt sugar reads as intentional.
Caramelized onion is the one worth planning around, because it changes what the pizza is. Sweet, dark onion under gruyere is a French onion pizza, a different thing entirely from a pizza with onions on it, and it pairs with blue cheese, bacon, brie and mushrooms in ways a raw slice never could. The caramelized onion topping guide covers those pairings in more detail than a bake time ever will.
One practical note about the long-cook route. Cooked onions sitting warm for hours are a food safety concern worth taking seriously. Low-acid cooked vegetables, onions and garlic among them, can support the growth of Clostridium botulinum spores if they stay in the danger zone, between 8 °C and 60 °C (46 °F and 140 °F), for too long. Make your batch, use what you need, and get the rest into the fridge within two hours. Leaving the pan on the stove overnight is how home cooks get into trouble with cooked alliums.
The case for raw
Raw onion is no one's lazy shortcut. It is a different ingredient with a job of its own.
Red onion, sliced thin and scattered after the sauce but before the cheese, keeps a purple edge and a clean pungency that stands up to sausage, salami and anything heavy with fat. On a Greek or Mediterranean pie with feta and olives, that sharpness is doing the same work the lemon does in a dressing.
Thin raw white or brown onion (yellow onion in some markets) works on a classic red pie for the same reason. Keep the slices translucent-thin, spread them so no two overlap, and they will cook enough in the oven without ever going watery.
Pickled onion is the third route and arguably the smartest. Vinegar does the softening that heat would have done, the water problem partly disappears into the brine, and you gain acid the pizza probably needed. Pickled red onion sits particularly well on pork, on gochujang cream and on anything with tomatillo in it.
Scallions (spring onions) are a special case. They belong on after the bake, not before, because the green tops go bitter and papery in oven heat. Scallion on pizza is a finishing move.
The dried and the extracted
Dehydrated onion, onion powder and onion oil sidestep the water question completely. The aroma is there, the moisture is not, and neither is the texture. Onion in these forms turns up in more commercial pizza seasoning than most people expect. Useful in a sauce, useless as a topping.
Tonight's onion
If the onion is the point of the pizza, cook it first and cook it properly: low heat, forty minutes or more, until it is dark and sticky. If the onion is a supporting flavour on a red pie, slice it as thin as your knife allows, use less than feels right, and put it on raw. If you are somewhere in between and short of time, sweat it for ten minutes with a pinch of salt and stop there.
The mistake worth avoiding is the thick raw ring. It is the one cut that fails at both jobs, too heavy to stay crisp and too wet to sweeten, and it is the reason so many people decided they do not like onion on pizza in the first place.