You cannot avoid capital gains tax entirely, but you can reduce it or delay paying it

If you sell land for more than you paid for it, you owe federal tax on the profit — there is no legal way around that. But the tax code does offer several routes to lower the amount you owe or push the payment into a future year. Which ones work for you depends on how long you owned the land, whether you lived there, and what you do with the money after the sale.

The most common strategies are holding the land for over a year (to may have access to for lower long-term rates), using the primary residence exclusion if you lived there, and reinvesting the proceeds into a like-kind property through a 1031 exchange. Each has specific rules and important date. Understanding which explore to your situation can save thousands of dollars.

Key Takeaways

  • Land held for more than one year qualifies for long-term capital gains rates, which are lower than short-term rates and depend on your total income.
  • If you lived on the land as your primary home for at least two of the last five years, you can exclude up to $250,000 of gain ($500,000 if married filing jointly) from tax.
  • A 1031 exchange lets you reinvest the sale proceeds into another property and defer all capital gains tax, but you must identify the new property within 45 days and close within 180 days.
  • Installment sales spread the gain across multiple years, which may lower your tax bracket and reduce what you owe in the year of sale.
  • Charitable donations of land can eliminate capital gains tax on that property, though you lose the sale proceeds.

Holding the land for over one year to may have access to for long-term rates

The IRS taxes land sales at two different rates depending on how long you owned it. If you sell within one year of purchase, the profit is short-term capital gain and taxed as ordinary income — at your regular tax bracket, which could be 10%, 22%, 24%, 32%, 35%, or 37%. If you hold for more than one year, it becomes long-term capital gain and the rate drops to 0%, 15%, or 20% depending on your income.

For most people, the difference is substantial. A $50,000 gain taxed as short-term income at the 24% bracket costs $12,000. The same gain as long-term capital gain at the 15% rate costs $7,500 — a $4,500 savings. The longer holding period also gives you time to plan other strategies and spreads your income across more tax years.

The one-year clock starts the day after you purchase the land. If you bought on March 15, 2023, you can sell on March 15, 2024 or later and may have access to for long-term treatment. Selling on March 14, 2024 would still be short-term. This is one of the simplest ways to reduce tax if you have flexibility on when to sell.

Using the primary residence exclusion if you lived on the land

If the land was your primary home — the place you actually lived — you may be able to exclude up to $250,000 of the gain from tax ($500,000 if you are married filing jointly). This is one of the largest tax breaks available and applies to houses, condos, and some mobile homes on land you owned.

To may have access to, you must have owned the property and lived there as your main home for at least two of the five years before the sale. The two years do not have to be consecutive. If you owned the land for ten years but only lived there for two of those years, you still may have access to. If you are married and both spouses meet the two-year test, you can exclude $500,000 together — but only if you file jointly and have not used this exclusion in the past two years.

You report this exclusion on Schedule D (Form 1040) when you file your tax return. You do not need to do anything special when you sell — just keep records showing when you bought, when you sold, and the dates you lived there. If you have a mortgage statement, utility bills, or a driver's license with that address, those documents prove occupancy if the IRS ever asks.

Reinvesting through a 1031 exchange to defer all tax

A 1031 exchange is a way to sell one property and buy another without paying capital gains tax on the sale — you straightforward defer the tax until you eventually sell the replacement property without doing another exchange. The land you sell and the land you buy must both be held for investment or business use (your primary home does not may have access to). You can exchange raw land for a rental property, a commercial building, or another investment property.

The process has strict timing rules. After you close the sale of your original land, you have 45 days to identify the replacement property in writing to a may have access to intermediary (a neutral third party who holds the money). You then have 180 days total from the sale to close on the replacement property. If you miss either important date, the entire gain becomes taxable in the year of sale.

You must use a may have access to intermediary — you cannot hold the sale proceeds yourself, even for one day. The intermediary charges a fee (typically $500 to $1,500) and handles the paperwork. You report the exchange on Form 8824 when you file your tax return. The replacement property must be equal or greater in value than the property you sold; if you sell for $200,000 and buy for $150,000, you owe tax on the $50,000 difference.

