Influence of acid structure and acidity strength on thermochemical, in-situ nitrogen generation Authors: Shakiba Sharifi Tashnizi, Behnam Sedaee, Jahan B. Ghasemi, Yasin Rigi Published: 2026 ABSTRACT Sodium nitrite and ammonium chloride are commonly used thermochemicals in the oil field, mostly for in-situ nitrogen (N2) generation—a developing technique for enhancing oil recovery and eliminating blockages. Additionally, the kinetics of this reaction, particularly when activated with acids, has been extensively studied. In this work, the effects of five acids—acetic, citric, monochloroacetic, dichloroacetic, and trichloroacetic acids—on thermochemicals were studied, and the impact of several parameters on sodium nitrite (NaNO2) and ammonium chloride (NH4Cl) was examined, such as concentration, temperature, and pH. Experimental results show that acetic acid produced the maximum volume of nitrogen, generating up to 20% more gas than other acids at 82 °C and 3.39 mol/L concentration. Furthermore, the concentration of reactants strongly affected the gas production rate, showing a near-linear relationship. The reaction’s efficiency improved at elevated temperatures, with optimal gas generation between 70 and 90 °C. Additionally, pH control within the studied range minimized by-products NO and NO2. Due to its optimal molecular structure and catalytic properties, Acetic acid enhances the efficiency of N2 generation, making it promising for oilfield operations and reservoir enhancement. The study also highlights that the acid’s strength and structure play important roles in the reaction, with the structure being a key factor as a catalyst. Introduction In situ gas generation technology has become a popular way to improve oil recovery, help maintain reservoir pressure1,2 and improve formation properties (e.g., eliminating blockages)3–5. There are typically two types of commonly utilized in-situ gas generation systems: those that generate CO26 and those that generate N27,8. Shell Company was the first to propose an in-situ N2 generation system. Conventionally, N2 is created through redox processes involving sodium nitrite (NaNO2) and ammonium chloride (NH4Cl)3. It is an extremely exothermic, irreversible, and manageable process. Consequently, this process can be employed in a unique and intriguing category of systems known as fused chemical reactions, which can be delayed through physical or chemical methods7. The reaction can be ignited by temperature acting as a catalyst9. Chemical fusion reactions offer diverse uses, including drug release control10, agricultural fertilizer control11, oil industry deposit remediation7,12,13, and reservoir enhancement14. Fused chemical reactions are particularly relevant to the oil industry7,13,15,16. They have been employed for scenarios like clearing hydrate below the ocean floor17 and boosting the formation’s energy through the impressive release of gas and heat18. The chemical reaction, highly exothermic, is as follows:1\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$NaNO_{2} + NH_{4} Cl \to N_{2} \uparrow + NaCl + 2H_{2} O\quad \Delta H = - 332.58 \,{\mathrm{kJ/mol}}$$\end{document} As deeper offshore oil wells are drilled, the deposition of paraffin, asphaltene, and hydrates becomes more severe due to the frigid temperatures of the ocean floor7,15. The generation of heat and nitrogen in a system offers a viable solution for eliminating mud-induced formation damage in heavy oil reservoirs12,19. In an aqueous solution, both sodium nitrite (NaNO2) and ammonium chloride (NH4Cl) demonstrate significant solubility alongside the resulting substance, NaCl. Gas generation leading to an increase in formation temperature is likely to enhance the radial penetration of acid fluid, resulting in the cooling effect often experienced during matrix stimulations. Following matrix acid stimulation treatments, field tests in Northern Brazil displayed a notable surge in oil production from the producing wells20. The usage of the NaNO2/NH4Cl system effectively raised the formation energy in a low-permeability setting, resulting in enhanced oil production in the Jianghan oilfield3. The presence of H+ in the N2 generation system significantly influences the rate, degree of reaction, and thermal properties of the system21. To enhance the performance of in-situ N2 generation systems, hydrochloric acid, and citric acid are added as additives to increase the reaction rate, resulting in higher temperatures and greater gas volume. Singh et al.13 and Nguyen et al.22 viewed the NaNO2–NH4Cl system as a chemical fusion reaction, utilizing acid-filled capsules in their approach. Various chemicals, such as methyl formate and tetrachloroethane3, have been commonly utilized to enhance the system by producing H+ in specific circumstances. Despite the advantages of using H+, the presence of this material in an uncontrolled manner leads to an increase in the intensity of the reaction rate and the occurrence of side reactions. This ultimately results in the production of by-products such as NO and NO2. To optimize the catalytic effect of H+, it is crucial to accurately determine the concentration boundary of H+ that promotes the main reaction23. Dusenbury et al.’s24 findings indicate NOx is not expected to be generated by the NaNO2/NH4Cl system at pH levels between 1 and 6, according to their analysis of kinetics and mechanism. Researchers examined how pH, temperature, and reactant concentrations affected the reaction kinetics between NH4+ and NO2− in aqueous solutions. The rate of reaction experiences a significant boost when the pH of the solution drops, driving the reaction forward not by altering the reaction pathway but by modifying the concentrations of ammonia and nitrogen trioxide9. Developing remediation strategies requires a comprehensive knowledge of the reaction kinetics, mechanisms, and key rate parameters like pH, reactant concentration, and temperature25. Despite the growing application of in-situ nitrogen generation in enhanced oil recovery, most previous studies have focused on individual parameters such as temperature or concentration in isolation, often neglecting their interdependent effects. Moreover, the influence of acid structure and acidity strength on the efficiency and selectivity of the reaction has received limited attention. This study addresses this gap by systematically evaluating the impact of five different organic acids under controlled experimental conditions using a statistically optimized design. The goal is to understand better how acid-catalysed thermochemical reactions can be fine-tuned for maximum nitrogen output, minimal by-products, and optimal kinetic profiles26. Although several studies have investigated the NaNO2/NH4Cl system, most prior research has focused on individual parameters such as temperature, concentration, or pH evaluated in isolation. This approach overlooks the interdependent nature of these variables under real operational conditions. Additionally, previous works have rarely examined how the molecular structure and intrinsic acidity strength of organic acids influence the reaction kinetics, selectivity, and overall nitrogen yield. To the best of our knowledge, no study has simultaneously evaluated the combined effects of acid structure, acidity strength, and reaction parameters using a statistically optimized design. Therefore, the present work introduces a comprehensive, multi-parameter evaluation of five structurally distinct organic acids using a CCD-based RSM approach, providing new insights into catalyst selection and reaction optimization for in-situ nitrogen generation. Methods and materials Chemicals High pure Chemical’s reagents that have been used in this study are as follows: sodium nitrite (NaNO2), ammonium chloride (NH4Cl), Citric acid (C6H8O7), Acetic acid (CH3COOH), Monochloroacetic acid (CClH2COOH), Dichloroacetic acid (CHCl2CO2H), Trichloroacetic acid (C2HCl3O2) purchased from Merck (E. Merck KGaA, Germany). Sodium hydroxide was used for adjusting pH and distilled water was used for dissolving the above materials. All reagents were from analytical grades and used without any further purification only kept over P2O5 for drying for 24 h. Experiments Gas-generation test Figure 1 illustrates the schematic diagram of the nitrogen gas generation experiment. First, the thermostat is set to the desired temperature. Then, sodium nitrite and ammonium chloride solutions were separately placed in different concentrations in a 10 mL volumetric flask and a water bath with different temperatures. Once the thermochemical process reached the target temperature, the mixture was transferred into a round-bottom flask with three inlets, and then the mixture was placed in the thermostat water bath. The first inlet was connected to a thermometer to monitor the temperature. The second outlet was connected to a syringe pump, which injected the specified acids into the thermochemical flask at a controlled rate of 4 mL/min during all tests. The third outlet is connected to a cylinder via a condenser, where the generated nitrogen gas volume is collected and measured. This cylinder also has two outlets: one connected to a vacuum pump, which is used to fully evacuate the cylinder before testing, and the other connected to the condenser, as previously mentioned.Fig. 1The schematic representation of the experimental setup for N2-generation. The schematic representation of the experimental setup for N2-generation. pH measurement for various acid solutions The pH of all acid solutions utilized in this work was kept in the range 3–5 and their concentration were adjusted to maintain the desired pH range (3–5). The total amount of acid (1 mmol, in all cases) added was kept consistent across all experiments to ensure a fair comparison between different acids. Different acid solutions were prepared, and the sodium hydroxide solution was made in a separate container. The sodium hydroxide solution was added to the solutions incrementally using a micropipette and the addition was continued when the pH reached the desired value. Experimental design Generally, in these types of research works, the optimization of the most important variables that affect the produced gas is very important. These variables were concentration, temperature, and pH. To end this, the Design-Expert 13 software with central composite design (CCD as a response surface methodology) was used. It considered all three variables simultaneously (an advantage over the one-at-a-time method), and the whole design was repeated for each acid, and the generated values for each variable and each experiment are shown in Table 1. After the collection of responses (in this case, generated gas volume), for all of the experiments the software treated the data and produced different tables and charts to show the effect of each variable and its optimum values.Table 1The range, actual values, and coded values of the variables used, as determined by CCD.VariableDomainpHC (Reactant)/MT/°C− α− 1.6813150− 1− 13.401.61580042.570114.603.3982α1.6815490 Table 1The range, actual values, and coded values of the variables used, as determined by CCD.VariableDomainpHC (Reactant)/MT/°C− α− 1.6813150− 1− 13.401.61580042.570114.603.3982α1.6815490 The range, actual values, and coded values of the variables used, as determined by CCD. Results and discussion Recently, in the oil industry, in-situ gas generation technology proved highly effective for enhancing oil recovery (EOR) and reforming formations. In-situ nitrogen gas generation reduces the viscosity of paraffin-rich crude oil, enhances matrix acidification, and increases formation energy. Consequently, the reaction between ammonium chloride and sodium nitrite is a thermochemical reaction that is widely used and is the most important for in situ nitrogen gas production in this industry. The high exothermic reaction results in the generation of remarkable heat and gas, providing a major advantage in this thermochemical process. For this reason, the experiments were designed to thoroughly investigate the effects of key variables, including concentration, temperature, and pH, and the influence of different catalysts (acids) on the thermochemical reaction. Experimental design for N2 optimization The preliminary studies, based on previously reported works in the literature, showed that certain physical variables (factors) drastically affect the efficiency of the acid-catalytic N2 generation reaction. The selected variables included temperature, concentrations of thermochemicals, and the type and pH of the acid. There are at least two general methods for optimizing several levels of the influenced variables. The first is called “one at a time,” which has limitations, especially when intercorrelated variables prevent the identification of optimum levels with a reasonable number of experiments. The other method is experimental design, which is widely used across most science and engineering fields. In contrast to the former, it can handle intercorrelations with a very small set of experiments. One of the most important and broadly used experimental design approaches is response surface methodology (RSM), which is divided into many disciplines, such as central composite design (CCD). The CCD was used in the current study. The well-known domain of variations of the coded and real values of the factors is as follows. The designed levels of all experiments based on the CCD method, Table 1, were generated by the design expert and are shown in Table 2. This table summarizes the range, actual values, and coded levels of the variables used in an experimental design, as Central Composite Design (CCD). The table describes three variables: pH, C (Reactant), and T (Temperature) along with their corresponding levels in both coded and actual values. It demonstrates how the variables were varied systematically to explore their effects on the response of interest. The use of CCD allows for efficient experimentation by including both factorial points (− 1, 1), axial points (− α, + α), and a central point (0). This design is typically employed to fit a quadratic model for optimization purposes.Table 2Summary of the experimental design.NoC (Reactant)/MpHT/°C11.613.408223.393.408232.547042.557053.393.405861.614.605872.547082.537091470101.613.4058112.5490121.614.6082133.394.6058142.5470153.394.6082162.5450172.5470184470 Table 2Summary of the experimental design.NoC (Reactant)/MpHT/°C11.613.408223.393.408232.547042.557053.393.405861.614.605872.547082.537091470101.613.4058112.5490121.614.6082133.394.6058142.5470153.394.6082162.5450172.5470184470 Summary of the experimental design. All defined experiments were carried out in a random order governed by the design expert order (not the Yates order) to eliminate any chance of correlation with the uncontrolled variables. Despite the high acidity strength, trichloroacetic acid, dichloroacetic acid, and monochloroacetic acid demonstrated lower performance compared to acetic acid. The possible mechanism behind the observed order can be formalized by two factors, the acid strength (pKa’s) and the varying pH of the whole chemical reactants (thermochemical and the composition of the used acid to control the pH). The impact of the two mentioned factors was reflected in the reaction rate and the produced volume of nitrogen gas. It is surprising to mention that, regarding the observed order of the acidity strength on the rate of the reaction and in part on the released volume of N2, although acetic acid is stronger than citric acid, its impact is more favourable than all other acids on the N2 production. This trend is due to that acetic acid has a simpler molecular structure, better solubility, more precise pH control, lower by-product formation, and faster diffusion rate. These characteristics enhanced the efficiency of the reaction, resulting in greater nitrogen production when acetic acid is used as a catalyst. Moreover, these phenomenal properties can be attributed to the better compatibility of acetic acid with the experimental conditions. The quantitative effects of the important variables were investigated by performing experimental measurements based on the designed experiments. The results of these studies are discussed in the next sections. Gas-producing tests with acids To determine the optimal conditions for nitrogen gas production in the thermochemical reaction, the five acids were used as catalysts. Nguyen et al. found through their studies on the reaction kinetics and mechanisms that uncontrolled pH can lead to side reactions, producing byproducts like NO and NO2. Their research indicated that keeping pH levels between 3 and 5 is crucial to preventing NOx formation and reducing pollutants8. All tested acids were applied under the same conditions, and their results were compared. The basis for comparing these five acids is the quantity of the amount of nitrogen generated in a constant time interval and the rate of injection of the acids. The nitrogen volume for all tests will be discussed in the next sections. In the comprehensive study of in situ nitrogen (N2) generation systems using various acid catalysts, distinct patterns were observed when employing Acetic acid (AA), Citric acid (CA), Monochloroacetic acid (MCAA), Dichloroacetic acid (DCAA), and Trichloroacetic acid (TCAA). The experimental data highlight the impact of temperature, thermochemical concentration, and pH on the efficiency and rate of N2 production. All experimental results are shown in Fig. 2.Fig. 2Volume of generated nitrogen gas (cm3) as a function of time for five acid catalysts. Experimental conditions followed the CCD design shown in Table 2. Acetic acid showed the highest efficiency. Volume of generated nitrogen gas (cm3) as a function of time for five acid catalysts. Experimental conditions followed the CCD design shown in Table 2. Acetic acid showed the highest efficiency. When AA was used, results demonstrated that both the production of nitrogen gas and the reaction rate were positively correlated with increasing thermochemical concentrations and higher temperatures. Specifically, at a constant thermochemical concentration, a significant increase in nitrogen output was noted at 82 °C compared to 58 °C. This efficiency showcases AA’s effective catalysis in generating N2 under elevated thermal conditions. Experiments with CA exhibited similar positive trends concerning concentration and temperature increments. However, the total nitrogen output was consistently lower than that observed with AA, suggesting less efficient hydrolysis of CA. Interestingly, the initial N2 generation rate with CA was slower but accelerated after a few minutes, contrasting with AA’s steadier kinetics. In the case of MCAA, the total amount of nitrogen produced was less than of AA. This suggests MCAA’s rapid initial catalytic action after AA, which could be beneficial for processes requiring quick nitrogen output. DCAA followed a similar pattern to the aforementioned acids, with nitrogen release increasing as thermochemical concentration and temperature rose. This consistency underscores the influence of these parameters across different acids, reaffirming the critical role they play in optimizing N2 generation. With TCAA, the system displayed a unique behaviour where the nitrogen generation rate was higher at the start due to the acid’s high acidity and greater release of H+ ions. This rapid initial reaction is attributed to the presence of more chlorine atoms in TCAA, aiding in faster hydrolysis. However, over time, this rate diminished, possibly due to degradation or stability issues, reflecting the trade-offs associated with using highly acidic catalysts. The superior performance of acetic acid compared to stronger halogenated acids can be explained by its molecular characteristics and catalytic behaviour. While acids such as monochloroacetic, dichloroacetic, and trichloroacetic release H+ more rapidly due to higher acidity, this often leads to excessively fast initiation, localized hot spots, and undesirable side reactions. In contrast, acetic acid provides a more controlled release of H⁺, allowing steadier reaction kinetics and improved selectivity toward N2 rather than NOx by-products. Its simpler molecular structure enhances solubility and diffusion into the reaction medium, enabling a more uniform catalytic effect. These factors collectively result in higher nitrogen yield and more stable reaction rates when acetic acid is used, demonstrating that molecular structure—not only acidity strength—is critical in optimizing thermochemical nitrogen generation. A comparison of various acid catalysts according to the volume of nitrogen gas generated As it can see from Fig. 3, the apparent reaction rate of acetic acid is significantly higher than the other acids, and the second one is MCAA. One of the strong points of our study is using different acetic acid derivatives, to show the effect of the acidity constant on the reaction rate and the amount of released N2 gas. According to the obtained results, the selection and application of AA over the other acids presented and tested in this study was reasonable. A numerical derivative was applied to the data presented in Fig. 3 (nitrogen gas volume vs. time) to further investigate the reaction rates of the various catalysts. The resulting graph, shown in Fig. 4, represents the reaction rate (cm3/s) as a function of time. This reaction rate corresponds to the derivative of the nitrogen gas volume versus time data. The numerical derivative was calculated using the forward finite difference method, implemented through MATLAB coding. As shown in Fig. 4, the reaction rate in acetic acid’s presence is significantly higher than the other catalysts used in this study. These results highlight the superior performance and high efficiency of acetic acid in accelerating the reaction process. The high reaction rate of this catalyst plays a significant role in core flooding experiments to accelerate thermochemical processes. However, if the continuity of the catalyst’s effect is important, using other acids as catalysts is preferable.Fig. 3Comparative volume of generated nitrogen gas (cm3) for different acid catalysts and the amounts added to the reaction mixture was 1 mmol. The inset highlights the first 120 s of the reaction, illustrating initial rates. Comparative volume of generated nitrogen gas (cm3) for different acid catalysts and the amounts added to the reaction mixture was 1 mmol. The inset highlights the first 120 s of the reaction, illustrating initial rates. Fig. 4Time-based reaction rates (cm3/s) derived from the volume–time data in Fig. 3. Acetic acid demonstrated superior catalytic efficiency. Time-based reaction rates (cm3/s) derived from the volume–time data in Fig. 3. Acetic acid demonstrated superior catalytic efficiency. Effect of reactant concentration Concentration is one of the important factors in chemical reactions. In the reaction between sodium nitrite (NaNO2) and ammonium chloride (NH4Cl), the different concentrations of the reactants showed different effects on the reaction process. The reaction of sodium nitrite and ammonium chloride was assessed by measuring the gas produced as a function of time. In addition, the impact of concentration was examined to explore the kinetics of this reaction. From the pressure-derived data and considering the ideal gas law, initial reaction rates can be calculated as follows;2\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$PV = nRT$$\end{document} where P is the pressure in Pa (Pa = J/m3), V is the volume in liters, n is the number of moles, R is the universal gas constant (J mol−1 K−1), and T is the temperature in Kelvin. By rearmament of Eq. (1) the Eqs. (2 and 3) can be derived as;3\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$C = \frac{n}{V} = \frac{P}{RT }$$\end{document}4\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\frac{dC}{{dt}} = \frac{1}{RT} \frac{dP}{{dt}}$$\end{document} The rate of the N2 production, dP/dt, can be determined from the variation of the N2 volume vs. time or the well-known initial rate method. The collected experimental results, in the current case the effect of concentration thermochemical, were processed by the Design Expert, and the outputs based on Eq. (3) are shown in Fig. 5A and B. There is a linear relationship between the generated N2 volume, and concentration. The higher the concentration the higher the reaction rate. The difference in the initial rates received more attention as the large volume generation is the objective of the current study.Fig. 5Effect of thermochemical concentration on nitrogen production. (A) Experimental values; (B) Modelled trend from design expert. Note: Differences in the x-axis scaling are due to software default rendering. Both plots reflect the same CCD-based experimental design. Effect of thermochemical concentration on nitrogen production. (A) Experimental values; (B) Modelled trend from design expert. Note: Differences in the x-axis scaling are due to software default rendering. Both plots reflect the same CCD-based experimental design. The pH substantially affected the reaction between sodium nitrite and ammonium chloride in nitrogen production. The pH of the reaction medium affects the rate of nitrogen production and also the formation of by-products. As previously mentioned, the studied pH range was 3–5; therefore all tests were carried out within this range. In acidic conditions (low pH), the reaction proceeds more rapidly because ammonium chloride (NH4Cl) dissociates into ammonium (NH4+) and chloride (Cl−), while sodium nitrite (NaNO2) dissociates into nitrosonium (NO+) and sodium ions (Na+). The nitrosonium quickly reacts with ammonium to produce nitrogen gas (N2). At higher pH levels (basic conditions), the reaction slows down as ammonium converts to ammonia (NH3), reducing nitrogen production. Thus, adjusting the pH directly impacts the reaction’s efficiency and the amount of nitrogen generated. Figure 6A and B showed the expected conclusion, and in the range of 3–5 for pH, significant changes in changes in the generated volume were not observed. This is a strong point of the proposed method, and it allows the user to easily fix the desired pH.Fig. 6Influence of pH on nitrogen gas generation. (A) Experimental results; (B) Modelled trend from design expert. Note: Minor differences in x-axis scaling result from plot rendering. Both subfigures are based on identical input conditions. Influence of pH on nitrogen gas generation. (A) Experimental results; (B) Modelled trend from design expert. Note: Minor differences in x-axis scaling result from plot rendering. Both subfigures are based on identical input conditions. Effect of temperature As it is expected, temperature has a significant effect on the kinetics and efficiency of the chemical reaction and physical transformations. By increasing the temperature, the reaction rate accelerates because the molecules gain more kinetic energy. This enables more energetic collisions between molecules, hastening the reaction. Simply put, at elevated temperatures, the reaction occurs more swiftly, and nitrogen gas is released sooner. Temperature can also influence the reaction equilibrium. As this reaction is exothermic (releases heat), raising the temperature can shift the equilibrium toward the reactants (sodium nitrite and ammonium chloride), decreasing nitrogen gas production. In other words, at very high temperatures, less gas may be produced. When the temperature drops, the equilibrium shifts toward the products (nitrogen gas, water, and salt), and the reaction rate slows down. Hence, the ideal temperature for this reaction is one where the reaction rate is high and nitrogen gas production is maximized. Generally, this reaction is most effective at higher temperatures to balance both rate and equilibrium considerations. All the tests were performed in the temperature range reported in Table 2 and the results are presented in Fig. 7A and B (the empirical and fitted lines show the effect of temperature). As it is known, temperature has a significant effect on nitrogen production.Fig. 7Temperature effect on nitrogen gas production. (A) Experimental values; (B) Modeled predictions from design expert. Note: Axes may vary slightly due to independent rendering by software. The data source and experimental setup remain consistent. Temperature effect on nitrogen gas production. (A) Experimental values; (B) Modeled predictions from design expert. Note: Axes may vary slightly due to independent rendering by software. The data source and experimental setup remain consistent. Analysis of variance and the approved empirical equation To show the validity of the presence of the dependency of produced gas volume and all selected variables, the ANOVA table, the final equation based on the coded values, and the response surface plots were used. The ANOVA results are shown in Table 3. The fitted equation to the experimental data based on the coded value is R (response) = 402.5 + 206.9*C − 88.91*pH + 110.3*T. The ANOVA table provides a detailed statistical analysis of the impact of various factors on nitrogen gas generation. Key metrics include.Table 3ANOVA results for the modeling of the obtained data based on CCD.SourceSum of squaresdfMean SquareF-valuep valueModel8.593E+0532.864E+0551.62< 0.0001Significanta A-C5.850E+0515.850E+05105.42< 0.0001 B-PH1.080E+0511.080E+0519.460.0006 C-T1.663E+0511.663E+0529.97< 0.0001Residual77,686.84145549.06 Lack of fit75,183.85116834.908.190.0548Not significant Pure error2502.993834.33Total9.369E+0517aThis means the model is significant. Table 3ANOVA results for the modeling of the obtained data based on CCD.SourceSum of squaresdfMean SquareF-valuep valueModel8.593E+0532.864E+0551.62< 0.0001Significanta A-C5.850E+0515.850E+05105.42< 0.0001 B-PH1.080E+0511.080E+0519.460.0006 C-T1.663E+0511.663E+0529.97< 0.0001Residual77,686.84145549.06 Lack of fit75,183.85116834.908.190.0548Not significant Pure error2502.993834.33Total9.369E+0517aThis means the model is significant. ANOVA results for the modeling of the obtained data based on CCD. aThis means the model is significant. Model significance The model as a whole is statistically significant, with an F-value of 51.62 and a p value of less than 0.0001. This indicates a strong relationship between the independent variables (concentration, pH, and temperature) and the response variable (nitrogen gas production). Among these variables, concentration (C) has the largest effect, contributing the highest sum of squares (5.850E+05) and a p value < 0.0001. Temperature (T) also has a significant impact (sum of squares 1.663E+05, p value < 0.0001), while pH (B) has the smallest but still statistically meaningful effect (sum of squares 1.080E+05, p value = 0.0006). Residuals and model fit The residual sum of squares is relatively small (77,686.84), reflecting the agreement between the experimental data and the model predictions. Furthermore, the lack of fit test has a p value of 0.0548, indicating no significant deviation between the model and the data. This confirms that the model adequately captures the relationship between the variables. Overall, concentration plays the most critical role in enhancing nitrogen production, while pH has the least influence, and temperature only optimizes the reaction efficiency. This statistical evaluation underlines the importance of careful control of concentration and temperature to maximize nitrogen gas yield, while pH adjustments play a secondary role in fine-tuning the reaction. The response surface plot shown in Fig. 8 is also verified and compares the effects of these two variables. Another very important result that will support the designed model is the predicted versus actual plot shown in Fig. 9.Fig. 8A three-dimensional response surface plot showing the combined effects of temperature and reactant concentration on nitrogen gas volume illustrates that higher concentrations and elevated temperatures significantly enhance gas production under acid-catalysed conditions. A three-dimensional response surface plot showing the combined effects of temperature and reactant concentration on nitrogen gas volume illustrates that higher concentrations and elevated temperatures significantly enhance gas production under acid-catalysed conditions. Fig. 9Comparison between predicted and actual nitrogen gas volumes based on the developed response surface model. The strong correlation indicates that the experimental data closely align with model predictions, confirming the validity and reliability of the fitted model. Kinetic study. Comparison between predicted and actual nitrogen gas volumes based on the developed response surface model. The strong correlation indicates that the experimental data closely align with model predictions, confirming the validity and reliability of the fitted model. Kinetic study. One of the very important aspects of the use of thermochemical reactions is the fast kinetics of the production of N2. Since a chemical reaction occurs and we measure a physical variable over time—specifically, the volume of nitrogen gas released—this can be classified as a kinetic reaction. The rate of reaction depends on time, and as time progresses, the system eventually reaches equilibrium, at which point no further reaction takes place. The optimized reaction profiles, nitrogen gas volume versus time, of thermochemicals with different catalyst acids are shown in Fig. 5. The volume-time profile data can be fitted to different reaction kinetics. As the first-order reaction mechanism has several advantages, including simple interpretation of the results and the ease of experimental control, the obtained data is first modelled by this type of kinetic mechanism. A typical representation of the N2 production is as follows:\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$NaNO_{2} + NH_{4} Cl \to N_{2} \uparrow + NaCl + 2H_{2} O$$\end{document} The influence of the acid on the NaNO2/NH4Cl system is governed not only by its macroscopic acidity but also by molecular-level electronic and structural effects that control proton delivery and intermediate stability. Nitrogen generation proceeds via protonation of nitrite to form nitrous acid (HNO2), followed by its decomposition; however, the rate and selectivity of this sequence are highly sensitive to acid strength. In chloroacetic acids, successive chlorine substitution introduces strong − I electron-withdrawing effects that stabilize the conjugate base and markedly lower the pKa, resulting in rapid and excessive protonation of nitrite. This over-acidification accelerates uncontrolled HNO2 decomposition and promotes competitive oxidative pathways leading to NOx (particularly NO2), thereby reducing selectivity toward N2. Acetic acid, by contrast, provides a moderate and kinetically regulated proton activity, while its small, monocarboxylic structure enables efficient hydrogen-bonding interactions with nitrite and ammonium ions. These interactions facilitate stepwise proton transfer and transient stabilization of reaction intermediates, allowing acetic acid to function effectively as a proton-shuttle catalyst rather than a simple stoichiometric acid. Although citric acid exhibits a comparable pKa, its larger, polycarboxylic framework increases solution structuring and restricts molecular mobility, limiting the effective availability of protons for rapid HNO2 turnover. Consequently, acetic acid uniquely balances acidity, molecular size, and electronic neutrality, leading to controlled N2 evolution rates, reproducible gas volumes, and minimized side-reaction pathways. The volume-time profiles are shown in Fig. 2 of the previous sections. To approve the kinetic mechanisms, each profile was fitted to the first order and, in some cases, to the higher order kinetics. The privilege one was selected by statistical quality parameters like correlation coefficient R2, root mean squares (RMS), randomness of the residuals, and visual inspection of the fitted model. For nonlinear least squares of the volume-time profiles for each kinetic equation, we used the Solver add-ins of Microsoft Excel 2021, and the RMS was set as an objective function. All volume-time profiles were fitted by Solver, and according to the mentioned statistical parameters, the most probable mechanism was selected as the first-order kinetics. The fitting parameters were rate constant and the dependent variables at infinite time (volume of the gas in this case). All kinetic parameters were collected and are shown in Table 4. To show the successful application of data fitting, the experimental and calculated volume-time profiles are shown in Fig. 10a–f. Table 4 and Fig. 10a–f show excellent agreement as shown in the experimental data points and calculated curve based on the first-order equation.Table 4The variable values and the fitted kinetics parameters for different acids.CpHTRate constant (k) × 103v∞RMSAcetic acid1.613.40828.6255.528.52.54703.5517.448.63.393.40586.4645.6148.92.54908.2623.075.42.54500.21058.515.3Citric acid1.613.40821.0478.126.12.54701.3562.429.73.393.40580.12912.738.52.54904.3400.460.22.54501.3100.018.7Mono-chloro-acetic acid1.613.40822.8397.129.42.54701.4333.521.73.393.40583.9248.331.82.54905.1257.439.92.54500.6250.429.5Di-chloro-acetic acid1.613.40822.9262.340.52.54702.5227.439.33.393.40581.3314.438.12.54903.3287.916.42.54500.9129.315.3Tri-chloro-acetic acid1.613.40821.5200.042.62.54705.0127.640.73.393.40581.0200.045.82.54905.3200.630.72.54501.2100.027.9 Table 4The variable values and the fitted kinetics parameters for different acids.CpHTRate constant (k) × 103v∞RMSAcetic acid1.613.40828.6255.528.52.54703.5517.448.63.393.40586.4645.6148.92.54908.2623.075.42.54500.21058.515.3Citric acid1.613.40821.0478.126.12.54701.3562.429.73.393.40580.12912.738.52.54904.3400.460.22.54501.3100.018.7Mono-chloro-acetic acid1.613.40822.8397.129.42.54701.4333.521.73.393.40583.9248.331.82.54905.1257.439.92.54500.6250.429.5Di-chloro-acetic acid1.613.40822.9262.340.52.54702.5227.439.33.393.40581.3314.438.12.54903.3287.916.42.54500.9129.315.3Tri-chloro-acetic acid1.613.40821.5200.042.62.54705.0127.640.73.393.40581.0200.045.82.54905.3200.630.72.54501.2100.027.9 The variable values and the fitted kinetics parameters for different acids. Fig. 10The curve fitting of volume-time data to the first-order kinetic equation. The points are experimental and the solid lines are the fits. The stars at zero volume are Vexp −Vcalc. The curve fitting of volume-time data to the first-order kinetic equation. The points are experimental and the solid lines are the fits. The stars at zero volume are Vexp −Vcalc. Conclusion This study underscores the pivotal role of acid catalysts, with a particular focus on acetic acid, in augmenting nitrogen gas production during thermochemical reactions between sodium nitrite and ammonium chloride. The experimental findings demonstrate that reaction temperature, pH, and reactant concentration are critical factors that significantly influence the efficiency of nitrogen generation. Among the acids tested, acetic acid emerged as the most effective, delivering the highest yield and fastest reaction rate. This superior performance is attributed to its simpler molecular structure, optimal solubility, and lower by-product formation. The study reveals that ideal reaction kinetics occurred at elevated temperatures, where nitrogen gas production was directly proportional to the concentration of thermochemical reagents. These insights are vital for optimizing in-situ nitrogen generation processes employed in oil recovery and reservoir enhancement. By carefully adjusting variables such as pH, Concentration, and temperature, the efficiency of nitrogen production can be substantially enhanced, thereby reducing formation damage risks and maximizing oil extraction. Furthermore, the research provides a foundation for developing more efficient catalysts and optimized conditions for large-scale oil industry applications. The primary aim was to explore the influence of various factors on gas production volume and establish the kinetics equation for the NaNO2/NH4Cl system. This led to the creation of an acid-assisted in situ nitrogen generation system, using several acids selected as catalysts based on pH tracking. The comprehensive evaluation of gas generation capabilities and energy enhancement potential yielded key findings:Among the variables measured, concentration exerted the most significant effect on nitrogen production efficiency.While pH values had a minor impact on selecting an acid as a catalyst, the molecular structure of the acid played a crucial role. This emphasizes the need for precise selection based on acid structure for optimal catalysis efficiency. Among the variables measured, concentration exerted the most significant effect on nitrogen production efficiency. Among the variables measured, concentration exerted the most significant effect on nitrogen production efficiency. While pH values had a minor impact on selecting an acid as a catalyst, the molecular structure of the acid played a crucial role. This emphasizes the need for precise selection based on acid structure for optimal catalysis efficiency. While pH values had a minor impact on selecting an acid as a catalyst, the molecular structure of the acid played a crucial role. This emphasizes the need for precise selection based on acid structure for optimal catalysis efficiency. These conclusions pave the way for further research aimed at refining catalysts and conditions to enhance nitrogen generation processes, thereby improving efficiency and outcomes in the context of oil recovery and reservoir management. Overall, this study highlights a novel perspective on catalyst selection by demonstrating that the molecular structure of the acid plays a decisive role in the performance of the NaNO2/NH4Cl system. Unlike traditional assumptions that stronger acids always enhance gas generation, our findings reveal that controlled acidity release, diffusion behaviour, and structural compatibility can significantly improve reaction efficiency. These insights provide a new framework for designing optimized in-situ N2 generation fluids and offer practical guidance for field-scale applications in stimulation, blockage removal, and formation-energy enhancement.