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.
