The inhibition effect of N,N′-phosphonomethylglycine (PMG) and vinyl phosphonic acid (VPA) on the 3% NaCl acidic solution corrosion of carbon steel iron was studied at different immersion times by potentiodynamic polarization, electrochemical impedance spectroscopy, attenuated total reflectance Fourier transform infrared (ATR-FTIR) spectroscopy, and computational methods. It is found from the polarization studies that PMG and VPA behave as mixed-type inhibitors in NaCl. Values of charge transfer resistance (Rct) and double layer capacitance (Cdl) in the absence and presence of inhibitors are determined. The PMG and VPA inhibitors were capable of inhibiting the corrosion process up to ≈91% and ≈85%, respectively. In the presence of PMG, the synergic effect of chlorine ions was observed. Density functional theory (DFT) was engaged to establish the adsorption site of PMG, VPA, and their deprotonated states. For studied compounds, the resulted values of ELUMO, EHOMO, energy gap (∆E), dipole moment (μ), electronic hardness (η), global softness (σ), electrophilic index (ω), and the electronic potential map are in concordance with the experimental data results regarding their corrosion inhibition behavior and adsorption on the metal surface.