The solid compound, K2SO4 contains a cation called K+ and an anion called SO42-. In this case, there are 2 atoms of potassium, 1 atom of sulfur and 4 moles of oxygen. The compound also contains ionic bonds because of the composing non-metals and metal.