LogicCommons is in beta. If a result, label, or reference looks wrong, tell us here; we read every message.
Methodology
Purpose and model boundary
In a covalent bond two atoms share a pair of electrons. A Lewis structure is a drawing of a molecule that shows each shared pair as a line between two atoms and each unshared pair, a lone pair, as two dots on one atom. This lab lets you build the Lewis structures of five small molecules: hydrogen (H2), water (H2O), methane (CH4), ammonia (NH3) and carbon dioxide (CO2). You add or take away shared pairs and lone pairs, and the model tells you how many valence electrons you have placed, how many are still to place and how many atoms have a filled outer shell.
The lab is for learning the counting rules of Lewis structures. Each molecule has a fixed arrangement: one central atom joined to each outer atom. The lab does not model bond angles, molecular shape, resonance or charged ions.
The model is the calculation authority. The page sends the bond orders and lone pairs you set to the model and shows only what it sends back. The page works out no electron count, shell or score itself. The diagram is a schematic picture of the same counts.
Inputs and units
| Input | Meaning and unit |
|---|---|
| Experiment | The molecule: hydrogen, water, methane, ammonia or carbon dioxide (default hydrogen). In a challenge the challenge sets it. |
| Bond orders | For each bond from the central atom to an outer atom, the number of shared pairs: a whole number from 0 to 3 (0 to 1 for a bond to hydrogen on the lab). |
| Lone pairs | For each atom other than hydrogen, the number of lone pairs: a whole number from 0 to 4. |
| Challenge number | 0 to explore freely, or 1 to 5 to load a challenge (default 0). |
Where each input is set: everything is set on the lab itself. You tap a bond to add or remove a shared pair, tap an atom to add or remove a lone pair, or use the Fine adjustments sliders, and you choose a molecule or a challenge from its tabs. The lab has no separate input form. Only the bonds and atoms the molecule has can be changed.
Governing relationships
A few chemistry words first:
- Valence electrons: the outer electrons an atom brings to bonding: hydrogen 1, carbon 4, nitrogen 5, oxygen 6.
- Shared pair: two electrons shared by two atoms. A single bond is one shared pair, a double bond two and a triple bond three. The number of shared pairs is the bond order.
- Lone pair: two electrons that belong to one atom only.
- Filled outer shell: a duet (2 electrons) for hydrogen, an octet (8 electrons) for carbon, nitrogen and oxygen. An atom counts the electrons of its lone pairs and of every bond it is in.
- Formal charge: the charge an atom would carry if the shared electrons were split equally.
The model uses these counting rules:
- Electrons assigned = 2 × (the sum of the bond orders + the sum of the lone pairs).
- Electrons still required = the valence electrons of all the atoms − the electrons assigned.
- Sum of formal charges = the electrons still required. A neutral structure places every valence electron, so the sum is 0.
- Atoms with a filled outer shell: each atom whose bonding and lone-pair electrons make its duet or octet.
Calculation sequence
- Check every input (see Validation and status logic).
- If a challenge is loaded, read its goal and its molecule.
- Read the molecule's atoms and the valence electrons they bring.
- Count the electrons in the bonds and lone pairs you placed.
- Find the electrons still required and the sum of the formal charges.
- Count the atoms with a filled outer shell.
- Check whether the structure is the molecule's neutral target structure, and score the challenge.
- Choose the sentences that explain the result, and write out the working with your numbers.
Outputs and interpretation
- Valence electrons available: the total the atoms bring.
- Electrons assigned: the electrons in your shared pairs and lone pairs.
- Electrons still required: what is left to place. A negative number means you placed more than the atoms bring.
- How we got this: the electron count with your numbers put in.
- Challenge: the goal, MET or NOT MET, the score and a line on what to change.
The lab itself shows these readings, the filled shells and the formal charges. In a challenge it shows the verdict, the score and the feedback only after you check your answer, so the results under the lab show only the electron count, the challenge goal and How we got this.
Challenges
Each challenge asks you to build the neutral Lewis structure of one molecule, giving each atom its usual filled outer shell and zero formal charge. It scores 100 when it is met and 0 when it is not. The five challenges are hydrogen, water, methane, ammonia and carbon dioxide. The exact wording of each goal comes from the model.
The big idea. Every line in a Lewis structure is a pair of shared electrons that counts toward both atoms' shells; every lone pair counts toward one atom only. A neutral structure places exactly the valence electrons the atoms bring.
Validation and status logic
The model checks that each bond order is a whole number from 0 to 3, that each lone-pair count is a whole number from 0 to 4, that the molecule is one of the five and that the challenge number is a whole number from 0 to 5. If all pass, the status is OK. Otherwise the status reads NOT VALID with the reason, in the model's own words.
Assumptions and limitations
- Each molecule has one fixed arrangement: a central atom bonded to each outer atom. Other arrangements are not modelled.
- The sum of the formal charges is computed for the whole molecule, not for each atom.
- A bond or lone-pair position the molecule does not have, for example a third bond in water, has no effect.
- Only neutral molecules are covered. Ions, radicals, expanded octets and resonance structures are not.
Restrictions and non-computing states
- When an input fails a check, the results are empty except for the status and the challenge goal.
- In explore mode (challenge 0) the challenge reads No challenge selected and has no score.
Errors and warnings
The status explains each problem in plain words. The wording may change; the checks do not.
If the page cannot reach the model at all, it says so separately. That is a connection problem, not a result of the model.
References
This laboratory is an educational model of covalent bonding. It uses the counting rules of Lewis structures: each shared pair and each lone pair accounts for two valence electrons, a neutral structure places every valence electron the atoms bring, and hydrogen completes a duet while carbon, nitrogen and oxygen complete an octet. The valence electron counts and the definitions of bond order and formal charge follow the standard treatments.
Sources and further reading
- Lewis symbols, Lewis structures, lone pairs and the octet rule: OpenStax, Chemistry 2e, Rice University, section 7.3, Lewis Symbols and Structures. OpenStax
- Formal charge: OpenStax, Chemistry 2e, Rice University, section 7.4, Formal Charges and Resonance. OpenStax
- The definitions of a covalent bond, a lone pair and bond order: International Union of Pure and Applied Chemistry, Compendium of Chemical Terminology (the Gold Book). IUPAC Gold Book
No table or text from any of these publications is reproduced, and none of their authors or publishers has reviewed or endorses this laboratory.
This laboratory is for learning. Its counting rules cover five fixed neutral molecules; they do not model molecular shape, resonance or ions, and the diagram is a schematic picture of the counts.
Links were current at build time. If one moves, search the document's title rather than reporting a broken link as a defect.
Found a problem, or have an idea?
Tell us if a result looks wrong, a label is unclear, or something is missing. We read every message.