Dilute magnetic semiconductors (DMSs) are typically made by doping semiconductors with magnetic transition metal elements. Compared to the well-understood bulk and thin film DMS, the understanding of the magnetic element doping effects in semiconducting quantum dots (QDs) is relatively poor. In particular, the influence of the dopant locations is rarely explored. Here, we present a comprehensive study of the effects of Mn doping on the electronic density of states of PbS QDs. Based on the results observed by scanning tunneling microscopy, X-ray diffraction, electron paramagnetic resonance, and density functional theory calculations, it is found that the Mn doping causes a broadening of the electronic bandgap in the PbS QDs. The sp-d hybridization between the PbS host material and Mn dopants is argued to be responsible for the bandgap broadening. Moreover, the locations of the Mn dopants, i.e., on the surface or inside the QDs, have been found to play an important role in the strength of the sp-d hybridization, which manifests as different degrees of the bandgap change.