Investigating the interactions between anionic surfactants and cations is of great theoretical and practical significance to understanding the precipitation and solubility of anionic surfactant products but relevant theoretical interaction models are seldom reported. In this paper, the density functional theory (DFT) method was used to investigate the interactions of the dodecylbenzenesulfonate anion (DBS -) with Na + , Mg 2+ , and Ca 2+ both in the solution and at the air/water interface. In the solution, DBS -/cation interaction models were built and optimized with consideration of two different solutions (i.e. water and n-dodecane). The results indicate that DBScan bind stably with the cations in a bidentate form. The binding energy of the DBS -/cation depends on the properties of both the participating cation and the solvent. At the air/water interface, DBSformed a stable hydrated complex with six water molecules (i.e. DBS -•6H2O). However, the structure of DBS -•6H2O was greatly disturbed by the introduction of the cation. A dimensionless parameter, def, was proposed to evaluate the deformation extent of the hydration shell. The degree of disturbance by the cations follows the order: Ca 2+ >