Introduction

Carbon Capture, Utilization, and Storage (CCUS) has emerged as a critical research frontier in the fields of energy and environmental science, with carbon capture recognized as one of its pivotal components. Current post-combustion CO2 capture strategies primarily encompass chemical absorption, adsorption, and membrane separation technologies1. Among them, amine-based chemical absorption has been widely scaled up and implemented in industrial settings such as coal-fired power plants. However, amine solutions are prone to thermal and oxidative degradation during cyclic operation, resulting in limited recyclability and the formation of hazardous by-products such as nitrosamines, which may lead to significant environmental and health risks2,3. Compared to chemical absorption, adsorption using solid sorbents offers greater structural stability and requires relatively lower regeneration energy4, making it a promising and cost-effective technology5,6. Among the broad range of solid adsorbents, activated carbon (AC) has attracted enormous attention due to its abundant and low-cost precursors (e.g., coal and biomass), high specific surface area, and tunable pore configuration, making it a promising candidate for large-scale gas capture applications, such as SO2, CO2 and volatile organic compounds (VOCs)7.

The physical and chemical properties of ACs play a crucial role in determining their gas adsorption performance. Rehman et al.8 employed a one-pot polymerization–carbonization–activation method to synthesize ACs and elucidated the micropore-filling mechanism for CO2 adsorption (kinetic diameter, KD = 0.33 nm), highlighting the high adsorption potential of micropores with diameters below 0.73 nm. Cao et al.9 analyzed the linear correlation between pore structure parameters and CO2 capture performance, concluding that ultramicropores are the primary contributors to adsorption efficiency. In addition, it was demonstrated that an adequate presence of mesopores can also enhance CO2 adsorption by facilitating the diffusion of gas molecules into narrower micropores10, and carbon adsorbents with abundant microporosity have also shown favorable adsorption capacity for water vapor (KD = 0.28 nm)11. For the adsorption of gas molecules with relatively larger size (e.g., toluene, KD = 0.59 nm), although micropores remain important, Qie et al.12 reported that AC with a micro-mesoporous structure is more effective in the capture of toluene compared to the microporous one. Cao et al.13 reported a significantly enhanced toluene adsorption rate, attributed to an optimized macroporous structure that facilitates efficient mass transfer. Therefore, the appropriate matching between the pore size of adsorbents and the KD of adsorbates is critical for excellent adsorption performance.

Except for pore optimization, “defect engineering” of carbon materials has been regarded as an effective protocol to enhance their gas adsorption capability, especially the defect resulting from heteroatom doping, such as nitrogen (N). The introduction of heteroatoms can alter the distribution and transfer of electrons on the carbon surface, which may affect its affinity to the target adsorbate molecules. As for CO2, whose molecule has no dipole moment but a quadrupole moment, Adeela Rehman et al.8 demonstrated the distinct roles of various N functional groups in its capture and concluded that pyridinic, pyrrolic, and graphitic N species positively contribute to its adsorption capacity. Recently, Li et al.14 systematically reviewed the performances of N-doped porous carbon materials for CO2 adsorption and separation, and proposed that N-doping can enhance the interaction between CO2 and carbon adsorbents, leading to a higher CO2 adsorption capacity. As for toluene with weak molecular polarity, Lu et al.15 synthesized N-doped (high to 6.71 at%) hierarchical porous carbons with large specific surface area, presenting an improved toluene adsorption capacity compared to the one without N doping. Overall, the rational incorporation of heteroatom groups into ACs has proven to be a feasible way to achieve better gas adsorption performance.

Nitrogen-doped porous carbon, as a green and low-cost adsorbent, holds great potential for flue gas pollutant control. However, the specific adsorption preferences of different functional sites on its carbon skeleton remain insufficiently understood. For example, strong competitive adsorption is likely to occur between CO2 and toluene16. Moreover, many studies rely solely on CO2 and N2 as feed gases, often neglecting the influence of H2O vapor on the adsorption bed. In reality, industrial flue gas typically contains 8–15% or even higher concentrations of water vapor, which significantly affects the carbon capture process17. Therefore, it is of great significance to investigate the individual adsorption behaviors of CO2, H2O, and toluene, and to elucidate the surface chemical functionalities that govern their respective adsorption mechanisms. In many studies focused on the positive effect introduced by N doping, the influence of O functional groups inherited from the carbon precursor is usually ignored, especially the natural-sourced ones (e.g., coal with high O abundance). Actually, during the preparation of ACs at high temperatures (above 700 °C), the introduction of N sources (e.g., NH3 and melamine) can result in the partial substitution of O species, and then lead to the coexistence of N and O functional groups. This makes the surface chemistry composition of ACs more complicated, making it challenging to establish the structure–property relationships for gas adsorption. To address this issue, in this study, a series of coal-based ACs with N doping were synthesized through an activation-carbonization protocol at varying temperatures. Using characterization techniques such as XPS and FTIR, the evolution of both N and O functional groups with an increase in activation temperature was systematically revealed. Influences of the surface chemistry of ACs (i.e., N and O functionalities) on their adsorption capacities of CO2 and other components in flue gas (H2O and toluene) were investigated, providing guidance for the design and synthesis of AC adsorbents adapted to multi gas species.

