What Capital Gains Tax on Non-Primary Residences Actually Costs High-Net-Worth Investors
Sell a $3M investment property in California without planning, and you could write a check to the government for over $900,000. That's not a hypothetical scare tactic. It's the math when you stack a 20% federal long-term rate, 3.8% Net Investment Income Tax, 25% depreciation recapture, and California's 13.3% state rate. Capital gains tax on non-primary residences is one of the largest single-event tax exposures in a high-net-worth portfolio, and the gap between a planned sale and an unplanned one is routinely six figures.
This article covers the mechanics, the rates, the traps specific to sophisticated investors, and the strategies that actually move the needle.
2024 Capital Gains Tax Rates on Non-Primary Residences: What You're Actually Paying
The IRS taxes capital gains differently depending on how long you held the asset. Per IRS Topic No. 409, long-term gains on assets held more than one year are taxed at 0%, 15%, or 20% depending on taxable income. Short-term gains are taxed as ordinary income at rates up to 37%.
For most readers here, the relevant federal rate is 20%. But that's only the starting point.
2024 Federal Long-Term Capital Gains Rates
| Filing Status | 0% Rate | 15% Rate | 20% Rate |
|---|---|---|---|
| Single | Up to $47,025 | $47,026 – $518,900 | Over $518,900 |
| Married Filing Jointly | Up to $94,050 | $94,051 – $583,750 | Over $583,750 |
| Head of Household | Up to $63,000 | $63,001 – $551,350 | Over $551,350 |
The 20% bracket is where most FatFIRE-level investors land. Add the 3.8% Net Investment Income Tax (discussed below) and you're already at 23.8% federally before your state takes its share.
Short-term gains, by contrast, get taxed at ordinary income rates. Selling a property held less than 12 months at a $1M gain could cost $370,000 in federal tax alone at the top bracket. The holding period decision is rarely trivial.
How to Calculate Capital Gains Tax on an Investment Property Sale
The formula is straightforward. The execution is where investors leave money on the table.
Step 1: Establish your adjusted cost basis. Start with the purchase price. Add acquisition costs (title insurance, legal fees, recording fees), capital improvements made during ownership, and certain selling costs. Subtract any depreciation you've claimed or were entitled to claim. That last part catches people off guard.
Step 2: Calculate your realized gain. Sale price minus adjusted cost basis equals your realized gain. If you've owned a rental property for a decade and claimed $200,000 in depreciation, that $200,000 gets subtracted from your basis, which increases your taxable gain by the same amount.
Step 3: Separate ordinary recapture from capital gain. The depreciation portion is taxed at a maximum 25% rate as unrecaptured Section 1250 gain, per IRS Publication 544. The remaining gain is taxed at long-term capital gains rates.
A concrete example: You purchased a rental property for $1M in 2016, made $200,000 in capital improvements, claimed $200,000 in depreciation over eight years, and sold for $2.8M in 2024.
- Adjusted cost basis: $1M + $200K improvements - $200K depreciation = $1M
- Total realized gain: $2.8M - $1M = $1.8M
- Depreciation recapture: $200K taxed at 25% = $50,000
- Remaining long-term gain: $1.6M taxed at 20% = $320,000
- NIIT on $1.8M: 3.8% = $68,400
- Federal tax subtotal: approximately $438,400
- California state tax at 13.3%: approximately $239,400
- Total estimated tax: approximately $677,800
That's before factoring in any state NIIT equivalents or local taxes. The point is not to be exhaustive but to illustrate that the effective rate on a large real estate gain in a high-tax state can approach 40%.
Depreciation Recapture: The Tax Trap Most Rental Property Owners Underestimate
Depreciation recapture is the most commonly underestimated component of the tax bill on a rental property sale. Every year you've claimed depreciation as a deduction, you've reduced your cost basis. When you sell, the IRS recaptures those deductions at a maximum 25% federal rate, per IRS Publication 544. This is separate from, and in addition to, the standard long-term capital gains rate.
Residential rental property depreciates over 27.5 years. A $1M building (excluding land) generates roughly $36,364 in annual depreciation. Over 10 years, that's $363,640 in recapture exposure, taxed at 25%, producing a $90,910 federal tax bill on the recapture alone.
Cost segregation studies can accelerate depreciation into earlier years, which improves cash flow during ownership. The trade-off is that it also increases your recapture exposure at sale. If you've done a cost segregation study, model the recapture before you set a sale price.
One partial solution: a 1031 exchange defers both the capital gain and the recapture. If you die holding the replacement property, your heirs receive a stepped-up basis and the recapture obligation disappears entirely. That's not morbid planning. For large portfolios, it's the math.
How the Net Investment Income Tax Applies to High-Income Real Estate Investors
The Net Investment Income Tax adds 3.8% on top of federal capital gains rates for high earners. Per IRS guidance on IRC Section 1411, the NIIT applies to the lesser of net investment income or the amount by which modified adjusted gross income exceeds $200,000 for single filers or $250,000 for married filing jointly.
For most FatFIRE-level investors, the NIIT applies to the full gain. Combined with the 20% long-term rate, the effective federal ceiling on long-term real estate gains is 23.8%, before depreciation recapture and state taxes.
The NIIT does not apply to active trade or business income. Real estate professionals who qualify under IRS rules (750+ hours per year in real estate activities, more hours in real estate than any other profession) may be able to treat rental income as non-passive, which affects NIIT exposure. This is a fact-specific determination that requires documentation and a qualified tax advisor.
Installment sales offer one mechanism to manage NIIT exposure. Per IRS Publication 537, spreading gain recognition across multiple tax years can keep annual modified AGI below the NIIT threshold in some years, reducing the total NIIT paid. The math depends on the size of the gain and your other income sources.
1031 Exchanges on Non-Primary Residences: The Rules That Actually Matter
A 1031 exchange defers capital gains tax by reinvesting proceeds from one investment property into a like-kind replacement. The deferral is not permanent, but it can be rolled forward indefinitely through successive exchanges, and it disappears entirely at death through the stepped-up basis rules.
The compliance requirements are strict. Per IRC Section 1031, you must identify replacement property within 45 days of closing on the relinquished property and complete the acquisition within 180 days. The replacement property must be of equal or greater value to defer the entire gain. If you trade down in value, you recognize gain on the difference (called "boot").
Vacation homes require additional care. Under IRS Revenue Procedure 2008-16, a vacation or second home qualifies for a 1031 exchange only if you rented it at fair market value for at least 14 days in each of the two 12-month periods before the exchange and limited personal use to the greater of 14 days or 10% of the days rented. Miss that threshold and the property doesn't qualify. See the full analysis in our piece on vacation home tax implications.
Timing violations are unforgiving. Miss the 45-day identification window by one day and the entire gain becomes taxable in the year of sale. Use a qualified intermediary, document everything, and do not touch the sale proceeds directly.
1031 Exchange vs. Outright Sale vs. Installment Sale: After-Tax Comparison
Assumes $1.8M long-term gain, California resident, 20% federal + 3.8% NIIT + 13.3% state rate.
| Strategy | Tax Due at Sale | Capital Deployed | Notes |
|---|---|---|---|
| Outright sale | ~$677,800 | ~$1.12M | Full tax due in year of sale |
| 1031 exchange | $0 deferred | ~$1.8M | Tax deferred; basis carries over |
| Installment sale (5-yr) | ~$135,560/yr | Spread over 5 years | May reduce NIIT exposure in some years |
| Charitable remainder trust | Varies | Depends on structure | Avoids immediate CGT; income stream to donor |
The 1031 exchange preserves the most capital for reinvestment. The installment sale is useful when the replacement property market is unfavorable or when income smoothing matters more than full deferral.
The Primary Residence Exemption: Precise Rules for a Commonly Misapplied Exclusion
The Section 121 exclusion allows you to exclude up to $250,000 of gain ($500,000 for married filing jointly) from a home sale. Per IRS Publication 523, you must have owned and used the property as your principal residence for at least two of the five years immediately before the sale. The exclusion cannot be used more than once every two years.
The "2 of 5 years" test is not a continuous residency requirement. The two years can be non-consecutive, as long as they fall within the five-year window preceding the sale. However, both the ownership test and the use test must be satisfied independently.
For investors who convert a rental or vacation property to a primary residence, the exclusion applies only to the portion of gain attributable to the qualifying use period. Gain allocated to periods of non-qualifying use (time spent as a rental after May 6, 1997) is not excludable. This is a significant limitation that the original article glossed over.
The frequency restriction matters for investors who rotate primary residences. If you used the exclusion on a prior home sale within the past two years, you cannot use it again. Planning the sequence of sales in a multi-property portfolio requires mapping this restriction explicitly.
For the full mechanics of the primary residence exemption rules, including documentation requirements and partial exclusion calculations, see our dedicated analysis.
State Capital Gains Taxes: The Variable That Can Double Your Federal Bill
Federal rates are only part of the picture. The Tax Policy Center notes that when combining the 20% federal rate, 3.8% NIIT, and top state rates, high-net-worth investors in high-tax states can face effective marginal rates exceeding 37% on real estate gains.
State Capital Gains Tax Rates: Major Real Estate Markets (2024)
| State | Capital Gains Tax Rate | Notes |
|---|---|---|
| California | 13.3% (max) | Taxed as ordinary income; no preferential rate |
| New York | 10.9% (max) | Plus NYC local tax up to 3.876% for city residents |
| Oregon | 9.9% (max) | Taxed as ordinary income |
| Minnesota | 9.85% (max) | Taxed as ordinary income |
| Colorado | 4.4% | Flat rate |
| Texas | 0% | No state income tax |
| Florida | 0% | No state income tax |
| Nevada | 0% | No state income tax |
| Washington | 7% | Capital gains tax on gains over $262,000 (2024) |
| Illinois | 4.95% | Flat rate |
California's treatment deserves specific attention. The state taxes capital gains as ordinary income with no preferential long-term rate. For state-level capital gains taxation, California's reach extends to property located within the state regardless of where you live, and the state aggressively pursues residency-based claims on gains even after you've moved.
Out-of-state property ownership creates dual-state exposure. You typically owe tax to the state where the property is located and potentially to your state of residence, with a credit mechanism that usually (but not always) prevents full double taxation. The details depend on each state's specific rules. Our analysis of out-of-state property transactions covers the mechanics.
Entity Structure and Capital Gains: How You Hold the Property Changes the Math
Most high-net-worth investors hold real estate through LLCs or partnerships for liability protection. The capital gains treatment depends on how the entity is taxed, not just what type of entity it is.
Pass-through entities (LLC taxed as partnership, S-corporation): Gains pass through to individual owners, who pay tax at their personal long-term capital gains rates. The 1031 exchange is available at the entity level. This is generally the most tax-efficient structure for investment real estate.
C-corporations: Property held in a C-corp does not qualify for preferential long-term capital gains rates. The gain is taxed at the flat 21% corporate rate, and then again when distributed to shareholders as dividends. C-corps also cannot execute 1031 exchanges at the shareholder level. For most real estate investors, holding property in a C-corp is a structural mistake from a tax perspective.
Trusts: Irrevocable trusts reach the top capital gains rate (20%) at very low income thresholds (approximately $15,200 in 2024). The NIIT also applies to trusts at that same threshold. Holding appreciated real estate in an irrevocable trust without planning for the gain at sale can accelerate tax exposure significantly.
Tenants in common: Each co-owner reports their proportionate share of the gain. This structure allows individual owners to execute separate 1031 exchanges on their share, which can be useful when co-owners have different tax situations. See our analysis of tenants in common ownership structures for the full mechanics.
The entity structure decision should be made before acquisition, not at sale. Restructuring a property into a different entity type shortly before a sale can trigger its own tax events and draws IRS scrutiny.
Opportunity Zones and Other Advanced Deferral Strategies
The strategies available to high-net-worth investors go well beyond the 1031 exchange.
Qualified Opportunity Zones: Under IRC Section 1400Z-2, investors who reinvest capital gains from any asset sale into a Qualified Opportunity Fund within 180 days can defer the original gain until December 31, 2026. More importantly, any appreciation within the Opportunity Zone investment itself is permanently excluded from capital gains tax if held for at least 10 years. For investors with long time horizons and large real estate gains, this is one of the most powerful tax exclusion mechanisms currently available. The 2026 deferral deadline means the clock is running on the initial gain deferral benefit.
Installment sales: Spreading gain recognition across multiple years can reduce annual NIIT exposure and potentially keep income below the 20% capital gains threshold in some years. Per IRS Publication 537, the seller reports gain as payments are received. The buyer's creditworthiness and the seller's need for liquidity are the primary constraints.
Charitable remainder trusts (CRTs): A CRT allows you to contribute appreciated property to the trust, which sells it without immediate capital gains tax, then pays you an income stream for life or a term of years. The remainder passes to charity. You receive a partial charitable deduction at contribution. This works best when you have a genuine charitable intent and want to convert a low-basis asset into income.
Tax-loss harvesting across the portfolio: Capital losses from other investments offset capital gains dollar-for-dollar. If you're planning a large real estate sale, coordinate the timing with your investment advisor to identify loss-harvesting opportunities in your securities portfolio. This is basic portfolio coordination that often gets siloed between advisors.
For investors exploring strategies to minimize capital gains across asset classes, the same principles of timing, basis management, and deferral apply whether the asset is real estate or equities.
The Stepped-Up Basis: A Powerful Tool Under Ongoing Legislative Threat
Under IRC Section 1014, heirs who inherit appreciated real estate receive a stepped-up cost basis equal to the property's fair market value at the date of the decedent's death. This eliminates all accrued capital gains tax on the appreciation that occurred during the decedent's lifetime.
For a property purchased for $500,000 and worth $3M at death, the heir's basis is $3M. If they sell immediately, they owe no capital gains tax. The $2.5M in appreciation is permanently excluded from capital gains taxation.
This provision has been targeted for elimination in multiple recent federal budget proposals. The Biden administration's FY2022 and FY2023 budget proposals would have taxed unrealized gains at death above a $1M threshold. Neither passed, and the provision remains in effect as of 2024. But the legislative risk is real and recurring.
For FatFIRE-level investors holding large, highly appreciated real estate portfolios, the stepped-up basis is often the single most valuable estate planning tool available. The strategy of holding appreciated property through death (rather than selling and paying tax) and passing it to heirs with a clean basis is well-established. The risk is that Congress eventually changes the rules.
Prudent planning models the estate under both current law and a scenario where stepped-up basis is eliminated or capped. If your estate plan depends entirely on the stepped-up basis to avoid a multi-million-dollar tax bill, you need a contingency.
Reporting Capital Gains on Non-Primary Residences: What the IRS Requires
The IRS requires capital gains from real estate sales to be reported on Schedule D of Form 1040. Each individual transaction is detailed on Form 8949, which captures the property description, acquisition date, sale date, proceeds, cost basis, and any adjustments.
Depreciation recapture is reported separately on Form 4797 (Sales of Business Property) for rental properties. The unrecaptured Section 1250 gain flows to a specific line on Schedule D and is taxed at the 25% maximum rate.
Documentation requirements are not optional. Maintain records of the original purchase contract, closing statements, all capital improvement invoices, depreciation schedules, and the final sale closing statement. The IRS can audit returns up to three years after filing (six years if income is understated by more than 25%), and reconstructing a cost basis from memory years after the fact is both difficult and risky.
For refinancing and capital gains tax interactions, note that a cash-out refinance does not trigger a taxable event, but it does affect your equity position and can complicate basis tracking if loan proceeds are used for improvements.
For investors with international property investments or non-resident investor considerations, the reporting requirements layer in additional forms (Form 8938, FBAR, FIRPTA withholding) and the complexity increases substantially.
References
- Internal Revenue Service -- "Publication 523: Selling Your Home" (2024).
- Internal Revenue Service -- "Publication 544: Sales and Other Dispositions of Assets" (2024).
- Internal Revenue Service -- "Topic No. 409: Capital Gains and Losses" (2024).
- Internal Revenue Service -- "Questions and Answers on the Net Investment Income Tax (IRC Section 1411)" (2024).
- Internal Revenue Service -- "Publication 537: Installment Sales" (2024).
- Internal Revenue Service -- "IRC Section 1031: Exchange of Real Property Held for Productive Use or Investment."
- Internal Revenue Service -- "Revenue Procedure 2008-16: Safe Harbor for Vacation Homes in Like-Kind Exchanges" (2008).
- Internal Revenue Service -- "IRC Section 1014: Basis of Property Acquired from a Decedent."
- Tax Policy Center (Urban Institute & Brookings Institution) -- "How are capital gains taxed?" (2024).
- National Association of Realtors -- "Investment and Vacation Home Buyers Survey" (2023).
