Licensed Fiduciary AdvisorsServing property owners & investors nationwide
Strategy · 5 min read

Selling the farm: sorting one sale into four different tax outcomes

A farm sale looks like one transaction and is taxed like four. The allocation between house, land, equipment, and grain is negotiated in the contract, not discovered afterward.

The Hoffmans farmed the same ground for three generations. When they finally signed, it was one buyer, one price, one closing: $4.2 million for the whole operation.

Their accountant's first act was to take that single number and break it into four.

That is the part nobody warns farm families about. A farm sale looks like one transaction and is taxed like four, and the split is not something you discover afterward. It is something you negotiate into the purchase agreement, or fail to.

One closing, four tax outcomes

Everything crossing the table at a farm sale falls into one of these buckets, and each is treated differently:

  • The farmhouse. Your principal residence, plus the land reasonably tied to it. This is Section 121 territory, not Section 1031.
  • The land and its real improvements. Tillable acres, pasture, barns, silos, grain bins, drain tile, fencing, irrigation systems, and qualifying water and mineral rights. This is the 1031 portion.
  • Personal property. Tractors, combines, implements, trucks, livestock, and stored grain. Since 2018 none of this is 1031-eligible.
  • Growing crops. Unharvested crops sold with the land they grow in generally travel with the land. Harvested and stored grain does not.

Get the allocation right and most of a farm sale defers. Get it wrong and a surprising share of it comes due at ordinary income rates.

What the 2017 law took away

This is the single biggest change for agricultural sellers, and plenty of farmers still have not heard it.

Before 2018, Section 1031 covered personal property as well as real property. A farmer could roll equipment into replacement equipment and defer the gain. The Tax Cuts and Jobs Act narrowed Section 1031 to real property only.

So the combine is now a fully taxable sale. Worse, farm equipment is usually depreciated aggressively, often to zero. When it sells, the recapture comes back as Section 1245 ordinary income, not capital gain, taxed at your ordinary rate with no preferential treatment and no deferral available under 1031.

For an operation with a large equipment line, this is frequently the biggest single tax item in the deal, and it is the one nobody budgeted for.

The Hoffmans' $4.2 million, split four ways

Component Price Basis Treatment Rough federal tax
Farmhouse and 2 acres $650,000 $180,000 Section 121 exclusion, married filing jointly $0
400 acres, barns, irrigation $3,300,000 $600,000 Section 1031 deferral $0 deferred
Equipment (fully depreciated) $210,000 $0 Section 1245 ordinary recapture About $67,000
Stored grain $40,000 $0 Ordinary income About $13,000
Total $4,200,000 About $80,000

Illustrative only. Assumes a 32% ordinary bracket, ignores state tax, self-employment tax on grain, and the Hoffmans' other income. Your CPA determines the actual figures.

Roughly $2.7 million of gain defers. About $80,000 comes due, essentially all of it from the two smallest line items on the page. That is the shape of almost every farm sale we see.

The allocation is negotiated, not discovered

Buyers and sellers have opposing interests here, and most farm purchase agreements handle it badly or not at all.

A buyer generally wants more of the price allocated to equipment, because they get to depreciate it quickly. You generally want less there, because that allocation converts into ordinary income for you. The same tension runs through the farmhouse and the bare land.

Three things worth insisting on:

  • Allocate in the contract. A written, agreed allocation supported by defensible values is far stronger than two parties reporting different numbers later.
  • Get real support for it. An appraisal that separates residence, land, improvements, and equipment. Not a single lump figure.
  • Do it before you sign. Once the purchase agreement is executed, your leverage is gone.

The farmhouse question

Section 121 requires you to have owned and used the home as your principal residence for two of the five years ending on the sale date. Most retiring farmers satisfy this easily.

Two wrinkles specific to farms:

  • How much land goes with the house? The exclusion covers the dwelling and the land reasonably related to residential use. A yard and outbuildings, generally yes. Two hundred tillable acres, no. This is a facts-and-circumstances judgment.
  • If you moved to town first, the three-year window described in renting your former home applies to you too.

Where the deferred portion goes

The land portion needs replacement real property, and it does not have to be more farmland. It can be commercial property, or it can be passive.

For a family that has just spent forty years being woken up by weather, a Delaware Statutory Trust is often the point of the whole exercise: exchange the ground into professionally managed property and collect distributions instead of managing tenants or crops. DSTs are private placements offered only to accredited investors. They are illiquid, you cannot direct management or force a sale, distributions are not guaranteed, and you can lose principal.

For the taxable slice, the equipment and grain, see what to do with boot you could not defer. Also useful: raw land exchanges, mineral and water rights, and our exchange overview.

Your CPA determines how any of this applies to your operation.

Questions we field about farm and ranch sales

Can I exchange farmland for an apartment building?

Yes. Like-kind for real property is broad. Farmland, commercial buildings, and rental housing are generally all like-kind to one another.

Can I still exchange my equipment into new equipment?

No. Since 2018 Section 1031 applies to real property only. Equipment sales are fully taxable, usually as Section 1245 ordinary recapture.

Does my farmhouse have to be part of the exchange?

No, and it generally should not be. The residence portion is handled under Section 121, which excludes gain permanently rather than deferring it.

What about land enrolled in a conservation program?

Enrolled ground is generally still real property and can usually be exchanged, but program contracts may carry transfer conditions. Check the contract terms before you market the farm.

Are unharvested crops part of the real estate?

Growing crops sold together with the land they are planted in generally travel with the land. Harvested grain in a bin is inventory and is taxed as ordinary income.

Talk Through Your Options