Taxes

Capital Gains Tax on Selling Land: Rates, Dealer Traps, and the 1031 Option

Land is the cleanest asset in the capital gains code and the one with the nastiest trap. No depreciation means no recapture, but subdivide it the wrong way and the IRS taxes your whole profit as ordinary income. Here's how land sales are taxed and why raw land is one of the best things to exchange out of.

7 min read·Updated September 2026·By Leah Badach, CES
Key takeaways

The basic tax on a land sale

Gain equals net sale price minus your basis (purchase price plus capitalized costs like surveys, legal fees, and improvements such as grading or utilities). Held over a year, the gain is long-term capital gain at 0%, 15%, or 20%. Add the 3.8% net investment income tax if your income exceeds the threshold, and your state's rate. No building means no depreciation, which means the 25% recapture layer that hits rental sellers doesn't exist here. Estimate your bill in the capital gains calculator.

Carrying costs matter: property taxes and interest on investment land can be capitalized into basis under §266 by election, year by year, instead of being deducted. If you've been holding land that produced no income, ask your CPA whether those elections were made. It's a common missed basis adjustment.

The dealer trap

Property 'held primarily for sale to customers in the ordinary course of business' is inventory, not a capital asset. Dealers pay ordinary income rates (up to 37%) plus self-employment tax in some cases, and dealer property is excluded from §1031 by §1031(a)(2). Courts weigh the number and frequency of sales, the extent of subdividing and improvements, marketing effort, and your stated purpose. One parcel held ten years and sold once is investment. Twelve lots sold over two years with a sales office is a business.

The Section 1237 safe harbor for subdividing

§1237 lets a non-dealer subdivide and sell lots while keeping capital gain treatment if: you held the land at least five years (unless inherited), you made no substantial improvements that materially increased lot value (roads and utilities can be substantial), and you haven't held other real estate primarily for sale. Sell more than five lots from the same tract and 5% of the price on sales beyond that is ordinary income. It's narrow but useful for a family that inherited acreage and wants to sell it in pieces.

Land in a 1031 exchange

Any U.S. real property held for investment is like-kind with any other. Raw land exchanges into apartments, a warehouse, a net-leased retail building, or a DST interest without tax. This is one of the highest-value uses of §1031 because land typically produces nothing while you hold it; the exchange converts a paper gain into income-producing property with the full pre-tax equity intact.

Two land-specific points. First, you need investment intent: hunting land you used personally, or a lot you bought to build your own home on, can fail the held-for-investment test. Second, going the other direction (income property into land) also works, and some investors do it to hold land through a development cycle, though you give up depreciation on the replacement.

Farmland follows the same rules, with one wrinkle: the farmhouse you live in is personal-use and gets §121 treatment, so a farm sale is often split between the residence and the acreage.

Mineral, water, and timber rights

Perpetual interests in minerals, water, and standing timber are generally real property under state law and can be exchanged. Term-limited interests and production payments are not. If your land sale includes royalties or a working interest, see 1031 exchanges of mineral rights and royalties.

Frequently asked questions

What is the capital gains tax rate on selling land?

Land held more than a year is taxed at long-term capital gains rates of 0%, 15%, or 20%, plus the 3.8% net investment income tax if applicable and state income tax. There is no depreciation recapture on land.

Can I do a 1031 exchange on vacant land?

Yes. Land held for investment is like-kind with any other U.S. investment real estate, so you can exchange raw land into rental property, commercial buildings, or a DST interest and defer the gain.

How do I avoid being treated as a dealer when I subdivide land?

Meet the Section 1237 safe harbor: hold the land at least five years, make no substantial improvements, and keep sales limited. Beyond that, keep the activity passive and document your investment intent.

Is inherited land taxed when I sell it?

Only on appreciation after the date of death, because inherited property takes a stepped-up basis. Selling inherited land soon after receiving it usually produces little taxable gain.


Sitting on land that produces nothing?

Exchanging it into property that pays is one of the cleanest 1031 plays there is. Let's look at your parcel.

See If I Qualify