1. Home
  2. 1031 Exchange on a Virginia Farm Sale: How It Works

1031 Exchange on a Virginia Farm Sale: How It Works

A 1031 exchange can defer the tax bill on a big farm sale, if the clocks and the structure are set up before you close. Here is how it works.

Timber-framed barn on the Weston farm at Casanova in Fauquier County, Virginia

Timber-frame barn, Weston farm, Casanova

  • 45 days to identify a replacement property, 180 days to close
  • A qualified intermediary must hold the proceeds — not the seller
  • A primary residence on the farm is carved out of the exchange
  • Like-kind means any U.S. real property held for investment or business
  • Not tax advice — confirm your numbers with a CPA before you list

What qualifies for a 1031 exchange

A 1031 exchange is the tool most farm sellers ask about by name, and it is worth understanding before a contract is signed rather than after. Section 1031 of the Internal Revenue Code lets an owner sell real property held for investment or business use and defer the capital gains tax by reinvesting the proceeds into other like-kind real property, rather than paying tax on the sale in the year it happens. For a farm, that generally means the working land, outbuildings, and any acreage used in the farming operation or held for investment. For the full Virginia-specific version — boot and debt, the house on the farm, and how land-use rollback interacts with the exchange — see the detailed guide to a 1031 exchange for a Virginia farm.

A primary residence on the farm is carved out of the exchange — Section 1031 does not apply to a personal residence, only to the investment or business portion of the property. On a farm that includes a house the owner lives in, the sale typically has to be structured to separate the residence from the qualifying land, which takes planning before a contract is signed, not after.

Horses on a fenced pasture above a farm pond in Middleburg, Virginia, in autumn

Horse pasture in Middleburg, Loudoun County

The clocks: 45 days to identify, 180 days to close

A 1031 exchange runs on two strict deadlines that start on the day the original property closes. The owner has 45 calendar days to formally identify potential replacement properties, and 180 calendar days total to close on the replacement. Both deadlines are fixed by the IRS and are not extended for weekends, holidays, or a slow closing on the replacement property.

Because the 45-day window is short, owners who wait until after closing to think about what they will buy next often run out of runway. Identifying realistic replacement candidates before the original sale closes is the difference between an exchange that works and one that fails on a technicality.

Selling farmland and thinking about a 1031 exchange?

Talk to a farm & land specialist early enough to plan the timeline with your CPA.

Tell us about your land

The qualified intermediary

An owner cannot simply hold the sale proceeds and reinvest them later — doing so disqualifies the exchange. The proceeds have to be held by a qualified intermediary, a third party who is not the owner's agent, attorney, or accountant in the transaction, between the sale of the original property and the purchase of the replacement. The intermediary has to be engaged before the original sale closes.

Vineyard rows on a hillside at Bluemont in Loudoun County, Virginia, looking east

Hillside vineyard at Bluemont, Loudoun County

What counts as like-kind

For real estate, like-kind is defined broadly under current federal tax law — it means any real property held for investment or business use exchanged for any other real property held for investment or business use, both located in the United States. A farm can be exchanged into a rental property, a commercial building, raw land in another county, or another farm. The properties do not need to be the same type of real estate, the same size, or in the same use.

Why this matters after a land-rich sale

Farm and land sales in the data-center corridor counties can produce a large taxable gain in a single year, particularly when a sale is adjacent to or influenced by nearby data-center activity. See how data-center land values compare to ordinary land for a sense of how much a corridor-adjacent sale can move the numbers. A 1031 exchange is one of the tools available to redeploy that proceeds into other real estate, whether additional farmland, a different type of investment property, or property in a different market, without triggering the capital gains bill in the same year the farm sells.

This is a timing and structuring decision, not a way to avoid tax permanently on its own — the deferred gain generally carries forward into the replacement property's basis. If your farm is also enrolled in land-use assessment, factor in rollback tax exposure as well when estimating what you will actually have available to reinvest.

The state-level detail — how Virginia conformity carries the federal deferral through, what land-use rollback does inside an exchange, and how a lot split off before closing is treated — is covered in the 1031 exchange rules in Virginia.

Gravel farm lane running between fields at Stoke, southwest of Aldie in Loudoun County, Virginia

Farm lane near Aldie, Loudoun County

Depreciation recapture

If the farm property included depreciated assets — improvements, certain farm structures, equipment treated as real property — a sale can trigger depreciation recapture, which is taxed differently than straight capital gains. A 1031 exchange can address recapture as part of the exchange in many cases, but the mechanics depend on what was depreciated and how the replacement property is structured. This is a detail to work through with a CPA before assuming the exchange defers everything.

Farms with a mixed personal and investment use

Many working farms are not purely investment property — they include a home the owner lives in alongside land used for farming or held for appreciation. In that situation, the sale is often split for tax purposes: the residence portion is handled under the rules that apply to a primary residence, while the qualifying farm or investment acreage can go into a 1031 exchange. Structuring that split correctly requires coordination between the owner's CPA and whoever is handling the exchange, set up before the property goes under contract.

This is not tax advice

A 1031 exchange involves strict deadlines, specific qualification rules, and consequences that depend entirely on an owner's individual tax situation. This page explains how the mechanism generally works and is not tax or legal advice. Talk to your CPA and a qualified intermediary before you list a farm you are considering exchanging, so the timeline and structure are in place before, not after, you have a buyer.

Sources

Common questions

Questions we hear

Can I do a 1031 exchange on my whole farm if I live on it?

Generally, only the investment or business portion of the property qualifies. A primary residence on the farm is carved out of a 1031 exchange, so a farm with a home on it is often structured as a split sale, with the residence handled separately from the qualifying land.

How long do I have to find a replacement property?

You have 45 calendar days from the closing of the original property to formally identify replacement candidates, and 180 calendar days total to close on the replacement. Both deadlines are fixed by the IRS.

Do I have to buy another farm to qualify?

No. Like-kind real estate is defined broadly — any U.S. real property held for investment or business use can be exchanged for any other, regardless of type. A farm can be exchanged into rental property, commercial real estate, or land in a different market.

Can I hold onto the sale proceeds myself and buy something later?

No. The proceeds have to be held by a qualified intermediary, a third party unrelated to you in the transaction, between the sale and the purchase. Holding the funds yourself disqualifies the exchange.

Does a 1031 exchange eliminate my tax bill?

It defers the capital gains tax rather than eliminating it — the deferred gain generally carries into the replacement property's basis. Depreciation recapture may also apply depending on what was depreciated on the original property. Talk to your CPA about your specific numbers.

Primary sources

Where the rules and the numbers on this page come from

Nothing here is legal, tax or appraisal advice, and no figure on this page is ours to invent. These are the statutes, agencies and research programs the page is built on. Read them yourself before you sign anything, and take the tax questions to your own CPA or attorney.

Photography

Farm and land country, county by county

Licensed photographs of the working farmland, pasture and small-town edges this site covers. Each one is linked to the guide for the place it was taken.

A mix of interim licensed photography (public-domain and Creative Commons) and agent-supplied listing photography of Virginia farm country, used with permission — not properties this site currently represents. Photo credits and licences.

Start a conversation

Tell us about your land

Whether you own acreage and want a straight read on what it's worth, you've had an offer you don't fully trust, or you're looking to buy farmland that actually works — send a note. A real person reads it and replies within one business day. No pressure, no listing pitch.

Prefer to talk? Call or text (571) 578-0012 · Email: hello@virginiafarmandland.com

We never advertise a property without your written authority. Your information stays with us.

CallTell us about your land