Quick answer: Selling a farm triggers capital gains tax on the profit (sale price minus your adjusted cost basis). Land held over a year qualifies for long-term rates of 0%, 15%, or 20%. But depreciation claimed on buildings and equipment is recaptured as ordinary income at 25%. The three main ways to reduce or defer the tax: a 1031 exchange, installment sale, or holding until death (stepped-up basis).
Understanding Adjusted Basis on Farm Real Estate
Your basis in farm real estate starts with what you paid for it (or the fair market value at inheritance โ the stepped-up basis). It increases with improvements you've made (barns, irrigation, terraces, fencing capitalized rather than expensed). It does not decrease for land itself, since land is not depreciable. However, buildings and structures on the farm have been depreciated over the years, which reduces their adjusted basis โ so when you sell, the gain on those assets is larger. A barn that cost $150,000, depreciated down to $20,000 adjusted basis, sold as part of a $1M farm sale, will trigger depreciation recapture taxed at ordinary rates up to 25%.
How a Typical Farm Sale Is Taxed
Most farm sales involve multiple asset classes with different tax treatment. A $3M farm sale might break down as:
- Land ($2M sale price, $400K basis) โ $1.6M long-term capital gain at 15โ20%
- Buildings ($500K sale, $100K adjusted basis after depreciation) โ $100K Section 1250 recapture at 25% ordinary + $300K long-term gain
- Equipment ($200K sale, fully depreciated) โ $200K Section 1245 recapture at ordinary income rates
- Crops in storage โ ordinary income
The allocation of purchase price between asset classes is negotiated in the sale contract and must be reported consistently by both buyer and seller on Form 8594. Buyers prefer more basis in depreciable assets; sellers prefer more in capital gain land. This allocation matters โ negotiate it carefully.
Tax-Reduction Strategies Before You Sell
Don't wait until closing to think about taxes. A 1031 exchange defers all capital gains if you roll proceeds into like-kind property within 180 days. An installment sale spreads the gain across years, keeping you out of the highest bracket. Gifting appreciated land during your lifetime, or holding it until death so heirs receive a stepped-up basis, can eliminate capital gains entirely. For larger operations, a charitable remainder trust funded with the farm can generate lifetime income and a charitable deduction while deferring capital gains at sale. Work with your CPA and an estate attorney at least 12โ18 months before any planned sale to model your options.
Questions About Your Ranch or Farm Situation?
Kyle Ellison is a fourth-generation Texas Panhandle rancher and licensed financial professional in TX, CA, NV, MT, UT, NM.