1 Introduction

Biochar, a carbon(C)-rich solid material derived from the pyrolysis of various biomass in a low-oxygen environment (Zhang et al. 2022), holds promise as an organic soil amendment due to its advantageous physicochemical properties (Yao et al. 2014). Its diverse raw materials, including wood, crop residues, and organic waste (Ji et al. 2022), contribute to its variability in properties and applications (Weber and Quicker 2018). However, the impact of biochar application on soil processes remains uncertain, with potential drawbacks such as increased gaseous emissions (Mukherjee and Lal 2014) and long-term effects on soil processes (Kuppusamy et al. 2016).

In biochar production, variations in raw materials and pyrolysis temperatures result in distinct physicochemical properties, influencing critical biochar characteristics, such as porosity and carbon content (Zhang et al. 2012). For instance, different feedstocks yield varying ash content and morphology, with crop residues producing biochar with lower oxygen-to-carbon (O/C) and hydrogen-to-carbon (H/C) ratios due to cellulose and lignin decomposition during pyrolysis (Ji et al. 2022). Conversely, wood-derived biochar, rich in lignin, exhibits lower ash content and enhanced pore formation.

Pyrolysis temperature further shapes biochar properties, with low temperatures yielding mainly aromatic, aliphatic, and carbonyl carbon, whereas high temperatures favoring aromatic carbon structures (Tomczyk et al. 2020). This temperature dependence extends to functional groups, with low temperature biochar characterized mainly by hydroxyl group (-OH), carbonyl group (C = O), and ether functional group (C-O-C), while high temperature biochar exhibits more carbon–carbon double bond (C = C) and methylene group (-CH2) (Li et al. 2020). Generally, elevated temperatures also augment carbon and ash content, impacting properties such as gas production, and microporous structure formation (Zeng et al. 2022), as well as surface area (Wang et al. 2021).

The nitrogen cycle encompasses crucial processes in soil ecosystems, including nitrogen mineralization (Curtin et al. 2019), nitrification, denitrification, and nitrogen fixation (Martínez-Espinosa et al. 2011). The introduction of biochar significantly influences soil nitrogen cycling, affecting processes like nitrification, denitrification, and NH3 emissions. For instance, applying biochar to paddy fields resulted in reduced soil nitrogen loss, accompanied by an increased in NH3 emission (Feng et al. 2018). It was observed that biochar promoted the reduction of N2O to nitrogen (N2) in calcareous soils while concurrently inhibiting N2O production (Dong et al. 2020).

This influence extends to microbial communities, with biochar addition influencing the abundance of functional genes associated with nitrogen-cycling microorganisms. For instance, functional gene expressions, including nifH, amoA-AOA, amoA-AOB, narG, napA, nirK, nirS, and nosZ, typically signify nitrogen fixation, nitrification and denitrification processes. Conversely, nirB, nirD, nrfA, and nrfH functional gene abundance indicates nitrate assimilation reduction processes. Sanjutha et al. observed an enrichment of microbial functional genes (nifD, amoA, amoB, norB, nrfA, nirK, and nosZ) in sandy loam soil following biochar addition (Shanmugam et al. 2021). Lan et al. demonstrated enhanced diversity in microbial nitrogen functional genes (amoB, narG, nirS, and nosZ) by introducing wood-derived biochar from high-temperature pyrolysis into acid soil (Lan et al. 2018). Continuous straw biochar addition over three years in temperate and subtropical regions increased the abundance of amoA and amoB genes, with a more pronounced effect at higher application rates, reaching 9.55 and 22.0 times gene copies in soil treated with 2.25 Mg·ha− 1 and 22.5 Mg·ha− 1 of biochar, respectively, compared to the control treatment (He et al. 2016). Additionally, pig manure biochar increased the diversity of bacterial genes (amoA, amoB, nirK, nirS, and nosZ) in soil, exhibiting a more significant effect at higher concentrations (Zhong et al. 2022). However, the precise mechanisms underlying these changes and their dependence on biochar properties remain areas of investigation.

The ammonia oxidation pathway, crucial for nitrification, is closely tied to N2O emission, a potent greenhouse gas (Chen et al. 2019). For example, intermediate nitrification products, NO2-N, and NO3-N, can generate the greenhouse gas N2O through denitrification by functional bacteria with genes like nirK, nirS, and napA. Literature indicated the close association of bacterial denitrification genes nirK, nirS, and nosZ with N2O flux change (Qin et al. 2020).In 2019, atmospheric N2O, a major contributor to non-CO2 warming, reached 332 ppb (IPCC 2023). Although biochar application generally reduce N2O emissions (Edwards et al. 2018), its efficacy varies with soil conditions (He et al. 2018).

To comprehensively assess biochar’s impact on soil nitrogen cycling, meta-analysis offers a robust approach, synthesizing diverse studies and addressing existing limitations in the literature (Gascon et al. 2017). In contrast to isolated regional studies, meta-analysis eliminates subjective interference, employing quantitative methods for stronger statistical foundations. It enables synthesizing diverse studies, even with contradictory findings, to derive more general and universal research conclusions. Nguyen et al. compiled 56 articles on the impact of biochar on soil NH4+-N and NO3-N, considering biochar feedstock, pyrolysis temperature, and application duration (Nguyen et al. 2017). Liu et al. (2018) analyzed biochar effects on soil organic nitrogen, NH4+-N, NO3-N, plant nitrogen absorption, NH3 volatilization, and N2O emissions. Xiao et al. (2019) collected 36 articles on the influence of biochar on the microbial functional genes (nifH, amoA, nirK, nirS, and nosZ) in soil nitrogen transformation processes. Despite previous research, gaps remain regarding long-term effects and the influence of biochar properties on soil nitrogen dynamics (Zhang et al. 2021). Therefore, this meta-analysis aims to provide more specific and widely applicable insights into biochar’s influence on soil nitrogen cycling, spanning diverse environmental contexts and biochar properties.

