- Potassium (K): Potassium has 1 valence electron in its outermost shell. To achieve a stable octet (8 electrons), it readily loses this electron, becoming a positively charged ion (K⁺). [2] [5]- Fluorine (F): Fluorine has 7 valence electrons. To achieve a stable octet, it needs to gain 1 electron. When it gains an electron from potassium, it becomes a negatively charged ion (F⁻). The opposite charges of K⁺ and F⁻ attract each other, forming an ionic bond and creating the compound potassium fluoride (KF). This is a classic example of an ionic bond where one element loses an electron and the other gains an electron. [2] [5]