The balanced equation for the reaction between magnesium and nitrogen to form magnesium nitride is:
3 Mg(s) + N₂(g) → Mg₃N₂(S)
This balanced equation shows that three moles of magnesium react with one mole of nitrogen to produce one mole of magnesium nitride.