A raw onion is not sweet. It is sharp, a little bitter, and nobody would describe it as a mild food. The same onion, cooked for an hour over a very low heat, turns distinctly sweet, so much so that you can make a confit with very little added sugar. This transformation is not the caramelisation of the sugar you pour in: it comes from the onion itself.
The onion stores its reserves as fructans, polymers of fructose. They are chains, and a chain of fructose has no sweet taste: our receptors only detect simple sugars. A raw onion therefore holds a lot of potential sugar and almost no perceptible sugar.
Heat, in the presence of the water the onion releases, hydrolyses these chains: it cuts them into free fructose, molecule by molecule. And fructose is the sweetest of all the common sugars, about one and a half times the sweetening power of sucrose. This is exactly why a slowly cooked onion seems sweeter than the weight of sugar it contains would suggest.
This hydrolysis is slow, and it dictates the whole technique. It needs time, moisture and a moderate temperature. If you turn up the heat, you get the opposite of what you want: the surface browns through the Maillard reaction before the fructans have had time to break down, and you end up with coloured onions, bitter at the edges, and not sweet at all. This is the classic flaw of a failed confit, and no amount of added sugar will rescue it.
Hence the method: start with the lid on, to keep the water that drives the hydrolysis, over a very low heat, for forty-five minutes. Then uncover to let the water escape and the colour develop, once the chemical work is already done. The added sugar comes only at the end, and in a small quantity: thirty grams per kilo of onions is enough, against the hundred you often read about.
The vinegar, finally, goes in off the heat, for the same reason of volatility as in a ketchup, but here it plays a second role: it is what tips the jar below pH 4.6 and makes the confit keepable.







