Oxidation numbers: Mg is 0 in Mg and +2 in MgO; C is +4 in CO2 and 0 in C; O is −2 on both sides.
- Magnesium: 0→+2, an increase, so Mg is oxidised. Two Mg atoms lose 4e− in total.
- Carbon: +4→0, a decrease, so carbon in CO2 is reduced, gaining 4e−.
Since oxidation and reduction occur together with equal electron loss and gain, the reaction is a redox reaction. CO2 is the oxidising agent and Mg is the reducing agent.