In rural China, male offspring are traditionally regarded as the primary heirs of household assets, particularly land. This study examines the impact of offspring gender composition on long-term agricultural investment behavior, using commercial organic fertilizer application as an example of a strategic long-term investment in farmland. Based on cross-sectional data from 4090 rice farming households across 10 cities (counties) in Hubei province, collected between 2021 and 2023, this analysis identifies three key findings. First, the absence of male offspring significantly reduces long-term agricultural investments, a result that remains robust even when addressing potential endogeneity biases using instrumental variable techniques. Second, households without male heirs exhibit stronger present-oriented preferences and diminished social capital, which further hinder long-term agricultural investments. Third, the negative impact of not having male offspring is more pronounced when the current agricultural decision-maker is male and when land marketization is underdeveloped. These findings underscore the complex interplay between gender norms and agricultural behavior, revealing significant socioeconomic implications of inheritance practices. The study provides insights into addressing these challenges by emphasizing the importance of promoting gender equality and advancing land marketization to enhance equitable land use and support long-term agricultural investment.