In PCl5 phosphorus is sp3 d-hybrid, so

Five sp3 d-hybrid orbitals are present in p and in these three are attached trigonally with an angle of 120°. and rest two are attached bipyramidically with an angle of 90°. These five sp3 d-hybrid orbitals of p are overlapped with five σ-orbitals of five chlorine atoms on their axes and to form five o-bonds. Thus, the geometry of PCl5 is trigonally bipyramidal given below. (In it VSEPR-theory is not applicable.)


Five sp3d2-hybrid, orbitals are obtained and these are attached octahedrally. In these one sp3d2 -hybrid orbital is already paired, so it does not involved in overlapping. Thus, rest five sp3d2-hybride orbitals are overlapped with five p-orbitals of five fluorine atoms on their axes but the geometry of BrF5 is not octahedral because it is distorted from octahedral to square of pyramidal due to involvement of repulsion between lone pair and bond pair electrons.
(9F = 1s2 , 2s2 2p2x 2p2y 2p1z)
