Some atoms<span> are more stable when they </span>gain or lose<span> an </span>electron<span> (or possibly two) and </span>form ions<span>. This results in a full outermost </span>electron<span> shell and makes them energetically more stable. Now, because the number of </span>electrons<span> does not equal the number of protons, each </span>ion<span> has a net charge.</span>