Land / lots / acreage

Capital Gains Tax on Selling Land: Calculator With Social Security and Medicare

Short answer: raw land has no depreciation and no home-sale exclusion, so the whole gain, sale price minus selling costs minus your basis, is long-term capital gain if you held it more than a year: 0%, 15% or 20% federally, 3.8% NIIT at higher incomes, plus state tax.

Land sales are often big, one-time and held for decades, which is exactly the profile that sets off the Social Security tax torpedo and a Medicare premium jump. The calculator shows that cost next to the tax.

By Hans Goldstein, EA, Enrolled Agent, enrolled to practice before the IRS. Updated December 2026.

2027 federal brackets (IRS Rev. Proc. 2026-35), SSA Section 86 thresholds, CMS 2027 Medicare premiums and IRMAA tiers, state rates as of December 2026. Estimates, not tax advice.

Worked example

A single landowner, age 66, sells raw land for $700,000 that cost $150,000 decades ago, with $42,000 of selling costs. They collect $32,000 of Social Security and have $45,000 of other income.

Worked exampleAmount
Taxable gain$508,000
Federal tax on the gain$77,068
Net investment income tax (3.8%)$14,448
California tax on the gain$48,783
Tax most calculators show$140,298
Extra tax on Social Security the sale makes taxable ($0 more taxable)$0
Medicare Part B + D surcharge two years later$7,186
Real cost$147,484

How land is taxed when you sell

Land is a capital asset. If you held it more than a year, your gain is long-term. Because land is not depreciable, there is no recapture layer and no 25% rate: the gain is taxed at 0%, 15% or 20% based on your total taxable income, plus 3.8% NIIT when income exceeds $200,000 (single) or $250,000 (married), plus state tax. If you held it a year or less, the gain is ordinary income at up to 37%.

When the IRS can treat land sales as ordinary income

If you subdivide, develop and sell lots as part of a business, the profit can be ordinary income, taxed at your regular rate and not eligible for installment treatment. Holding land mainly for sale to customers makes you a dealer. A raw land sale in California carries additional local transfer taxes and, often, Williamson Act or rezoning questions; a CPA should confirm your status before you sign.

Why a big land sale shows up in Medicare two years later

A land sale is usually the largest single-year income event of a retiree's life. Adjusted gross income that year is the base for Medicare IRMAA surcharges two years later, and each tier adds hundreds of dollars a month. Spreading with an installment note, or using a Section 1031 exchange, can keep it flat. The spread comparison in the calculator shows the tradeoff with your numbers.

Frequently asked questions

How is capital gains tax on land calculated?

Sale price minus selling costs minus your adjusted basis (purchase price plus improvements and closing costs) is the gain. Held more than a year, it is taxed at 0%, 15% or 20% federally, plus 3.8% NIIT for higher incomes, plus state tax.

Is there an exclusion for selling land?

No. The $250,000/$500,000 exclusion only applies to your main home. You can sometimes include land that is part of the home lot if it is sold with the house.

How do I avoid capital gains tax on land?

You cannot avoid it, but you can defer or spread it. A Section 1031 exchange, an installment sale, or an Opportunity Zone investment are the usual options; each has rules. If you inherited it, a stepped-up basis may remove most of the gain.

Do I pay capital gains on inherited land?

Only on gain since the date the owner died, because your basis is the value at death. The sale is automatically long-term.

Does selling land affect my Social Security?

The gain raises provisional income, which can make up to 85% of your Social Security taxable that year. The calculator shows your extra taxable benefit and the extra tax.

Does the buyer pay any of the tax?

No. The buyer may withhold a share of your estimated gain tax at closing (for example, FIRPTA for foreign sellers or state nonresident withholding), but the tax is yours.

Run it on your real return

A free 15-minute call with Hans Goldstein: which levers fit your sale, what the Social Security and Medicare effects look like on your actual numbers, and what to ask your CPA.

Book 15 minutes 213-414-2808

Educational estimate, not tax, legal or financial advice. Figures use 2027 federal brackets and thresholds (IRS Rev. Proc. 2026-35), the Social Security benefit-taxation rules in IRC Section 86, CMS 2027 Medicare premiums and IRMAA tiers, and state rates as of December 2026 (California uses the FTB 2026 schedule until the 2027 schedule is published). Later Medicare years hold the 2027 tiers flat. Your CPA should confirm any figure before you act. By Hans Goldstein, EA, Enrolled Agent (enrolled to practice before the IRS), reviewed December 2026.

Run my numbers Book 15 min Call

Hans Goldstein is an Enrolled Agent, enrolled to practice before the Internal Revenue Service. Not affiliated with or endorsed by the IRS. General education, not tax or legal advice for your situation.