What actually counts as a capital gain on land, and when you might owe nothing
When you sell land for more than you paid for it, the profit is a capital gain. The IRS taxes that profit — but you do not automatically owe tax on the full amount. Your actual tax bill depends on how long you held the land, what you used it for, and whether you meet the rules for specific exemptions. Some people owe zero tax on a land sale because the exemption covers the entire gain.
The most common way to avoid capital gains tax is the primary residence exemption. If you sold a house you lived in for at least two of the last five years, you can exclude up to $250,000 of the gain from tax (or $500,000 if you are married filing jointly). This applies to the land the house sits on, not to vacant land or investment property.
If you do not may have access to for that exemption, your options narrow to timing the sale, using losses to offset gains, or structuring the transaction in a way that changes how the gain is taxed. None of these eliminate the tax entirely for most people — they reduce it.
Key Takeaways
- The primary residence exemption lets you exclude up to $250,000 of gain ($500,000 married) if you lived in the house for at least two of the last five years before selling.
- Long-term capital gains (land held over one year) are taxed at 0%, 15%, or 20% depending on your income, while short-term gains are taxed as ordinary income at rates up to 37%.
- You can reduce taxable gain by deducting the cost of improvements you made to the land, such as clearing, grading, or adding utilities.
- Charitable donations of land to may have access to organizations can eliminate the capital gains tax on that land entirely, though you must follow strict rules.
- Installment sales and like-kind exchanges are legal structures that can defer or spread out the tax, but they do not eliminate it.
How holding period changes your tax rate
The length of time you own the land before selling it determines whether your gain is taxed as long-term or short-term capital gain. This is one of the biggest differences in your final tax bill.
If you held the land for more than one year, it is a long-term capital gain. The federal tax rate is 0%, 15%, or 20% depending on your total income for the year. Most people in the middle income range pay 15%. If you held it for one year or less, it is a short-term capital gain, and it is taxed at your ordinary income tax rate — which can be as high as 37% for high earners.
This means waiting one year and one day to sell can cut your tax rate roughly in half. If you are thinking about selling land soon, check whether you are close to that one-year mark. If you are within a few months, delaying the sale might save thousands in federal tax alone.
Using improvements and basis to lower your gain
Your basis is what you paid for the land plus the cost of any improvements you made to it. The gain is the sale price minus your basis. The higher your basis, the lower your gain, and the lower your tax.
Many landowners forget to include improvements when they calculate basis. If you cleared trees, graded the land, added a driveway, installed utilities, or built a fence, those costs add to your basis. Keep receipts and invoices for all of these. If you paid a contractor $15,000 to clear and grade the land, that $15,000 reduces your taxable gain by $15,000.
Maintenance and repairs do not count — only improvements that add value or extend the life of the property. Mowing the grass or fixing a fence does not increase basis. But adding a new fence, installing a septic system, or putting in a well does.
When you file your tax return, you will report your original purchase price, add the cost of improvements, and subtract that total from the sale price. The IRS calls this amount on your return the "adjusted basis." If you cannot find old receipts, you can sometimes reconstruct them with bank statements or credit card records. The effort is worth it — every dollar of basis you can document reduces your taxable gain by a dollar.
Charitable donation as a way to eliminate the tax
If you donate land to a may have access to charity, you owe zero capital gains tax on that land. You also get a tax deduction for the fair market value of the land, which can offset other income.
The catch is that the charity must be a may have access to organization — typically a nonprofit focused on conservation, education, religion, or public benefit. The land usually must be used for the charity's mission. You cannot donate land to a charity and have them sell it when ready; the IRS will disallow the deduction.
You will need a professional appraisal of the land's value, and you must file Form 8283 with your tax return. The process takes time and costs money upfront (appraisal, legal paperwork), but if you were planning to sell anyway and the land is worth a lot, the tax savings can be substantial.
Talk to a tax professional and the charity before you donate. They can tell you whether the land qualifies and what paperwork you need.
Installment sales and spreading the gain over time
An installment sale is when the buyer pays you over several years instead of all at once. You report the gain over the years you receive payments, not all in the year of sale. This can lower your tax bill if it keeps you in a lower tax bracket each year.
For example, if you sell land for $500,000 and the buyer pays you $100,000 per year for five years, you report one-fifth of the gain each year. If reporting the entire gain in one year would push you into a higher tax bracket, spreading it out can save money.
The buyer must pay you interest on the unpaid balance — the IRS sets a minimum rate each month. You are also taking on the risk that the buyer stops paying. If that happens, you may have to foreclose and deal with a messy legal process.
Installment sales work best when you trust the buyer and the interest rate is acceptable to both of you. A tax professional can help you structure the deal so it qualifies and calculate whether it actually saves you money.
Like-kind exchanges and deferring the tax
A like-kind exchange (also called a 1031 exchange, after the tax code section) lets you sell one piece of land and buy another without paying capital gains tax on the sale. The tax is deferred until you eventually sell the new land without doing another exchange.
The rules are strict. You must identify the replacement land within 45 days of selling the first land, and you must close on it within 180 days. The replacement land must be "like-kind" — which for real estate means any real property can be exchanged for any other real property. Raw land can be exchanged for a building, or vice versa.
You cannot do a like-kind exchange if you are selling your primary residence. You also cannot touch the money from the sale — it must go to a may have access to intermediary (a third party) who holds it and uses it to buy the replacement property on your behalf.
Like-kind exchanges are complex and require a may have access to intermediary and a tax professional. If the rules are not followed exactly, the IRS will disallow the exchange and you will owe tax on the original sale plus penalties. But if you are planning to reinvest the money in other land anyway, an exchange can defer a large tax bill.
State and local taxes on land sales
Federal capital gains tax is only part of your bill. Most states also tax capital gains, and some cities do as well. State rates vary widely — from zero in states like Texas and Florida to over 13% in states like California and New York.
Some of the strategies that reduce federal tax also reduce state tax (like the primary residence exemption and charitable donations). Others do not. An installment sale, for example, defers federal tax but may not defer state tax in your state.
Before you sell, find out what your state and local capital gains tax rate is. A tax professional in your state can tell you which strategies will actually save you money after state and local taxes are included.
Frequently Asked Questions
Can I avoid capital gains tax by gifting land to my children instead of selling it?
Gifting avoids the capital gains tax at the time of the gift, but your children inherit the land at its current market value (called a "stepped-up basis"). If they sell it later, they owe tax only on gains after the gift date, not on the gain that happened while you owned it. This works well if you do not need the money and want to pass the land to family.
What if I sell land at a loss?
If you sell land for less than you paid for it, you have a capital loss. You can use it to offset capital gains from other sales in the same year. If your losses exceed your gains, you can deduct up to $3,000 of the loss against ordinary income, and carry forward any remaining loss to future years. This can reduce your overall tax bill.
Do I have to report the sale if the gain is small?
Yes. The IRS requires you to report all capital gains, regardless of size. You report it on Schedule D (Form 1040) when you file your tax return. Failing to report it can result in penalties and interest, even if the amount is small.
Can I use a 1031 exchange if I am selling raw land and buying a rental house?
Yes. Like-kind exchanges work for any real property — raw land, houses, commercial buildings, and more. You can exchange land for a rental house or vice versa. The key is that both properties must be held for investment or business use, not personal use.
Should I sell the land in December or January to reduce my tax?
The year you close the sale is the year you report the gain. If you close in December, you report it on that year's tax return. Delaying to January moves it to the next year's return. This can help if your income is lower in the next year, but it does not reduce the tax itself — it just spreads it across two tax years. A tax professional can run the numbers for your situation.