How to Avoid Capital Gains Tax When You Sell Land
Selling land can trigger a large capital gains tax bill, especially if you have owned it for years. The good news is you have several legal ways to reduce, defer, or even avoid that tax.
This guide covers six IRS-allowed strategies and the exact 2026 tax rates and thresholds you need. It also includes a worked example comparing an installment sale with a 1031 exchange.
The numbers are realistic but based on a hypothetical mid-size land parcel, not a real sale.
How Capital Gains Tax Works on a Land Sale
Long-term capital gains tax applies when you sell land you owned for more than one year. The rate depends on your taxable income and filing status. In 2026, single filers pay 0% up to $49,450, 15% up to $545,500, and 20% above that, according to the IRS. Married couples filing jointly pay 0% up to $98,900, 15% up to $613,700, and 20% above that. Land held one year or less is taxed as short-term gain, at your regular income tax rate instead.
Your taxable gain equals the sale price minus your basis. Basis is what you paid for the land, plus eligible improvement costs. You can estimate your exact gain and tax with ModernWallet's capital gains tax calculator. Many sellers assume the Section 121 home-sale exclusion will help. That exclusion is worth $250,000 (single) or $500,000 (married), but generally does not apply to a standalone land sale. The exclusion can cover adjacent vacant land in limited cases. You must sell the land and the home within two years of each other. You must also treat both sales as one transaction, per IRS Publication 523.
High earners may also owe the Net Investment Income Tax, a 3.8% surtax on investment income. It applies once your MAGI passes $200,000 (single) or $250,000 (joint), per IRS Topic 559. You report and pay the capital gains tax with your federal return for the year of the sale. If your gain is large, you may need to make quarterly estimated tax payments to avoid an underpayment penalty.
1031 Exchanges: Defer Tax by Reinvesting in Real Estate
A 1031 exchange defers capital gains tax by trading your land for another investment property instead of cash. Since the 2017 tax law changes, Section 1031 only applies to real property, not personal or business equipment. Vacant land qualifies if you held it for investment or business use, per the IRS. Land you use personally, like a family recreation lot, does not qualify. Land held by a dealer for quick resale does not qualify either.
You must follow strict deadlines to complete the exchange. You have 45 days after the sale to identify a replacement property in writing. You then have 180 days total to close on it. A qualified intermediary must hold the sale proceeds. You cannot touch the cash yourself. The gain is not eliminated, only delayed. It carries into the new property's basis and gets taxed later, unless you hold that property until death.
Installment Sales: Spread the Tax Over Several Years
An installment sale spreads your capital gains tax over the years you receive payment, instead of all at once. You act as the lender and the buyer pays you over time, often with interest. Under IRC Section 453, you report gain only as you collect principal each year. This can keep you in a lower tax bracket than a single lump-sum sale would.
A deferred sales trust works in a similar way. A third-party trust sells the land, holds the proceeds, and pays you over time under a separate contract. This can offer more flexibility than a standard installment sale, but it adds legal and trustee fees. Both approaches carry buyer or trustee default risk, so read any note or trust agreement carefully before you sign.
Offset the Gain With Losses or a Charitable Donation
You can lower your land-sale tax bill by selling other investments at a loss in the same year. Capital losses offset capital gains dollar for dollar, on your Schedule D. If your losses exceed your gains, you can deduct up to $3,000 against ordinary income each year. Any extra loss carries forward to future tax years.
Donating the land to a qualified charity removes the capital gains tax on that gift entirely. You never sell the land, so there is no taxable gain to report. You may also claim a charitable deduction for the land's fair market value. IRS rules cap that deduction based on your adjusted gross income. This route only makes sense if you are ready to give up the asset for good.
Let Your Heirs Inherit the Land Instead of Selling
Land passed to heirs gets a stepped-up basis, which can wipe out the capital gains tax on years of appreciation. Under IRC Section 1014, your heirs' basis becomes the land's fair market value on your date of death. Gains that built up during your lifetime are never taxed, per the IRS. If your heirs sell soon after inheriting, their taxable gain is often close to zero.
This strategy works best as part of a broader estate plan, not a standalone move. Large estates can still owe federal estate tax on the total value above the exemption amount. Use ModernWallet's estate tax calculator to check where your estate stands, and see our estate planning guide for the full picture. Talk with an estate planning attorney before you rely on this approach for a large or complex property.
Installment Sale vs. 1031 Exchange: A Worked Example
An installment sale can sometimes beat a 1031 exchange on total tax paid. That is true even though a 1031 exchange defers all the tax today. Here is a hypothetical example, not a real transaction. A single filer bought 40 acres of raw land years ago for $150,000. She now sells it for $650,000, a $500,000 gain, and she has $80,000 in other taxable income that year. With a 1031 exchange, she owes $0 in tax the year of the sale. She must identify a replacement property within 45 days and close within 180 days. The $500,000 gain rolls into the new property's basis and stays deferred. She is locked into owning more real estate, with its own costs and management.
With a 10-year installment sale at $50,000 of gain per year, her federal tax works out differently. Each year, her taxable income totals $130,000 ($80,000 plus $50,000 of gain). That stays inside the 15% capital gains bracket the whole time. That comes to about $7,500 a year in capital gains tax, or $75,000 total over 10 years. She also stays under the $200,000 NIIT threshold every year, so she owes no 3.8% surtax. If she sold everything at once instead, she would owe roughly $91,000 in federal tax, including NIIT.
The installment sale saves about $16,000 in this example. But the 1031 exchange can still win long term. If she holds the new property until death, her heirs get a full step-up in basis. The deferred gain then disappears for good. Model your own numbers with ModernWallet's capital gains tax calculator. Track how each choice affects your net worth over time.
Frequently asked questions
Do I have to pay capital gains tax when I sell vacant land?
Yes, in most cases. The IRS taxes the profit from a land sale as a capital gain, whether the land sits vacant or has a structure on it. The rate depends on how long you owned it and your taxable income.
What is the capital gains tax rate on a land sale in 2026?
For 2026, long-term rates are 0%, 15%, or 20%, based on your taxable income. Single filers pay 0% up to $49,450, 15% up to $545,500, and 20% above that. Married couples filing jointly pay 0% up to $98,900, 15% up to $613,700, and 20% above that. High earners may also owe the 3.8% Net Investment Income Tax.
Does the home-sale exclusion apply to a land sale?
No, not on its own. The Section 121 exclusion of $250,000 (single) or $500,000 (married) generally applies only to your main home. It can cover adjacent vacant land, but only if you sell the land and the home within two years of each other and treat both sales as one transaction.
Can I use a 1031 exchange on land I use for personal recreation?
No. Section 1031 only covers real property held for investment or business use. Land you use personally, such as a family hunting or camping lot, does not qualify. Land held by a dealer for resale does not qualify either.
How much can an installment sale actually save me?
It depends on your income and the sale price, but it can be significant. Spreading a large gain over several years can keep you in a lower tax bracket and under the NIIT threshold each year. In our worked example, an installment sale saved about $16,000 in federal tax compared with selling everything at once.
What happens to capital gains tax if I leave land to my heirs instead of selling it?
Your heirs get a stepped-up basis equal to the land's fair market value on your date of death. This can erase the capital gains tax on any appreciation that built up during your lifetime. If they sell soon after inheriting, their taxable gain is often close to zero.
Sources
We prioritize primary sources for rules, formulas, rates, limits, and definitions. See our calculator methodology and editorial policy.