1)A sodium atom (2,8,1) looses one electron to form a sodium cation. But an oxygen atom (2,6) can become an oxide ion O2− only when it accepts 2 electrons
2) Thus, it requires two sodium atoms to lose one electron each. In this case, the double negative charge of oxide anion is balanced exactly by two single positively charged sodium cations.
3) Therefore, there are two cations (Na+) to each oxygen anion (O2−) and the ratio of sodium ion to oxide ions is 2:1.