Materials and methods

Material and pretreatments

Zhundong coal, a medium–low rank coal resourced from Xinjiang, China, was selected as the carbon precursor in this study. Its elemental and ash content analysis have been reported in our previous study12. Before the experiment, the coal particles (~ 150 μm size) were mixed with 5 M HCl (hydrochloric acid) solution and treated with a hydrothermal water bath at 50 °C for 12 h, aiming to remove the ash components (especially AAEMs, Alkali and Alkaline Earth Metals) in the coal. After that, the coal was washed with deionized water and dried following the steps reported in the previous study. Melamine (99%) and anhydrous potassium carbonate (K2CO3, AR) were purchased from the Shanghai MACKLIN reagent company.

Preparation of NACs

A two-step method was employed to prepare nitrogen-doped activated carbons (NACs). The process involved an initial CO2-assisted activation at 850 °C, followed by co-pyrolysis with melamine. Prior to activation, Zhundong coal particles were impregnated with 3 wt% K2CO3 to promote the reaction between CO2 and carbon matrix at high temperatures, thereby enhancing micropore formation. Specifically, 0.06 g of K2CO3 was dissolved in 20 mL of deionized water, and 2 g of Zhundong coal particles were added to the solution. The mixture was subjected to hydrothermal treatment at 80 °C for 1 h under continuous stirring at 500 rpm. The resulting suspension was subsequently dried at 85 °C for 24 h to obtain a solid precursor. The dried mixture was then activated in a tubular furnace under a gas flow of CO2 (60 mL/min) and N2 (100 mL/min) at 850 °C for 1 h, with a ramp rate of 10 °C/min, and the prepared sample was denoted as AC. For nitrogen doping, AC was mixed with 20 mL of melamine solution (mass ratio of carbon to melamine = 2:1) and dried under the same conditions as described above. As-obtained solid mixture was then calcined at 600 °C, 750 °C, and 900 °C for 1 h under a pure N2 atmosphere (100 mL/min) with a ramp rate of 10 °C/min. As-obtained samples were denoted as NAC-600, NAC-750 and NAC-900, respectively.

Characterization

The surface morphology of the NAC sample was characterized by scanning electron microscopy (SEM, ZEISS Sigma 360) at 3 kV. Pore parameters were obtained by N2 physisorption and desorption analyzer (Micromeritics ASAP 2460) at 77 K. Before adsorption, the AC samples were degassed at 250 °C for 5 h. The surface area was calculated according to the multi-point Brunauer–Emmett–Teller (BET) method, and the pore size distribution was obtained based on the Density functional theory (DFT) model. The surface element chemical properties and element content were acquired by X-ray photoelectron spectroscopy (XPS) on a spectrometer (Thermo Scientific K-Alpha) equipped with Al Kα radiation. The spectra were calibrated with respect to the high-resolution C 1s peak at 284.5 eV. Raman spectra of the AC samples were obtained by a Raman Spectrometer (Horiba LabRAM HR Evolution), and the exciting line was selected with a 532 nm wavelength. Fourier Transform infrared spectroscopy (FTIR) spectra were measured by an infrared spectrometer (Thermo Fisher Scientific Nicolet iS20). Before the test, AC samples were mixed with an appropriate amount of dry potassium bromide (KBr) powder, and the resulting mixture was then pressed into a transparent pellet using a tablet press. The resolution for the FTIR test was 4 cm‒1.

Adsorption tests

The gas adsorption performance of the AC samples was evaluated using a Dynamic Gas/Vapor Sorption Analyzer (BSD-DVS, Beishide). Before testing, the AC samples were degassed by heating at 150 °C under a high-purity N2 flow (99.999%) at 400 mL/min. For a typical adsorption experiment, approximately 50 mg of AC powder was loaded into a quartz sample holder, which was connected to an ultra-high precision microbalance within the analyzer. During the adsorption process, gas flow with a total flow rate of 400 mL/min was introduced into the chamber to contact the AC powder, and the mass change was continuously recorded at a data acquisition rate of ca. 1 point/min until adsorption equilibrium was nearly reached. CO2 (99.999%) and toluene (500 ppm) were supplied from gas cylinders, while water vapour was introduced via a bubbling method, in which moisture was carried by the N2 gas flow. The adsorption capacity of adsorbate per unit mass of adsorbent (i.e., the value directed acquired by the analyzer, unit: mg/g) is denoted as qm. Adsorption capacity per unit surface area and volume of micropore were denoted as qs and qv, respectively:

$$q_{{\text{s}}} = q_{{\text{m}}} /S_{{{\text{mic}}}}$$
(1)
$$q_{{\text{v}}} = q_{{\text{m}}} /V_{{{\text{mic}}}}$$
(2)

where Smic and Vmic represent the specific surface area and pore volume of micropores, respectively, as determined from the N2 physisorption/desorption isotherms using the t-plot method.

