Introduction

The global economy depends on a stable energy supply, with oil and gas as key contributors. As easily accessible oil reserves decline, the petroleum industry focuses more on Enhanced Oil Recovery (EOR) methods to optimize production from existing reservoirs. Among these, surfactant flooding has gained considerable attention for its effectiveness in improving oil displacement efficiency at the pore scale1,2. Surfactants are essential in EOR due to their ability to modify interfacial properties and mobilize trapped oil in reservoirs. By reducing oil-water interfacial tension and altering rock wettability, surfactants enhance oil displacement efficiency at the microscale3,4,5. Surfactant flooding, a well-established EOR method, overcomes challenges associated with residual oil by lowering capillary forces and facilitating oil release from pore spaces6. Various surfactants, including cationic, anionic, nonionic, zwitterionic, polymeric, and naturally derived types, have been studied for their effectiveness under diverse reservoir conditions, making surfactant flooding a versatile and promising EOR strategy7,8,9. The selection of an appropriate surfactant for EOR operations is critically dependent on the reservoir’s mineralogical characteristics and the properties of its fluids10. For instance, cationic surfactants demonstrate strong performance in carbonate reservoirs due to their favorable interaction with positively charged rock surfaces11. Conversely, anionic surfactants, owing to their negative charge, exhibit enhanced efficacy in sandstone reservoirs where their electrostatic interactions with rock surfaces are more favorable12. Despite the promising potential of surfactants, their application under typical reservoir conditions poses significant challenges. High temperatures and salinity levels, common in many reservoirs, can lead to surfactant precipitation or chemical degradation13. For example, anionic surfactants may degrade via Hofmann elimination reactions, while nonionic surfactants can precipitate due to weakened hydrogen bonds. These effects are exacerbated at salinities exceeding 10 wt% and temperatures above 90 °C, significantly reducing surfactant performance and limiting their applicability in EOR operations14. One of the major obstacles in surfactant flooding is the adsorption of surfactants onto reservoir rock surfaces. This adsorption reduces the concentration of surfactants available for oil mobilization, thereby diminishing the overall efficiency and economic viability of the EOR process15,16. Factors such as the type of surfactant, reservoir temperature, salinity, and the mineralogical composition of the rock significantly influence the extent of surfactant adsorption17,18,19. The interaction between surfactants and reservoir rocks is primarily governed by the relative electrical charges of the surfactant molecules and the rock surfaces. Electrostatic attraction between oppositely charged surfactants and rock surfaces enhances adsorption, whereas like charges lead to electrostatic repulsion and reduced adsorption. Additionally, salinity and the ionic composition of the reservoir brine can substantially influence these interactions20,21. Adjustments to parameters such as pH, achieved through the addition of alkalis, can further modify rock surface charges and consequently alter surfactant adsorption behavior22,23. The types of ions and the salinity level can influence the adsorption of anionic surfactants on reservoir rocks. Increasing salinity compresses the electrical double layer, reducing the electrostatic repulsion between negatively charged surfactants and rock surfaces, thereby increasing adsorption. Additionally, the charge of the rock surface can alter upon contact with saline water, further affecting surfactant interactions24,25. Temperature plays a pivotal role in surfactant retention, with its influence greatly shaped by variables such as rock type, brine composition, and salinity levels26,27. For nonionic surfactants, increasing temperature often decreases the CMC initially due to enhanced hydrophobic interactions; however, at higher temperatures, the CMC may increase as system hydrophilicity decreases. For ionic surfactants, elevated temperatures reduce electrostatic repulsion between head groups, facilitating micelle formation at lower concentrations28,29,30. Zwitterionic surfactants have drawn significant attention due to their unique molecular structure, which combines anionic and cationic head groups. This dual nature imparts several advantages, including lower CMC, enhanced foam stability, and improved wettability modification. However, the injected solution properties such as salinity and pH, as well as reservoir temperature can influence on zwitterionic surfactants performance16,31,32. The adsorption behavior of C16DmCB on carbonate and sandstone rock surface was investigated. Adsorption was observed to follow the Frumkin isotherm for sandstone and the Sips isotherm for carbonate. Salinity was found to enhance adsorption, whereas the effects of alkalinity varied. Zeta potential measurements indicated that hydrophilic interactions were promoted. Spontaneous imbibition tests confirmed that oil-wet surfaces were effectively altered to water-wet, demonstrating the potential for improved oil recovery33. The performance of synthesized carboxybetaine-based zwitterionic surfactants with hydrophobic tails of 12, 14, 16, and 18 carbons in harsh reservoir conditions was evaluated. Surface tension measurements were conducted, revealing a direct relationship between increasing carbon chain length and the reduction in surface tension. The wettability of oil-wet surfaces was effectively altered to water-wet, with minimal surfactant loss reported. Additionally, more than 30% additional oil recovery was achieved through the injection of alkali-surfactant-polymer slugs into sand packs34. The adsorption of cocamidopropyl hydroxysultaine surfactants on Bedford limestone surfaces was analyzed using high-performance liquid chromatography. The findings indicated that increased salinity enhanced surfactant adsorption, whereas elevated temperatures reduced adsorption35. The adsorption of a biobased zwitterionic surfactant on quartz surfaces at a temperature of 45 °C was also studied, with adsorption capacity measured at 0.43 mg/g-rock36. The adsorption of two types of zwitterionic surfactants on kaolinite surfaces was investigated. It was reported that increasing surfactant concentration led to higher adsorption, because of presence of strong attractive forces between the positively charged headgroups of the surfactants and the negatively charged kaolinite surface37.

Applying EOR techniques in real reservoirs is much harder than in labs. Lab experiments use uniform rock samples under controlled conditions, but real reservoirs are more complex. They have varying porosity, permeability, and fluid composition, which cause uneven fluid flow and chemical distribution. Brine in reservoirs also contains multivalent ions that make surfactants less effective than in lab settings. Scaling up EOR techniques is expensive and challenging. Surfactants are costly to produce, and their effectiveness reduces due to chemical degradation and adsorption. Field operations also face practical limits, like injection pressures or production disruptions38,39.

This study explored the adsorption characteristics of ZW4 on calcite surfaces through a comprehensive series of investigations. Initially, the impacts of salinity and temperature on the CMC of ZW4 were analyzed to understand the surfactant’s behavior under varying conditions. To further elucidate its behavior, detailed thermodynamic characterization of ZW4 micellization was conducted, involving calculations of the standard Gibbs free energy (ΔGm°), enthalpy (ΔHm°), and entropy (ΔSm°) of micelle formation in aqueous solutions. Beyond micellization, the study provided a systematic examination of critical environmental parameters such as ZW4 concentration, salinity, and pH and their impact on its adsorption behavior on calcite surfaces. Additionally, to better understand the equilibrium adsorption process of ZW4 in the presence of MgSO₄ and Na₂SO₄, this research employed two-parameter adsorption models with three-parameter isotherm models for a more accurate depiction of ZW4 adsorption dynamics. Thermodynamic driving forces were also quantitatively assessed by calculating the standard Gibbs free energy of adsorption (ΔG°) for ZW4 on calcite. This integrated approach rigorously compared calculated ΔG° values with experimental data, while evaluating the proposed mechanism for salinity-induced adsorption enhancement. The findings offered deeper insights into the complex interactions governing ZW4 adsorption on calcite surface.

