To prevent onions from becoming mushy while cooking, use medium-high heat, avoid overcrowding the pan, and don't add salt too early. These steps help them caramelize properly instead of steaming.
Onions become mushy when they release too much moisture and steam instead of browning. Here's a breakdown of how to avoid this:
Use Medium-High Heat: Cooking onions at a sufficiently high temperature encourages browning and caramelization. Low heat causes them to sweat and release moisture, leading to a mushy texture.
Avoid Overcrowding the Pan: If the pan is too crowded, the onions will steam instead of sautéing. Cook them in batches if necessary to ensure they have enough space to brown properly.
Don't Add Salt Too Early: Salt draws out moisture from the onions. Add salt towards the end of the cooking process, after they have started to brown, to minimize moisture release.
Use the Right Type of Pan: A heavy-bottomed pan, like stainless steel or cast iron, distributes heat evenly and helps prevent hot spots that can cause some onions to burn while others remain undercooked and mushy.
Stir Infrequently: While you don't want the onions to burn, constant stirring prevents them from developing a good sear. Let them sit undisturbed for a minute or two between stirs to promote browning.
If your onions start to release too much liquid, increase the heat slightly and continue cooking, stirring occasionally, until the excess moisture evaporates. This helps salvage the situation and encourages caramelization.