Fitting of CO2 adsorption isotherms

In this study, we employed two widely accepted adsorption isotherm models, i.e., Langmuir and Freundlich to fit the CO2 adsorption data. The Langmuir model assumes that the surface of the adsorbent is homogeneous and that adsorption occurs as a monolayer at a finite number of well-defined, localized sites, which are identical and energetically equivalent18,19. The Langmuir isotherm equation is given as Eq. (3)20.

$$q_{{\text{e}}} = \frac{{q_{{\text{m}}} K_{{\text{L}}} P}}{{1 + K_{{\text{L}}} P}}$$
(3)

where qe (mg/g) is the gas adsorption capacity when the adsorption system reaches equilibrium, P (kPa) is the pressure, qm (mg/g) is the maximum adsorption capacity, KL (kPa/mg) is the Langmuir constant.

The Freundlich model is an empirical equation that describes the adsorption equilibrium on heterogeneous surfaces. The slope parameter (1/n), which typically ranges between 0 and 1, reflects the adsorption intensity or surface heterogeneity—the closer its value is to zero, the greater the surface heterogeneity20. A value of 1/n less than one suggests a favorable chemisorption process, whereas a value greater than one may indicate cooperative adsorption behavior21. Freundlich isotherm model is given as Eq. (4)22.

$$q_{{\text{e}}} = K_{{\text{F}}} P^{\frac{1}{n}}$$
(4)

where KF (\({\text{mg}}/{\text{g}}/{\text{kPa}}^{\frac{1}{n}}\)) and n are the Freundlich constants related to adsorption capacity and adsorption intensity, respectively.

Results and discussion

Morphology and pore configuration of ACs

The N2 physisorption isotherms of the AC samples are shown in Fig. 1a. All ACs exhibit a sharp increase in N2 adsorbed quantity at a relative pressure (P/P0) below 0.01, with no significant hysteresis loops observed. These are typical characteristics of type I adsorption isotherms, indicating the dominance of microporosity in the ACs. This is further evidenced by the high micropore volume fraction (i.e., Vmic/Vt) of ACs, as listed in Table 1, ranging from 0.79 to 0.92. The N2 adsorbed quantity at P/P0 = 0.01 follows the sequence: AC > NAC-750 > NAC-600 > NAC-900, corresponding to the Vmic values of 0.36 cm3/g, 0.26 cm3/g, 0.23 cm3/g and 0.18 cm3/g, respectively. A similar trend is observed for both the specific surface area SBET and total pore volume Vt. Above results suggest that the post-treatment for N doping (i.e., co-pyrolysis with melamine) led to a reduction in both Vt and SBET compared to the pristine AC, which is resulted from the decreased accessibility of pores to gas molecules. Notably, the porosity loss is less significant when the temperature for N doping increases from 600 °C to 750 °C, due to a more sufficient decomposition of melamine (starts at 557 °C) at a relatively higher temperature. The mitigation of pore blockage makes the Vmic of sample NAC-750 higher than NAC-600. Conversely, when the temperature for N doping was further increased to 900 °C, Vmic of NAC-900 was found to severely decreased, likely attributed to the partial collapse of carbon framework at such a high temperature, even being higher than the activation temperature of AC (850 °C).

Fig. 1
figure 1

(a) N2 physisorption isotherms (@77 K) and (b) corresponding DFT pore size distribution profiles of the ACs.

Table 1 Pore parameters of the ACs.

Figure 1b shows the pore size distribution (PSD) of ACs, highlighting the range of 0.5–3 nm, which is known as the dominant pore space for gas adsorption. All ACs exhibit two PSD peak clusters at ca. 0.75 nm and ~ 1.2 nm. The pristine AC also presents an additional sharp PSD peak at ca. 0.6 nm, which becomes absent after N-doping treatment, mainly attributed to the blockage of ultra-micropores. In contrast, the PSD peak clusters at ca. 0.75 nm of NAC-600 and NAC-750 are higher than the pristine AC. As for NAC-900, the PSD peaks in the 0.5–1 nm range are relatively lower than NAC-600 and NAC-750, further confirming the loss of ultra-micropores caused by structural collapse. Overall, K2CO3-assisted physical activation effectively produces microporous ACs, while the subsequent N-doping treatment via co-pyrolysis with melamine results in a partial blockage of micropores, especially at a relatively low temperature such as 600 °C.

Figure 2 presents the SEM images of the three NAC samples. Cracks and wrinkles, inherited from the natural carbon source (i.e., coal) can be observed on the surfaces of all three samples. Large macropores in the μm size range, combined with the micropores formed during CO2 activation (which are indistinctive in SEM images), form a hierarchical pore structure that facilitates gas transport and storage. Additionally, μm-scale debris aggregated on the surfaces of the NAC samples is visible, with the light-colored regions highlighted in Fig. 2a–d, attributed to residual left from melamine. With an increase in the temperature for N-doping (i.e., 750 and 900 °C), these surface features gradually disappear and become completely undetectable in NAC-900. The smooth surface observed in Fig. 2e–f is attributed to the complete pyrolysis of melamine at the temperature exceeding its decomposition point.

