How to Calculate Capital Gains Tax on Farmland

Estimate your potential tax on a farmland sale with the calculator below, then use the complete guide to understand basis, gain, long-term vs short-term treatment, depreciation recapture, federal rates, state tax, and planning options.

Farmland Capital Gains Tax Calculator

U.S.-focused estimate for educational planning. Enter your numbers, then click Calculate.

This calculator is a planning estimate only. Actual farmland taxation can involve depreciation classes, entity ownership, installment treatment, conservation easements, and 1031 exchange rules. Confirm with a CPA or tax attorney.

Your Estimated Results

Based on your inputs and simplified federal/state assumptions.

Adjusted Basis$0.00
Amount Realized$0.00
Total Gain (or Loss)$0.00
Gain Type
Depreciation Recapture Portion$0.00
Federal Tax Estimate$0.00
State Tax Estimate$0.00
NIIT Estimate$0.00
Total Estimated Tax$0.00
Estimated Net Proceeds After Tax$0.00
StepFormulaValue
1Adjusted Basis = Basis + Acquisition Costs + Improvements − Depreciation$0.00
2Amount Realized = Sale Price − Selling Expenses$0.00
3Total Gain = Amount Realized − Adjusted Basis$0.00
4Recapture Gain = Lesser of Depreciation or Total Gain$0.00
5Remaining Gain = Total Gain − Recapture Gain$0.00
Complete Guide

How to Calculate Capital Gains Tax on Farmland: Step-by-Step

When farmland increases in value and you sell it, the profit is usually taxable. The exact tax depends on your basis, holding period, depreciation history, federal bracket, and state rules. If you are a landowner, farmer, executor, heir, or investor, learning the core formula can help you estimate your tax bill before listing property or signing a sale contract.

1) The Core Formula for Farmland Capital Gains Tax

The calculation starts with three numbers: amount realized, adjusted basis, and gain.

After you find total gain, split it into tax buckets when needed: depreciation recapture and remaining capital gain. Then apply federal and state rates to estimate total tax.

2) How to Determine Basis on Farmland

Basis is your tax starting point. Getting this right is one of the most important parts of the calculation.

Purchased farmland: Basis usually starts with purchase price plus certain acquisition costs such as title fees, survey costs, legal fees, and recording fees.

Inherited farmland: Basis is commonly the fair market value at date of death (or alternate valuation date when elected). This is often called a stepped-up basis and can significantly reduce taxable gain for heirs.

Gifted farmland: Basis is generally the donor’s carryover basis, with special rules when fair market value and donor basis differ. Gifted property can be more complex and often needs professional review.

3) Basis Adjustments: What Increases or Decreases Basis

Once you have starting basis, adjust it over time.

Common increases to basis:

Common decreases to basis:

Not every farm expense is a basis adjustment. Many routine operating costs are deducted annually and never added to basis. Good records separate current expenses from capital improvements.

4) Holding Period: Short-Term vs Long-Term

If you hold farmland for one year or less, gain is generally short-term and taxed at ordinary income rates. If held longer than one year, gain is generally long-term and taxed at preferential long-term capital gains rates (subject to your taxable income and filing status).

This difference can materially change tax owed. For many sellers, waiting to cross the long-term threshold before closing can reduce federal tax.

5) Federal Rates, Recapture, NIIT, and State Tax

Federal long-term capital gains rates: Commonly 0%, 15%, or 20% depending on taxable income.

Short-term gains: Taxed at ordinary income rates.

Depreciation recapture: Gain attributable to prior depreciation can be taxed differently, often at higher rates than standard long-term gain assumptions. If your farmland sale includes depreciable components, recapture can increase total tax.

NIIT (3.8%): May apply for certain higher-income taxpayers and investment-type gain situations.

State tax: Many states tax capital gains as ordinary income. State impact can be substantial and should always be included in planning.

6) Worked Example: Farmland Sale Estimate

Suppose you purchased farmland years ago for $250,000, paid $5,000 in acquisition costs, added $20,000 of capital improvements, claimed no depreciation, and now sell for $500,000 with $30,000 in selling costs.

If long-term rates apply and your federal long-term rate is 15%, estimated federal tax on gain is $29,250 before NIIT and state taxes. Add state tax and any NIIT exposure for a fuller estimate.

7) Special Farmland Situations That Can Change the Math

Inherited land sold soon after inheritance: Stepped-up basis may reduce gain dramatically compared with original family purchase price decades ago.

Gifted land: Carryover basis can produce higher gain than expected, especially with long-held family property.

Mixed-asset farm sale: If land, buildings, and equipment are sold together, allocation across asset classes matters for recapture and tax rates.

Installment sale: Gain may be recognized over time as payments are received, which can smooth tax brackets but requires strict structuring and reporting.

Conservation easements and partial rights sales: May create unique valuation and basis allocation questions.

Entity ownership: LLC, partnership, S-corp, and trust sales can produce different reporting and state treatment outcomes.

8) Tax Planning Strategies Before Selling Farmland

Good planning should happen before signing the definitive agreement. After closing, many options are limited or unavailable.

9) Farmland Sale Recordkeeping Checklist

Accurate records improve tax accuracy and reduce audit risk.

10) FAQ: Capital Gains Tax on Farmland

Do I always owe capital gains tax when I sell farmland?
Not always. If your adjusted basis is close to or above net sale proceeds, gain may be small or there may be a loss. State and federal outcomes can differ.

Is inherited farmland always tax-free to sell?
No. Inherited property often receives stepped-up basis, but gain can still occur if value rises after inheritance.

Can selling expenses reduce taxable gain?
Yes. Qualified selling expenses generally reduce amount realized and therefore reduce gain.

Does depreciation matter for land?
Bare land itself is not depreciable, but depreciable improvements and other farm assets may create recapture implications in a sale.

Should I rely only on an online calculator?
Use calculators for planning, then confirm with a CPA or tax attorney before closing because real transactions often include details that change tax treatment.

Educational content only and not legal, tax, or investment advice. Tax law changes, and your facts determine your result.