This study conducts a meta-analysis spanning January 2008 to December 2023 to explore the novel implications of biochar’s impact on soil nitrogen cycling, focusing on its unique properties and mechanisms that enhance soil health and mitigate greenhouse gas emissions, thus contributing to sustainable agricultural practices. Key research questions addressed include (1) Biochar’s effects on soil pH and soil organic carbon (SOC), recognizing pH regulation and SOC enhancement as crucial mechanisms influencing soil nitrogen-related processes; (2) The influence of biochar addition on different nitrogen forms in soil and the abundance of nitrogen cycling functional genes; (3) The variation in the content of various nitrogen forms and the abundance of nitrogen-cycling functional genes in soils based on biochar derived from different raw materials; and (4) The impact of biochar pyrolysis temperature on the content of different nitrogen forms and the abundance of nitrogen cycling functional genes in soil.

2 Materials and Methods

2.1 Data Source and Selection Criteria

A literature search was conducted on the Web of Science and Google Scholar databases using keywords “biochar” AND “soil” OR “nitrogen,” OR “ammonia” OR “N2O"OR “nitrogen cycling functional genes” from January 2008 to December 2023. The literature selection criteria include: (1) The literature must investigate at least one nitrogen form of biochar in soil (NH4+-N, NO3-N, TN (Total nitrogen)), nitrogen cycling functional genes (e.g., nifH, amoA-AOA, amoA-AOB, narG, napA, nirK, nirS, nosZ, nirB, nirD, nrfA, and nrfH), or urease; (2) The experiment must include a clear control group and experimental treatment group; (3) Replication must be included (n ≥ 3); (4) Data in the literature must be presented in the form of figures or tables in the article or supplementary materials. Exclusion criteria include evaluative, review, or simulated data literature. Based on these conditions, a total of 155 valid articles were obtained.