Fig. 2
figure 2

SEM images of the sample (a, b) NAC-600, (c, d) NAC-750 and (e, f) NAC-900.

Chemical properties of ACs

XPS analysis was conducted to investigate the elemental composition and surface chemical states of the AC samples, and the survey spectra are presented in Fig. 3. The results indicate that the ACs mainly composed of C, O and element, along with trace amounts of potassium (K). The presence of K originated from the 3 wt% K2CO3 used during the activation process, as confirmed by the XPS spectra in Fig. S1. The quantitative elemental compositions of C, N, and O are summarized in Table 2. The pristine AC exhibits a relatively high O content of 10.39 at%, which can be attributed to the high O abundance in the carbon precursor used in this study, as well as a low N content (i.e., 1.44 at% in pristine AC). After N-doping at 600 °C, the N content in NAC-600 significantly increased to 7.68 at%, while the O content decreased to 6.89 at%. With a further increase in N doping temperature, the N content in NAC-750 and NAC-900 decreased to 5.55 at% and 3.13 at%, respectively, whereas the O content increased to 8.92 at% and 10.09 at%, respectively. These results indicate that the introduction of N functional groups onto coal-based AC surfaces enables the simultaneous regulation of both N and O content. N-doping at moderate temperatures enables a balanced incorporation of N and O functional groups. However, at excessively high temperatures (e.g., 900 °C), N functional groups introduced by melamine tend to decompose, leaving some thermally stable functionalities, such as ethers and epoxides. Hence, these O functional groups become dominant again in NAC-900.

Fig. 3
figure 3

XPS survey spectra of the ACs.

Table 2 Element content of the ACs acquired from XPS.

As shown in Fig. 4, the deconvolution of the N 1s spectra further elucidates the evolution of N functional groups with an increase in N-doping temperature. Specifically, the peak at 398.4 eV corresponds to pyridinic N, the peak at 400.0 eV is assigned to pyrrolic N, and the peak at 401.0 eV represents graphitic N23,24. The atomic percentages of these N species in the NAC samples are summarized in Table 3. With the increase in temperature, the content of pyridinic N decreases from 3.57 at% in NAC-600 to 2.05 at% in NAC-750, and further to 0.84 at% in NAC-900. A similar trend is observed for pyrrolic N, which decreases from 3.05 at% in NAC-600 to 1.81 at% in NAC-750, and then to 1.44 at% in NAC-900. In contrast, the content of graphitic N increases from 1.05 at% in NAC-600 to 1.68 at% in NAC-750, followed by a decline to 0.85 at% in NAC-900. These variations can be attributed to the different thermal stabilities of nitrogen species in carbonaceous materials. Pyridinic and pyrrolic N generally exhibit lower thermal stability than graphitic N. As the doping temperature rises, the less stable species tend to decompose or undergo structural rearrangement, partially converting into graphitic N. This transformation explains the elevated graphitic N content in NAC-750 compared to NAC-600. However, further increasing the temperature to 900 °C results in the decomposition and volatilization of nitrogen species, likely released in the form of gaseous products (e.g., NOx or HCN), leading to an overall decline in the total N content, including graphitic N.

Fig. 4
figure 4

XPS N1s spectra of (a) NAC-600, (b) NAC-750 and (c) NAC-900.

Table 3 Atomic percentage of N functional groups in the ACs.

The O 1s peak fitting results for the AC samples are presented in Fig. 5. The peak centred at (531.1 ± 0.2) eV is assigned to oxygen atoms in carbonyl groups (C=O). The peak at (532.3 ± 0.2) eV corresponds to oxygen in ether (C–O–C) or hydroxyl (C–O–H) groups, while the peak at (533.1 ± 0.2) eV is attributed to ester and anhydride groups (C–O). The peak at (533.8 ± 0.2) eV is ascribed to oxygen in carboxyl groups (O=C–OH)25,26. As summarized in Table 4, the pristine AC exhibits the highest total content of O functional groups, including carbonyl (3.12 at%), ether/hydroxyl (3.43 at%), and ester/anhydride (3.30 at%), along with a relatively low carboxyl content (0.64 at%). These features are mainly derived from the inherent O-containing species in the carbon precursor (i.e., coal). Upon N-doping at 600 °C, a notable reduction in the content of carbonyl, ether/hydroxyl, and ester/anhydride groups is observed in NAC-600 (e.g., carbonyl decreases from 3.12 at% to 0.69 at%), which can be attributed to partial thermal decomposition or substitution by newly introduced N-containing species. With an increase in temperature to 750 °C, further transformation of O functional groups occurs. Although the content of ether/hydroxyl and ester/anhydride groups in NAC-750 remains lower than that in pristine AC (1.95 at% vs. 3.43 at% and 2.44 at% vs. 3.30 at%, respectively), a significant increase in carbonyl content is observed, reaching 3.39 at%, which exceeds that of NAC-600 (0.69 at%). This trend can be explained by the difference in thermal stabilities of O functional groups, following the order: of ether > carbonyl > hydroxyl > carboxyl. As the temperature increases, the less thermally stable groups (e.g., hydroxyl and carboxyl) tend to decompose or convert into more stable forms such as carbonyl groups. At a further elevated temperature of 900 °C, the NAC-900 sample shows a distinctive ether content (6.93 at%), significantly higher than that in NAC-750 (1.95 at%). Simultaneously, the atomic percentage of other O functional groups decreases, indicating their transformation into ether groups, which are the most thermally stable among them. These results suggest that the N-doping temperature not only governs the incorporation of N functional groups but also influences the composition of O-containing species on ACs.

