Question: how many electrons does fluorine need to gain in order to become stable?
Answer: In the case of nonmetals such as fluorine, which has seven electrons in the outermost energy level, a more stable state can be achieved by gaining one electron and filling up the outer energy level.