Shape summary

According to VSEPR theory, the shape of a molecule AXn depends on the total number of bonding and nonbonding electron pair regions at A. The summary below shows the possible shapes for molecules having three or four electron pair regions about a central atom.  

Although successive replacement of bonded atoms X by nonbonding electron pairs E does not change the arrangement of electron pair regions about atom A, the shape descriptor does change because this describes the location of the outer atoms in the molecule.
 
AX3 AX2E
trigonal
planar
bent
AX4 AX3E AX2E2
tetrahedral trigonal pyramidal bent


The angle between adjacent AX bonds is lower if there are non-bonding electron pairs at A because these occupy more space at A than bonding electron pairs.

A method for deducing the number of electron pair regions at a central atom for the formula of the species is illustrated below for NF3.
Note that this method applies to cases where halogens (F, Cl, Br, I) and H are the outer atom and the bonding electron pair regions contain only two electrons (single bond).
 
Deduce the number of electrons at the central atom.
The number contributed by the atom itself is the last digit of its Group number:  5 for N
The number contributed by bonded atoms is one for each halogen or hydrogen: 3 for NF3
Total electrons at the central atom:  8 for NF3
 
Deduce the number and type of electron-pair regions at the central atom. 
Total number of electron pair regions at central atom (total electrons at central atom divided by two):  4 for NF3 
Number of bonding electron-pair regions:  3 for NF3 (because there are three bonds)
Number of nonbonding electron pairs regions: 1 for NF3 (because there are a total of four electron-pair regions).
 
Deduce the orientation of the bonding AND non-bonding electron-pair regions.
For the four electron-pair regions in NF3, the orientation is tetrahedral as shown above.

Deduce the orientation of the bonding electron pair regions and the shape of the molecule..
For NF3(an example of AX3E), the shape is trigonal pyramidal.