Materials and methods

Surfactant

The zwitterionic surfactant, 3-(N, N-Dimethylmyristylammonio) propane sulfonate (ZW4), with a molecular weight of 363.60 g/mol, obtained from Sigma-Aldrich, was used in this study (Fig. 1).

Fig. 1
figure 1

A Zwitterionic Surfactant, 3- (N, NDimethylmyristylammonio) propane sulfonate (ZW4).

Electrolyte

Electrolyte solutions were prepared using deionized water, into which MgSO₄ and Na₂SO₄ were dissolved at concentrations of 0.01 M, 0.02 M, and 0.03 M. Both salts were supplied by Merck Company and were used as received, without undergoing further purification.

Rock sample

A carbonate rock sample was obtained from outcrops surrounding a southwestern Iranian oil field. The composition of the rock was analyzed using the X-ray Diffraction (XRD) technique, which revealed that calcite is the dominant mineral in the rock. The XRD pattern resulting from the analysis is shown in Fig. 2.

Fig. 2
figure 2

The Result of XRD on Carbonate Rock Sample.

Zeta potential measurement

The Zetasizer Nano ZS from Malvern was used to measure the zeta potential of various solutions. This device operates based on the principle of Electrophoretic Light Scattering. For sample preparation, the rock was crushed and sieved, and the average particle size of the resulting powder used for zeta potential measurements was 3.26 μm, as shown in Fig. 3. Subsequently, 500 ppm of rock powder was mixed into the surfactant solution and stirred at 500 rpm for 6 h. All experiments were conducted at ambient pressure and a temperature of 25 ± 1 °C. Each test was performed in duplicate to ensure reliability, and the average values were reported. The accuracy of the measured zeta potential is ± 1 mV.

Fig. 3
figure 3

The particle size distribution used for Zeta Potential Measurement.

Adsorption measurement

Batch tests were conducted to investigate the adsorption process of ZW4 on calcite surfaces. Calcite powder, with a particle size of 180–250 micrometers, was sieved and subsequently washed with deionized water (DW) to remove impurities. The powder was then dried in an oven at 30 °C. Three grams of calcite powder were added to ZW4 solutions at various concentrations. The pH of each sample was adjusted to the desired value using NaOH to ensure consistent adsorption conditions, as pH strongly influences surfactant-calcite interactions. NaOH was carefully added to the solutions in small increments, with the pH continuously monitored during adjustment. Calcite-surfactant suspensions were stirred at 600 rpm for 24 h to achieve adsorption equilibrium. The temperature was carefully controlled to minimize thermal effects, and the pH was monitored throughout the experiment to ensure stability. After the stirring period, the final pH was recorded again to confirm its consistency.

Each suspension was centrifuged at 5000 rpm for 5 min to fully separate the calcite particles, leaving a clear supernatant. The ZW4 concentration in each supernatant was measured using UV-visible spectrophotometry, with a calibration curve employed to determine the surfactant concentrations in the solutions. Each adsorption test was conducted in triplicate, with a 5% error margin in the measurements. To construct an adsorption isotherm, data were collected across a range of initial ZW4 concentrations, plotting the amount of surfactant adsorbed per gram of calcite against the equilibrium concentration in the solution40. Various adsorption isotherm models were applied to better understand the adsorption process41,42. In the following sections, the commonly used adsorption isotherm models are discussed.

Langmuir isotherm

The Langmuir isotherm model describes monolayer adsorption on a finite number of uniform surface sites, assuming each site accommodates one molecule. It was originally developed for gas-solid interactions and is widely applied in adsorption studies. It can be expressed by41:

$${q_e}=\frac{{{Q_m}{K_L}{C_{eq}}}}{{1+{K_L}{C_{eq}}}}$$
(1)

.

Where \(\:{q}_{e}\) is the amount of ZW4 at equilibrium temperature (mg/gr). \(\:{Q}_{m}\) represents the maximum adsorbed capacity (mg/gr). \(\:{K}_{L}\) is the Langmuir constant (L/mg). \(\:{C}_{eq}\) is the equilibrium concentration of the ZW4 in the solution (mg/L).

Freundlich isotherm

The Freundlich isotherm empirically describes non-uniform adsorption on heterogeneous surfaces, allowing multilayer adsorption with varying adsorption energies. The Freundlich Isotherm equation is as follows42:

$${q_e}={K_F}C_{{eq}}^{{1/n}}$$
(2)

.

Where \(\:{K}_{F}\) is the distribution coefficient and \(\:1/n\) measure of adsorption intensity, indicating surface heterogeneity.

Temkin isotherm

The Temkin isotherm accounts for adsorbent-adsorbate interactions, assuming adsorption heat decreases linearly with surface coverage, indicating energetic heterogeneity. This model is as follows43:

$${q_e}=B~\ln \left( {A{C_{eq}}} \right)$$
(3)

Where \(\:B\) is constant related to heat of sorption and \(\:A\) is Temkin isotherm equilibrium binding constant.

Redlich-peterson (R-P) isotherm

The Redlich-Peterson isotherm model describes solute adsorption from liquids onto solids, combining Langmuir’s monolayer assumptions and Freundlich’s heterogeneity. Its hybrid nature makes it versatile for modeling diverse adsorption systems with varying surface characteristics. It can be expressed by44:

$${q_e}=\frac{{{K_r}{C_{eq}}}}{{1+\alpha ~C_{{eq}}^{\beta }}}$$
(4)

.

Where \(\:{K}_{r}\) and \(\:\alpha\:\) are the Redlich-Peterson constant related to the adsorption capacity. \(\:\beta\:\) is the exponent that describes the heterogeneity of the surface (0 < β ≤ 1).

Sips isotherm

To study adsorption in systems characterized by heterogeneity, the Sips model proves to be highly effective, as it merges the principles underlying both the Freundlich and Langmuir isotherms. It addresses the limitation of the Freundlich model, which cannot predict saturation at high adsorbate concentrations, by transitioning into Langmuir-like monolayer adsorption behavior at these higher concentrations due to the finite number of adsorption sites. The Sips adsorption model can be expressed by45:

$${q_e}=\frac{{{q_m}{K_s}C_{e}^{n}}}{{1+{K_s}~C_{e}^{n}}}$$
(5)

The parameter \(\:{q}_{e}\)​ represents the amount of adsorbate retained on the surface at equilibrium, with \(\:{q}_{m}\) denoting the maximum adsorption capacity achievable under monolayer conditions. \(\:{K}_{s}\) defines the equilibrium constant specific to the Sips model, which measures adsorption affinity, while \(\:n\) characterizes the degree of surface heterogeneity. When \(\:n\) equals 1, the Sips model simplifies to the Langmuir isotherm, indicating a uniform surface. Conversely, values of \(\:n\) less than 1 reflect heightened surface heterogeneity.

Results and discussions

CMC measurement of ZW4

