what is the chemical mg
The formula is MgâPâ. This is a reaction between a metal and a nonmetal. The product will be the ionic compound, magnesium nitride. Step 1. Identify the atomic symbols of the cation and anion. Magnesium is Mg and phosphide is P. Step 2. Identify the charge on each ion and place it on each symbol. Mg is in Group 2, so we write MgÂ²âº. P is in Group 15, so it needs 3 electrons to complete its octet.