Ionic bond builder: move electrons from metal to non-metal with dot and cross diagrams

Pick a metal and a non-metal and move their outer electrons one at a time, drawn as crosses and dots, until every ion has a full outer shell. See the charges, the shells of each ion, why MgCl₂ needs two chlorines, and the formula and name of the compound.

Keep it one tap away for everyday use.

Bookmark Ionic bond builder?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Pick atoms
  2. Move e⁻
  3. Formula
  4. Practise
Nothing is uploadedWorks offline once open

× = an outer electron of the metal, • = an outer electron of the non-metal. Inner shells are full and are not drawn.

What happened

    Try this

    • Sodium and chlorine need one electron to move. Magnesium and chlorine need two chlorine atoms. Why?
    • Find the pair that needs the most electrons moved. (Hint: aluminium.)
    • Compare the shells of Na⁺, Mg²⁺, F⁻ and O²⁻. They all end up with 2, 8, like the noble gas neon.
    • Ionic compounds are made of ions held by attraction. That is why they have high melting points and conduct when melted or dissolved.

    Check yourself

    Fresh questions every time. Nothing is saved.

      What it does

      When a metal reacts with a non-metal, the metal atoms give their outer electrons to the non-metal atoms. Both end up with a full outer shell, as ions of opposite charge that attract each other: an ionic bond. This page lets you do the transfer yourself, one electron at a time:

      • pick a metal (lithium, sodium, potassium, magnesium, calcium, aluminium) and a non-metal (fluorine, chlorine, oxygen, sulfur, nitrogen),
      • the outer shell of each atom is drawn with the metal’s electrons as crosses (×) and the non-metal’s as dots (•),
      • press Move one electron and an arrow shows where the next one goes,
      • when an atom has given or taken all it needs, it is put in square brackets with its charge,
      • the page explains the shells before and after, why the numbers of atoms are what they are, and gives the formula and the name.

      It follows the Class 10 chapter on metals and non-metals (how metals and non-metals react, ionic compounds), and the Class 11 chapter on chemical bonding.

      Once you have the ions, write the formulas of many more compounds with the formula writer; the shells come from build an atom, and which metals react most readily is shown in the reactivity series lab.

      How to use it

      1. Choose the Metal and Non-metal. The right number of each atom is drawn: one sodium and one chlorine, but one magnesium and two chlorines.
      2. Press Move one electron to move them one by one, or Move them all. Start again puts them back.
      3. Read What happened for the shells of the atoms and ions and why the formula balances.

      A worked example

      Magnesium and chlorine. Magnesium (Z = 12) has shells 2, 8, 2: two outer electrons. Chlorine (Z = 17) has 2, 8, 7: it needs one more to make 8. One chlorine can only take one electron, so a magnesium atom needs two chlorine atoms. Two electrons move, giving Mg²⁺ (2, 8) and two Cl⁻ (2, 8, 8). The formula is MgCl₂, magnesium chloride.

      Aluminium and oxygen is the biggest: aluminium loses 3 and oxygen gains 2, so 2 Al and 3 O balance at 6 electrons: Al₂O₃.

      Tips

      • Metal atoms lose all their outer electrons; non-metal atoms gain enough to reach 8.
      • The total lost must equal the total gained. The formula uses the smallest numbers of atoms that make that true.
      • Many ions end with the same shells as a noble gas: Na⁺, Mg²⁺, Al³⁺, F⁻ and O²⁻ are all 2, 8, like neon.

      Check yourself

      Four fresh questions each time: a formula (type digits normally, e.g. MgCl2), the number of electrons moved, the shells of an ion (like 2,8) and the charge on an ion. Nothing is saved.

      FAQ

      Are the electrons really crosses and dots? No: all electrons are the same. The marks just show where each one came from.

      Why only elements up to calcium? The simple 2, 8, 8 shell rule works for them; heavier atoms fill shells in a more complicated order (Class 11).

      Is this from the NCERT book? It covers the same topic with fibub’s own drawings. fibub is not part of NCERT.

      Where the numbers come from

      • Shell filling 2, 8, 8, 2 for elements 1 to 20, valency and ion charges, and dot-and-cross diagrams are standard school chemistry. Written for fibub.
      • Checked against the known formulas NaCl, MgO, MgCl₂, Na₂O, CaF₂, Al₂O₃, AlN, Li₃N and K₂S, and for all 30 metal and non-metal pairs that charges balance and every atom gives or takes exactly its electrons.

      Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

      Last updated 2026-11-09.

      Change log for Ionic bond builder

      1. Add #1294 Ionic bond builder Details on GitHub

      Every change to fibub

      Related tools

      Build an atom #L36 Tap to add protons, neutrons and electrons and watch the atom change: the element, atomic number, mass number, charge, isotope, the electrons filling shells 2, 8, 8 and the valency all update as you go. Ends with fresh practice questions. Electron configuration filler #L37 Watch electrons fill orbital boxes from 1s to 4p one at a time, or fill them yourself and see which rule (Aufbau, Pauli or Hund) a wrong tap breaks. Tap any arrow for its four quantum numbers. Chromium and copper explained. Ends with fresh practice questions. Formula writer #L39 Pick a positive and a negative ion and watch their valencies cross over to make the formula, with brackets and simplifying explained, a picture of the charges balancing, the compound's name and its formula unit mass in rounded or exact atomic masses. Ends with fresh practice questions. Reactivity series lab #L41 Drop a metal strip into a salt solution or dilute acid and see whether it displaces the other metal, with the balanced equation and what you would see. Your results fill a grid and build the series; tap any metal for its reactions with water and acid and how it is taken out of its ore. Ends with fresh practice questions. Alloy mixer #L180 Pick an alloy such as brass, bronze, steel, stainless steel, solder, duralumin or 22 carat gold, change its recipe, and get the mass of each metal in a batch and the density by the mixing rule. Push layers of atoms to see why alloys are harder, and turn carats into per cent gold. States of matter #L28 Heat or cool water, ethanol, oxygen or iron and watch the particles vibrate in place, slide past each other or fly apart. Stop at the melting and boiling points, change °C to kelvin, and race diffusion in liquids and gases.