The Critical Micelle Concentration (CMC) is the concentration at which surfactant molecules transition from existing as individual units to forming clusters called micelles. Below the CMC, the surfactant molecules remain dispersed, and increasing the concentration simply raises the number of individual molecules in the solution. Once the CMC is reached, the molecules begin to aggregate into micelles, leading to noticeable changes in the solution’s properties. Since the solution’s behavior differs significantly below and above the CMC, accurately determining the CMC of surfactants is essential. As shown in Fig. 4, the CMC of ZW4 was determined at 25 °C using equilibrium static surface tension measurements via the pendant drop method. Following a 1-minute stabilization period, a minimum value of 41.2 dynes/cm was observed at a concentration of 2000 ppm (5.6 mM). Initially, surfactant monomers adsorb at the Air-Solution Interface, reducing surface tension. However, beyond a certain concentration, the ASI becomes saturated, and no further reduction in surface tension occurs. This saturation point corresponds to the CMC. It is worth noting that each measurement was repeated three times, with an error of ± 0.2 dynes/cm.

Fig. 4
figure 4

CMC of the surfactant using surface tension experiment.

Effect of salinity on ZW4 CMC

The CMC of the zwitterionic surfactant ZW4 was determined using surface tension measurements at ambient pressure and at temperature of 25 ± 1° C. as presented in Fig. 5. Micellization occurs when surfactant molecules self-assemble beyond a threshold concentration to minimize interfacial free energy. Surface tension analysis effectively identifies the transition from monomers to micelles.

In ionic surfactants, electrostatic repulsion between similarly charged head groups counteracts micelle formation, necessitating higher surfactant concentrations to overcome these repulsive forces and reach the CMC. The presence of electrolytes reduces these interactions via electrostatic shielding, where counterions in solution neutralize surface charges, thereby facilitating micellization at lower surfactant concentrations46.

To investigate the influence of salt addition on the CMC of ZW4, we selected MgSO4 and Na2SO4 at a fixed concentration of 0.01 M. Surface tension measurements were performed as the surfactant concentration increased up to 2500 ppm, a value chosen slightly above the expected CMC of ZW4 in DW. This upper limit ensured that the complete CMC transition could be captured in the presence of added salts, which are known to modulate the surfactant’s self-assembly behavior.

The results presented in Fig. 5 demonstrate that the addition of salts significantly decreased the CMC of ZW4, with MgSO4 exhibiting a more pronounced effect compared to Na2SO4. At a 0.01 M concentration of MgSO₄, the CMC of ZW4 decreased to 1300 ppm, whereas the same concentration of Na₂SO₄ resulted in a CMC reduction to 1700 ppm.

The observed reduction in CMC with electrolyte addition aligns with established theories of micellization in zwitterionic surfactant systems. Divalent ions, such as Mg2+, exert a stronger influence on reducing the CMC compared to monovalent ions due to their increased charge density and hydration characteristics. The more effective charge screening provided by Mg2+ ions reduce the electrostatic repulsion between surfactant molecules, enabling micellization to occur at lower concentrations.

Additionally, the salting-out effect observed with Mg2+ ions suggests that ion-specific interactions play a critical role in surfactant aggregation. The greater charge density of Mg2+ enhances the dehydration of surfactant head groups, promoting tighter molecular packing within micelles. In contrast, Na+, being monovalent, exhibits weaker charge screening and a less pronounced salting-out effect, resulting in a comparatively smaller reduction in the CMC.

Fig. 5
figure 5

Effect of 0.025 M of MgSO₄ and Na₂SO₄ on the CMC of the zwitterionic surfactant.

In order to assess how different surfactant systems adsorb at interfaces, Gibbs adsorption isotherm could be employed. This approach provided values for \(\:{\varGamma\:}_{max}\), representing the maximum surface adsorption capacity, as well as \(\:{A}_{min}\), indicating the smallest average area occupied per individual surfactant molecule47,48. These parameters are illustrated in Eqs. (6) and (7), respectively.

$${{\text{\varvec{\Gamma}}}_{max}}= - \frac{1}{{RT}}{\left( {\frac{{d\gamma }}{{d\ln C}}} \right)_T}$$
(6)
$${A_{min}}=\frac{1}{{{{\text{\varvec{\Gamma}}}_{max}}~ \times {N_A}}}$$
(7)

.

Where \(\:{{\Gamma\:}}_{max}\) is maximum surface adsorption capacity in (mol/m²), \(\:{A}_{min}\) is area per molecule \(\:{(nm}^{2}/mol\)) γ is surface tension (N/m), C is surfactant concentration (mol/L), \(\:{\left(\frac{d\gamma\:}{d\text{ln}C}\right)}_{T}\) is the slope of surface tension vs. ln (concentration) in the linear region before CMC.

The adsorption and micellization behavior of surfactants, as well as their spontaneity, can be effectively analyzed through thermodynamic parameters. \(\:{\varDelta\:G}_{mic}\), the standard Gibbs free energy change of micellization, quantifies the spontaneity of micelle formation. Meanwhile, \(\:{\varDelta\:G}_{ads}\) represents the free energy change associated with the adsorption of surfactant molecules at interfaces, measuring the favorability of their transfer from the bulk solution to the interface. In other words, \(\:{\varDelta\:G}_{mic}\) refers to the free energy of micellization, while \(\:{\varDelta\:G}_{ads}\)corresponds to the free energy of adsorption47,49. These thermodynamic parameters are expressed by the following Eq. 

$$\Delta {G_{mic}}=2.303~RT\log \left( {{X_{cmc}}} \right)$$
(8)
$$\Delta {G_{ads}}=\Delta {G_{mic}} - \frac{{{\pi _{cmc}}}}{{{{\text{\varvec{\Gamma}}}_{max}}}}$$
(9)

.

Where \(\:{X}_{cmc}\) is mole fraction of ZW4 at CMC, \(\:R\) is universal gas constant (8.314 J·mol⁻¹·K⁻¹), \(\:T\) is temperature in Kelvin, \(\:{\pi\:}_{cmc}\) is the surface pressure at CMC obtained as \(\:{\pi\:}_{cmc}={\gamma\:}_{distilled\:water\:}-{\gamma\:}_{ZW4\:@\:CMC}\) .

The adsorption parameters and thermodynamic parameters of the ZW4 alone and in the presence of 0.01 M of Na2SO4 and 0.01 M of MgSO4 are presented in Table 1. The results showed that for the pure surfactant (ZW4), the \(\:{\varDelta\:G}_{mic}\) is -12.90 kJ/mol and \(\:{\varDelta\:G}_{ads}\) is -18.82 kJ/mol, indicating both processes are spontaneous under the conditions studied. The more negative value for \(\:{\varDelta\:G}_{ads}\) compared to \(\:{\varDelta\:G}_{mic}\) suggests that surfactant adsorption at interfaces is thermodynamically more favorable than self-assembly into micelles in the bulk phase. This is consistent with the general behavior of surfactants, as adsorption reduces the system’s free energy more significantly due to the reduction in surface tension.

