Hybridization can be determined by analyzing the number of regions of electron density (bonds or lone pairs) around a central atom and then counting up throught the available orbitals. Each second-row element can only have (1) s orbitals and (3) p orbitals (i.e. px, py and pz). This is four orbitals total, and if each can hold two electrons then the maximum is 8 electrons total (i.e. the octet rule). Each type of hybridization corresponds to a specific molecular geometry and number of regions of electron density:
sp³ Hybridization: 4 regions of electron density.
sp² Hybridization: 3 regions of electron density.
sp Hybridization: 2 regions of electron density.
Understanding the relationship between electron density, geometry, and hybridization allows you to quickly determine the hybridization of atoms in various organic molecules.