When you cut an onion, its cells get broken. Inside each cell are tiny chemicals that don’t like to be mixed. When the knife smashes the cells, the chemicals join together and make a gas called syn‑propanethial‑S‑oxide. This gas floats up into the air and lands on your eyes. Your eyes think the gas is a tiny irritant, like a speck of dust, so they make tears to wash it away and keep the eye safe.
Imagine you’re playing with a water‑balloon. If you squeeze the balloon, water splashes out and lands on your face, making you blink and maybe cry a little. Cutting an onion is like squeezing a tiny, invisible balloon inside the veggie, and the “splash” is the stingy gas that reaches your eyes.
If you want to keep the tears away, you can chill the onion first (cold makes the chemicals slower), cut it under water, or use a fan to blow the gas away, just like blowing on a dandelion puff so the seeds float elsewhere.