An ion is a charged particle formed when an atom loses/gains electron(s). Eg: Na+, Cl− are the ions formed by the sodium and chlorine atoms respectively.
Cation: It is a positively charged ion. Eg: Na+
Anion: It is a negatively charged ion. Eg: Cl−,
Compounds and their ions :
1. MgCl2: Cation: Mg2+ and anion: Cl−
2. CaCO3: Cation: Ca2+ and anion: CO2−3