Body & HealthFact
The onion isn't crying. It's shooting.
An intact onion doesn't sting. Only your knife breaks cell walls, letting two separately stored substances meet: an enzyme and a sulphur compound. Within seconds they form the gas syn-propanethial-S-oxide. It reaches your cornea, irritates nerve endings there, and your tear gland flushes with fluid. It's the plant's defence against being eaten.
Useful: Cold slows the reaction: a chilled onion releases less gas.
Source: en.wikipedia.org