How can a magnet influence a flame? It’s less to do with chemistry and more the surrounding air.
Of all the common gases in air, only oxygen is strongly paramagnetic. That means its molecules are attracted to magnetic fields, while nitrogen, argon, and CO₂ are essentially invisible to them. While most molecules pair their electrons in ways that cancel out their magnetic properties, oxygen’s unusual molecular structure leaves two electrons unpaired.
A magnet brought near a candle flame therefore exerts a selective pull, drawing cooler, denser air toward the strongest part of the magnetic field and creating a pocket of higher pressure that physically shoves the hot flame gases out of the way.



It’s following field line density so it is polarity agnostic. The oxygen are attracted to the density gradient of the field lines so they move to field line dense areas, i.e. the poles, and push the less oxygen rich candle exhaust out of the way. So at either magnetic pole the oxygen concentration is very very very slightly higher than in the surrounding area.
To maybe visualize it better, the distribution looks pretty much the same as when you place iron filings around a magnet (but not reaching that far out, iron does this a lot better than oxygen)
Imagine iron filings alongside non-magnetic material and the iron filings push the non-magnetic material out of the way to get closer to the poles. Also, observe that the closer to the poles the filings are the denser the filings become.
Because of the inverse square law