Corrosion inhibition performances of two new pyrazole derivatives, namely 5-(4-dimethylamino)phenyl)-3-(4-dimethylamino)styryl)-4,5-dihydro-1H-pyrazole-1-carbothio amide (P1) and 5-(4-dimethylamino)phenyl)-3-phenyl-4,5-dihydro-1H-pyrazole-1-carbothio amide (P2) against the corrosion of carbon steel in acidic medium are theoretically investigated by combination of the density functional theory with the molecular dynamics approach. Additionally, the toxicity and solubility of the aforementioned molecules were investigated. Quantum chemical parameters of considered molecules (calculated energy levels of HOMO and LUMO molecular orbitals as well as the gap between them, hardness, softness, chemical potential, electronegativity, electrophilicity index, nucleophilicity, electro donating power, electro accepting power, polarizability, dipole moment, metal-inhibitor interaction energy, the fraction of electrons transferred from inhibitors to metal surface, back-donation energy, Fukui indices) were calculated at B3LYP/SVP, CAM-B3lyp/TZVP and ωB97XD/Def2-TZVP levels of theory. Comparative calculations were performed in the gaseous phase and in the aqueous solutions. The adsorption behavior of the mentioned molecules on the Fe (110) surface was investigated with the molecular dynamics. Both considered molecules demonstrates high adsorption energies on steel surface, low toxicity and high solubility. P1 is found to be more efficient in hydrochloric acid, whereas P2 molecule is found to be more efficient in sulfuric acid.