LogoPropAIdir

Capital Gains Tax (Real Estate)

Tax on real property sale profits — long-term rates 0–20% apply after one year; Section 121 excludes up to $500,000 of gain on a primary residence sale.

businessPublished 2026/05/20

Capital gains tax on real estate is a federal (and typically state) income tax levied on the profit from the sale of real property. The taxable gain equals the sale price minus the property's cost basis — generally the original purchase price adjusted for improvements, selling costs, and depreciation previously deducted. The applicable tax rate depends primarily on how long the property was held and whether it is a primary residence, a second home, or an investment property.

Short-Term vs. Long-Term Capital Gains

The holding period at the time of sale determines whether gain is characterized as short-term or long-term:

Short-term (held one year or less): Taxed at ordinary income tax rates — up to 37% federally for the highest earners in 2025. Selling real estate after a short hold period substantially increases the tax cost.

Long-term (held more than one year): Taxed at preferential rates that are lower than ordinary income rates. The federal long-term capital gains rates are:

  • 0% for taxpayers with taxable income below approximately $47,025 (single) or $94,050 (married filing jointly) — thresholds adjusted annually
  • 15% for most middle- and upper-middle-income taxpayers
  • 20% for taxpayers in the highest income bracket

Additionally, the Net Investment Income Tax (NIIT) imposes an additional 3.8% on investment income — including real estate capital gains — for taxpayers above certain income thresholds ($200,000 single; $250,000 married filing jointly). State capital gains taxes vary; some states tax all gains as ordinary income, others at preferential rates, and a few states (Florida, Texas, Nevada) impose no income tax at all.

The Section 121 Primary Residence Exclusion

The most significant capital gains tax provision affecting homeowners is Section 121 of the Internal Revenue Code, which provides an exclusion of up to:

  • $250,000 for single filers
  • $500,000 for married couples filing jointly

To qualify, the taxpayer must have owned and used the property as their principal residence for at least 24 months of the 60-month period ending on the sale date. The ownership and use tests need not be satisfied simultaneously. The exclusion is available once every 24 months — meaning homeowners cannot use it repeatedly on rapid flips.

Partial exclusions are available when the full ownership/use test is not met due to a qualifying unforeseen circumstance — job relocation, health event, or other hardship — prorated to the fraction of the two-year test period satisfied.

Example: A couple purchases a home for $400,000 and sells four years later for $850,000, realizing a $450,000 gain. With the $500,000 exclusion, the entire gain is excluded — zero capital gains tax.

Moveorinvest helps homeowners model sale timing scenarios incorporating the Section 121 exclusion. The Offer Haus assists sellers in preparing offer analysis that factors in after-tax proceeds.

Investment Property Capital Gains

For investment properties — rental houses, commercial buildings, land — no Section 121 exclusion applies. The full gain is taxable, subject to long-term rates if held more than one year. Two additional layers complicate investment property sales:

1. Depreciation recapture: Investment property owners claim annual depreciation deductions (over 27.5 years for residential, 39 years for commercial). At sale, the IRS recaptures these deductions by taxing the amount depreciated at a maximum federal rate of 25% — higher than the standard long-term capital gains rate. This unrecaptured Section 1250 gain must be separately calculated and reported.

2. Net Investment Income Tax: As noted, the additional 3.8% NIIT applies to net investment income for higher-income taxpayers, increasing the effective rate on long-term gains to 23.8% federally at the top rate (20% + 3.8%), plus state taxes.

1031 Exchange as Deferral Strategy

A 1031 exchange allows investment property sellers to defer capital gains recognition by reinvesting the sale proceeds into a like-kind replacement property within specified time limits (45 days to identify, 180 days to close). The deferred gain is not eliminated — it carries over into the replacement property's basis — but deferral preserves capital for deployment into new investments.

Sophisticated investors may execute successive 1031 exchanges throughout their careers, perpetually deferring gain recognition. If the property is held until death, heirs receive a stepped-up basis, effectively eliminating the accumulated deferred gain.

REI-litics models after-tax returns for investment property dispositions, incorporating depreciation recapture and 1031 exchange scenarios. See AI tools for investor deal analysis for platforms that automate after-tax disposition analysis.

Cost Basis and Gain Calculation

Accurate gain calculation requires tracking the property's cost basis from acquisition through disposition. Starting from the original purchase price, basis is:

  • Increased by: Capital improvements (adding a room, replacing the roof, installing a new HVAC system)
  • Decreased by: Depreciation deductions claimed on investment property
  • Adjusted by: Selling costs and acquisition costs that were capitalized rather than expensed

Poor record-keeping of capital improvements is a common cause of overstated capital gains — and therefore overpaid taxes. Maintaining records of every capital expenditure throughout the ownership period is essential.

State Taxes

Most states with income taxes also tax capital gains on real estate. State rates vary from nominal amounts (e.g., 3% flat in some states) to rates approaching or matching ordinary income tax rates (13.3% in California for the highest bracket). In high-state-tax markets, total capital gains tax — federal plus state — can approach or exceed 35% on investment property gains. This makes tax planning, including 1031 exchanges and installment sales, particularly valuable in high-tax states.

For investors comparing fundhomes vs lofty or other platform investments, after-tax returns must account for both federal and state capital gains obligations on the platform's eventual property dispositions.

FAQs

What is the Section 121 exclusion?
Section 121 of the Internal Revenue Code allows homeowners to exclude up to $250,000 of capital gain ($500,000 for married couples filing jointly) from the sale of a primary residence, provided they owned and used the property as their principal residence for at least two of the five years preceding the sale. The exclusion is available once every two years and does not require purchasing a replacement property.
What is the difference between short-term and long-term capital gains?
Short-term capital gains arise from property held one year or less and are taxed at ordinary income tax rates — the same rates as wages and salary, which can reach 37% federally. Long-term capital gains arise from property held more than one year and are taxed at preferential rates of 0%, 15%, or 20% depending on taxable income. For most real estate investors, a one-year-plus holding period is essential to achieving long-term capital gains treatment.
What is depreciation recapture and how is it taxed?
When an investment property is sold, the IRS requires 'recapture' of depreciation deductions previously taken, taxing the recaptured amount at a maximum rate of 25% — higher than the standard long-term capital gains rate. For example, if an investor claimed $80,000 of depreciation on a rental property, up to $80,000 of the sale gain is taxed at up to 25%, with any remaining gain taxed at the standard long-term capital gains rate.
Does a 1031 exchange eliminate capital gains tax?
No — it defers it. A 1031 exchange allows the taxpayer to reinvest sale proceeds into a like-kind replacement property and defer capital gains recognition until the replacement property is eventually sold outside a 1031 exchange. If the taxpayer dies while holding the replacement property, heirs receive a stepped-up cost basis, potentially eliminating the deferred gain entirely. But if the replacement property is sold without another exchange, the accumulated deferred gain becomes taxable.
Are there capital gains taxes on inherited real estate?
Inherited property receives a stepped-up cost basis — the property's fair market value on the date of the decedent's death — regardless of what the decedent originally paid. This means heirs who sell inherited property shortly after inheriting it typically owe little or no capital gains tax. The stepped-up basis is a significant estate planning tool for appreciated real estate.

Related Terms

Related Items