Spreading the gain across years with an installment sale

An installment sale means the buyer pays you over time instead of all at closing. You report the gain proportionally across each year you receive payments, which can lower your taxable income in the year of sale and may drop you into a lower tax bracket. If you would normally owe 24% tax on a $100,000 gain, but an installment sale spreads it across four years, you might owe 22% or 15% instead.

You report an installment sale on Form 6252. The buyer typically makes a down payment and then pays the rest over two to ten years, with interest. You act as the lender. This works best if you do not need all the money when ready and the buyer has good credit or you are willing to take the risk of non-payment.

The downside is that you carry the risk if the buyer defaults, and you must report interest income each year in addition to the capital gain. If the buyer stops paying, you may have to foreclose to recover the property or the remaining balance. Consult a tax professional or real estate attorney before structuring an installment sale, because the rules around what qualifies are detailed.

Donating the land to charity to eliminate tax on that property

If you donate land to a may have access to charity, you owe no capital gains tax on the donation. You also receive a charitable deduction on your tax return equal to the fair market value of the land, which reduces your taxable income for that year. The combination can be valuable if you have a large gain and want to support a cause.

The charity must be a may have access to organization — typically a nonprofit, religious institution, or government agency. The land must be used for the charity's mission (a land trust, for example, or a school). You cannot donate to a private individual or a for-profit business and claim the deduction.

You will need a professional appraisal of the land's value, which costs $300 to $1,000 or more depending on the property. You report the donation on Form 8283 and attach the appraisal. The downside is that you receive no cash — the charity owns the land. This strategy works if you want to support a cause and have other income or assets to live on.

Timing the sale to manage your tax bracket in that year

Capital gains tax depends partly on your total income for the year. If you are near the edge of a tax bracket, selling the land in a year when your other income is lower can keep you in a lower bracket and reduce the tax rate on the gain. Long-term capital gains rates jump from 15% to 20% at higher income levels, so timing matters.

For example, if you are married filing jointly and your other income is $89,000, you are near the top of the 15% long-term capital gains bracket (which ends at $89,250 for 2024). A $50,000 gain would push $39,750 into the 20% bracket. But if you defer the sale to a year when your other income is only $40,000, the entire $50,000 gain stays in the 15% bracket, saving you about $2,500 in tax.

This strategy requires flexibility on when you sell and knowledge of your expected income for the year. A tax professional can model different sale dates and show you the tax impact of each. It works best if you control when the sale happens — if you are forced to sell quickly, timing becomes less relevant.

Frequently Asked Questions

Can I avoid capital gains tax by reinvesting the money in the stock market?

No. Reinvesting the proceeds does not reduce or defer the tax. You owe capital gains tax on the land sale regardless of what you do with the money afterward. A 1031 exchange is different — it specifically defers tax by reinvesting in another property, but the stock market does not may have access to.

What if I sell at a loss — do I get a tax break?

Yes. If you sell land for less than you paid for it, you have a capital loss. You can use it to offset other capital gains from the same year. If losses exceed gains, you can deduct up to $3,000 of the excess loss against ordinary income, and carry unused losses forward to future years.

Do I owe state capital gains tax in addition to federal tax?

Most states do not have a separate capital gains tax, but some do — California, New York, Washington, and a few others. State tax rates and rules vary widely. Check your state's tax agency website or speak with a tax professional to learn what you owe where you live.

If I inherited the land, do I still owe capital gains tax when I sell?

Inherited property receives a "step-up in basis," meaning the IRS treats your cost basis as the fair market value on the date of death, not what the original owner paid. If you inherit land worth $200,000 and sell it for $210,000 a year later, you owe tax only on the $10,000 gain, not the full $210,000.

Can I use multiple strategies together — like a 1031 exchange and the primary residence exclusion?

No. The primary residence exclusion and 1031 exchange cannot be used on the same property in the same transaction. If you lived on the land, you use the residence exclusion. If you held it for investment, you use the 1031 exchange. You choose the one that saves you more tax.