When Na2SO4 is introduced, further lowering of both \(\:{\varDelta\:G}_{mic}\) (-13.30 kJ/mol) and \(\:{\varDelta\:G}_{ad}\) (-19.68 kJ/mol) is observed. Notably, the addition of MgSO4 leads to even more negative values for these parameters, with \(\:{\varDelta\:G}_{mic}\) at -13.97 kJ/mol and \(\:{\varDelta\:G}_{ads}\) at -20.33 kJ/mol. This trend reflects the pronounced influence of divalent cations (Mg2+) compared to monovalent cations (Na+) on surfactant aggregation and adsorption. Divalent salts can more effectively screen the electrostatic repulsion among surfactant headgroups, facilitating closer packing at interfaces and more efficient micellization. This effect is also evident in the decrease of \(\:{A}_{min}\) (the minimum surface area per molecule at the interface), which is smallest in the MgSO4 sample (0.271 nm2/mol), indicating tighter molecular packing. The comparison between the thermodynamic parameters of ZW4 and other zwitterionic surfactants is provided in the supplementary information, Table S.1.

Table 1 Thermodynamic parameters of the surfactant at 25 °C.

Effect of temperature on CMC

Temperature significantly influences the CMC of surfactants by modulating molecular interactions4,50. In the presented study, the effect of temperature in the range of 10 °C to 90 °C on the CMC of the ZW4 was investigated, with results shown in Fig. 6. At 10 °C, the CMC was 2100 ppm, decreasing to 1900 ppm at 30 °C, and subsequently increasing to 2230 ppm at 90 °C.

As temperature increases, the CMC of ZW4 initially decreases and then increases. The initial decrease in CMC (10–30 °C) is attributed to a decrease in hydrophilicity and hydration of the hydrophilic group, which promotes micellization and allows for micelle formation at lower concentrations. However, with further temperature increase, the hydrophobic groups perturb the water structure, and the breakdown of structured water around the hydrophobic regions inhibits micellization51. Furthermore, at higher temperatures, the increase in thermal energy likely intensified electrostatic repulsion between the positive and negative head groups, counteracting aggregation and raising the CMC. As a result, higher temperatures lead to an increase in the CMC, as the hydrophobic interactions become more pronounced, necessitating higher surfactant concentrations to initiate micelle formation.

Fig. 6
figure 6

CMC of ZW4 in Different Temperatures.

Understanding the thermodynamic properties of ZW4 micellization in water, such as the standard Gibbs free energy \(\:{(\varDelta\:G}_{m}^{0})\), the enthalpy \(\:{(\varDelta\:H}_{m}^{0})\), and the entropy \(\:{(\varDelta\:S}_{m}^{0})\), provide insights into the balance between hydrophobic forces, interactions between the surfactant and water, and, for ionic surfactants, the repulsion between head groups51,52,53. By analyzing how the CMC varies with temperature, these thermodynamic quantities can be calculated. According to the phase separation model and the mass action model, the standard Gibbs free energy of micellization per mole of a surfactant monomer is as follows54:

$$\Delta G_{m}^{0}=R~T~\ln \left( {{\chi _{CMC}}} \right)$$
(10)

.

where \(\:{\chi\:}_{CMC}\) is the mole fraction of surfactant in aqueous solution at the CMC, \(R = 8.314\:J/mol\, \cdot K\) and \(\:T\) is in Kelvin.

Use the Gibbs-Helmholtz equation the enthalpy (\(\:{\varDelta\:H}_{m}^{0}\)) is as follows:

$$\Delta H_{m}^{0}= - R~{T^2}~\frac{{\partial \ln \left( {{\chi _{CMC}}} \right)}}{{\partial T}}$$
(11)

.

The entropy (\(\:{\varDelta\:S}_{m}^{0}\)) of micellization can be calculated by the following formulas:

$$\Delta S_{m}^{0}=\frac{{\Delta H_{m}^{0} - \Delta G_{m}^{0}}}{T}$$
(12)

.

The calculated thermodynamic parameters of micellization of ZW4 is presented in Table 2.

Table 2 The thermodynamic parameters of micellization of ZW4 at different Temperatures.

The thermodynamic parameters of micellization for the ZW4 surfactant, which were derived from the variation of CMC with temperature, revealed significant insights into the ZW4 micelle formation process and its driving forces. The Gibbs free energy of micellization \(\:\left({\varDelta\:G}_{m}^{0}\right)\) was consistently negative across the studied temperature range, indicating that micellization occurred spontaneously under all conditions examined. This spontaneous nature was consistent with the general understanding of surfactant behavior, wherein surfactant molecules above the CMC aggregated to minimize the free energy of the system by reducing the unfavorable contact between hydrophobic tails and water46,55. The enthalpy changes of micellization \(\:\left({\varDelta\:H}_{m}^{0}\right)\), which were calculated from the temperature dependence of the mole fraction of surfactant at the CMC, exhibited a notable temperature dependence. At lower temperatures, \(\:\left({\varDelta\:H}_{m}^{0}\right)\) was positive, signifying an endothermic micellization process. This suggested that energy input was required to disrupt the structured hydrogen bonding network of water surrounding the hydrophobic chains, thereby facilitating micelle formation. As the temperature increased, \(\:{\varDelta\:H}_{m}^{0}\) decreased and eventually transitioned to negative values, indicating that micellization became exothermic at higher temperatures. This behavior reflected the weakening of water structure and hydrogen bonding with rising temperature, which reduced the energetic cost of micellization and, in some cases, released energy as micelles formed. At lower temperatures, micellization was observed to be endothermic \(\:({\varDelta\:H}_{m}^{0}>0)\); however, as the temperature increased, the process became exothermic \(\:({\varDelta\:H}_{m}^{0}<0)\);. The results indicated that the large negative Gibbs free energy of micellization was primarily attributed to a substantial positive entropy contribution, particularly at lower temperatures. As a result, micellization was concluded to be an entropy-driven process55.

The positive \(\:{\varDelta\:S}_{m}^{0}\) was attributed to the release of ordered water molecules from the hydration shells surrounding the hydrophobic tails during micelle formation. This liberation of water molecules increased the overall disorder of the system, which thermodynamically favored micellization. Additionally, the entropy gain reflected the increased rotational and translational freedom of surfactant molecules within the micelle interior compared to their solvated monomeric state. At intermediate temperatures, where \(\:{\varDelta\:H}_{m}^{0}\) approached zero or turned slightly negative, the contribution of entropy balanced the enthalpic changes, illustrating the enthalpy-entropy compensation phenomenon commonly reported in micellization thermodynamics.

The observed temperature dependence of these thermodynamic parameters aligned well with earlier literature reports on surfactants containing oxyethylene groups and similar structural features, where the CMC initially decreased with increasing temperature due to reduced hydrophilicity, but rose at higher temperatures as micellization became less favorable. This behavior reflected the complex interplay between hydrophobic interactions, the structural properties of water, and surfactant hydration29,56,57. The compensation effect between enthalpy and entropy changes ensured that \(\:{\varDelta\:G}_{m}^{0}\) remained negative and relatively stable across the studied temperature range, maintaining micelle formation as a thermodynamically favorable process56.

Surface charge of calcite

The ability of ZW4 to alter the wettability of the calcite surface is directly influenced by its adsorption onto the surface. Moreover, the extent of ZW4 adsorption on the calcite surface is strongly dependent on the surface charge of the calcite. Determining the calcite surface charge is vital for predicting and comprehending the behavior of ZW4 in this system.

To understand the surface charge properties of calcite, it is essential to study the equilibria between calcite/aqueous solution. Furthermore, zeta potential is a useful technique to examine the surface charge of calcite particles. Considering the both evaluation method mentioned above, in the following the surface charge of calcite is discussed.