Fig. 5
figure 5

XPS O 1s spectra of (a) AC, (b) NAC-600, (c) NAC-750 and (d) NAC-900.

Table 4 Atomic percentage of O functional groups in the AC samples.

The FT-IR spectra of ACs are presented in Fig. 6. A broad and intense absorption band centred around ~ 3440 cm−1 is observed, corresponding to the stretching vibrations of hydroxyl (–OH) groups from alcohols and phenols, as well as adsorbed water27. The area of this peak decreases with increasing N-doping temperature (i.e., AC > NAC-600 > NAC-750 > NAC-900), indicating a reduction in surface hydroxyl content due to thermal degradation and dehydroxylation at elevated temperatures. The features at ~ 2920 cm−1 and ~ 2850 cm−1 are assigned to the asymmetric and symmetric stretching vibrations of aliphatic C–H bonds (–CH3, –CH2–)18. The decreasing intensity of these peaks with higher temperatures indicates partial decomposition or structural rearrangement of aliphatic groups. The absorption band at ca. 1110 cm−1, attributed to C–O stretching vibrations from ether (C–O–C), alcohol, or phenolic groups28, shows a slight reduction in intensity for NAC-600 compared to AC. However, in samples NAC-750 and NAC-900, this peak intensity significantly increases, exceeding that of AC. The weak adsorption peak at 1400 cm−1 represents the C–O and/or C=O stretching vibration. A similar trend is observed for the C=O stretching vibration at ~ 1630 cm−1, which shows a marked increase in NAC-750 and NAC-900 relative to AC29,30. These changes in the functional group acquired by FTIR are consistent with the XPS results.

Fig. 6
figure 6

FT-IR spectra of the ACs.

The Raman spectra of the ACs, as shown in Fig. 7, exhibit distinct D and G bands centred at approximately 1350 cm−1 and 1575 cm−1, respectively. The degree of graphitization in carbon materials is commonly evaluated using the ID/IG ratio acquired from Raman spectra, where the G band (ca. 1575 cm−1) corresponds to sp2-bonded carbon atoms in hexagonal graphitic rings, while the D band (ca. 1350 cm−1) arises from sp3-bonded carbon atoms associated with structural defects, edge imperfections, and lattice distortions. After N-doping treatment, the NAC samples exhibit a higher ID/IG ratio compared to the pristine AC, indicating the formation of more disordered carbon structures due to the introduction of non-sp2 structures via co-pyrolysis with melamine. As the N-doping temperature increases, the ID/IG ratio decreases from 1.19 for NAC-600 to 1.05 for NAC-900, suggesting a progressive reduction in structural defects and an enhancement in graphitic degree. This trend implies that elevated treatment temperatures promote defect healing and facilitate graphitization, thereby improving the crystalline order within the carbon microstructure.

Fig. 7
figure 7

(a) Raman spectra (532 nm) of the ACs and (b) ID/IG calculated from the ratio of D and G peak intensity.

CO2 adsorption performances of the ACs

Adsorption performances of CO2 at concentrations of 10, 15, 20, and 30 vol% were evaluated using a dynamic vapour sorption (DVS) instrument under ambient conditions (25 °C, 1 bar). The CO2 curves of adsorption capacity versus time are presented in Fig. S2 (i.e., the q-t curves). The value \(q_{{{\text{m}},{\text{CO}}_{{2}} }}\) was measured from the CO2 adsorption capacity (i.e., mg/g) at the time when the adsorption was nearly saturated. To further understand the CO2 adsorption behavior of activated carbons (ACs), the experimental data were fitted using both Langmuir and Freundlich isotherm models. Nonlinear regression was performed to obtain the corresponding model parameters and correlation coefficients (R2), as shown in Fig. S3 and Table S1. All samples exhibited R2 values above 0.99, indicating that both models provide an excellent fit to the experimental data, with the Freundlich model showing slightly better agreement overall. This suggests that CO2 adsorption on these ACs involves monolayer adsorption on heterogeneous surfaces, rather than perfectly uniform adsorption sites. Among the four samples, AC, NAC-600, and NAC-750 showed comparable adsorption capacities, whereas NAC-900 exhibited a lower Freundlich constant (KF), consistent with its reduced CO2 uptake. Notably, the Freundlich exponent (n) of NAC-900 decreased significantly, indicating increased surface heterogeneity. This observation aligns with our earlier characterization results, which showed micropore collapse and partial pore widening due to high-temperature treatment at 900 °C. Overall, the results confirm that moderate nitrogen doping temperatures (600–750 °C) enhance CO2 adsorption performance by slightly increasing capacity while maintaining high adsorption affinity.

