More info:
To extend this to higher orbitals (sp3, d, and so on), determine the number of shared atoms in the resultant molecule. For example, SF4 results in sp3d hybridization (five sp3d orbitals) because four electrons are shared between the four fluorine and the one sulfur.
The easiest way to do it I guess is to write down how many electrons are in each orbital. You know that each shell of each orbital can have two electrons. In the p orbital, each electron will be single until all three suborbitals have at least one electron. So, for example, SF4 has 2 e- in the 3s, then one in each suborbital of the 3p orbital. So, to accept four electrons, it is clear that one electron must be promoted to the d orbital. This promoted electron must come from a pair, so it is promoted from 3s. It can now accept all four electrons from the four fluorine atoms, and results in sp3d hybridization.
For SF6, same thing only you have to promote one additional electron, so you end up with sp3d2 hybridization.