According to the published data in the literature, the Point of Zero Charge (PZC) values in the range of 5.4–10.8 was documented for calcite58,59,60. In our study, as depicted in Fig. 7, the zeta potential of calcite powder in DW in different pH was measured and the PZC was found to be around 6.7.

Surveying the literature showed that some researchers reported a positive charge for the calcite surface61,62, while others reported negative values63,64. The differences in the reported values appear to depend on several parameters, such as the nature of the calcite rock, the types and concentrations of salts, and the pH of the solutions65,66. In our study, the pH of calcite in the DW was measured 8.13, 1.43 higher than the PZC of calcite (6.7), confirming the negative charge of calcite in the DW. The zeta potential also recorded − 16.4 mV.

This inconsistency in the reported charge of calcite by different researchers may be attributed to the complex process of calcite dissolution in aqueous solutions. The system’s controlling equilibrium reactions can be summarized as follows65,67:

$$~CaC{O_3}\left( s \right) \leftrightharpoons C{a^{2+}}\left( {aq} \right)+CO_{3}^{{2 - }}\left( {aq} \right)\,\,\,k={10^{ - 8.48}}$$
(13)
$$CO_{3}^{{2 - }}\left( {aq} \right)+{H_2}O\left( l \right) \leftrightharpoons HCO_{3}^{ - }\left( {aq} \right)+O{H^ - }\left( {aq} \right)\,\,~~k={10^{1.47}}$$
(14)
$$HCO_{3}^{ - }\left( {aq} \right)+{H_2}O\left( l \right) \leftrightharpoons {H_2}C{O_3}\left( {aq} \right)+O{H^ - }\left( {aq} \right)\,\,\,k={10^{1.1}}$$
(15)
$${H_2}C{O_3}\left( {aq} \right) \leftrightharpoons {H_2}O\left( l \right)+C{O_2}\left( g \right)\,\,k={10^{ - 12.9}}$$
(16)
$$C{a^{2+}}\left( {aq} \right)+HCO_{3}^{ - }\left( {aq} \right) \leftrightharpoons CaHCO_{3}^{+}\left( {aq} \right)\,\,~\,k={10^{ - 22.8}}$$
(17)
$$C{a^{2+}}\left( {aq} \right)+{H_2}O\left( l \right) \leftrightharpoons Ca~{\left( {OH} \right)^+}\left( {aq} \right)+{H^+}\,\,~k={10^{ - 22.8}}$$
(18)
$$C{a^{2+}}\left( {aq} \right)+2{H_2}O\left( l \right) \leftrightharpoons Ca~{\left( {OH} \right)_2}\left( s \right)+2{H^+}\left( {aq} \right)\,\,\,k={10^{ - 22.8}}$$
(19)

.

Because the equilibrium constant of Eqs. 18 and 19 are very low, the amount of \(\:{Ca\:\left(OH\right)}^{+}\:\left(aq\right)\) and \(\:{Ca\:\left(OH\right)}_{2}\left(s\right)\) are very negligible and could be ignored. From the above equilibrium reactions, it was found that different ions with both positive and negative charges are produced by dissolution of calcite into the aqueous solutions which caused to not possible to predict the calcite surface charge accurately.

A study conducted on this subject indicates that the energy required for a calcium ion to detach from the crystal to an infinite distance resulting in the formation of a charged and isolated vacancy is lower than that required for a carbonate ion. Consequently, the probability of vacancy formation is higher for calcium than for carbonate ion. The removal of calcium ions from the calcite surface causes the surface charge to become negative68. The findings of our study were consistent with this explanation, as the measured negative zeta potential confirmed that the dissolution of calcite into the aqueous solution resulted in the release of calcium ions from the calcite surface.

Fig. 7
figure 7

Zeta Potential between Calcite and Deionized Water at different pH.

Effect of ZW4 concentration on calcite surface charge

In this section, the effect of different concentrations of ZW4 on the surface charge of calcite was investigated through zeta potential measurements at ambient pressure and at temperature of 25 ± 1° C. The surface charge was evaluated for four different ZW4 concentrations: 1000, 1500, 2000, and 2500 ppm. The results, presented in Fig. 8, demonstrated that an increase in ZW4 concentration led to a more negative zeta potential. Specifically, at a concentration of 1000 ppm, the zeta potential was measured at -22.3 mV, and it further decreased to -30.8 mV at 2000 ppm. However, beyond the CMC of ZW4 (2000 ppm), the rate of increase in the negative zeta potential diminished, suggesting a saturation effect in ZW4 adsorption on the calcite surface.

Additionally, Fig. 8 illustrated the variation in pH with increasing ZW4 concentration. A slight decrease in pH was observed as the ZW4 concentration increased. This reduction in pH was attributed to the excessive adsorption of ZW4, which likely inhibited calcite dissolution, thereby reducing the release of carbonate ions into the solution. The pH of the DW was measured at 8.13, which gradually decreased to 7.94 in the presence of 2500 ppm ZW4.

Fig. 8
figure 8

Zeta potential and pH of ZW4 Solutions in Different Concentrations.

Effect of salinity on surface charge of calcite

To investigate the effect of salinity on the surface charge of calcite, zeta potential measurements were performed at concentrations of 0.01 M, 0.02 M, and 0.03 M for both Na2SO4 and MgSO4. The ZW4 concentration was fixed to 2500 ppm. The corresponding data, including the pH values of the solutions, are provided in Fig. 9. All tests were conducted under ambient pressure and at a temperature of 25 ± 1 °C.

The pH of solutions containing Na₂SO₄ was observed to be higher than that of solutions containing MgSO₄ (measurements were taken in the presence of calcite powder). Specifically, the pH values for Na₂SO₄ at concentrations of 0.01 M, 0.02 M, and 0.03 M were 8.03, 8.12, and 8.19, respectively. In contrast, the pH values for MgSO₄ at the same concentrations were 7.90, 7.83, and 7.79, respectively.

The dissolution of MgSO4 in DW results in a slight decrease in pH, making the solution marginally acidic, whereas Na2SO4 tends to slightly increase the pH, making the solution more basic. The dissolution of MgSO4 in water is represented by the following reaction:

$$MgS{O_4}\left( s \right) \to M{g^{2+}}\left( {aq} \right)+SO_{4}^{{2 - }}\left( {aq} \right)$$
(20)

.

Magnesium ions (Mg2+) are relatively small and highly charged, which can cause polarization of water molecules and a slight release of hydrogen ions (H+). The hydrolysis reaction of magnesium ions is as follows:

$$M{g^{2+}}\left( {aq} \right)+2~{H_2}O\left( l \right) \leftrightharpoons Mg{\left( {OH} \right)_2}\left( {aq} \right)+2~{H^+}\left( {aq} \right)$$
(21)

.

This hydrolysis reaction produces H⁺ ions, which decrease the pH, making the solution slightly acidic (pH < 7). However, the extent of this hydrolysis is relatively small. On the other hand, the dissolution of Na₂SO₄ in water, as represented by the equation:

$$N{a_2}S{O_4}\left( s \right)+2~{H_2}O\left( l \right) \to 2~N{a^+}\left( {aq} \right)+HSO_{4}^{ - }\left( {aq} \right)+O{H^ - }\left( {aq} \right)$$
(22)