As shown in Fig. 8a, \(q_{{{\text{m}},{\text{CO}}_{{2}} }}\) increases with an increase in the concentration of CO2. Notably, the \(q_{{{\text{m}},{\text{CO}}_{{2}} }}\) NAC-750 and NAC-600 are highly similar across all tested CO2 concentrations selected in this study, reaching up to 58 mg/g at 30 vol% CO2, being slightly higher than that of the pristine AC. Although NAC-750 and NAC-600 display lower SBET and Vmic compared to the pristine AC, their CO2 adsorption remains comparable, which can be tentatively attributed to the introduction of N functional groups onto the AC surfaces, enhancing the affinity toward CO2 molecules. NAC-900 exhibited the lowest \(q_{{{\text{m}},{\text{CO}}_{{2}} }}\), mainly due to its significantly lower SBET and Vmic than other ACs. To further analyze the influence of surface chemistry independently from porosity, \(q_{{{\text{s}},{\text{CO}}_{{2}} }}\) and \(q_{{{\text{v}},{\text{CO}}_{{2}} }}\) were calculated using Eqs. (1) and (2) in this study.

Fig. 8
figure 8

(a) CO2 adsorption capacity acquired by DVS and (b) CO2 adsorption capacity per unit microporous surface area and (c) per unit micropore volume of corresponding AC adsorbent.

As shown in Fig. 8b and c, both \(q_{{{\text{s}},{\text{CO}}_{{2}} }}\) \(q_{{{\text{v}},{\text{CO}}_{{2}} }}\) the NAC samples are notably higher than those of the pristine AC, proving that the N functionalization enables to improvement of the affinity between carbon adsorbents and CO2. With an increase in N doping temperature from 600 °C to 900 °C, both \(q_{{{\text{s}},{\text{CO}}_{{2}} }}\) and \(q_{{{\text{v}},{\text{CO}}_{{2}} }}\) initially decreased and then increased. The simultaneous influence of N and O content \(q_{{{\text{v}},{\text{CO}}_{{2}} }}\) is illustrated in the three-dimensional plot in Fig. 9. It can be inferred that an N content of 2–8 at% along with a moderate O content (e.g., 8–11 at%) is favourable for the affinity between carbon surface and CO2 molecules. Conversely, high O content together with a rare N content exhibit no beneficial influence on \(q_{{{\text{v}},{\text{CO}}_{{2}} }}\), suggesting a synergistic promotion effect arising from a balanced composition of N and O functional groups. These results highlight the importance of optimizing heteroatom doping to tailor surface chemistry for improved CO2 adsorption performance.

Fig. 9.
figure 9

3D correlation mapping between the N and O functional group contents of the ACs and their \(q_{{{\text{v}},{\text{CO}}_{2} }}\).

As shown in Fig. 8c, NAC-900 exhibits the highest \(q_{{{\text{v}},{\text{CO}}_{{2}} }}\) among the samples. Although its absolute content of pyrrolic-N (1.44 at%) is lower than that in NAC-600, NAC-900 shows a relatively higher proportion of pyrrolic-N among the total nitrogen species, along with the highest content of C–O–C/C–O–H groups (6.93 at%). These oxygen-containing groups can enhance CO2 adsorption through dipole–quadrupole interactions and hydrogen bonding. Furthermore, pyrrolic-N is known to provide electron-rich sites that favor Lewis acid–base interactions with CO2 molecules, thereby contributing to chemisorption31. The synergistic effect of surface functionalities and improved structural order thus accounts for the superior adsorption performance of NAC-900. In comparison, although NAC-750 contains a moderate level of pyrrolic N (1.81 at%), it \(q_{{{\text{v}},{\text{CO}}_{{2}} }}\) remains lower than that of NAC-600 and NAC-900, likely due to the relatively weak affinity of carbonyl groups toward CO2 molecules compared to other O functional groups such as hydroxyl and carboxyl groups32. Notably, NAC-600, which possesses the highest pyrrolic-N content (3.05 at%), achieves a \(q_{{{\text{v}},{\text{CO}}_{{2}} }}\) value comparable to that of NAC-900. The slightly higher \(q_{{{\text{v}},{\text{CO}}_{{2}} }}\) for NAC-900 than NAC-600 can be attributed to the higher ether/hydroxyl groups of the former, introducing the extra dipole–quadrupole interactions with CO2 molecules. Above all, NAC-600 and NAC-900, both nitrogen-doped samples, exhibit comparably high \(q_{{{\text{v}},{\text{CO}}_{{2}} }}\), surpassing that of the pristine AC. This enhanced performance can be attributed to the balanced distribution of nitrogen and oxygen functional groups on natural-sourced ACs, especially the co-existence of pyrrolic nitrogen, ether (C–O–C), and hydroxyl (C–O–H) groups.

