With the rapid development of electronics, the application and research of two-dimensional materials have been at the forefront of the world’s scientific research. Black phosphorus (BP) has the advantages of large specific surface area, anisotropy, band tunability, high electrical conductivity and high theoretical specific capacity, which make it very promising for research in the fields of medicine, aerospace and electrochemistry. This paper calculates the electronic structure and adsorption properties of BP in water for different heavy metal ions of Pb[Formula: see text], Hg[Formula: see text] and Cd[Formula: see text], including adsorption energy, bandgap, electron density and Mulliken population analysis, based on the first-principles approach of density generalized theory. First principles are quantum mechanical calculations based on density functional theory (DFT), which is a dominant well-developed method in the field of materials simulations, with low errors and high efficiency, especially in systems containing metallic particles. The results showed that the Pb[Formula: see text] adsorption system in water was more stable than the Hg[Formula: see text] adsorption system and the Cd[Formula: see text] adsorption system. The bandgap values of 0.617, 0.785 and 0.715[Formula: see text]eV of BP after adsorption of Pb[Formula: see text], Hg[Formula: see text] and Cd[Formula: see text] in water are smaller compared to 0.891[Formula: see text]eV of intrinsic BP, and its properties change from direct bandgap semiconductor to indirect bandgap semiconductor. The higher the stability of a system for the adsorption of different heavy metal ions by BP, the higher the internal electron activity of the adsorption system and the amount of electron transfer. Meanwhile, it is concluded that the electrons mainly transfer from P to heavy metal ions in all the adsorption systems. The electron transfer of the BP-Pb[Formula: see text], Hg[Formula: see text], and Cd[Formula: see text] adsorption system occurs mainly in the p, s, and s/p orbitals, respectively. The above content investigated the electronic structure changes and internal electron transfer of heavy metal ions adsorbed by black phosphorus in water, expecting to provide a new reference basis for the detection of heavy metal ions in industrial wastewater using black phosphorus.