.

It leads to the production of hydroxide ions (OH⁻), which slightly increases the pH of the solution. As noted in the previous section, dissolving calcite in DW increased the pH to 8.13. When Na₂SO₄ and MgSO₄ were added to the DW containing calcite powder, the final pH values and corresponding zeta potential measurements were summarized in Fig. 9. The results showed that, at all three concentrations of Na2SO4 and MgSO4, the pH values remained above the PZC of calcite (pH = 6.7), indicating that the calcite particles maintained a negative charge in all tested solutions. Additionally, the data revealed that the zeta potential of the Na₂SO₄ solution was more negative than that of the MgSO4 solution.

One of the most significant factors influencing the zeta potential is the charge density of the ions in the solution. Magnesium ions, due to their small size and high charge density, strongly interact with the negatively charged calcite surface, compressing the electrical double layer and reducing the negative calcite surface charge, which results in a less negative or neutral zeta potential. In contrast, sodium ions, being larger and lower in charge density, exert a weaker effect on the double layer, allowing the negative charge to remain stronger and resulting in a more negative zeta potential.

Furthermore, Mg²⁺ causes greater compression of the electrical double layer, reducing the thickness of the diffuse layer and shielding the surface charge more effectively than sodium ions. This compression diminishes repulsive forces, resulting in a decreased negative zeta potential.

Fig. 9
figure 9

Zeta Potential and pH Values of Na2SO4 and MgSO4 in the Presence of Different Salinities on Calcite Surface.

Adsorption behavior of ZW4

Effect of ZW4 concentrations

The adsorption of surfactants on rock surfaces is influenced by key factors, including hydrogen bonding, van der Waals forces, chemical interactions, electrostatic interactions, nonpolar interactions, and ion exchange69,70.

Figure 10 shows the amount of ZW4 adsorbed on the calcite surface at pH 8 in DW under ambient pressure and at a temperature of 25 ± 1 °C. The adsorption initially increased sharply, transitioned to a gentler slope, and plateaued at approximately 2500 ppm; 500 ppm higher than the CMC of ZW4. Each adsorption test was conducted in triplicate, with a 5% error margin in the measurements.

When the surfactant concentration exceeds its CMC, the behavior of the surfactant changes significantly. Below the CMC, surfactant molecules primarily exist as monomers, which adsorb onto the calcite surface, occupying available binding sites. As the concentration increases, more monomeric surfactant molecules are available, enhancing adsorption. Upon reaching the CMC (2000 ppm in this study), surfactant molecules begin to aggregate into micelles. At concentrations above the CMC, the micelles, being larger and aggregated, no longer adsorb onto the calcite surface because they cannot effectively interact with the surface sites. Consequently, the concentration of free surfactant molecules (monomers) remains constant, and the adsorption density stabilizes, resulting in a plateau. This behavior aligns with the pseudo-phase separation model, where excess surfactant above the CMC exists as micelles, and only the monomeric form continues to adsorb, leading to a stabilized adsorption density71,72. Maximum adsorption saturation was observed at 2500 ppm, where micelle formation predominated, diminishing the driving force for further adsorption. In the following sections, a concentration of 2500 ppm of ZW4 was chosen.

Fig. 10
figure 10

Adsorption of ZW4 on Calcite Surface in the Presence of Deionized Water.

Effect of pH

The adsorption of ZW4 on the calcite surface was investigated across pH levels of 8, 8.5, 9.0, 9.5, and 10.0. The experiments were conducted at a constant ZW4 concentration of 2500 ppm, maintained under atmospheric pressure, with a temperature controlled at 25 ± 1 °C. Each adsorption test was conducted in triplicate, with a 5% error margin in the measurements.

In this study, the acidic pH range was not used because the tests performed in the acidic pH range yielded unreliable results. This issue arose because the pH values fluctuated during the experiments due to the equilibrium reaction between the acid and calcite40. This equilibrium reaction is as follows:

$$CaC{O_3}\left( s \right)+2~{H^+} \leftrightharpoons C{a^{2+}}\left( {aq} \right)+C{O_2}\left( g \right)+{H_2}O\left( l \right)$$
(23)

.

As the reaction progressed, the concentration of \(\:{H}^{+}\) ions gradually decreased, causing the pH of the system to shift from acidic to basic. For instance, it was reported that starting experiment with pH of 4 resulted in a final pH of approximately 7.5. The challenges associated with utilizing calcite under acidic conditions have also been documented by other researchers73.

At higher pH levels, the concentration of hydroxide ions \(\:{(OH}^{-})\) in the solution increases, altering the carbonate equilibrium on the calcite surface. According to reactions 14 and 15, elevated pH favors the formation of \(\:{CO}_{3}^{2-}\) and \(\:{HCO}_{3}^{-}\), which adsorb onto the calcite surface and significantly enhance its negative surface charge, as confirmed by Zeta potential measurements (Fig. 7).

ZW4, a zwitterionic surfactant, contains both a negatively charged sulfonate group \(\:\left(S{O}_{3}^{-}\right)\) and a positively charged dimethylammonium group \(\:\left({N}^{+}{\left({CH}_{3}\right)}_{2}\right)\). The sulfonate group is strongly acidic and remains largely unaffected by pH changes, as it does not undergo protonation or deprotonation reactions. Similarly, the dimethylammonium group, being a quaternary ammonium compound, maintains a permanently positive charge, independent of pH. As a result, the overall charge of the surfactant remains constant across the entire pH range, and ZW4 remains zwitterionic throughout.

As shown in Fig. 11, the amount of ZW4 adsorbed onto the calcite surface decreased as the pH increased. This is because, as the pH rises, the negative charge on the calcite surface increases, creating stronger electrostatic repulsion between the negatively charged sulfonate group of ZW4 and the negative calcite surface. As a result, the interaction between ZW4 and the calcite surface becomes predominantly repulsive, reducing the surfactant’s affinity for the surface and leading to lower adsorption at higher pH values.

Fig. 11
figure 11

Effect of pH on Static Adsorption of ZW4 on Calcite Surface.

Effect of salinity

The effects of MgSO₄ and Na₂SO₄ on the adsorption of ZW4 onto the calcite surface were investigated at three different concentrations (0.01 M, 0.02 M, and 0.03 M) under controlled conditions (pH 8 and 25 °C). Several factors affect the adsorption of surfactants onto rock surfaces, such as the rock’s surface charge, the surfactant’s electrical charge, and the characteristics of the electrolytes present. As shown in Fig. 12, increasing salt concentration enhanced ZW4 adsorption, with a consistently higher adsorption observed in the presence of MgSO₄ compared to Na₂SO₄. Each adsorption test was conducted in triplicate, with a 5% error margin in the measurements.

The adsorption of ZW4 surfactants onto calcite surfaces is predominantly dictated by electrostatic interactions between the surface charge of calcite and the charged functional groups of the surfactant. With a hydrophilic head composed of both positive and negative charges, the adsorption characteristics of ZW4 are strongly influenced by the charge properties of the calcite surface. The oppositely charged functional group of ZW4 is attracted to the calcite surface, facilitating adsorption. However, the same-charged group of ZW4 experiences an electrostatic repulsion, counteracting the attraction force and influencing the overall orientation of the surfactant molecules.