H2O adsorption performances of the ACs

In practical carbon capture applications, CO2 in flue gas typically coexists with moisture. Therefore, the moisture adsorption performances (at 20 RH%) of both pristine and N-doped ACs were evaluated, with the corresponding q-t profiles presented in Fig. S4. As shown in Fig. 10a, despite the N-doped samples exhibiting relatively lower SBET and Vmic compared to pristine AC, NAC-600 and NAC-750 still demonstrate significantly higher adsorption capacity of moisture over 40 min (i.e., \(q_{{{\text{m}},{\text{H}}_{{2}} {\text{O}}}}\) 59.9 mg/g and 46.3 mg/g, respectively, vs. 42.5 mg/g for pristine AC). In contrast, NAC-900, which possesses a 44.3% lower SBET area than the pristine AC, shows a notably reduced \(q_{{{\text{m}},{\text{H}}_{{2}} {\text{O}}}}\) of 33.8 mg/g. To decouple the influence of porosity from surface chemistry, and \(q_{{{\text{v}},{\text{H}}_{{2}} {\text{O}}}}\) were calculated and shown in Fig. 10b and c, respectively. The trends in \(q_{{{\text{s}},{\text{H}}_{{2}} {\text{O}}}}\) and \(q_{{{\text{v}},{\text{H}}_{{2}} {\text{O}}}}\) are consistent across all samples, i.e., NAC-600 exhibits the highest values, followed by NAC-900 and NAC-750. In general, both \(q_{{{\text{s}},{\text{H}}_{{2}} {\text{O}}}}\) and \(q_{{{\text{v}},{\text{H}}_{{2}} {\text{O}}}}\) of the NAC samples are higher than that of the pristine AC, illustrating the positive effect of N doping on H2O adsorption.

Fig. 10
figure 10

(a) Adsorption capacity of H2O per unit mass (\(q_{{{\text{m}},{\text{H}}_{{\text{2}}} {\text{O}}}}\)); (b) H2O adsorption capacity per unit microporous surface area (\(q_{{{\text{s}},{\text{H}}_{{\text{2}}} {\text{O}}}}\)); (c) H2O adsorption capacity per unit micropore volume (\(q_{{{\text{v}},{\text{H}}_{{\text{2}}} {\text{O}}}}\)).

Among oxygen-containing surface functionalities, hydroxyl (–OH), carboxyl (–COOH), and ether (C–O–C) groups are widely recognized for their strong affinity toward water molecules due to their capacity to form hydrogen bonds. Notably, NAC-600 exhibits the highest carboxyl group content (1.34 at%), a functional group known for its strong hydrophilicity and effectiveness in enhancing water uptake. In contrast, NAC-900 features a significantly high content of ether and hydroxyl groups (C–O–C/C–O–H: 6.93 at%), also being beneficial for its \(q_{{{\text{s}},{\text{H}}_{{2}} {\text{O}}}}\) and \(q_{{{\text{v}},{\text{H}}_{{2}} {\text{O}}}}\). These findings are in agreement with previous studies regarding the enhancement of O functional groups on moisture adsorption capacity by ACs33. Previous reports have also confirmed the enhancing effect of N functional groups, primarily by strengthening electrostatic interactions and hydrogen bonding with water molecules34. Pyridinic and pyrrolic N species are generally more hydrophilic than graphitic nitrogen due to their electron-rich lone pairs, which facilitate favourable interactions with water molecules. NAC-600 again demonstrates the highest content of both pyridinic nitrogen (3.57 at%) and pyrrolic nitrogen (3.05 at%), which strongly correlates with its highest \(q_{{{\text{s}},{\text{H}}_{{2}} {\text{O}}}}\) and \(q_{{{\text{v}},{\text{H}}_{{2}} {\text{O}}}}\) among ACs. Thus, the best \(q_{{{\text{v}},{\text{H}}_{{2}} {\text{O}}}}\) of NAC-600 can be attributed to the synergistic presence of hydrophilic O functional groups (such as –COOH and C–O–H) and active N sites (pyridinic and pyrrolic nitrogen). In summary, NAC-600 exhibits nearly the highest \(q_{{{\text{v}},{\text{H}}_{{2}} {\text{O}}}}\) and \(q_{{{\text{v}},{\text{H}}_{{2}} {\text{O}}}}\) among all AC samples, indicating its optimal surface chemistry for CO2 and H2O adsorption.

Toluene adsorption performances of the ACs

As one of the most representative coal-fired VOCs in flue gas, toluene exhibits a relatively larger kinetic size than CO2 and H2O, as well as a much lower molecular polarity. The adsorption q-t profiles of toluene on the AC samples are presented in Fig. S5. As shown in Fig. 11a, compared to the pristine AC, NAC-600 displays a slightly lower toluene adsorption capacity over 250 min (\(q_{{{\text{m}},{\text{C}}_{{7}} {\text{H}}_{{8}} }}\) = 93 mg/g vs. 120.7 mg/g). In contrast, both NAC-750 and NAC-900 show significantly higher \(q_{{{\text{m}},{\text{C}}_{{7}} {\text{H}}_{{8}} }}\) at 139 mg/g and 125 mg/g, respectively. Therefore, no straightforward correlation can be established between the N or O content in NACs and the \(q_{{{\text{m}},{\text{C}}_{{7}} {\text{H}}_{{8}} }}\), as the differences in \(q_{{{\text{m}},{\text{C}}_{{7}} {\text{H}}_{{8}} }}\) result from the simultaneous influence of both porosity variation and surface chemistry changes.

