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.
- The core farmland capital gains formula
- How to determine basis for purchased, inherited, and gifted farmland
- Adjustments that increase or decrease basis
- Short-term vs long-term treatment
- Federal rates, depreciation recapture, NIIT, and state tax
- Full worked example
- Special situations for farmland sales
- Tax planning strategies before you sell
- Recordkeeping checklist
- Frequently asked questions
1) The Core Formula for Farmland Capital Gains Tax
The calculation starts with three numbers: amount realized, adjusted basis, and gain.
- Amount Realized = Sale Price − Selling Expenses
- Adjusted Basis = Starting Basis + Capital Additions − Basis Reductions
- Capital Gain (or Loss) = Amount Realized − Adjusted Basis
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:
- Capital improvements (permanent drainage, irrigation systems, grading, access roads, qualifying fencing)
- Assessments for local improvements
- Certain restoration costs that are capitalized
Common decreases to basis:
- Depreciation deductions claimed on depreciable improvements
- Casualty loss deductions (when not fully restored to basis)
- Certain reimbursements or easement allocations depending on structure
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.
- Adjusted Basis = 250,000 + 5,000 + 20,000 = 275,000
- Amount Realized = 500,000 − 30,000 = 470,000
- Total Gain = 470,000 − 275,000 = 195,000
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
- Review basis records early: Recovering missing capital improvements can lower taxable gain.
- Consider timing: Closing date can affect long-term eligibility, annual income, bracket exposure, and NIIT risk.
- Model state tax impact: State differences can materially change net proceeds.
- Evaluate exchange or rollover strategies: Certain transactions may defer gain if statutory requirements are met.
- Coordinate with estate and succession planning: Sale timing vs transfer timing can produce different outcomes for families.
Good planning should happen before signing the definitive agreement. After closing, many options are limited or unavailable.
9) Farmland Sale Recordkeeping Checklist
- Original deed, settlement statement, and acquisition closing documents
- Invoices and proof of capital improvements over the ownership period
- Depreciation schedules from tax returns
- Prior casualty or easement documentation
- Listing agreement, broker commission statement, and closing statement for sale
- Any appraisals relevant to inherited or gifted basis
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.