The orientation of ZW4 on the calcite surface is influenced by salinity, as it directly affects the surface charge of calcite. Under low salinity conditions, the calcite surface exhibited a higher negative charge, leading to the preferential adsorption of the positively charged ammonium group of ZW4 onto the surface, while the negatively charged sulfonate group is repelled. This results in a “V-shaped” molecular orientation (low packing density), where the surfactant molecules align with the positive ammonium group interacting with the surface and the sulfonate group extending outward. Figure 13 depicts schematics of ZW4 adsorption at different salinities.

The electrostatic characteristics of the calcite surface were strongly influenced by salinity levels, mainly due to the presence and interactions of different salt ions. Sulfate ions (SO₄²⁻), owing to their divalent nature and high charge density, interacted strongly with the positively charged regions of the calcite crystal lattice. This interaction reduced the positive surface charge of calcite and resulted in the development of a negative zeta potential, thereby significantly altering the calcite effective surface charge.

In contrast, monovalent sodium ions (Na+) and divalent magnesium ions (Mg2+) affected the negative surface charge of calcite through distinct mechanisms. Mg²⁺ ions, due to their high charge density and divalent nature, exhibited strong electrostatic interactions with the negatively charged calcite surface. These interactions facilitated specific adsorption, where Mg²⁺ ions directly bound to the calcite surface, effectively lowering its negative charge.

Experimental data indicated that the negative surface charge of calcite weakened more substantially in the presence of MgSO₄ compared to Na₂SO₄. Zeta potential measurements (Fig. 9) confirmed this observation, revealing that Mg²⁺ ions caused a greater reduction in the magnitude of the negative zeta potential than Na⁺ ions.

Furthermore, both Na2SO4 and MgSO4 ions were capable of screening the positive and negative head groups of ZW4. While sulfate ions (SO42-) exhibited similar effectiveness in screening the positively charged quaternary ammonium group of ZW4 for both salts, Mg2+ ions demonstrated a stronger ability to screen the negatively charged sulfonate group of ZW4.

The enhanced screening by Mg2+ ions, coupled with the greater reduction of calcite’s negative surface charge in the presence of MgSO₄, suggested that the repulsion force between the negatively charged sulfonate groups of ZW4 and the calcite surface decreased in the presence of MgSO₄. This decrease in repulsion facilitated stronger interactions between ZW4 and the calcite surface.

This reduction in electrostatic repulsion also allowed ZW4 molecules to transition from a “V-shaped” orientation (low packing density) to a more vertical “I-shaped” configuration (High packing density), where both the ammonium and sulfonate groups were involved in adsorption. This structural reorientation enhanced the molecular packing density and significantly increased the overall adsorption of ZW4 on calcite. A similar configuration of surfactant molecules on rock surfaces was previously proposed in the literature74,75. Consequently, as shown in Fig. 12, the adsorption density of ZW4 was observed to be higher in the presence of MgSO₄ compared to Na₂SO₄.

The stronger adsorption observed with MgSO₄ is primarily attributed to the higher charge density of Mg²⁺ ions, which effectively compress the electrical double layer and reduce the negative zeta potential of the calcite surface. However, ion-specific interactions, as described by the Hofmeister series, also play a crucial role in this behavior76. Mg2+, a kosmotropic ion, exhibits strong electrostatic interactions and a highly hydrated state, enabling it to structure water molecules and form stable complexes with the calcite surface. This kosmotropic nature enhances adsorption stability by facilitating tighter molecular packing of surfactant molecules. The kosmotropic influence of Mg²⁺ extends to the hydration dynamics of ZW4 surfactant molecules. By interacting tightly with the sulfonate groups of ZW4 and removing water from hydration shells, Mg2+ increases system entropy and promotes stronger surfactant adsorption on the calcite surface. Additionally, SO42-, another kosmotropic ion, further supports adsorption by screening the positively charged ammonium group of ZW4, reducing electrostatic repulsion and enabling a high-density, reorganized surfactant structure. In contrast, Na+, a chaotropic ion, exhibits weaker hydration forces and disrupts water structure. This results in less effective charge neutralization, hindered surfactant packing, and comparatively lower adsorption efficiency. Therefore, the enhanced adsorption observed with MgSO4 arises from the interplay of ion charge density, kosmotropic hydration effects, and Hofmeister-specific interactions, highlighting their critical role in optimizing surfactant adsorption thermodynamics beyond charge density effects alone77,78,79,80.

Fig. 12
figure 12

The amount of ZW4 adsorption in solutions with different salinities: (A) MgSO₄ and (B) Na2SO4.

Fig. 13
figure 13

Schematic representation of ZW4 adsorption on calcite surfaces at different salinities of MgSO4 and Na2SO4: (A) 0.01 M, (B) 0.02 M, and © 0.03 M. Increasing salinity screens the charges of ZW4 head groups and reduces the negative charge of the calcite surface. This induces a transition in ZW4 molecular orientation, shifting from a ‘V-shaped’ configuration with lower packing density to a more vertical ‘I-shaped’ configuration with higher packing density.

Equilibrium adsorption models

"Freundlich Isotherm" presents a comprehensive analysis of the adsorption models used to evaluate the equilibrium adsorption process. The quantitative results of curve fitting for MgSO₄ and Na₂SO₄ at three concentrations (0.01 M, 0.02 M, and 0.03 M) are summarized in Table 3. To identify the most appropriate isotherm model, R² values from several adsorption isotherm models were compared, as illustrated in Fig. 14. The results show that, for both MgSO₄ and Na₂SO₄, the Sips isotherm model consistently provided the best fit to the experimental data among all models evaluated.

To gain deeper insight into the equilibrium process, the adsorption characteristics of ZW4 on a calcite surface in the presence of MgSO₄ and Na₂SO₄ were further analyzed using a range of adsorption models. These included the well-established two-parameter isotherms, Langmuir, Freundlich, and Temkin which are commonly used to describe adsorption mechanisms but differ fundamentally in their underlying assumptions and applicability81.

The results showed that the three-parameter models, Sips and RP provided a notably better fit to the experimental data compared to traditional two-parameter models. The enhanced flexibility of these three-parameter models allowed for a more accurate characterization of the complex adsorption mechanisms evident in systems with both homogeneous and heterogeneous surface interactions, especially under varying salinity conditions44,82.

Among the three-parameter models, the Sips isotherm consistently demonstrated the best agreement with the experimental data, as reflected by the highest R² values (Table 3). The Sips model effectively integrates features from both the Langmuir and Freundlich isotherms, enabling accurate modeling of adsorption on heterogeneous surfaces at lower concentrations, while also transitioning to Langmuir-like saturation behavior at higher concentrations.

While the Sips model demonstrated the best fit for the adsorption data, as evidenced by its R² values (Table 3), it is important to consider the inherent limitations of the model. The Sips model, being a three-parameter approach, provides flexibility over simpler models by accounting for heterogeneous adsorption sites and non-uniform affinities. However, this increased flexibility introduces a risk of overfitting, particularly when precise experimental data are limited or contain noise.

