This study aims to provide a scientific basis for the development of county-level agricultural industries through a comprehensive evaluation of the environmental and economic benefits of agricultural products. Focusing on Hancheng City in Shaanxi Province, this paper calculates and analyzes the carbon emission intensity per unit output value and the economic benefits of major agricultural products, assessing their comprehensive advantage indices. The research methods include data collection, data processing, and model construction, utilizing a bi-factor matrix analysis to explore the balance between environmental sustainability and economic profitability of different agricultural products. The results indicate that pepper and vegetables have the highest comprehensive advantages, demonstrating significant economic and environmental benefits, while soybeans show lower comprehensive advantages, requiring improvements in cultivation techniques and management practices. Based on the research findings, this paper proposes policy and management recommendations for different agricultural products, including focusing on the development of high-comprehensive-advantage products, improving cultivation techniques for low-comprehensive-advantage products, promoting green agricultural technologies, establishing a carbon footprint monitoring system for agricultural products, and strengthening agricultural infrastructure construction. The study’s conclusions provide theoretical support and practical guidance for the agricultural development strategies of Hancheng City and similar regions, contributing to the achievement of sustainable agricultural development and carbon reduction goals.