Dual-function ethoxylated cationic surfactant for pipeline corrosion and sulfate-reducing bacteria control: electrochemical and theoretical studies Authors: N M El Basiony, E A Elsharaky, A S El-Tabei Published: 2025 ABSTRACT AbstractEffective corrosion inhibitors are essential for preventing metal degradation. In this study, a novel polyoxyethylene-based cationic surfactant (ECS) was synthesized and its structure was confirmed using various spectroscopic techniques, including FTIR and ¹H NMR. The ECS exhibits both surface-active and antibacterial properties due to the presence of quaternary ammonium, polyoxyethylene, and alkyl chain moieties, which facilitate its adsorption onto bacterial membranes and carbon steel (C-steel) surfaces. Potentiodynamic polarization (PDP) results indicated that ECS effectively suppresses both the anodic and cathodic reactions of C-steel via blocking effect. Corrosion current density (icorr) of C-steel dropped to 48.7µA/cm2 in presence of 175 ppm ECS. Electrochemical impedance spectroscopy (EIS) revealed that corrosion proceeded via a charge transfer-controlled mechanism. 175 ppm of ECS increased the charge transfer resistance (Rct) of C-steel to 497.81 Ω·cm2, compared to 38.6 Ω·cm2 for the blank confirming its effective adsorption. Langmuir adsorption isotherm analysis suggested that ECS is physically adsorbed on the C-steel surface, with a calculated free energy of adsorption (ΔGads) of − 27.314 kJ/mol. Furthermore, the activation energy (Ea) increased from 25.76 to 41.49 kJ/mol in the presence of ECS, indicating the formation of an energy barrier that inhibits the C-steel dissolution process. The ECS achieved a 92% reduction in C-steel degradation. Surface characterization techniques, including scanning electron microscopy (SEM), water contact angle (WCA) measurements, and X-ray photoelectron spectroscopy (XPS), confirmed the formation of a protective ECS layer that effectively shielded the carbon steel from the aggressive attack of the HCl solution. Theoretical studies, including density functional theory (DFT) and Monte Carlo (MC) simulations, were utilized to investigate the adsorption mode of ECS molecules on the C-steel surface and to elucidate how the molecular structure influenced inhibition efficiency.Keywords: Cationic surfactant, EIS, XPS, DFT, Langmuir isothermSubject terms: Chemistry, Mathematics and computing Introduction Corrosion is the gradual degradation of a metal surface caused by chemical or electrochemical interactions with its environment, often involving the metal dissolution and the subsequent corrosion products produced on the surface, particularly in the presence of oxidants such as oxygen or sulfur1,2.Metallic structures are employed in various domestic and industrial applications due to their high mechanical strength and cost-effectiveness. However, corrosion poses significant security, financial, and environmental risks by considerably reducing the lifespan of metallic structures3–7. A recent NACE assessment quantifies the global cost of corrosion at approximately US$2.5 trillion annually, representing 3.4% of global GDP8. By implementing established corrosion prevention strategies, this figure could be reduced by 15–35%, yielding potential savings of US$375–875 billion9. Carbon steel (C-steel) was selected as the substrate due to its widespread industrial applications, favorable mechanical properties, and cost-effectiveness10. The corrosive medium of 1 M HCl was chosen because hydrochloric acid is commonly used in industrial processes such as acid pickling, descaling, and oil well acidizing, where carbon steel components are frequently exposed to aggressive acidic environments11,12. Organic compounds containing heteroatoms with lone electron pairs are among the most promising anticorrosive agents for aqueous environments. These molecules, often referred to as organic inhibitors, function primarily through adsorption onto the metal surface, impeding the corrosion process13–15. A primary challenge with many organic corrosion inhibitors is their limited solubility, leading to inadequate surface coverage, especially for smaller molecules. Consequently, these compounds often provide only moderate protection. Achieving an optimal balance between hydrophilicity and hydrophobicity is crucial for enhancing corrosion inhibition16–19. Surfactants, possessing both hydrophilic and hydrophobic moieties, exhibit a strong affinity for interfaces. Their adsorption onto metal surfaces creates a protective barrier, inhibiting corrosion. Rougher surfaces generally corrode faster due to increased wettability, which accelerates corrosion processes20–22. Surfactants can mitigate this by forming hydrophobic films on metal surfaces, inhibiting water diffusion and reducing corrosion. However, surfactant effectiveness depends on factors such as molecular structure and environmental conditions23,24. Low cost, ease of production, and high corrosion inhibition efficiency endow cationic surfactants high potential applications25. These surfactants excel at reducing surface tension and forming dense interfacial layers. Literature suggests that various cationic surfactants, including quaternary ammonium, pyridine, and imidazole derivatives, offer potent corrosion protection, often at low concentrations26,27. However, some require higher doses for optimal performance. Given their effectiveness and versatility, polyoxyethylene-based cationic surfactants were selected for this study. These surfactants combine the advantages of oxyethylene, quaternary ammonium, and long-chain alkyl groups, enhancing adsorption to steel surfaces and creating a protective barrier against corrosion while also exhibiting antimicrobial properties against SRB28. Polyoxyethylene-based cationic surfactants were chosen for this study because they integrate the beneficial features of oxyethylene units, quaternary ammonium groups, and long-chain alkyl moieties, which together enhance their adsorption onto steel surfaces and facilitate the formation of a protective barrier against corrosion. Additionally, the presence of quaternary ammonium groups imparts notable antimicrobial properties, making these surfactants effective against a range of microorganisms, including sulfate-reducing bacteria (SRB). The resulting protective film significantly reduces corrosion rates by displacing aggressive ions and water from the metal interface. The combination of surface activity, corrosion inhibition, and antimicrobial efficacy underscores their suitability for applications requiring both material protection and microbial control. The prepared surfactant demonstrates exceptional corrosion inhibition by combining the advantages of both cationic and nonionic moieties. Its cationic component enables strong electrostatic adsorption on metal surfaces, forming dense hydrophobic films that effectively block corrosive agents, while the incorporated oxyethylene (nonionic) moiety enhances performance through hydrogen bonding and dipole interactions, ensuring pH stability and consistent adsorption across diverse environments. This dual functionality provides excellent surface coverage, thermal stability, and versatility without being compromised by solution pH or ionic interference. Environmentally, the surfactant’s nonionic characteristics—ethoxylated compounds—contribute to higher biodegradability and lower aquatic toxicity compared to conventional cationic inhibitors, aligning with sustainable corrosion protection strategies. The synergistic design thus balances robust inhibition with reduced ecological impact, making it suitable for industrial applications where both efficiency and environmental compliance are critical29–32. In this research, we aim to synthesize an amphiphilic compound featuring dissimilar hydrophilic head groups—specifically, a combination of cationic (quaternary ammonium) and nonionic (oxyethylene) moieties—alongside a long-chain alkyl group and a bromide counterion. The integration of these structural elements is designed to significantly enhance the compound’s adsorption onto metal surfaces, as the presence of multiple or mixed head groups and long hydrophobic tails promotes strong surface activity and aggregation. Furthermore, the cationic and nonionic head group combination, together with the long alkyl chain, facilitates efficient permeation through microbial cell membranes, resulting in superior antimicrobial activity compared to conventional single nonionic or cationic surfactants. The bromide ion as a counterion can further influence adsorption properties at interfaces, supporting the formation of stable, protective layers on metal surfaces. This molecular design is expected to yield a multifunctional amphiphile with both robust corrosion inhibition and potent antimicrobial efficacy. To gain a comprehensive understanding of inhibitor adsorption behavior, computational methods like Monte Carlo (MC) simulations and density functional theory (DFT) have gained prominence in corrosion science MC simulations, in particular, provide valuable insights into inhibitor molecule orientation and adsorption on metal surfaces, help the development of high-performance corrosion inhibitors33–35. This study focuses on the development of a novel polyoxyethylene-based cationic surfactant (ECS). Its chemical structure was verified using FTIR and ¹H NMR spectroscopy, while surface activity was assessed through surface tension and conductivity measurements. The ECS’s efficacy as an inhibitor for SRB and corrosion inhibitor for both C-steel in acidic environments was evaluated. Different electrochemical techniques, EIS and PDP, used to study the ECS’s activity under varying concentrations and temperatures accompanied with surface analysis (WCA, SEM, XPS). To further elucidate the inhibition mechanism, the DFT calculations, and MC simulations were conducted. Experiments Material sources We purchased 1-bromodecane from Sigma-Aldrich (Germany), 3-(Dimethylamino) propan-1-ol from Alfa Aesar (Germany), and Ethylene oxide (EO) gas from Egyptian Gas Company. All remaining chemicals were of technical purity and utilized without further purification. Synthesis of N-decyl-1-hydroxy-N, N-dimethyl-3,6,9,12,15-pentaoxaoctadecan-18-aminium bromide As illustrated by Scheme 1, a novel polyoxyethylene- quaternary ammonium surfactant (ECS) was prepared in two steps. The first step’s syntheses was demonstrated previously23. The second step illustrated as follows: Synthesis of N-decyl-1-hydroxy-N, N-dimethyl-3,6,9,12,15-pentaoxaoctadecan-18-aminium bromide. By refluxing 0.01 mol 2-methyl-6,9,12,15,18-pentaoxa-2-azaicosan-20-ol with 0.01 mol 1-bromodecane in ethanol for 24 h. The solution was set aside to cool. The resultant substance was purified using n- hexane and then diethyl ether to get N-decyl-1-hydroxy-N, N-dimethyl-3,6,9,12,15-pentaoxaoctadecan-18-aminium bromide as a light brown viscous liquid. The chemical composition of the synthesized compound was verified via FTIR, and 1HNMR spectroscopy. Surface tension and conductivity measurements The surface tension and conductivity of ECS solutions, prepared with double-distilled water (surface tension: 72 mN/m), were measured using a Theta optical tensiometer (Attension-Biolin Scientific Company) and a conductivity meter (Type 522; Crison Instrument, S.A.), respectively, at 25 °C. Biocidal activity In accordance with ASTM D4412-84 (re-approved in 1990), ECS was tested over a concentration range of 50 to 200 ppm for 21 days to determine its biocidal effect toward SRB36. Electrochemical tests (EIS and PDP) After immersing polished C-steel (1 cm²) working electrodes in 1 M HCl solutions, both treated and untreated with ECS, for 30 min, EIS and PDP measurements were performed using an Autolab PGSTAT-128n potentiostat/galvanostat. An Ag/AgCl (3 M KCl) reference electrode and a Pt wire counter electrode were employed in a three-electrode system. EIS was performed at AC voltage of frequency range100 kHz to 0.01 Hz and amplitude of 5 mV, while PDP was conducted within ± 0.4 V around OCP at a scan rate of 1 mV/s. All potentials were referenced to Ag/AgCl. Electrochemical parameters were exported and fitted using Nova 2.1 software. Each laboratory experiment was performed twice, and the mean values were reported. Quantum chemical studies (QCs) We studied the electronic structure properties of the ECS to figure out the relation between the molecular structure electronic properties and its corrosion inhibition performance. Using the Dmol3 module implemented in Materials Studio (M.S. 6.0; Accelrys software) and based on the density function theory (DFT), the full geometry optimization parameters of ECS molecule have been calculated37. The Dmol3 geometry optimization process parameters were medium quality convergence tolerance and medium (10− 5) SCF tolerance, the functional of GGA with B.O.P accompanied with Double Numerical (DN) basis set with version file 3.5. The energy of the highest occupied and lowest unoccupied molecular orbitals (EHO, ELU) for the ECS were obtained after Dmol3 geometry optimization process and used to calculate the relevant quantum chemical parameters such as (energy of band gap (, electronegativity () and global hardness () according to the following Eqs25–39. To understand the adsorption of ECS over the C-steel surface, Monte Carlo simulation (MCs) process has been run via adsorption locator module to mimic this process via calculation the adsorption energy (E ads) of the ECS on the most stable from of iron (Fe (1 1 0)) in gas phase and in simulated acidic solution phase. MCs annealing process processed via several steps till get the most energy table form of ECS/Fe (1 1 0) system in different phases. The annealing process was run in a simulation box (37.23 A◦x37.23 A◦x 37.23 A◦) where the cleaved iron Fe (1 1 0) made to (15 × 15) supercell and 15 A◦ vacuum slap. Forcefield COMPASS (version 2.8) controlled the MCs as reported previously38,40. Surface analysis Water contact angle (WCA) WCAs were measured on polished C-steel, blank (1 M HCl), and 175 ppm ECS-treated C-steel surfaces after 12 h of immersion using a Theta optical tensiometer from Biolin Scientific. SEM and XPS After 12 h immersion in 1 M HCl alone or mixed with 175 ppm ECS, the morphology of C-steel sheets was characterized by field emission scanning electron microscopy (FESEM, JSM-IT800, JEOL, Japan), Surface chemical composition of C-steel immersed in 1 M HCl + 175 ppm ECS analyzed through X-ray photoelectron spectroscopy (XPS, Thermo Fisher Scientific, NEXSA G2, UVP, Inc., UK). Results and discussion Chemical structure verification The characterization of 2-methyl-6,9,12,15,18-pentaoxa-2-azaicosan-20-ol has previously been explored in the published literature23. N-decyl-1-hydroxy-N, N-dimethyl-3,6,9,12,15-pentaoxaoctadecan-18-aminium bromide FT-IR spectrum (Fig. 1a) of N-decyl-1-hydroxy-N, N-dimethyl-3,6,9,12,15-pentaoxaoctadecan-18-aminium bromide, displayed bands (cm− 1) at 2924.7 & 2858.5 (aliph. C-H asym. & sym. stretching); indicates the presence of long chain hydrocarbon; 1465.8 (aliph. C-H asym.bending),1122.1 (ethereal band; C-O-C asym. stretching) & 3367.7 (OH stretch). FT-IR and 1H NMR of N-decyl-1-hydroxy-N, N-dimethyl-3,6,9,12,15-pentaoxaoctadecan-18-aminium bromide. 1HNMR (DMSO - d6) spectrum (Fig. 1b) exhibited peaks at δ: 0.70 ppm (3 H, CH3), δ: 1.17 ppm (16 H, (CH2)8), 2.7 ppm (4 H, H2CN+CH2)8), δ: 3.08 ppm (3 H, N+CH3), δ: 1.6 ppm (2 H, CH2CH2N+CH3), δ: 3.3–3.6 ppm (4 H, OCH2CH2O), δ: 3.8 ppm (2 H, CH2OH) and δ: 4.05 ppm (1H, CH2OH). Surface active properties The prepared inhibitor has good solubility in polar solvents, such as water, methanol, ethanol, and acetone. Also, surface tension measurements supported with their corresponding parameters in Table 1; Fig. 2 were applied in water and reflected high solubility of the prepared surfactant with a CMC value of 0.0067 mol L− 1. Table 1Surface active parameters of ECS in double distilled water at 25°C.Surface tension measurementsConductivity measurements CMC (mol L − 1 ) γ CMC (mNm − 1 ) CMC (mNm − 1 ) Гmax x1011 (mol cm − 2 ) A min (nm 2 ) CMC (mol L − 1 ) β ΔG mic (kJ mol − 1) ΔG ads (kJ mol − 1 ) 0.006732406.42.570.0070.015−24.40−30.59 Surface active parameters of ECS in double distilled water at 25°C. CMC (mol L − 1 ) γ CMC (mNm − 1 ) CMC (mNm − 1 ) Гmax x1011 (mol cm − 2 ) A min (nm 2 ) CMC (mol L − 1 ) ΔG mic (kJ mol − 1) ΔG ads (kJ mol − 1 ) a) Variation of the surface tension with concentrations of ECS, b) plotting of electrical conductivity against ECS concentrations in double distilled water at 25 °C. Figure 2a depicts the variance in surface tension values of ECS solutions. Surface tension values decline sharply as concentration increases, then the curve breaks quite quickly at still relatively low concentrations, eventually reaching a stable state as concentrations rise41. The critical micelle concentration (CMC) was calculated by intersecting the γ-ln C curve and listed in Table 1. The obtained CMC value for the synthesized surfactant is 0.0067 mol L− 1. Surface tension data (γ) at CMC were utilized to calculate surface pressure (effectiveness) value from equation42: where denotes the surface tension of fresh water at the suitable temperature and denotes the surface tension at CMC. Table 1 shows the value of the prepared ECS. It noticed that the has a high value may be due to the presence of quaternary nitrogen, oxyethylene chain and 10-C aliphatic chain moieties in the ECS which enhance the adsorption affinity at the interface and hence decrease γ value. The molecular structure of ECS also affected the surface excess (Γmax) which was calculated according to Gibb’s equation42: Where, R is the universal gas constant, T is the absolute temperature and the value of n is number of species ions in solution. The Γmax value was calculated and listed in Table 1. The area occupied by each molecule at the liquid/air interface in nm2 is known as the minimum surface area (). The following equation is used to calculate 43: Where, N is Avogadro’s number. According to the findings in Table 1, of the ECS is a high value. This suggests that ECS has a higher affinity for occupying a larger surface area of the substrate, thereby enhancing its adsorption on surfaces such as cell membranes or C-steel. Conductivity measurements At 25 °C, conductivity measurement was taken for cationic surfactants in order to determine the CMC and the degree of counter ion dissociation (β). Specific conductivity increases linearly with surfactant concentration until the critical micelle concentration (CMC) is reached, after which the rate of increase slows (Fig. 2b). The CMC is determined by the intersection of these linear trends, and the β is calculated from their slope ratio. The values of CMC and β in surfactant micelles were 0.007 mol L− 1, 0.015 as listed in Table 1. The CMC value, as measured by electrical conductivity, agreed with the value calculated using surface tension. The charged pseudo-phase model of micelle production states that the standard free energy (ΔGmic) of micelle production was computed by the following equation44: The ΔGmic of ECS was negative, showing that micellization occurs spontaneously. The change in free energy of adsorption () for the synthesized surfactant was calculated and listed in Table 1 according to the following equations27: From the data in Table 1, the negative value of indicates that the adsorption process is spontaneous. Furthermore, is more negative than , surfactant molecule tending to adsorb at the air/water interface until total surface coverage is achieved, and then micelles form. Antimicrobial action In the process known as “microbiology-influenced corrosion, (MIC) " the metabolic activity of microorganisms speeds up the corrosion kinetic rate of a metallic material45,46. One of the MIC species, sulfate reducing bacteria (SRB), was discovered to have the largest colony in crude oil. SRB’s role in various corrosion reactions under anoxic/anaerobic conditions has been extensively documented27. Petroleum’s hydrocarbons could act as electron donors for SRB, which uses sulfate as the terminal electron acceptor in respiration, resulting in the production of sulfide. Additionally, H2S production results in the acidification and plugging of petroleum reservoirs, as well as bio-corrosion of pipelines, and tanks’ metal surfaces47. As a result, current research has focused primarily on the development of biocides to combat these challenges. The results in Table 2 display that ECS has an antimicrobial effect toward SRB. Because of its unique chemical structure, which contains quaternary ammonium and oxyethylene groups, ECS has an adsorption affinity for and can permeate the microbial cellular membrane. The selective permeability of the cell was compromised which had an adverse effect on the biological reactions of the cell and ultimately resulted in cell death48. Table 2Antimicrobial action of the ECS against sulfate reducing bacteria (SRB).Dose (ppm)50100150200 Result (Bacterial Cell/mL)105104104103*The blank was 106 cell/mL. Antimicrobial action of the ECS against sulfate reducing bacteria (SRB). Result (Bacterial Cell/mL) *The blank was 106 cell/mL. Electrochemical corrosion evaluation Electrochemical impedance spectroscopy (EIS) EIS measurements at room temperature were employed to evaluate the ECS’s influence on C-steel corrosion in 1 M HCl. The similar Nyquist, Bode, and phase angle plot profiles (Fig. 3a-c) for C-steel treated and untreated with ECS indicate that the corrosion mechanism, controlled by charge transfer, remains unaffected by ECS addition49. As the concentration of ECS increases, the diameter of the Nyquist semicircles (Fig. 3a) significantly expands. This indicates improved anti-corrosion resistance for the carbon steel, which is due to the enhanced adsorption of ECS on its surface. The Bode modulus plots (Fig. 3b) support this observation. In the low-frequency region (log f from − 2 to −1.3), the impedance modulus (log ∣Z∣) increases as the ECS concentration rises. Furthermore, the phase angle shifts toward-90º (Fig. 3c) at intermediate frequencies. This change reflects improved capacitive behavior and confirms that ECS forms a protective barrier on the carbon steel. This barrier reduces the effective surface area available for charge exchanges, thus demonstrating a superior protective effect against the HCl solution50. The Nyquist curves (Fig. 3a) exhibit a depressed capacitive loop due to frequency dispersion, likely caused by the C-steel surface roughness and non-homogeneity51. EIS kinetics parameters for the C-steel reaction were exported by applying equivalent circuit presented in Fig. 3d and reported in Table 3. This equivalent circuit comprises solution resistance (Rs), charge transfer resistance (Rct) and a constant phase element (CPE) which replaces the double layer capacitance (Cdl) to compensate the surface heterogeneity and to get better fitted data. The CPC can be defined by the expression52: Nyquist (a), bode (b) and phase degree (c) diagrams for CS in 1 M HCl in absence and presence of different concentrations of ECS at 25 ◦C fitted with the proposed equivalent circuits (d). Table 3Electrochemical impedance spectroscopy parameters for C-steel in 1 M HCl in absence and presence of different concentrations of ECS at 25.Inh.ECSConc.mMECSConc.ppmRs,(Ω.cm2)Rct,(Ω.cm2)CPE ƟIE%X2Y° e-5sn Ω −1 cm− 2 n 1 M HCl 000.002.2638.615.40.8565---------3.63 ECS 4.5 × 10− 8252.28107.6611.50.795290.641464.143.429.14 × 10− 8502.29155.3510.30.79990.749374.932.0791.83 × 10− 71002.83220.767.20.790320.825382.532.0793.20 × 10− 71753.98497.816.60.73740.922392.231.248 Electrochemical impedance spectroscopy parameters for C-steel in 1 M HCl in absence and presence of different concentrations of ECS at 25. where, is a proportional factor, (); is angular frequency, i; is the imaginary unit (−1) and n is a CPE exponent and can be taken as a gauge of the surface roughness and heterogeneity. Table 3 reveals a significant increase in the Rct values for C-steel upon ECS addition. The Rct rises from 38.6 ohm.cm2 to 497.81 ohm.cm2 – a tenfold increase. This suggests enhanced ECS adsorption, creating a barrier that hinders direct contact between C-steel’s active sites and HCl52. The inhibition efficacy (IEz%) of ECS was calculated based on the Rct values according to the equation53: ECS significantly enhances C-steel surface coverage, increasing from 0.64 to 0.92 as the dosage rises from 25 to 175 ppm. This in turn increases the inhibition efficiency from 64% to 92% at the same doses. The observed decrease in values is attributed to the displacement of water molecules, chloride, and hydronium ions at the C-steel/HCl interface by ECS molecules, leading to a reduced capacitance of the dielectric layer and/or increasing the adsorbed ECS layer thickness according to the Helmholtz model concept53. Higher ECS concentrations result in a thicker adsorption layer on the C-steel surface, consequently improving inhibition efficiency54. The decrease in n values compared to the blank indicates increased ECS molecule accumulation on the C-steel surface26,55,56. The effectiveness of ECS as a corrosion inhibitor stems from its dual-action structure. The electron-rich heteroatoms (oxygen and nitrogen) are the initial points of contact, forming strong chemical bonds with the iron atoms on the steel surface. This anchors the molecule securely. Simultaneously, the long, hydrophobic 10-carbon aliphatic chain creates a physical barrier that prevents aggressive ions, such as chloride and hydronium, from reaching and attacking the C-steel’s active sites. This combined chemical bonding and physical shielding mechanism results in a highly effective protective layer that significantly inhibits corrosion57,58. Adsorption isotherm Understanding the adsorption behavior of ECS at the C-steel/HCl interface is essential to elucidating their mechanisms of action. For this goal, different adsorption isotherm models are applied, Langmuir, Freundlich, Florry-Huggins and Hennry (Fig. 4), based on EIS data according to the following Eqs59,60. : Langmuir, Freundlich, Flory-Huggins and henry adsorption isotherm models of ECS adsorption at CS/HCl interface based on EIS data at 20 ◦C. where,) is the adsorption equilibrium constant, (1/n) is the Freundlich constant, (χ) Flory-Huggin constant. The best-fitting isotherm model was determined based on the correlation coefficient (R²) value. A higher R² indicates a better fit. According to the data in Table 4, among the various isotherm models applied, the Langmuir adsorption isotherm most accurately represents the adsorption of ECS on the C-steel surface (Fig. 4a). The monolayer of ECS adsorbed on the C-steel surface, according to the Langmuir isotherm, enhances both physical and chemical interactions. This protective layer occupies the C-steel’s active sites, hindering direct contact with HCl61. The standard free energy change (ΔGads) of C-steel in presence of ECS at room temperature is function of Kads according to the Eqs61,62. : Table 4Output isotherm parameters for the adsorption of the prepared ECS at CS/HCl surface interface using different models at 25 o C.Isotherm model for ECS adsorptionParameters R 2 -ΔGads(kJmol-1)LangmuirSlope1.00410.997727.314Freundlich1/n0.181610.987831.705Flowry-Hugginsx0.028530.906034.427Henry0.707718.486 Output isotherm parameters for the adsorption of the prepared ECS at CS/HCl surface interface using different models at 25 o C. where, (106) is the water concentration in ppm unit and (R) is the standard gas constant. The adsorption of ECS on C-steel was well described by the Langmuir isotherm, which assumes monolayer adsorption on a uniform surface with a fixed number of identical sites and negligible lateral interactions between adsorbed molecules. In the present case, the calculated ΔGads value (−27.314 kJ mol− 1) indicates that the adsorption process is predominantly physisorption, driven by electrostatic attraction between the positively charged quaternary nitrogen/terminal protonated hydroxyl groups of ECS and the negatively charged steel surface (due to pre-adsorbed Cl− ions). However, the molecular structure of ECS also allows chemisorption contributions via electron pair donation from oxygen atoms (in the ethylene oxide units) to vacant Fe 3 d orbitals. This mixed physisorption–chemisorption behavior can still follow Langmuir characteristics when the adsorbed layer is compact, the interaction energies are uniform, and each site is occupied by one inhibitor molecule. Therefore, the Langmuir model provides a good approximation for describing the dominant adsorption mode, even though a secondary chemisorption pathway is also present63,64. Potentiodynamic polarization measurements (PDP) Figure 5a displays the PDP response of C-steel immersed in pure 1 M HCl and after the ECS addition in different concentrations (25–175 ppm) under static conditions at room temperature. The similar shape of i-v curves of C-steel indicates the ECS has no effect on the C-steel dissolution mechanism65. ECS shifts the C-steel polarization curves towards the noble region, indicating its corrosion inhibition properties66. The presence of active centers, such as quaternary nitrogen and protonated terminal hydroxyl groups, in the ECS molecule promotes its adsorption and favorable orientation on the metal surface through electrostatic attraction. Additionally, electron donor–acceptor interactions between the lone pairs of oxygen atoms in the ethylene oxide groups and the vacant 3 d orbitals of iron, combined with the hydrophobic effect of the alkyl chain, facilitate the formation of a compact and robust adsorption layer. This synergistic interaction underlies the high inhibition efficiency of ECS62. Kinetic parameters for the C-steel corrosion reaction were determined by extrapolating the i-v curves in the Tafel regions. Corrosion potential (Ecorr), current density (icorr), and Tafel slopes (βa and βc), were used to evaluate the inhibition performance of ECS and elucidate the reaction mechanism at the C-steel/HCl interface. The results are summarized in Table 5. The insignificant change in the corrosion potential (Ecorr), lower than 85 mV, of C-steel after the addition of ECS suggests that ECS has a blocking effect on both the anodic and cathodic sites of C-steel, indicating that ECS acts as a mixed-type inhibitor64. The observed decrease in Tafel slopes to a constant value after ECS addition implies that, while the overall corrosion mechanism remains unchanged, the inhibitor may be influencing the rate-determining steps of the anodic and cathodic reactions. This could result in changes in the Tafel slopes without altering the overall corrosion process reaction pathway, consistent with the observations from EIS measurements. Additionally, the parallel appearance of the cathodic curves suggests that hydrogen ion reduction at the C-steel surface ( primarily occurs via a charge-transfer mechanism66. ECS exhibits a more pronounced inhibitory effect on the cathodic reaction compared to the anodic reaction, as evidenced by the higher absolute value of βc relative to βa67–69(Table 5). The alkyl chain of ECS endows significant hydrophobicity (as discussed in Sect. 6.1), inhibiting the migration of water and chloride ions and enhancing the resistance of the C-steel passivation film. Based on the values of C-steel corrosion current density in absence (icorr) and after ECS addition in different doses (iECS), surface coverage (θ) and inhibition efficiency percentage (ηECS %) can be calculated according to the Eqs68,70. : (a) Potentiodynamic polarization curves for C-steel in 1 M HCl in absence and presence of different concentrations of ECS at 25 ◦C. (b) Variation of the reciprocal of polarization resistance (1/Rp) versus the logarithm concentration of the ECS, log Cinh, of the C-steel in 1 M HCl. (c, d) the Potentiodynamic polarization curves for C-steel at different temperatures in absence and presence 175 ppm of ECS, respectively. (e) Arrhenius plots, variation of ln icorr against 1/T, for C-steel in 1 M HCl devoid of and containing 175 ppm of ECS and (f) Transition state relation of ln (icorr/T) against 1/T, for C-steel in 1 M HCl devoid of and containing 175 ppm of ECS. Table 5Tafel parameters for CS in 1 M HCl in absence and presence of different concentrations of ECS at 25 o C.Conc.-Ecorr,Icorrβa-βcCR R p Ɵ IEmMppmV, vs. Ag/AgClµA/cm2mV/decmV/decmm/y.cm2.Ω% 1 M HCl 000.000.456477.560.1230.1295.54957.38----------ECS4.5x10− 8250.477177.220.0850.0982.059111.650.628962.899.14 × 10−8500.452126.40.0940.1131.468176.010.735373.531.83 × 10− 71000.46990.410.0810.1031.051218.290.810681.063.20 × 10− 71750.45848.720.0840.1170.566437.330.897989.79 Tafel parameters for CS in 1 M HCl in absence and presence of different concentrations of ECS at 25 o C. 4.5 x10− 8 Table 5 shows a significant decrease in icorr from 477.56 µA/cm² for the blank to 48.72 µA/cm² with ECS addition. Inhibition efficiency increases to approximately 90% at 175 ppm ECS concentration. Moreover, polarization resistance (Rp) of C-steel, is an electrochemical parameter that represents the slope of the potential–current density curve near the corrosion potential (Ecorr). Physically, Rp is a measure of how strongly the metal surface resists the passage of corrosion current when a small perturbation in potential is applied, is function of Tafel slope and icorr according to the Stern-Geary equation71: Where, Y is constant and can be calculated as: . From this equation, an increase in Rp reflects either a decrease in icorr or a change in reaction kinetics (Tafel slopes), both of which indicate improved corrosion resistance. According to Stern-Geary equation, an increase in Rp can arise from a decrease in icorr. In the presence of ECS, adsorption of its molecules on the C-steel surface blocks active sites and limits the accessibility of corrosive species (Cl⁻, H⁺) to the metal. This barrier effect slows anodic metal dissolution and cathodic hydrogen evolution. Figure 5b, display the straight-line relationship between and logarithm ECS concentration according to the Eqs71,72. : where, a1 and b1 are constants73,74. The increase in ECS concentration leads to a marked rise in Rp ​, indicating enhanced resistance to charge transfer at the C-steel surface. This improvement arises from the adsorption of ECS molecules, which block active corrosion sites and form a protective barrier, thereby reducing the corrosion rate. The polarization (PDP) results are consistent with the EIS findings, confirming the effective inhibition mechanism. Effect of temperature The influence of temperature on C-steel corrosion reaction was studied with and without 175 ppm ECS addition in the 303–333 K range (Fig. 5c and d). As expected, higher temperatures accelerated corrosion rate, shifting polarization curves towards the active region and increasing icorr values (Table 6). Elevated temperatures boost electrolyte conductivity and kinetic energy, facilitating ions transport and speeding up corrosion rate. Hydrogen gas evolution at higher temperatures disrupts the protective layer on C-steel, leading to an increase in the exposed metal surface area75. A 14% reduction in ECS inhibition efficiency was observed with a threefold temperature increase, highlighting its potential as a corrosion inhibitor for C-steel in 1 M HCl76,77. Table 6Effect of temperature on the C-steel corrosion in 1 M HCl in absence and presence of 175ppm ECS.20 ◦C30 ◦C40 ◦C60 ◦CThermodynamic parametersIcorr, µA/cm2IE,%Icorr, µA/cm2IE,%Icorr, µA/cm2IE,%Icorr, µA/cm2IE,%EaΔHaΔSakJmol− 1J.K− 1mol− 1 Blank 477.56---880.5---1277.4---1769.8---25.7623.1620.85 ECS 48.72789.7995.39589.16179.7285.93429.5475.7244.0941.4963.64 Effect of temperature on the C-steel corrosion in 1 M HCl in absence and presence of 175ppm ECS. Based on the values of icorr, listed in Table 6, in presence and absence of 175 ppm ECS at different temperatures, thermodynamic activation parameters, including activation energy, (Ea), enthalpy of activation, (ΔHa), and entropy of activation, (ΔSa), for the C-steel reaction were calculated according to the Arrhenius and transition-state Eqs78,79. : Where,, h, and N are the Arrhenius constant, Planck’s constant and Avogadro’s number. Figure 5e illustrates the Arrhenius plot, from which the Ea values for C-steel, both with and without ECS treatment, can be determined based on the slope of the line (slope= -Ea/8.314). Ea​ represents the minimum energy required for the C-steel corrosion reaction to proceed. Table 6 shows that ECS increases the activation energy of the C-steel corrosion reaction, requiring more energy for C-steel dissolution or electrochemical reactions to occur, hindering the reaction rate. This confirms the energy barrier effect of the ECS adsorbed on the C-steel surface52,79. The slope and intercept of Fig. 5f represent the ΔHa and ΔSa values, respectively. ΔHa ​ reflects the change in enthalpy (heat content) when the activated complex (ECS-Fe) is formed from the reactants. A positive ΔHa​ value means that the corrosion process is endothermic, requiring heat input to proceed. The presence of ECS increased the ΔHa value of C-steel reaction (41.49​ kJmol− 1) compared to the uninhibited one (23.16 kJmol− 1). This further confirms that the ECS increases the energy requirement for the corrosion reaction. Both parameters are positive and higher in the presence of the prepared ECS. A positive ΔSa ​ implies that the activated state is less ordered than the initial state. This usually happens when desorption of water molecules or ions from the metal surface occurs during the reaction, increasing randomness in the system. ΔSa a positive ΔSa ​ may indicate that the ECS promotes a reaction pathway in which water and aggressive anions are displaced by the adsorbed ECS, leading to more freedom of movement for surrounding species. These findings align with previous research80,81. Surface analysis studies Water contact angle (WCA) WCA measurements provide valuable insights into the hydrophobicity of the C-steel surface and the efficacy of the ECS as a corrosion inhibitor82. The polished C-steel exhibited high hydrophobicity (WCA = 97.20°), attributed to a self-passivating iron oxide layer (Fig. 6a). However, immersion in 1 M HCl for 12 h drastically reduced hydrophobicity (WCA = 29.39°) due to the formation of hydrophilic corrosion products (Fig. 6b). Upon ECS treatment, WCA increased to 68.68° (Fig. 6c)., indicating the creation of a hydrophobic protective layer on the C-steel surface. The ECS’s superior performance is attributed to its molecular structure, featuring a hydrophobic alkyl chain, a quaternary nitrogen atom, and repeated polyoxyethylene units. These structural elements facilitate strong adsorption onto the C-steel surface, forming a hydrophobic barrier that effectively protects against corrosion. Water contact angle measurement on C-steel surface: (a) polished and after 24 h of immersion in 1 M HCl with (b) no inhibitor or/and (c) 175ppm of ECS. SEM and XPS analysis The SEM surface morphology of C-steel sheets at 5 kX magnification power, polished and immersed in 1 M HCl for 12 h, with and without 175 ppm ECS, is shown in Fig. 7a-c. The polished C-steel surface (Fig. 7a) is severely deteriorated and covered with corrosion products after 12 h of immersion in HCl (Fig. 7b). In contrast, the surface of C-steel treated with 175 ppm ECS under the same conditions appears nearly free of corrosion products (Fig. 7c). This improvement is attributed to the ECS molecules forming a protective layer that shields the C-steel surface from HCl’s offensive effects. SEM images of ploshed C-steel (a), C-steel after immersion in 1 M HCl (b) and C-steel after immersion in 1MHCl + 1750 ppm ECS (c). The XPS survey of the C-steel surface after ECS treatment (Fig. 8a) reveals the presence of N and organic C, O atoms, and Cl confirming the formation of an adsorption layer of ECS on the C-steel surface. Figure 8b-f shows the deconvolution fitting procedure. High-resolution XPS spectrum of Fe 2p (Fig. 8b) depicts a double peak profile at 710.3 eV and 723.4 eV for Fe 2p3/2 and Fe 2p1/2, respectively with satellite peaks at 717.7 eV and 732.9 eV for iron oxides on the C-steel surface. The peaks at 713.7 and 729.5 eV confirm the presence of a small concentration of FeCl3 on the C-steel surface83,84. In addition to that, the peaks of O 1 s (Fig. 8e) appeared at 529.1 eV and 530.7 eV refer to the FeOH and Fe2O385. Confirms the corrosion products formed from mixture of Fe-oxides and Fe-chlorides. The XPS spectrum of N 1 s (Fig. 8c) appears with peaks at 398.8 eV and 401.9 eV for the –N–H and positively charged -N+, respectively85,86. Furthermore, the peaks at 288.1 eV and 528.4 eV for C1s (Fig. 8d) and O 1 s (Fig. 8e), respectively, attributed to organic carbon and oxygen atoms, confirm the presence of ECS within the stable corrosion products on the C-steel surface. The presence of chloride may be ascribed to the acidic medium. The chloride peak Cl 2p observed (Fig. 8f) in the binding energy range between 196.8 and 198.4 eV can be attributed to N -HCl, the salt formation with the inhibitor, and FeCl3. XPS survay specta (a), XPS deconvoluted profiles of (a) Fe 2p, (b) N 1s, (c) C 1 s, (d) O 1 s, and Cl 2p (f) C-steel treated with 175 ppm ECS. Relationship between surface activity of prepared surfactant and corrosion Inhibition The corrosion inhibition efficiency of the synthesized surfactant (ECS) is strongly governed by its surface activity parameters, including critical micelle concentration (CMC), adsorption free energy (ΔG°ads), and molecular packing behavior. The inhibitor demonstrates a preferential tendency for adsorption over micellization, as evidenced by the more negative ΔG°ads compared to ΔG°mic, indicating thermodynamically favorable adsorption on the metal surface. The relatively low Γmax suggests high surface coverage with numerous adsorbed molecules, while the elevated Amin value reflects a tightly packed molecular arrangement. This compact adsorption facilitates enhanced electrostatic interactions between the surfactant and metal substrate, forming a homogeneous and stable hydrophobic film that effectively blocks corrosive agents. Together, these parameters—strong adsorption affinity, optimal surface coverage, and dense molecular packing—explain the superior inhibition performance of the synthesized surfactant compared to conventional inhibitors. Quantum chemical study Quantum chemical computations save time and effort by analyzing the structure and electronic properties of synthesized organic compounds. They predict corrosion protection by assessing the chemical reactivity of organic inhibitors and elucidating the inhibition mechanism, primarily based on donor-acceptor interactions. The optimized structures of the ECS in neutral and protonated forms appeared in Fig. 9 seem to be planar which enhance the surface coverage percentage of Fe and enforce the adsorption effectiveness of the ECS’S active centers during the interaction between ECS and the C-steel substrate18,83. As shown in Fig. 9, in the neutral form, the electronic cloud in both the HOMO and LUMO is mainly distributed over the quaternary N+ and bromide atoms. In contrast, for the protonated form, the LUMO electron density is primarily localized on the terminal protonated hydroxyl group. This indicates that these regions are act as nucleophilic and electrophilic active centers in donor-acceptor interaction between the ECS and Fe78,79. The electron density (E.D) (Fig. 9) indicates that the ethoxylated and alkyl chain parts are charged. This synergy enhances the HOMO and LUMO activities, facilitating the formation of a compact adsorbed ECS layer on the CS surface. This occurs through electrostatic attraction and chemical bonds between the ECS and Fe. The electrostatic potential (ESP) mapping in Fig. 9 shows that the red regions correspond to nucleophilic centers, where the ECS can donate electrons to the vacant 3 d orbitals of iron. Conversely, the blue regions correspond to electrophilic centers, where the ECS accepts electrons from the filled iron orbitals via back-donation54. ESP mapping confirms the charge distribution at the HOMO and LUMO centers, as well as in the ethoxylated and alkyl chain parts. Optimized molecular structure, HOMO and LUMO and MEP of ECS molecule in neutral and protonated forms. According the Eqs. (1–3), the calculated energy parameters of ECS in neutral and protonated forms are listed in Table 7. Analysis of these parameters indicates the ECS adsorption capability on the Fe surface. Higher EHO values enhance the ECS’s ability to donate electrons to the unfilled 3 d orbitals of Fe. Additionally, lower ELU values increase the ECS’s electron acceptance affinity from the filled 3 d Fe orbitals, forming an adsorbed complex that protects the Fe surface from corrosion87. The energy gap (∆E) is commonly used to describe the kinetic stability and chemical reactivity of tested molecules. According to our previous work13,26, electron mobility is efficient when the energy difference between orbital levels is small, thereby increasing the adsorption probability. This indicates that ECS can form a stable, compact complex with Fe²⁺, creating an adhesive, smooth protective film over C-steel. Table 7Quantum chemical parameters of the investigated ECS compound in neutral and protonated forms.Quantum parametersNeutral formProtonated formEHO (eV)−2.489−3.152ELU (eV)0.169−2.195 ∆E ECS (eV) 2.6580.957X ECS (eV.mol− 1)1.162.673ηECS (eV. mol− 1)1.3290.478 E Back−donation (eV. mol − 1 ) 0.3320.119 2.1794.521 Quantum chemical parameters of the investigated ECS compound in neutral and protonated forms. The fraction of electron transference (ΔN) displays the reactivity of ECS, is function of iron work function (4.82), and χECS. And derived from the formula88: According to Lukovit’s concept the positive ∆N value (2.179–4.521) indicates the affinity of ECS molecule to donate electron to form a protective complex with carbon steel89. The calculated parameters of ECS in the protonated form are better than those in the neutral form. This improvement may be due to the solvent enhancing the adsorption process of the inhibitor by forming hydrogen bonds, which bring the inhibitor molecules closer to the substrate surface38. Based on DFT calculation parameters, the experimental results have been validated by theoretical calculations. The adsorption locator module implemented in M.S 6.0 Accelrys software is widely applied to mimic the real adsorption of the prospective inhibitor molecules on the C-steel surface by designing the interactions between the tested inhibitors and Fe (1 1 0) crystal by Monte Carlo Simulation (MCs) method. Figures 10 and 11 show the side and top views of the most stable geometry-optimized configurations of ECS in its neutral and protonated forms. MCs were carried out in both vacuum and simulated acidic media to closely simulate the real conditions of C-steel corrosion inhibition. The vacuum environment provides insight into the intrinsic adsorption behavior of ECS without solvent effects, while the simulated acidic solution accounts for competitive adsorption with water molecules and hydronium and chloride ions, thereby reflecting the actual electrochemical environment encountered during C-steel corrosion in HCl. The ECS molecule exhibits a nearly flat, parallel orientation to the Fe (1 1 0) substrate in both perspectives. This configuration facilitates effective interactions between the ECS and the substrate, maximizing its coverage area40. Table 8 presents the MCs energy parameters for the ECS/Fe (1 1 0) system. This study focuses on adsorption energy (Eads) as a key indicator of ECS adsorption strength on the Fe surface. Eads, calculated as the sum of deformation (Edef) and rigid body (Erigid) energies, represents the energy released during adsorption. A more negative Eads value signifies stronger adsorption13. The ECS exhibits strong adsorption on C-steel in both gas and simulated acid environments, as indicated by high Eads values. The enhanced adsorption in the acid phase is attributed to H-bonding between water molecules and the ECS90. Furthermore, the Eads value of ECS is higher than those of water molecules, and Cl−, and H3O+ ions, demonstrating its capacity to displace these corrosive species. This leads to the formation of a protective adsorption layer on the C-steel surface, safeguarding it from corrosion. All DFT and MC simulation results demonstrate that the protonated form of ECS exhibits superior adsorption performance compared to its neutral counterpart. The higher positive charge on the protonated species significantly enhances electrostatic attraction toward the negatively charged C-steel surface (due to pre-adsorbed Cl− ions), while also promoting stronger interaction energies in the MC simulations. This increased affinity results in more stable adsorption, greater surface coverage, and improved inhibition efficiency. Based on DFT and MC simulations, ECS emerges as a highly promising corrosion inhibitor with exceptional performance91,92. The calculated ΔGads value (− 27.314 kJ·mol− 1) obtained from EIS data, along with the activation thermodynamic parameters (Ea, ΔH, and ΔS), are all in good agreement with the theoretically calculated Eads value. Side and top views of the adsorption mode of ECS molecule in nuetral form (upper one) and simulated acid solution (lower one) on Fe (110) substrate. Side and top views of the adsorption mode of ECS molecule in protonated form (upper one) and simulated acid solution (lower one) on Fe (110) substrate. Table 8The outputs energies calculated by Monte Carlo simulation for ECS in gas and simulated acid solution phases on Fe (1 1 0).Compound-ET(kJ/mol)-Eads(kJ/mol)-Erig.ads(kJ/mol)-Edef.(kJ/mol)-(dEads/dNi)(kJ/mol)ECSH2OCl−H3O+ ECS/Fe (1 1 0) 346.027295.7469292.7872.9590295.746 ECS + 100 H 2 O + 5 H3O + +5Cl − /Fe (1 1 0) 2443.064441.772451.001990.77256.7227.16160.08130.19 ECS-H + /Fe (1 1 0) 333.3130889.72290.7530598.9730889.72 ECS-H + +100 H 2 O + 5 H3O + +5Cl − /Fe (1 1 0) 2487.8735093.272501.5232591.7530965.2425.66164.41131.38 The outputs energies calculated by Monte Carlo simulation for ECS in gas and simulated acid solution phases on Fe (1 1 0). Inhibition mechanism ECS molecules adsorb at the C-steel/HCl interface (Fig. 12) via mixed physisorption–chemisorption (electrostatic attraction of quaternary N+/protonated OH groups and donor–acceptor interactions from oxygen lone pairs to Fe 3 d), with hydrophobic alkyl chain forming a compact barrier that blocks active sites, reduces charge transfer, and suppresses both anodic and cathodic reactions. Suggested adsorption mechanism of ECS over C-steel. In 1 M HCl, the steel surface becomes covered with adsorbed chloride and hydronium species, which impart a negative charge to the near-surface region due to the local adsorption of Cl− ions. This creates favorable sites for the electrostatic attraction of positively charged inhibitor species (ECS+). Protonated ECS, containing quaternary nitrogen and terminal protonated hydroxyl groups, is drawn to these negatively charged regions by Coulombic forces (Fig. 12). This rapid and reversible adsorption is consistent with the moderately negative ΔGads value (≈ −27 kJ·mol− 1) and the Langmuir adsorption isotherm, indicating dominant physisorption, particularly in the initial stages according to the following equations: In addition to electrostatic interactions, the lone pairs on oxygen atoms within the ethylene oxide units of ECS can donate electron density into vacant Fe 3d orbitals of C-steel, forming stronger coordination bonds Also, the back-electron donation from full-field Fe 3d orbitals of C-steel to the anti-bonding molecular orbital of ECS (Fig. 12). This consists the values of and Eback−donation calculated from DFT. This partial chemisorption further stabilizes the adsorbed layer and raises the energy barrier for metal dissolution. Monte Carlo simulations suggested that ECS molecules lie flat or nearly parallel to the Fe (111) surface, effectively covering active dissolution sites. The hydrophobic tail formed a compacted, low-permeability film that limits the ingress of corrosive species (H+, Cl⁻) and water. This orientation increases the water contact angle (WCA) and enhances the overall hydrophobicity of the C-steel surface. The calculated adsorption energy (Eads) for ECS is more negative than that for water, hydronium, or chloride species, indicating that ECS preferentially occupies surface sites. This displacement of solvent and aggressive ions leads to the formation of a stable, resilient protective layer. Comparisons with previous studies The polyoxyethylene-based cationic surfactant (ECS) demonstrated outstanding performance as both a sulfate-reducing bacteria (SRB) inhibitor and a corrosion inhibitor for carbon steel in acidic media. The superior activity of ECS can be attributed to the synergistic combination of oxyethylene units, quaternary ammonium groups, and long-chain alkyl moieties, which collectively promote strong adsorption on the steel surface and the formation of a compact, protective barrier. As shown in Table 9, ECS achieved an inhibition efficiency of 92.23% at only 175 ppm (3.2 × 10− 4 M), surpassing or matching the efficiencies of several previously reported cationic surfactants such as CTAB (84.2% at 4.1 × 10− 4 M) and CPB (89.4% at 3.9 × 10− 4 M)93, as well as CSIII (89.3% at 5 × 10− 3 M)94. ECS also outperformed A316 (89.6% at 200 ppm)95 and an (E)–N-based quaternary ammonium bromide (86.44% at 1 × 10− 2 M)96, while approaching the highest efficiency reported for dodecyl polyether phthalate (94.9% at 1 × 10− 2 M)97, but at a much lower concentration. These findings confirm that ECS provides competitive, and in many cases superior, inhibition efficiency compared to both cationic and nonionic surfactants, with the added advantage of significantly lower dosage requirements, offering potential economic and environmental benefits. Table 9Comparison of the Inhibition efficiency of the ECS with the previous studies.Name of corrosion inhibitorOptimum conc.IE%ReferencesECS175ppm = 3.2 × 10− 4 M92.23%Present studyCetyltrimethylammonium bromide (CTAB)4.1 × 10− 4M84.2% 93 Cetylpyridinium bromide (CPB)3.9 × 10− 4M89.4% 93 CSIII cationic surfactant5 × 10− 3M89.3% 94 4,4[1,4phenylenebis(azanylylidene)bis(N, N-dimethyl-N-hexadecylaminium]bromide (A316)200 ppm89.6 95 (E) – N- (3- ((4- hydroxy – 3- methoxy benzylidene) amino) propyl) – N, N – dimethyl decane – 1- ammonium bromide1 × 10− 2 M86.44 96 dodecyl41-hydroxy-3,6,9,12,15,18,21,24,27,30,33,36,39-tridecaoxahentetracontyl phthalate1 × 10− 2 M94.9% 97 Comparison of the Inhibition efficiency of the ECS with the previous studies. Conclusions FTIR and 1H NMR confirmed ECS chemical structure. Surface tension and conductivity measurements evaluated ECS surfactant properties in 1 M HCl. ECS exhibited strong adsorption affinity and the ability to penetrate microbial cell membranes, leading to cell death, with a microbial count of 104 at 200 ppm compared to 106 for the blank. Corrosion rate decreased due to ECS adsorption on C-steel, facilitated by quaternary ammonium, oxyethylene, and alkyl moieties. ECS formed a protective, high-capacitance layer, increasing Rct to ~ 500 Ω.cm2 while decreasing the icorr to 48.7µA/cm2 in presence of 175 ppm. PDP indicated mixed-type inhibition. Langmuir isotherm and ΔGads (−27.314 kJ/mol) suggested spontaneous physical adsorption. The SEM suggested a smooth C-steel surface after ECS treatment. The XPS spectrum of N 1 s appears with peaks at 398.8 eV and 401.9 eV for the –N–H and positively charged -N+, respectively. This confirmed the formation of adsorbed ESC layer over the C-steel. The ΔN parameter calculated from DFT for ECS in both neutral and protonated forms indicates the strong tendency of ECS molecules to transfer electrons to the unfilled 3 d orbitals of Fe. The adsorption energy (Eads) obtained from MC simulations further confirmed the adsorption of ECS and its protective role on C-steel. Acknowledgements The authors gratefully thank the Egyptian Petroleum Research Institute (EPRI) for its support. Author contributions N.M. El Basiony: Supervision, Validation, Writing – review & editing, Investigation, Methodology, Data curation. Elsayed A. Elsharaky: Investigation, Methodology, Data curation, Validation, Writing - original draft, Writing – review & editing. A.S. El-Tabei: Supervision Investigation, Methodology, Data curation, Writing – original draft, Validation, Writing – review & editing. Funding Open access funding provided by The Science, Technology & Innovation Funding Authority (STDF) in cooperation with The Egyptian Knowledge Bank (EKB). The authors declare that no funds, grants, or other support were received during the preparation of this manuscript. Data availability All data generated or analyzed during this study are included in this manuscript. Declarations Competing interests The authors declare no competing interests. Footnotes Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Contributor Information N. M. El Basiony, Email: nasser_elbasuny@epri.sci.eg A. S. El-Tabei, Email: azizaalghalymz@yahoo.com References Associated Data Data Availability Statement All data generated or analyzed during this study are included in this manuscript.