A critical comparison of the Sips model with simpler, two-parameter models, Langmuir, Freundlich, and Temkin yields important practical insights. The Langmuir model postulates monolayer adsorption on a homogeneous surface with a finite number of identical sites, incorporating a clear saturation point, and is well-suited for uniform adsorption mechanisms41. The Freundlich model, by contrast, describes adsorption on heterogeneous surfaces, allowing for a variable range of adsorption energies and potential multilayer formation, but lacks a defined adsorption maximum, thereby limiting its utility at high concentrations42. The Temkin model introduces the concept of diminishing heat of adsorption due to increasing surface coverage and recognizes the role of adsorbate–adsorbate interactions, representing systems with moderate surface heterogeneity43.

While both Langmuir and Freundlich models provided reasonably good fits to the data and offer the advantages of interpretability and simplicity, they fell short in accurately representing the observed experimental saturation behavior and the intricacies arising from surface heterogeneity and adsorbate interactions. The Temkin isotherm, although better at characterizing energy changes and molecular interactions, was surpassed by the predictive accuracy and flexibility of the Sips model. This best-fit capability is especially important for systems where adsorption mechanisms evolve with concentration or are influenced by multiple competing factors, as seen with ZW4 adsorption in the current study.

When evaluating predictive accuracy versus complexity, the Langmuir and Freundlich models showed reasonably high R² values but were consistently outperformed by the Sips model across all salinity levels for MgSO₄ and Na₂SO₄ (Table 3; Fig. 14). The advantage of the Sips model lies in its ability to better accommodate the complex interplay between ion-specific interactions, surfactant packing density changes, and adsorption saturation effects near the critical micelle concentration. Simpler models, while less flexible, may still be suitable for preliminary assessments or when computational efficiency is prioritized.

By offering a refined and adaptable framework, RP and Sips isotherms significantly enhance the accuracy of adsorption studies, particularly in complex systems with heterogeneous surface interactions. Their ability to transition between different adsorption behaviors allows for a more precise representation of equilibrium conditions across diverse adsorption environments. As a result, these three-parameter models provide a more comprehensive and reliable approach for characterizing adsorption processes. The Sips isotherm model demonstrated a higher R2 value in comparison to the RP isotherm model.

Table 3 Equilibrium parameters of different adsorption Models.
Fig. 14
figure 14

Comparison of R2 Values for Different Adsorption Isotherm Models at Various Salinities: (A) MgSO4, (B) Na2SO4.

Thermodynamics of ZW4 adsorption on calcite surface

Calculating the standard Gibbs free energy of adsorption (ΔG°) is essential for understanding and predicting surfactant adsorption behavior on calcite. The ΔG° value serves as a direct indicator of adsorption spontaneity: a negative ΔG° indicates that the process occurs naturally, while a positive value implies the need for external energy input. Furthermore, the magnitude of ΔG° reflects the favorability of adsorption, facilitating comparisons across different experimental conditions, such as varying concentrations of MgSO₄ and Na₂SO₄83.

The standard Gibbs free energy of adsorption (ΔG°) can be calculated using the formula84:

$$\Delta {G^0}= - RT\ln K$$
(24)

where \(\:R\) is universal gas constant (8.314 J·mol⁻¹·K⁻¹), \(\:T\) is temperature in Kelvin, and K denotes the adsorption equilibrium constant.

In this study, all adsorption experiments were conducted at a constant temperature of 25 °C. The results in Table 4 indicated that ΔG° values were negative for all samples, confirming the spontaneity of adsorption of MgSO₄ and Na₂SO₄ at various concentrations. More negative ΔG° values correspond to stronger thermodynamic driving forces, implying that higher salinity enhances adsorption. For instance, in the case of MgSO₄, ΔG° decreased from − 12.83 kJ/mol at 0.01 M to -14.19 kJ/mol at 0.03 M, demonstrating increased spontaneity at higher salt concentrations. A similar trend was observed for Na₂SO₄.

Comparisons between the two salts revealed that MgSO₄ consistently exhibited more negative ΔG° values than Na₂SO₄ at equivalent concentrations. This suggests that MgSO₄ is more favorably adsorbed onto the calcite surface under the studied conditions.

These findings are consistent with the experimental data and align with the hypothesized mechanism of adsorption enhancement due to salinity. As discussed in Sect. 4.3.3 (Effect of Salinity), increasing the salinity reduced electrostatic repulsion, facilitating a transition of ZW4 molecules from low to high packing density on the calcite surface. This structural reorganization allowed both the ammonium and sulfonate groups of ZW4 to contribute to adsorption, thereby increasing the molecular packing density and significantly enhancing overall adsorption.

Table 4 The standard Gibbs free energy of adsorption of ZW4 on the calcite surface.

Conclusion

This research focused on examining how ZW4 interacts with calcite surfaces through a series of detailed analyses. The study began by assessing how salinity and temperature impacted the CMC of ZW4, offering insights into the surfactant’s behavior under different environmental conditions. Subsequently, experiments investigated the surface charge of calcite, aiming to determine how variations in salinity and surfactant concentration influenced its characteristics. The adsorption behavior of ZW4 was also extensively analyzed, with particular attention given to the roles of pH, salinity, and surfactant concentration in the adsorption process. To deepen the understanding of the observed trends, various theoretical models were applied to interpret the equilibrium adsorption data. The collective findings from these analyses have led to the following conclusions:

  1. 1.

    MgSO₄ is more effective than Na₂SO₄ at reducing the CMC of ZW4. This is because the divalent Mg²⁺ ions provide stronger electrostatic screening and enhanced salting-out effects, which promote tighter micelle packing.

  2. 2.

    The adsorption and micellization of the ZW4 surfactant are spontaneous and thermodynamically favorable, with adsorption being more energetically favorable than micellization. The presence of electrolytes, particularly divalent Mg²⁺ ions, significantly enhances these processes by reducing electrostatic repulsion and enabling tighter molecular packing at interfaces.

  3. 3.

    The CMC of ZW4 decreases between 10 and 30 °C due to reduced hydrophilicity, which favors micellization; however, above 30 °C, the CMC increases.

  4. 4.

    Thermodynamic analysis revealed that ZW4 micellization is a spontaneous, entropy-driven process, with enthalpy-entropy compensation ensuring thermodynamic favorability across a wide temperature range.

  5. 5.

    Increasing ZW4 concentration makes the calcite surface more negatively charged, but beyond the CMC, the rate of increase in negative zeta potential slows, indicating adsorption saturation.

  6. 6.

    The zeta potential of calcite powder in DW in different pH was measured and the PZC was found to be around 6.7.

  7. 7.

    ZW4 adsorption on calcite decreases at higher pH due to enhanced negative charge on calcite, which increases electrostatic repulsion with ZW4’s sulfonate group and reduces surfactant affinity.

  8. 8.

    Increasing salinity enhanced adsorption, transitioning from a “V-shaped” orientation (low packing density) to a more vertical “I-shaped” configuration (high packing density), with MgSO₄ demonstrating a greater effect than Na₂SO₄, attributed to its stronger ability to neutralize surface charge.

  9. 9.

    The three-parameter models, RP and Sips models were identified as effective for adsorption analysis, with the Sips model offering greater versatility and a better fit based on R² values across varying adsorption conditions for MgSO₄ and Na₂SO₄.