Fig. 11
figure 11

(a) Adsorption capacity of toluene per unit mass (\(q_{{{\text{m}},{\text{C}}_{{\text{7}}} {\text{H}}_{{\text{8}}} }}\)); (b) toluene adsorption capacity per unit microporous surface area (\(q_{{{\text{s}},{\text{C}}_{{\text{7}}} {\text{H}}_{{\text{8}}} }}\)); (c) H2O adsorption capacity per unit micropore volume (\(q_{{{\text{v}},{\text{C}}_{{\text{7}}} {\text{H}}_{{\text{8}}} }}\)).

After decoupling the effect of porosity, both \(q_{{{\text{s}},{\text{C}}_{{7}} {\text{H}}_{{8}} }}\) and \(q_{{{\text{v}},{\text{C}}_{{7}} {\text{H}}_{{8}} }}\) were found to increase with an increase in N-doping temperature, as shown in Fig. 11b and c. Specifically, NAC-900 exhibited the highest \(q_{{{\text{v}},{\text{C}}_{{7}} {\text{H}}_{{8}} }}\) followed by NAC-750 and NAC-600. This trend correlates with the decreasing ID/IG ratio, from 1.19 (NAC-600) to 1.05 (NAC-900), as illustrated by the Raman data. Higher graphitization degrees are known to facilitate π–π interactions between the delocalized electrons of the graphitic carbon layers and the aromatic rings of toluene molecules, thus enhancing adsorption affinity. In addition, surface chemistry also affects the \(q_{{{\text{v}},{\text{C}}_{{7}} {\text{H}}_{{8}} }}\) and \(q_{{{\text{ms}},{\text{C}}_{{7}} {\text{H}}_{{8}} }}\). XPS revealed that NAC-900 possesses a higher content of ether or hydroxyl groups and the lowest carboxyl group content (–COOH: 0.44 at%) among the tested samples. The ether groups enriched in NAC-900 are more hydrophobic than carboxyl groups and do not hinder the adsorption of toluene, a molecule with low polarity. In contrast, NAC-600 exhibited higher concentrations of pyridinic N (3.57 at%) and carboxyl groups (–COOH: 1.34 at%). However, pyridinic N may disrupt the conjugated π-system of toluene, reducing the π–π interactions, which can result in a decrease in the \(q_{{{\text{v}},{\text{C}}_{{7}} {\text{H}}_{{8}} }}\) of AC adsorbent. Hence, unlike CO2 and H2O adsorption, NAC-900, prepared at the highest N-doping temperature, exhibits the optimal surface chemistry for toluene adsorption, which is attributed not only to an increased degree of graphitization but also to the rational distribution of functional groups such as graphitic N and ether groups on AC. In addition, as shown in Fig. S6, representative sample NAC-600 maintains over 95% of its initial adsorption capacity after five consecutive adsorption (@ 25 °C)-desorption (@ 120 °C) cycles, indicating its promising reusability and stability.

Conclusions

In this study, coal-based activated carbons (ACs) with high specific surface area (up to 940 m2/g) and micropore volume (up to 0.36 cm3/g) were prepared using K2CO3-assisted physical activation. By adjusting the temperature during the sequential N-doping treatment, the N content in the NACs varied from 1.44 at% to 7.68 at%, while the O content ranged from 6.89 at% to 10.39 at%. The co-pyrolysis with melamine for N doping introduced pore blockage at lower temperatures, such as 600 °C, which can be mitigated by increasing the temperature. For CO2 adsorption, NAC samples (especially the NAC-600 and NAC-900) exhibited comparably high \(q_{{{\text{v}},{\text{CO}}_{{2}} }}\) values, surpassing that of the pristine AC. This highlights the importance of a balanced N and O functional group composition, especially the co-existence of pyrrolic N, ether (C–O–C), and hydroxyl (C–O–H) groups. NAC-600 demonstrated the highest adsorption capacity of moisture (59.9 mg/g), benefiting from hydrophilic O-groups (such as –COOH, C–O–H) and active N sites (pyridinic and pyrrolic N), making it the optimal surface chemistry for both CO2 and H2O adsorption. In contrast, NAC-900, which was prepared at the highest N-doping temperature, exhibited the best surface chemistry for toluene adsorption. This enhanced performance is attributed to increased graphitization and rational distribution of graphitic N and ether groups, which promote π–π interactions, favoring toluene adsorption. This study provides valuable insights into enhancing the adsorption performance of multi gas components by simultaneously regulating the N and O functional groups in natural-sourced AC adsorbents.