The shortcut
Hybridization = number of σ bonds + lone pairs on the atom. Each σ bond and each lone pair needs one hybrid orbital, so the total tells you how many orbitals mixed:
| Total | Hybridization | Orbitals mixed |
|---|---|---|
| 2 | sp | s + p |
| 3 | sp2 | s + 2 p |
| 4 | sp3 | s + 3 p |
| 5 | sp3d | s + 3 p + d |
| 6 | sp3d2 | s + 3 p + 2 d |
Each bond to an outer atom counts once, whether it is single, double or triple: only one of its bonds is σ.
Reading the orbital boxes
Under each result the calculator draws one box per hybrid orbital. A box with ↑ holds the atom's electron for a σ bond; a box with ↑↓ is a lone pair. For NH3 you see three bond boxes and one lone-pair box, four sp3 orbitals in all.
Ions work the same way
| Ion | Central atom | σ bonds + lone pairs | Hybridization |
|---|---|---|---|
| NH4+ | N | 4 + 0 = 4 | sp3 |
| NO3− | N | 3 + 0 = 3 | sp2 |
| H3O+ | O | 3 + 1 = 4 | sp3 |
| ClO3− | Cl | 3 + 1 = 4 | sp3 |
| I3− | I | 2 + 3 = 5 | sp3d |
| ICl4− | I | 4 + 2 = 6 | sp3d2 |
Get the electron count right first: the charge changes how many lone pairs the centre ends up with.
Atoms inside larger molecules
The calculator handles one central atom, but the shortcut works on any atom you point at. In ethene each carbon has three σ bonds and no lone pairs, so it is sp2; in ethyne each carbon has two σ bonds, so it is sp; the oxygen in methanol has two σ bonds and two lone pairs, so it is sp3.
Shape and hybridization go together
sp is linear, sp2 trigonal planar, sp3 tetrahedral, sp3d trigonal bipyramidal, sp3d2 octahedral, all as electron geometries. If you already know the electron geometry from the electron geometry chart, you know the hybridization.
Sources: OpenStax Chemistry 2e, §8.2 Hybrid Atomic Orbitals; Hypervalent molecule (Wikipedia, with references to Reed & Weinhold and the 3-centre-4-electron bond model).