Agriculture significantly impacts the global environment, contributing to greenhouse gas (GHG) emissions, air and water pollution, and biodiversity loss. As the global population grows and demands higher agricultural output, these environmental impacts are expected to intensify. Among global contributors, China, with its vast population and prominent agricultural sector, plays a leading role in GHG emissions. Understanding and mitigating these impacts in China is crucial for addressing broader global environmental challenges. To address these key issues, we conducted a study on the dynamic impact of agricultural key variables (agricultural land, fertilizer consumption, energy use for agriculture, agricultural value-added, forest land, livestock, fisheries, and crop production) on GHG emissions by utilizing the data from 1990 to 2020, and employed linear and non-linear linear autoregressive distributed lag (ARDL and NARDL) models. In the study, co-integration analysis confirms the long-run relationship between variables, and the long-term findings from the ARDL model reveal important insights, increased agricultural land use, fertilizer consumption, agricultural energy use, crop production, livestock production, and fishery production increases GHG emissions in China and GHG emissions can be reduced by increasing forest land in the long term. Furthermore, with the asymmetric NARDL regression applied to three key variables, the positive shock analysis results confirm that agricultural land use (AGL+), fertilizer consumption (FC+), and agricultural energy use (EUA+) can significantly contribute to long-term GHG emissions. However, adverse shocks to (AGL-), (FC-), and (EUA-) could significantly compress GHG emissions. These findings offer valuable implications for Chinese authorities' focus on expanding forest land, using more renewable energy, and minimizing the usage of chemicals in agriculture. These measures can help to mitigate emissions while promoting sustainable agricultural practices.