1031 Exchange for a Ranch or Farm: Step-by-Step, With the Farmhouse, Equipment and Water Rights

Category:
1031 exchange eligible property types

Short answer

Farmland and ranchland are real property, so they can be exchanged for any other U.S. real estate held for business or investment: another farm, a net-lease store, an apartment building or a vacation rental. The hard part is that a farm sale is several sales in one. The land, barns and other permanent structures can go into a 1031 exchange. The farmhouse you live in may qualify for the home sale exclusion instead. Equipment, livestock and harvested crops are taxed, because personal property no longer qualifies. Water rights and other interests depend on state law. The steps below start with sorting those pieces.

Jon Hilley
Reviewed by Jon Hilley, CEO & Founder, 1031 SpecialistsLast reviewed November 12, 2026
Step 1: sort what you are selling
AssetTreatment
Cropland, pasture, timberland1031 exchange
Barns, sheds, permanent fences, wells, drainage tileUsually 1031, as permanent improvements
Your farmhouse and the land around it§121 home sale exclusion, if you lived there 2 of the last 5 years
A rented-out second house on the farm1031 exchange
Water rights1031 if state law treats them as real property
Ditch company shares1031 only if state law treats them as real property
Mineral rightsOften 1031; see mineral rights
Tractors, combines, irrigation pivots that can be movedTaxed, with depreciation recapture
Livestock, stored grain, harvested cropsTaxed

The seven steps

  1. Inventory and value the assets. Use the table above. Get an appraisal that splits land, improvements, the home and equipment, because each split changes your tax.
  2. Decide on the farmhouse. If you live there, the home and a reasonable amount of surrounding land can use the §121 exclusion, up to $250,000 of gain, or $500,000 for a married couple filing jointly. Rev. Proc. 2005-14 allows a single sale to use both §121 for the home and §1031 for the business part.
  3. Hire a qualified intermediary before closing. Sign the exchange agreement and assign the contract. Once you receive the sale money, it's too late.
  4. Write the allocation into the purchase agreement. State the price for real estate, the home, and equipment or livestock separately.
  5. Close the sale. The real estate share goes to the QI; the home share and equipment share come to you.
  6. Identify replacement property by day 45. In writing, using the three-property rule or another identification rule. See identification rules.
  7. Close on the replacement by day 180. Buy at least the net real estate share and replace any debt paid off.

Worked example: a 640-acre ranch

PiecePriceTreatment
Land, barns, corrals, wells$3,500,000Into the 1031 exchange
Ranch house and 5 acres (owners' home for 20 years)$450,000§121: up to $500,000 of gain excluded for a married couple
Equipment$250,000Taxed; mostly ordinary income from recapture
Cattle$180,000Taxed under the livestock rules
Total$4,380,000

The owners send $3,500,000, less its share of selling costs, to the QI and buy a mix of replacement properties. The home sale is likely tax-free. Only the equipment and cattle are taxed now. The IRS's farm tax guide, Publication 225, covers sales of farm property and livestock.

Three replacement paths compared

Another farm or ranchCommercial net-lease propertyVacation rental
Good forStaying in agriculture, expanding or movingRetiring from operations; steady rentRental income in a resort area, with limited family use
Work requiredHighLowMedium, or a manager
IncomeCrop or cattle prices and weatherContractual rent, often with increasesSeasonal, varies
Main riskCommodity pricesTenant credit and lease termPersonal use rules and seasonality
Rules to knowValue of land vs. home and equipmentDebt replacementPersonal use limits below

Ranch to commercial. Pros: no daily operations, predictable rent, easier to divide among heirs later. Cons: you give up land that may keep appreciating, and a single tenant's departure can stop income. A DST is a fully passive option for part of the proceeds. See triple-net lease exchanges.

Ranch to vacation rental. A vacation home qualifies only if it is mainly an investment. Under the safe harbor in Rev. Proc. 2008-16, hold it for 24 months after the exchange, rent it at fair rent for at least 14 days in each of those years, and limit personal use to 14 days or 10% of the days rented, whichever is greater. See Airbnb and vacation rental exchanges and second homes.

Legal and practical checklist

ItemWhy it matters
Survey and legal description that separates the home site if neededSupports the §121 and §1031 split
Title search for reserved minerals, easements and water rightsShows exactly what you are selling and buying
Agricultural tax status and any rollback taxes on a change of useRules vary by state and county
Farm program contracts and leases with tenantsWho keeps payments after the sale
Selling to a child or relativeRelated-party rules apply; see buying from family
Ownership entity and family members' sharesThe same taxpayer must sell and buy
Conservation easement offersA permanent easement may be exchangeable; get tax and legal advice first

Animals raise their own questions; see horses in a 1031 exchange. For land with no buildings, see vacant land exchanges and raw land pitfalls. State-specific notes are in our Montana and Texas guides. Talk through your farm sale: book an intro call.

Frequently asked questions

Can you do a 1031 exchange on farmland?

Yes. Farmland and ranchland are real property and can be exchanged for any U.S. real estate held for business or investment.

Can I exchange my farm for commercial property?

Yes. Farmland is like-kind to commercial property, rentals and other investment real estate.

What about the farmhouse I live in?

The home and its surrounding land can use the §121 home sale exclusion if you lived there 2 of the last 5 years. Rev. Proc. 2005-14 lets you combine it with a 1031 exchange for the rest of the farm.

Can farm equipment be part of a 1031 exchange?

No. Since 2018 only real property qualifies. Equipment and livestock are taxed when sold.

Do water rights qualify for a 1031 exchange?

They can, if state law treats them as real property. Ditch company shares qualify only if state law treats them as real property.

Sources

This article is general information, not tax or legal advice. Talk to your CPA or tax attorney about your situation.

See If You Qualify for a 1031 Exchange

If you own a property as an investment or a property used to operate a business, you likely qualify for a 1031 exchange. To ensure your eligibility, click below and answer our short questionnaire.

Does My Property Qualify?

See If You Qualify for a 1031 Exchange

If you own a property as an investment or a property used to operate a business, you likely qualify for a 1031 exchange. To ensure your eligibility, click below and answer our short questionnaire.

Does My Property Qualify?

Start Your 1031 Exchange Today

We are the 1031 Specialists trusted by sophisticated investors and family offices to facilitate fast, transparent, and error-free 1031 exchange transactions.

Book a Free Consultation Now

Start Your 1031 Exchange Today

We are the 1031 Specialists trusted by sophisticated investors and family offices to facilitate fast, transparent, and error-free 1031 exchange transactions.

Start Your Exchange

Get The 1031 Bible In Your Inbox

Download our whitepaper to learn how sophisticated investors, family offices, and even former US Presidents have created immense wealth through the power of 1031 compounding.

Download Whitepaper

Articles You Might Find Useful

╳
╳