Wide view of green farmland under a blue sky in Corinth Township, Iowa, the kind of acreage where capital gains tax on a land sale matters

To calculate capital gains tax on farmland, find your adjusted basis (purchase price or inherited value, plus improvements, minus depreciation), subtract it from the amount realized (sale price minus selling costs), split the result between bare land and depreciable improvements, apply depreciation recapture rules to the improvements, and apply long-term capital gains rates to the remaining gain. Bare land itself is not depreciable, which simplifies part of the calculation.

This is a US-focused walkthrough. UK readers should see whether agricultural land is exempt from capital gains tax in the UK. For general land sales, see our guide to capital gains tax on land sales. This is general information, not tax advice; farm sales are a good reason to hire a tax professional.

Step 1: Determine how the farmland was acquired

  • Purchased: basis starts with the purchase price plus certain purchase costs such as title, recording, and survey fees.
  • Inherited: basis is generally the fair market value at the date of death, often called a stepped-up basis. An appraisal from that time is very helpful.
  • Gifted: the recipient generally takes the donor’s basis, with special rules if value had fallen.

Step 2: Allocate basis between land and improvements

A farm sale often includes bare land plus improvements such as buildings, grain bins, fences, wells, drainage tile, or irrigation systems. Land is not depreciable, but improvements usually are. When you bought the farm, the price should have been allocated among land and each improvement category. Your depreciation records will show the original basis and depreciation taken on each item.

Step 3: Adjust the basis

Add capital improvements made since purchase, such as new fences, buildings, or conservation structures, to the appropriate category. Subtract depreciation claimed (or allowable) on depreciable improvements. The result is your adjusted basis for land and for each improvement.

Step 4: Calculate the amount realized

Take the total sale price and subtract selling expenses such as commissions, legal fees, and the seller’s closing costs. Then allocate the amount realized among land and improvements, ideally using a reasonable allocation agreed in the contract and supported by appraisal.

Step 5: Calculate gain by category

For each category, subtract adjusted basis from the allocated amount realized. You might have a gain on the bare land and gains or losses on improvements.

Step 6: Apply the right tax treatment

Bare land

Farmland used in a trade or business and held more than one year is typically treated as Section 1231 property. Net Section 1231 gains are generally taxed at long-term capital gains rates, while net Section 1231 losses are generally ordinary losses. A lookback rule can recharacterize current gains as ordinary income if you had net Section 1231 losses in recent prior years. Land held purely as an investment, such as land you cash-rent to a tenant, may instead be a capital asset; either way, long-term gains on land are generally taxed at 0%, 15%, or 20% depending on income.

Depreciable improvements

Depreciation recapture applies when depreciable property is sold for more than its adjusted basis. For many farm assets treated as Section 1245 property, such as certain equipment, fences, and drainage tile, gain up to the amount of depreciation taken is generally taxed as ordinary income. For buildings treated as Section 1250 property, the portion of gain attributable to depreciation (unrecaptured Section 1250 gain) is generally taxed at a maximum 25% rate. Classification of specific farm assets can be technical, so confirm with your preparer.

Step 7: Consider other taxes

  • Net investment income tax: a 3.8% tax may apply to higher-income taxpayers, though gains from property used in an active farming business may be excluded depending on your participation.
  • State income tax: most states with an income tax also tax capital gains.
  • Farmhouse: if your home is part of the sale, the residence portion may qualify for the home sale exclusion if you meet ownership and use tests.

A simplified example

Imagine a farmer who bought land with a machine shed, and allocated part of the price to the shed. Over the years, the shed was depreciated and fences were added and depreciated. At sale, the contract allocates the price among land, shed, and fences. The land gain is calculated as allocated price minus land basis and taxed under the Section 1231 rules. The shed gain is split: the part equal to depreciation taken may be unrecaptured Section 1250 gain, and any excess is Section 1231 gain. The fence gain up to depreciation taken is generally ordinary income. Real calculations use actual numbers from your depreciation schedule.

How can farmers reduce or defer the tax?

  • 1031 exchange into other farmland or investment real estate; see the 1031 exchange for land.
  • Installment sale to spread gain over the payment years, though recapture is generally taxed in the year of sale.
  • Conservation easement donations or sales, which may provide deductions in some cases.
  • Charitable remainder trusts for some sellers.
  • Estate planning, since heirs generally receive a stepped-up basis at death.

Why does the price allocation matter so much?

Because land, buildings, and other improvements are taxed differently, how the sale price is split among them can change the total tax. Buyers and sellers sometimes have opposite interests in the allocation, since buyers may prefer more value assigned to depreciable improvements. A reasonable allocation supported by an appraisal is the safest approach.

What records do you need?

  • Closing statement from the original purchase.
  • Depreciation schedules from past tax returns.
  • Records of capital improvements.
  • Date-of-death appraisal for inherited land.
  • The sale contract with price allocation.

Related reading: property Tax on Vacant Land.

Frequently asked questions

Is farmland a capital asset?

Land used in farming is typically Section 1231 property, which is generally taxed like a capital asset when gains exceed losses. Investment land is usually a capital asset.

Do I pay depreciation recapture on bare land?

No. Bare land is not depreciable, so there is no recapture on the land itself.

Can I avoid tax by selling farmland to my children?

Selling to family is still a taxable sale. Gifts and bargain sales have their own tax effects. Get advice.

What form reports a farmland sale?

Business property sales are typically reported on Form 4797; investment land on Form 8949 and Schedule D.

By Nick

Nick researches and writes the guides on Land Pro Developers. The content is research-based, not drawn from personal land-buying experience: each guide is built from public primary sources such as USDA NASS land value reports, Tax Foundation property tax data, state agency publications, county records guidance and IRS rules. Guides are reviewed and updated regularly, and every post shows a "Last updated" date so you can see how current it is. Nothing on this site is legal, tax or financial advice. Before you buy, sell or develop land, consult a licensed real estate attorney, agent or title company in your state. Spotted an error or outdated figure? Please tell us through the Contact page at https://landprodevelopers.com/contact/ and we will review and correct it.

Leave a Reply

Your email address will not be published. Required fields are marked *