Classic red barn beside a corn field

Answers · Farmhouse split

What is the tax treatment of the farmhouse when exchanging the farm in a 1031?

Split the sale. The farmhouse you live in and its yard can use the section 121 home exclusion; the farmland and farm buildings go into the 1031 exchange.

By Breakwater Exchange · Reviewed by our 1031 advisory team · Last reviewed

The short answer

The farmhouse comes out of the exchange. If you have owned and lived in it for two of the last five years, the gain on the house and its immediate surroundings can be excluded under section 121, up to $250,000, or $500,000 for most married couples filing jointly. The cropland, pasture and farm buildings are business property and go into the 1031 exchange. Reg. section 1.121-1(e) requires you to allocate the price and basis between the residential and non-residential parts, and Rev. Proc. 2005-14 confirms you can use both provisions on one sale.

At a glance

House and yardSection 121 exclusion: $250,000, or $500,000 for most joint filers
Ownership and useOwned and lived in as your main home for 2 of the 5 years before sale
Working acres and barnsBusiness property; gain deferred through the 1031
AllocationSplit both price and basis between the residence and the rest
Order of operationsApply section 121 first, then section 1031 to the remaining gain
Depreciation on the housePost-May 6, 1997 depreciation is not excludable under section 121
House rented to a worker or tenantBusiness property, so it can be exchanged instead

Your home and its immediate surroundings are a residence, not farm property

IRS Publication 225 says your home is a capital asset and not property used in the business of farming, and that it includes the immediate surroundings and outbuildings relating to it that are not used for business purposes. When you sell a farm that includes the house you occupy, you must determine the part of the selling price and the part of the basis allocable to the home.

That residential part cannot be exchanged, because section 1031(a) applies only to property held for business or investment. It can instead qualify for the section 121 exclusion if you owned and used it as your principal residence for periods totaling two years in the five years before the sale.

Publication 225 works this exact case: a farm sale with the main home, where the gain on the home is excludable under the home sale rules and the gain on the farm business property is reported, partly as recapture and the rest as section 1231 gain. With an exchange, that business gain is deferred instead of reported.

The line between yard and farm follows actual use

Reg. section 1.121-1(e)(1) says section 121 does not apply to gain on any portion of the property, separate from the dwelling unit, that you did not use as a residence. Its Example 1 is a house, a stable and 35 acres: the house and 7 acres were the residence, the stable and 28 acres were used for business, and the gain had to be split between them.

Reg. section 1.121-1(b)(3) adds that adjacent vacant land counts as part of the residence only if you owned and used it as part of the residence and sell the dwelling within two years before or after. Acres you farmed or rented out do not qualify, however close they are to the house.

Allocate the basis and amount realized using the same method you used for depreciation, if any, under Reg. section 1.121-1(e)(3). In practice that means an appraisal that values the house and its homesite separately from the farm, which also feeds the price allocation described in how equipment, livestock and crops are handled.

Worked example: a $2 million farm with a $400,000 homesite

Hypothetical, round numbers; run your own numbers with your CPA. A married couple sells their farm for $2,000,000. The appraisal values the house and two acres at $400,000, with an allocated basis of $150,000, and the 300 farmed acres and machine shed at $1,600,000, with a basis of $400,000.

The $250,000 gain on the homesite is under their $500,000 joint limit, so it is excluded and that $400,000 can be paid to them at closing. The $1,200,000 gain on the farm portion is deferred by sending $1,600,000 to the qualified intermediary and buying at least that much replacement real estate.

Had they run the whole $2,000,000 through the exchange, the house money would have bought investment property and they would have spent a tax-free exclusion for nothing.

  • Homesite: $250,000 gain excluded under section 121.
  • Farm: $1,200,000 gain deferred under section 1031.
  • Cash to the sellers at closing: $400,000, tax-free.

Rev. Proc. 2005-14 covers a house that was both home and business property

Rev. Proc. 2005-14 applies when one property qualifies under both sections, for example a farmhouse you lived in for two of the last five years and then rented to a farmhand. Section 121 is applied to the gain first, and section 1031 then defers the rest, including gain from depreciation, which section 121(d)(6) keeps out of the exclusion.

Boot is also coordinated. Under section 4.02(3) of the procedure, cash received for the business property is taken into account only to the extent it exceeds the gain excluded under section 121, and section 4.03 adds the excluded gain to the replacement property's basis.

The procedure's Example 2, a house used as a residence and a separate guesthouse used as an office, is the closest analogy to a farmhouse with separate business outbuildings. For the general version of this split, see section 121 versus 1031 on a former home.

What to do before listing, and where a DST fits

Order an appraisal that values the homesite separately, write the allocation into the purchase contract, and set up the exchange agreement for the farm portion only. If a hired hand or tenant has lived in the farmhouse for years, it is business property and belongs in the exchange instead.

If you are leaving farming, the farm proceeds can go into passive real estate. Delaware statutory trust interests are treated by Rev. Rul. 2004-86 as acquirable in a 1031 exchange; see traditional DSTs and 1031 for farm and ranch families.

Buying a new home with the excluded proceeds is fine. Buying a home with exchange proceeds is not, as moving into replacement property explains.

Related questions

How many acres can go with the house under section 121?

There is no acreage figure. Land counts only if you used it as part of your residence; farmed or rented acres are non-residential under Reg. section 1.121-1(e), whatever their size.

Can the farmhouse go into the exchange if I live in it?

No. A home you occupy is not held for business or investment. Only a house rented to a tenant or used to house farm workers can be exchanged.

Do I need two separate closings?

No. One sale works if the contract allocates the price and the exchange agreement covers only the farm portion; Rev. Proc. 2005-14 confirms both sections can apply to one transaction.

What if the house gain exceeds $500,000?

The excess is taxable capital gain, and the $500,000 joint limit itself requires both spouses to meet the use test and neither to have used the exclusion in the prior two years under section 121(b). The excess cannot be shifted into the exchange because the house is a residence.

Does depreciation on a home office in the farmhouse matter?

Yes. Section 121(d)(6) keeps gain equal to post-May 6, 1997 depreciation out of the exclusion, so that slice is taxable unless the depreciated part is business property inside the exchange.

Sources

Checked against these publications on September 30, 2026. Rules and figures change; confirm the current version with your CPA or attorney before you act. This page is general information, not tax or legal advice.

  1. 26 U.S.C. Section 121, exclusion of gain from sale of principal residence
  2. Treas. Reg. Section 1.121-1, exclusion of gain from sale of principal residence
  3. IRS, Rev. Proc. 2005-14 in Internal Revenue Bulletin 2005-7
  4. 26 U.S.C. Section 1031, like-kind exchanges
  5. IRS Publication 225, Farmer's Tax Guide
  6. IRS, Rev. Rul. 2004-86 in Internal Revenue Bulletin 2004-33

Selling the home place along with the farm?

Send us the appraisal split between the homesite and the acres. We will show replacement options sized to the farm portion only.

Free 1031 proposal

Access Investment Offerings Other Brokers Can’t Provide

Breakwater Exchange’s expert guidance helps you maximize returns while minimizing tax exposure, so you can invest with clarity and confidence.

years of experience
20+
in DST transactions
$1B+
states licensed
50
vetted national sponsors
8

Tell us about your exchange

Share the basics and an advisor will reach out with next steps.

Are you an accredited investor?

Generally, net worth over $1 million excluding your primary residence, or income over $200,000 ($300,000 with a spouse) in each of the last two years.

No obligation. A Breakwater Exchange advisor reviews every request personally.

Get My Free ProposalFree ProposalBook a Free ConsultationFree Consultation