Data extraction in this study was conducted as follows: Extract the average values and standard deviations (SD) of treatments and controls from tables in the respective articles. The GetData Graph Digitizer V2.25 software (https://www.53xt.com/soft/11953.html) was used to extract data in cases presented graphically. If an article included multiple independent experimental treatments (e.g., two different biochar materials and various pyrolysis temperatures), each experiment was treated as an independent study and included in the dataset. The collected data included soil NH4+-N, NO3-N, TN, urease activity (UA), amoA, amoB, and other nitrogen functional gene data.

2.2 Meta-Analysis

The magnitude of the impact of biochar on soil nitrogen was calculated using the natural logarithm of the response ratio (RR), which is the natural log of the ratio of a given variable between the treatment group (xt) and the control group (xc), defined as Eq. (1) (Xi et al. 2023).

$$\:\text{R}\text{R}=\text{L}\text{n}\left(\frac{{\text{x}}_{\text{t}}}{{\text{x}}_{\text{c}}}\right)=\text{L}\text{n}\left({\text{x}}_{\text{t}}\right)-\text{L}\text{n}\left({\text{x}}_{\text{c}}\right)$$
(1)

The variance (v) of the effect ratio is calculated as Eq. (2):

$$\:\text{v}=\frac{{{\text{s}}_{\text{t}}}^{2}}{{\text{n}}_{\text{t}}{{\text{x}}_{\text{t}}}^{2}}+\frac{{{\text{s}}_{\text{c}}}^{2}}{{\text{n}}_{\text{c}}{{\text{x}}_{\text{c}}}^{2}}$$
(2)

Where st, sc, nt, and nc represent the treatment and control groups’ standard deviations and sample sizes, respectively.

In order to obtain the overall response effect of the treatment group relative to the control group, the mean effect size (RR++) is calculated as Eq. (3):

$$\:{\text{R}\text{R}}_{++}=\frac{{\sum\:}_{\text{i}=1}^{\text{m}}{\sum\:}_{\text{j}=1}^{\text{k}}{\text{w}}_{\text{i}\text{j}}{\text{R}\text{R}}_{\text{i}\text{j}}}{{\sum\:}_{\text{i}=1}^{\text{m}}{\sum\:}_{\text{j}=1}^{\text{k}}{\text{w}}_{\text{i}\text{j}}}$$
(3)

Where w = 1/v.

The standard error of RR++ is calculated using Eq. (4):

$$\:{\text{S}}_{\left({\text{R}\text{R}}_{++}\right)}=\sqrt{\frac{1}{{\sum\:}_{\text{i}=1}^{\text{m}}{\sum\:}_{\text{j}=1}^{\text{k}}{\text{w}}_{\text{i}\text{j}}}}$$
(4)

The 95% confidence interval (95% CI) for RR++ is expressed as Eq. (5):

95%CI=\(\:{\text{R}\text{R}}_{++}\)±1.96×\(\:{\text{S}}_{\left({\text{R}\text{R}}_{++}\right)}\) (5)

If the 95% CI includes 0, it indicates no significant difference between the experimental and control groups.

In order to provide a visual understanding of the transition from weighted response ratio to percentage change, the percentage change is calculated by logarithmizing the weighted response ratio, defined by Eq. (6):

Percentage Change=[exp(RR++)-1]×100% (6)

2.3 Data Analysis

From the literature collected, it was observed that the carbon content of Wooden Biochar (WB) ranged from 68.1 to 80.2%. Crop Husk (CH) Biochar, Crop Straw (CS) Biochar, and Organic Waste (OW) Biochar exhibited carbon contents of 45.4–64.8%, 52.9–57.2%, and 42.5–61.7%, respectively (Lan et al. 2018). However, OW had the highest nitrogen content at 2.0–5.2%, while WB had the lowest at 0.1–1.7%, and CH and CS showed nitrogen contents of 0.7–1.6% and 1.1–1.6%, respectively (Lan et al. 2018). It was noted that the carbon content of biochar increased with the rise in pyrolysis temperature, whereas the nitrogen content exhibited an opposite trend (Zhou et al. 2017).

Therefore, the main indicators investigated in this study were determined as follows: (1) Biochar Feedstock: Since biochar physicochemical properties exhibit variations based on different raw materials, biochar was categorized into WB, CS, Crop CH, and OW (Ji et al. 2022). WB was derived from tree components such as branches, trunks, bamboo pieces, and sawdust. CS was produced from straw residues of crops such as rice, wheat, sugarcane, corn, and sorghum. CH utilized raw materials like coconut shells, peanut shells, and cottonseed husks. OW incorporated animal manure, compost, sludge, and animal remains. (2) Pyrolysis Temperature: Different pyrolysis temperatures also impact biochar properties. Accordingly, biochar was classified into low temperature (250–400 °C, LOW), moderate temperature (420–550 °C, MOD), and mega temperature (600–950 °C, MEG) (Ghorbani et al. 2023). (3) Experimental Setup: Based on the experimental conditions reported in the collected articles, analyses were categorized into four groups: Woods, Field, Pot, and Incubation for comparative analysis.

The “metafor” package in R (version 4.2.2) was used to conduct a random-effects model for calculating the weighted response ratio (RR++) and its 95% CI. A 95% CI < 0 for the effect value was considered to indicate a significant inhibitory effect of biochar on soil nitrogen or nitrogen functional genes (p < 0.05). Conversely, a 95% CI > 0 suggested a significant promoting effect of biochar on soil nitrogen or nitrogen functional genes (p < 0.05). The impact was insignificant if the 95% CI included 0 (p ≥ 0.05). The percentage change in soil nitrogen or nitrogen functional genes due to biochar was calculated by logarithmizing the mean effect size (RR++). It is important to note that percentage change and mean effect size serve different purposes: percentage change quantifies the degree of biochar impact on various study subjects, while mean effect size assesses whether biochar significantly affects the study subjects (Zhang et al. 2019). Regression analyses on the RR values of various indicators were performed to explore potential linear relationships among different indicators under the influence of biochar.

3 Results

3.1 Effect of Biochar on Soil pH

Our meta-analysis reveals that biochar can elevate soil pH by 4.60%. Most biochar is alkaline due to their production processes and raw materials, influencing soil acidity. The impact of WB and CH on soil pH was not significant (Fig. 1A). CS and OW significantly elevated soil pH by 5.34% and 10.97%, with mean effect sizes of 0.0520 (95% CI: 0.0310–0.0730) and 0.1040 (95% CI: 0.0694–0.1387), respectively. The pairwise comparison between CH and OW showed a highly significant difference (p < 0.01) in their impact on soil pH. Compared with CS or WB, OW exhibited a significant difference in soil pH (p < 0.05).

Fig. 1
figure 1

Effect of Biochar on Soil pH and Soil Organic Carbon (SOC). In the boxplots, the symbol ○ represents the mean of the Response Ratio (RR) for different biochar in soil, with the error bars indicating the 95% confidence interval. Mean effect sizes of different biochar on soil-related indicators are represented by ♦ in the figure, with error bars indicating the 95% confidence interval. On the left of each figure, ‘n’ denotes the sample size; on the right, the percentage figure represents the percentage change. Statistical significance between pairwise comparisons, determined by independent sample t-tests, is denoted as ***p < 0.001, **p < 0.01, *p < 0.05

Different pyrolysis temperatures of biochar had varying effects on soil pH. Biochar pyrolyzed at LOW temperature did not significantly affect soil pH. However, biochar pyrolyzed at MOD and MEG temperature significantly increased soil pH by 5.68% and 6.86%, with mean effect sizes of 0.0552 (95% CI: 0.0368–0.0737) and 0.0664 (95% CI: 0.0284–0.1043), respectively, with no significant differences between the two temperatures.

The percentage change in pH due to biochar application in Woods and Field was insignificant. In Pot and Incubation, biochar significantly increased pH by 8.91% and 5.65%, with mean effect sizes of 0.0854 (95% CI: 0.0607–0.1100) and 0.0550 (95% CI: 0.0333–0.0767), respectively. The pairwise comparison between Field and Pot showed a highly significant difference (p < 0.001) in biochar’s impact on soil pH. Additionally, the pairwise comparison between Field and Incubation indicated a significant difference (p < 0.05) in the impact of biochar on soil pH.

3.2 Effect of Biochar on Soil Organic Carbon (SOC)

Biochar, rich in carbon elements, significantly enhances SOC content, reaching up to 64.60%, with a mean effect size of 0.4983 (95% CI: 0.3696–0.6270). WB, CS, and OW significantly increased SOC content by 117.89%, 56.97%, and 108.04%, with mean effect sizes of 0.7788 (95% CI: 0.4098–1.1478), 0.4508 (95% CI: 0.2951–0.6066), and 0.7325 (95% CI: 0.2502–1.2149), respectively. The effect of CH on soil SOC was insignificant. The impact of WB and CH on soil SOC content showed a significant difference in pairwise comparisons (p < 0.05) (Fig. 1B).

Biochar pyrolyzed at MEG, MOD, and LOW temperatures significantly increased SOC content by 106.05%, 48.85%, and 65.44%, with mean effect sizes of 0.7229 (95% CI: 0.4411–1.0048), 0.3977 (95% CI: 0.2396–0.5559), and 0.5035 (95% CI: 0.1971–0.8098), respectively. However, there were no significant differences in the impact of biochar pyrolyzed at different temperatures on soil SOC content.

The application of biochar in Woods did not significantly affect SOC content. In Field, Pot, and Incubation, biochar significantly increased SOC content by 50.83%, 116.91%, and 45.31%, with mean effect sizes of 0.4101 (95% CI: 0.2244–0.5959), 0.7743 (95% CI: 0.5144–1.0342), and 0.3737 (95% CI: 0.1725–0.5748), respectively. The impact of biochar on soil SOC content in Woods and Pot treatments showed a highly significant difference (p < 0.01). Additionally, significant differences were observed in pairwise comparisons between Field and Woods, Field and Pot, and Pot and Incubation treatments (p < 0.05).

3.3 Effects of Biochar on Soil Total Nitrogen (TN), NO3 -N, and NH4 +-N

Adding biochar to the soil, except for CH, which exhibited no significant impact on TN, WB, CS, and OW significantly increased soil TN content by 18.14%, 14.88%, 26.21%, and 17.56%, respectively. The effect of CH and CS on soil TN content showed highly significant differences in pairwise comparisons (p < 0.01), while WB and CH exhibited a significant difference in their influence on soil TN content (p < 0.05) (Fig. 2A). Biochar pyrolyzed at MEG, MOD, and LOW temperatures significantly increased TN by 15.80%, 14.14%, and 23.53%, with mean effect sizes of 0.1467 (95%CI: 0.0401–0.2532), 0.1322 (95%CI: 0.0789–0.1856), and 0.2113 (95%CI: 0.0458–0.3769), respectively. However, there were no significant differences in the effect of biochar pyrolyzed at different temperatures on soil TN in-between temperatures. Applying biochar in Woods and Field did not significantly affect TN, with 18.61% and 4.20% percentage changes. In Pot and Incubation treatments, biochar significantly increased TN content by 24.80% and 32.84%, with mean effect sizes of 0.2216 (95%CI: 0.1289–0.3142) and 0.2840 (95%CI: 0.1417–0.4263), respectively. Highly significant differences were observed in pairwise comparisons between Field and Pot or Field and Incubation treatments regarding the effect of biochar on soil TN content (p < 0.01).

Fig. 2
figure 2

Effect of biochar on different nitrogen forms of soil (A. total nitrogen (TN), B: NH4+-N, C: NO3-N). In the boxplots, the symbol ○ represents the mean of the Response Ratio (RR) for different biochar in soil, with the error bars indicating the 95% confidence interval. Mean effect sizes of different biochar on soil-related indicators are represented by ♦ in the figure, with error bars indicating the 95% confidence interval. On the left of each figure, ‘n’ denotes the sample size; on the right, the percentage figure represents the percentage change. Statistical significance between pairwise comparisons, determined by independent sample t-tests, is denoted as ***p < 0.001, **p < 0.01, *p < 0.05

The overall effect of biochar derived from different raw materials on NH4+-N was not significant. WB, CH, OW, and CS exhibited insignificant percentage changes in NH4+-N. The influence of WB and CS, derived from different sources, on NH4+-N showed a significant difference (p < 0.05), while there were no significant differences between pairs of biochar from different raw materials (Fig. 2B). Biochar pyrolyzed at MEG temperature significantly decreased soil NH4+-N content by 23.85%, with a mean effect size of -0.2724 (95%CI: -0.4245 - -0.1204). The changes introduced by MOD and LOW temperature pyrolyzed biochar on soil NH4+-N content were not significant. Significant differences were observed in pairwise comparisons between MEG and MOD or MEG and LOW, indicating that biochar pyrolyzed at different temperatures significantly impacted soil NH4+-N content (p < 0.05). Applying biochar in Woods, Field, Pot, and Incubation did not show significant differences in pairwise comparisons regarding NH4+-N. The influence of biochar on NH4+-N under the four different soil treatment conditions was not significantly different.

The influence of biochar derived from different raw materials on NO3-N was not pronounced. There were no significant differences in the effect of biochar from different raw materials on NO3-N between pairwise comparisons (Fig. 2C). Biochar pyrolyzed at MEG, MOD, and LOW temperatures did not significantly affect soil NO3-N content. No significant differences were observed in the pairwise comparisons of the effect of biochar pyrolyzed at different temperatures on soil NO3-N content. The application of biochar in Woods, Field, Pot, and Incubation under different soil treatment conditions did not show a significant impact on NO3-N. The influence of biochar on NO3-N under different soil treatment conditions was not significantly different in pairwise comparisons.

3.4 Effects of Biochar on Soil Nitrogen Cycling Functional Genes

The effect of biochar on soil nitrogen functional genes is depicted in Fig. 3A. Adding biochar to the soil did not significantly affect the abundance of the soil nitrification functional gene amoA-AOA. In contrast, amoA-AOB significantly increased by 25.58%, with an average effect size of 0.2278 (95%CI: 0.0719–0.3837). Among the denitrification genes, no significant changes were detected for the abundance of narG, norB, nosZ-I, nor napA, nirK, and nosZ, with the exception for the addition of biochar significantly increased the gene abundance of nirS by 14.78%, with an average effect size of 0.1378 (95%CI: 0.0204–0.2553). The abundance of nitrogen fixation genes nifH and nifG in the soil were not significantly affected, nor did nifD. In addition, adding biochar significantly enhanced UA’s abundance by 11.00%, with an average effect size of 0.1044 (95%CI: 0.0330–0.1758). However, the gene abundance of ureC, responsible for urease production, decreased by 15.75%. Adding biochar to the soil resulted in insignificant impact in the abundance of the nrfA gene, which is responsible for nitrate reduction to ammonium.

Fig. 3
figure 3

Effect of biochar on soil nitrogen cycling functional genes (A) and soil N2O emission (B). In the boxplots, the symbol ○ represents the mean of the Response Ratio (RR) for different biochar in soil, with the error bars indicating the 95% confidence interval. Mean effect sizes of different biochar on soil-related indicators are represented by ♦ in the figure, with error bars indicating the 95% confidence interval. On the left of each figure, ‘n’ denotes the sample size; on the right, the percentage figure represents the percentage change. Statistical significance between pairwise comparisons, determined by independent sample t-tests, is denoted as ***p < 0.001, **p < 0.01, *p < 0.05

3.5 Effects of Biochar on Gas Emissions

Both nitrification and denitrification are major microbial metabolic pathways leading to N2O production in agricultural soils. The influence of biochar derived from different raw materials and pyrolysis temperatures and the application environment on soil greenhouse gas N2O emission is depicted in Fig. 3B. In addition, biochar significantly reduced NH3 emissions by 16.39% and contributed to a 15.70% increase in N2 emissions. (Fig. 4).

Fig. 4
figure 4

Effect of biochar on soil gas emission. Mean effect sizes of biochar on different soil gas emissions are represented by ♦ in the figure, with error bars indicating the 95% confidence interval. On the left of each figure, ‘n’ denotes the sample size; on the right, the percentage figure represents the percentage change

Analysis indicates that different feedstocks did not affect soil N2O emissions significantly. MEG pyrolyzed biochar significantly reduced soil N2O emission by 23.15%, with an average effect size of -0.2633 (95%CI: -0.5045 - -0.0221). However, MOD and LOW pyrolyzed biochar did not significantly change soil N2O emission. There were no significant differences in the effect of biochar pyrolyzed at different temperatures on soil N2O emission. In Woods and Incubation, the application of biochar significantly reduced N2O emissions by 24.37% and 21.17%, with average effect sizes of -0.2793 (95%CI: -0.3914 - -0.1672) and − 0.2378 (95%CI: -0.4256 - -0.0501), respectively. However, the effect of biochar application in Field and Pot on N2O emissions was insignificant. Significant differences were observed in the effect of biochar application between Field and Incubation and between Field and Woods (p < 0.05).

3.6 Regression Analysis

Adding biochar to the soil alters the soil pH and SOC content. Regression analyses were performed to understand the effect of biochar addition on nitrogen cycling in the soil. The results indicate that the correlation between RR(pH) and RR(TN)/RR(NO3-N) is not significant. However, RR(pH) exhibits a significant negative correlation with RR(NH4+-N) (R2 = 0.1034, p = 0.0157) (Fig. 5A).

Fig. 5
figure 5

A/B: Regression relationships between RR(pH) and RR(SOC) with RR(NH4+-N), RR(TN), and RR(NO3-N) upon biochar addition to soil; C/D: Regression Relationships between RR(pH) and RR(SOC) with RR(amoA-AOA), RR(amoA-AOB), and RR(N2O) upon biochar addition to soil

Furthermore, RR(SOC) shows a significant positive correlation with RR(TN) (R2 = 0.0883, p = 0.0449) and a highly significant negative correlation with RR(NH4+-N) (R2 = 0.2415, p = 0.0016). Additionally, RR(SOC) demonstrates a significant positive correlation with RR(NO3-N) (R2 = 0.0873, p = 0.0415) (Fig. 5B).

The correlations between RR(pH) and RR(amoA-AOA), RR(amoA-AOB), and RR(N2O) are not significant (Fig. 5C). In addition, there is no significant correlation between RR(SOC) and RR(amoA-AOA), RR(amoA-AOB). However, RR(SOC) shows a highly significant negative correlation with RR(N2O) (R2 = 0.4300, p = 0.0058) (Fig. 5D). No significant correlation between RR(amoA-AOA) or RR(amoA-AOB) and RR(NH4+-N), RR(UA), and RR(NO3N) (Fig. 6).

Fig. 6
figure 6

A/B: Regression relationships between RR(amoA-AOA) and RR(amoA-AOB) with RR(NH4+-N), RR(UA), and RR(NO3-N) upon biochar addition to soil

4 Discussion

4.1 Soil pH Affected by Biochar

Most biochar typically falls within the pH range of 7 to 11, containing alkaline substances (Shi et al. 2017), rendering them valuable amendments for improving soil acidity and elevating pH (Dai et al. 2017). OW and CS biochar significantly increased soil pH (p < 0.05), while WB and CH biochar did not exhibit a pronounced effect on soil pH elevation, potentially due to the ash content and ions like calcium (Ca) and magnesium (Mg) in biochar (Ippolito et al. 2020). Ash is an inorganic residue during the preparation of biochar, and its content is usually associated with the pH of the biochar (Yang et al. 2019).

As the pyrolysis temperature of biochar increased, soil pH gradually rose, except for LOW-temperature pyrolysis biochar, causing a pH decrease, consistent with Yang et al.‘s (Yang et al. 2019). Higher temperatures remove acidic functional groups, making biochar surfaces more alkaline and contributing to soil pH elevation (Song et al. 2018). Conversely, biochar produced at lower temperatures may have numerous charged functional groups, enhancing soil buffering capacity (Ahmad et al. 2012). Caution is recommended when applying biochar to alkaline soils. This is related to the functional groups of biochar under different temperature conditions. In high temperature pyrolyzed biochar, alkaline substances mainly exist in the form of carbonates, and the total amount of carbonates increases with the pyrolysis temperature. In contrast, in low-temperature pyrolyzed biochar, alkaline substances are primarily oxygen-containing functional groups such as carboxyl and hydroxyl groups. These groups carry negative charges and can bind hydrogen ions in soil solution (Ma et al. 2017). This study linked pyrolysis temperatures with biochar efficiency, providing a novel insight into optimizing biochar production processes for improved soil management outcomes.

Biochar significantly influenced soil pH in relatively controlled environments like Pot and Incubation, whereas its impact in Woods and Field was less pronounced, likely due to natural conditions affecting Field and Woods, such as rainfall event. The differences in aeration and permeability between the soils in Field and Woods may lead to the leaching and migration of biochar, affecting its efficacy (Guo et al. 2024). These findings underscore the contribution of different biochar in ameliorating soil acidity, which are critical for sustainable agriculture.

4.2 Soil Organic Carbon (SOC) Content Affected by Biochar

The soil properties, encompassing physical, chemical, and biological aspects, intricately link to SOC content (Šimanský et al. 2016), which is crucial for enhancing soil structure (Leelamanie and Mapa 2015), maintaining soil quality, and supporting ecosystem functionality (Benbi et al. 2015). SOC closely correlates with soil aeration, respiratory intensity, available nitrogen content, and microbial communities.

The type and composition of biochar feedstock directly influence produced biochar characteristics, including yield, ash content, and morphology (Zhang et al. 2012). Biochar from three sources (WB, CS, and OW) significantly increased soil SOC content. Consistent with Islam et al., it was found that biochar from WB, CS, and OW sources elevated soil aggregate content, improving soil structure and increasing SOC content upon soil application (Islam et al. 2021).

Pyrolysis temperature significantly influences biochar characteristics. Low-temperature Biochar comprises aromatic, aliphatic, and carbonyl carbon, while high-temperature biochar predominantly comprises aromatic carbon (Tomczyk et al. 2020). This study’s biochar from three different pyrolysis temperatures significantly increased soil SOC content. Biochar, with its high carbon content, promotes soil humus, carbon compounds, and organic macromolecules formation, influencing soil microbial communities and augmenting SOC’s recalcitrant fraction (Cen et al. 2021). Higher carbon content in applied biochar leads to a more pronounced increase in soil SOC.

Biochar application significantly increased soil SOC content in three soil environments - Field, Pot, and Incubation. However, in the Woods condition, soil SOC content decreased, potentially due to the high organic matter content in Wood soil, intensifying induced effects and potentially reducing efficiency in SOC sequestration (Kirkby et al. 2014). These findings highlight the originality of our study in identifying specific biochar types that optimize soil carbon content.

4.3 Soil Nitrogen Affected by Biochar

Biochar derived from different feedstocks exhibits variations in the carbon-to-nitrogen ratio (C/N), which increases with rising pyrolysis temperatures. The C/N ratio of soil directly or indirectly influences organic carbon mineralization, consequently affecting the soil’s NH4+-N, NO3-N, or TN. Limited information has been found for nitrite nitrogen, which was not considered in the current study. Meta-analysis reveals a more pronounced influence of biochar on TN, possibly attributed to its reduced accessibility to plants and microbes after incorporation into the soil. Adding biochar in Incubation and Pot situations significantly increases soil TN, likely associated with soil aeration and permeability. The porous structure of biochar can adsorb nitrogen, mitigating the volatilization and leaching of ammonium and reducing nitrogen losses. Studies indicate that biochar enhances soil water retention (Sun et al. 2018) and increases plant N retention (Wan et al. 2023).

Biochar’s porous structure also contributes to an elevated trend in TN mineralization in soil (Ahmad et al. 2012). It may be due to the increased microbial abundance facilitated by biochar, promoting the degradation of soil organic nitrogen (Anderson et al. 2011). Additionally, it enhances the fixation of soil TN, possibly due to introducing biochar with a high C/N (Deenik et al. 2010). However, biochar might increase net nitrogen mineralization in the long run, reducing the soil’s organic nitrogen pool (Deenik et al. 2010).

Soil NH3 volatilization is closely related to soil pH (Hawthorne et al. 2017), with current meta-analysis revealing an inhibition in NH3 volatilization with rising pH levels. The intricate interplay between biochar, soil nitrogen dynamics, and pH underscores the need for a comprehensive understanding of these relationships for effective soil management and sustainable agriculture.

The ammonia volatilization process first converts NH4+-N in the soil into liquid form, which then transforms into liquid NH3 and subsequently into gaseous NH3, eventually volatilizing into the atmosphere. This process is influenced by various factors when biochar is added. Current research on the impact of biochar on soil ammonia emissions yields inconsistent results. Some studies indicate that applying biochar increases soil ammonia emissions by raising soil pH and enhancing soil permeability. Additionally, in acidic soils, biochar addition has been shown to inhibit soil NH4+-N nitrification, leading to high concentrations of NH4+-N in the soil, which promotes ammonia emissions (Wang et al. 2015). Conversely, other studies suggest that the oxygen-containing functional groups on biochar surfaces not only adsorb NH3 but also increase the protonation of H+, converting adsorbed NH3 into NH4+-N, thereby reducing ammonia volatilization (Sha et al. 2019). The effect of biochar on soil ammonia volatilization may depend on the delicate balance between biochar’s NH3 adsorption capacity, its impact on soil pH, and its influence on soil NH4+-N nitrification. In our study, biochar significantly reduced ammonia volatilization, likely due to the adsorption of NH3 by its oxygen-containing functional groups, despite an increase in soil pH. Furthermore, biochar promoted soil NH4+-N nitrification, further reducing ammonia volatilization.

4.4 Nitrogen Functional Genes Affected by Biochar

Soil microorganisms predominantly regulate soil nitrogen transformation and cycling through the expression of functional genes and the activity of extracellular enzymes (Liu et al. 2018). The meta-analysis in this study revealed that after biochar application, the nitrogen-fixing functional gene nifD increased by 3.54%, while nifH and nifG decreased by 4.13% and 2.51%, respectively. This result contrasts with the findings of Ducey et al., who observed a threefold increase in the relative abundance of nifH after applying a biochar (Ducey et al. 2013).

Ammonia oxidation is the initial and rate-limiting step in nitrogen cycling. Ammonia-oxidizing archaea and bacteria carrying the amoA gene are a diverse and widely distributed group of soil microorganisms that significantly contribute to the ammonia oxidation process in various environments (Wan et al. 2024). The meta-analysis in this study found an increase of 0.57% and 25.58% in the diversity of ammonia-oxidizing bacteria (amoA-AOA and amoA-AOB) genes after adding biochar to the soil. It aligns with the results of Xiao et al.‘s meta-analysis (Xiao et al. 2019), which reported an increased abundance of amoA-AOA and amoA-AOB in soil with added biochar, possibly due to the improved soil aeration (Zhang et al. 2010) and increased soil pH (Lin et al. 2017), which are factors associated with the abundance of ammonia oxidation genes (amoA-AOA, amoA-AOB) (French et al. 2021).

Denitrification is the stepwise reduction of NO3-N to NO2-N, NO, N2O, and ultimately N2, occurring primarily under anaerobic conditions (Sapkota et al. 2024). The pathway from NO3-N to NO2-N in denitrification involves a series of genes encoding reductases (such as narG and napA), serving as proxies for assessing the potential of nitrate reduction processes in the environment (Chen et al. 2024). The meta-analysis in this study found that biochar addition reduced the abundance of narG by 2.43% while increasing the abundance of nirK and nirS by 14.78% and 11.53%, respectively. It may be attributed to biochar’s improved soil aeration and subsequent reduction of soil bulk density, stimulating the growth and diversity of denitrifying bacteria (Gul et al. 2015). However, the mediating effect of biochar on nirK is influenced by various external or internal factors. For instance, adding biochar from MOD pyrolysis increased the abundance of the nirK gene, accompanied by a change in soil pH from 5.5 to 6.5 (Zhang et al. 2015). This increase in nirK gene abundance may be stimulated by the pH improvement induced by the added biochar.

Nitrification and denitrification involve redox reactions (Fei et al. 2024), and the production or consumption of N2O is closely related to soil redox potential (Eh) (DeAngelis et al. 2010). Biochar contains electroactive functional groups (e.g., polyethylene, quinone, hydroquinone) and redox-active minerals (such as Fe or Mn), which can act as electron acceptors or donors during redox processes (Graber et al. 2014), facilitating electron transfer to microorganisms (Kappler et al. 2014). The changes in soil redox reactions mediated by biochar depend on pyrolysis temperature, biochar feedstock, and soil type. In a rice soil system undergoing flooding and drying cycles, biochar addition decreased soil Eh and the availability of Fe, influencing the expression of nitrogen-cycling genes (Wang et al. 2018). The intricate interplay between biochar, nitrogen cycling genes, and soil redox dynamics highlights the importance of understanding these relationships for effective soil management and sustainable agricultural practices.

4.5 Gas Emissions Affected by Biochar

Applying biochar to calcareous soils is a strategy to reduce N2O emissions and mitigate global warming (Dong et al. 2020). In the current study, we observed reduced soil N2O emissions after applying biochar r produced at MEG pyrolysis temperatures. Furthermore, adding biochar also decreased N2O emissions in the Woods and Incubation soil environments, although the same size of Woods application is small (n = 2). These findings advocate for biochar’s application in specific environments to maximize its environmental benefits. However, the mechanisms behind these responses remain unclear. Petter et al. proposed that biochar improves soil aeration, reducing anaerobic environment where denitrifying bacteria thrive (Petter et al. 2016).

Additionally, the increase in soil pH induced by biochar enhances the activity of N2O reductase (Cayuela et al. 2014). Moreover, the fixation of inorganic N by biochar, along with its restrictions on soil nitrifying and denitrifying bacteria, contributes to the reduction in N2O emissions (Bruun et al. 2012), and the porous structure of biochar can directly adsorb N2O (Cornelissen et al. 2013). Some studies suggest that biochar can absorb NH4+-N through negatively charged functional groups (carboxyl and phenolic hydroxyl), reducing soil NH3 volatilization (Taghizadeh-Toosi et al. 2012). It promotes the shift of N2O towards N2, alleviating soil N2O emissions (Cayuela et al. 2013).

Our meta-analysis revealed a significant promotion of UA, nirS, and amoA-AOB in soil by adding biochar. While amoA-AOB participates in the rate-limiting step of the ammonia oxidation process (Chu et al. 2022), an increase in amoA-AOB accelerates ammonia oxidation. Meanwhile, the ratio of nosZ to amoA-AOB and nirS reflects the thoroughness of nitrogen cycling, leading to an increase in N2, a decrease in N2O, and a reduction in NH4+-N. Biochar increases the efficiency of nitrogen cycling, resulting in a more complete and effective process. However, some studies suggest that adding biochar may increase soil alkalinity, leading to contrasting effects on soil NH3 emissions (Sun et al. 2014) and accelerating soil N2O emissions by promoting nitrification (Sánchez-García et al. 2014). Based on the results of our meta-analysis, it is understood that biochar regulates soil denitrifying enzymes, promoting denitrification to completion, ultimately increasing N2 emissions and reducing N2O emissions under certain conditions, which is aligning with the findings of Cayuela (Cayuela et al. 2013). It should be cautioned that few studies were available to trace the effect of biochar on N2 emissions (n = 5). In addition, this discrepancy might be related to the age of the biochar application. Literature indicated that fresh biochar application increased NH3 volatilization while aged biochar decreased NH3 volatilization (Dong et al. 2019). The intricate interactions between biochar, denitrification enzymes, and nitrogen cycling contribute to our understanding of the complex role of biochar in greenhouse gas dynamics within soils.

4.6 Relationship Between Nitrogen Cycling Genes and Soil Nitrogen

In our meta-analysis, adding biochar to the soil decreased NH4+-N and NO3-N, with a decreasing trend in their percentage changes. In addition, the abundance of ammonia-oxidizing bacteria genes (amoA-AOB) increased significantly with biochar addition, promoting further transformation of NH4+-N and NO3-N. Additionally, biochar addition increased the abundance of nirS functional genes by 14.78%, closely linked to N2O emissions. This result suggests that the reduction in N2O emissions associated with biochar addition may be related to the increased abundance of nosZ in the soil (Van Zwieten et al. 2014). The elevated abundance of nosZ, involved in denitrification, results in more efficient conversion of N2O to N2, ultimately leading to a 15.70% increase in N2 emissions.

Furthermore, we observed a relationship between the abundance of nirK, nirS and N2O emissions. The lack of these denitrifying genes (nirS and nirK) is associated with reduced genetic capacity to decrease N2O (Philippot et al. 2011), as they are considered major contributors to N2O production during denitrification. The overall result indicated a 9.62% reduction in N2O emissions due to adding biochar. This finding aligns with earlier studies, suggesting that N2O emissions could typically be reduced in soils treated with biochar (Hagemann et al. 2017).

The urea in the soil is converted to NH4+-N through urease, and biochar addition increases soil UA by 11.00%. However, the soil microbial gene ureC, which controls urease synthesis, decreased by 15.75%. Literature indicated that extracellular urease activity could be inhibited with increased soil ureC gene (Jiang et al. 2023). This result suggests that biochar may enhance the urease content released by crop roots. Biochar influences soil processes, including nitrification, denitrification, nitrate reduction, and N2 fixation.

5 Conclusions

This study elucidates the multifaceted role of biochar in modulating soil nitrogen cycling and improving soil health. Biochar significantly elevates soil pH by 4.57%, UA by 11.00%, amoA-AOB gene abundance by 25.58%, and nirS gene abundance by 14.78%. In addition, it significantly reduces NH3 emissions by 16.39%. While biochar is beneficial for ameliorating acidic soils by increasing pH, it tends to elevate alkalinity in alkaline soils. Biochar substantially increases SOC content by 64.60%. However, the overall impact of biochar on NH4+-N and NO3-N contents is not significant.

Different biochar sources and their pyrolysis temperatures also introduce variations in the effects on soil nitrogen, pH, and SOC content. Biochar application to soil, sourced from different feedstocks and subjected to varying pyrolysis temperatures, provides carbon sources to the soil.

Moreover, biochar enhances the abundance of amoA-AOB genes, promoting nitrification and accelerating soil nitrogen cycling. The reduction in N2O emissions under certain conditions and elevated nirS gene abundance indicate that biochar addition accelerates nitrogen cycling, leading to a significant decrease in greenhouse gas emissions.

Although the specific mechanisms behind these effects are not fully understood, the current study includes a correlation analysis with soil pH and SOC to explore the impact of biochar amendment on these soil parameters. Future research should focus on elucidating these mechanisms, particularly in relation to additional physical and chemical properties or indicators, as well as various enzymes related to nitrogen conversion, such as nitrate and nitrite reductase. Practitioners are advised to carefully select biochar types based on local conditions and production methods, tailoring applications to maximize positive outcomes for soil nitrogen dynamics while minimizing potential drawbacks.