Onions release moisture while cooking because their cell walls rupture due to heat, releasing the water stored within their vacuoles. This process is further accelerated by the breakdown of complex carbohydrates into simpler sugars and water.
Onions are composed of cells, and within these cells are structures called vacuoles. Vacuoles are essentially storage sacs filled with water, sugars, and other compounds. When heat is applied during cooking, the cell walls of the onion begin to break down. This breakdown, or rupture, releases the contents of the vacuoles, including the water.
Furthermore, onions contain complex carbohydrates. As they cook, these carbohydrates undergo a process called hydrolysis, where they are broken down into simpler sugars. This process also releases water as a byproduct. The combination of vacuole rupture and carbohydrate breakdown contributes to the significant moisture release observed when cooking onions. The higher the heat, the faster these processes occur, and the more moisture is released.
To prevent onions from steaming and becoming soggy, cook them over medium-high heat and avoid overcrowding the pan. This allows the released moisture to evaporate quickly, promoting browning and caramelization.