Tax Implications of Selling vs Holding an Investment Property
This guide is part of our problem property resource center.
Disclaimer: This article provides general information about real estate tax concepts. It is not tax advice. Tax law is complex, changes frequently, and varies by individual circumstance. Consult a qualified CPA or tax attorney before making any decisions based on the information below.
Every decision to sell or hold an investment property has a tax dimension that most investors either ignore or oversimplify. The difference between short-term and long-term capital gains can be tens of thousands of dollars on a single deal. Depreciation recapture catches landlords off guard. And strategies like the 1031 exchange can defer taxes indefinitely if used correctly.
Understanding these rules will not make you a tax expert, but it will help you have smarter conversations with your CPA and avoid costly surprises at tax time. More importantly, it will help you make better hold-or-sell decisions by factoring in the after-tax reality of each exit.
Capital gains basics: short-term vs long-term
When you sell an investment property for more than you paid, the profit is a capital gain. How that gain is taxed depends almost entirely on how long you held the property.
| Holding period | Tax classification | Tax rate |
|---|---|---|
| Less than 12 months | Short-term capital gain | Taxed as ordinary income (22-37% federal) |
| 12 months or more | Long-term capital gain | 0%, 15%, or 20% depending on income bracket |
The spread between short-term and long-term rates is significant. An investor in the 32% ordinary income bracket who sells a property 11 months after purchase pays 32% on the gain. If they had waited one more month, the rate drops to 15%. On a $50,000 gain, that one month of patience saves $8,500 in federal taxes.
There is also the Net Investment Income Tax (NIIT): an additional 3.8% surtax on investment income for individuals earning above $200,000 (single) or $250,000 (married filing jointly). This applies to both short-term and long-term gains, making the effective maximum long-term rate 23.8%.
Calculating your taxable gain
Your capital gain is not simply what you sold for minus what you paid. The IRS allows you to reduce your gain by accounting for improvements and transaction costs.
The formula:
- Sale price (what the buyer paid you)
- Minus selling costs (agent commissions, closing costs, transfer taxes)
- Equals amount realized
- Minus adjusted basis:
Your adjusted basis starts with your original purchase price, plus acquisition costs (title insurance, recording fees, attorney fees at purchase), plus the cost of capital improvements (new roof, kitchen renovation, added square footage), minus any depreciation claimed or allowable. The result is your taxable capital gain.
Keep every receipt. Capital improvements reduce your taxable gain dollar for dollar. A $30,000 kitchen renovation reduces your gain by $30,000. But only if you can prove it. Maintain records of every improvement, including contractor invoices, materials receipts, and before/after photos.
Note the distinction between improvements and repairs. Improvements add value or extend the life of the property (new HVAC system, roof replacement, addition). Repairs maintain the current condition (fixing a leaky faucet, patching drywall). Improvements increase your basis and reduce capital gains at sale. Repairs are deducted as expenses in the year they occur if the property is a rental.
Depreciation recapture: the tax surprise
If you held the property as a rental and claimed depreciation deductions, the IRS wants some of that back when you sell. This is called depreciation recapture, and it is taxed at a flat 25%, regardless of your income bracket.
Here is how it works with a concrete example:
- You purchased a rental property for $200,000 (land: $40,000, building: $160,000)
- Over 10 years, you claimed $58,182 in depreciation ($160,000 / 27.5 years x 10 years)
- Your adjusted basis is now $141,818 ($200,000 - $58,182)
- You sell for $280,000
- Total gain: $138,182 ($280,000 - $141,818)
- Of that gain: $58,182 is depreciation recapture (taxed at 25% = $14,546)
- The remaining $80,000 is capital gain (taxed at 15% long-term rate = $12,000)
- Total federal tax: $26,546
Many landlords are surprised by depreciation recapture because they viewed depreciation as a permanent tax benefit. It is not. It is a deferral. You get the deduction during your ownership period, and you pay it back at sale. The benefit is that you had use of that money during the holding period and the recapture rate (25%) is often lower than the ordinary income rate you would have paid without the depreciation deduction.
Depreciation is not optional. Even if you did not claim depreciation on your rental property, the IRS calculates recapture based on the depreciation you were allowed to take, not what you actually took. Not claiming it means you lose the annual deduction but still owe the recapture.
1031 Exchange: deferring taxes indefinitely
Section 1031 of the Internal Revenue Code allows you to sell an investment property and defer all capital gains taxes by purchasing a replacement property of equal or greater value. Done correctly, you never pay capital gains on the sale. Done repeatedly over a career, you can defer millions in taxes.
The rules
- Like-kind requirement: The replacement property must be "like-kind," which in real estate is broadly defined. Any real property held for investment can be exchanged for any other real property held for investment. A single-family rental can be exchanged for a commercial building, raw land, or an apartment complex.
- Qualified intermediary: You cannot touch the sale proceeds. A qualified intermediary (QI) holds the funds between the sale and the purchase. If the money hits your account, the exchange is disqualified.
- 45-day identification period: You must identify up to three potential replacement properties in writing within 45 calendar days of closing on the sale.
- 180-day closing period: You must close on the replacement property within 180 calendar days of selling the original property.
- Equal or greater value: To defer all taxes, the replacement property must be equal to or greater in value than the property you sold, and you must reinvest all of the equity.
What a 1031 cannot do
A 1031 exchange cannot be used for your primary residence. It cannot be used for property held primarily for resale (flips or wholesale deals). It does not eliminate taxes; it defers them. If you eventually sell without doing another exchange, you owe all the accumulated deferred gains. However, if you hold until death, your heirs receive a stepped-up basis and the deferred gains effectively disappear.
Selling at a loss: making the tax code work for you
Not every deal makes money, and the tax code provides some relief when you lose. Capital losses from investment property sales can offset capital gains from other investments dollar for dollar.
Example: you sell a rental property at a $20,000 loss but have $30,000 in gains from stock sales. Your net taxable gain is only $10,000. If your losses exceed your gains, you can deduct up to $3,000 of net capital losses against ordinary income per year, with any remaining losses carried forward to future tax years indefinitely.
This creates a strategic opportunity. If you have a property that is losing money and you also have significant gains from other investments or property sales, selling the underperformer in the same tax year can offset those gains. Timing your sales across tax years is a legitimate and common strategy. For more on the broader decision of when to exit, see our guide on when to cut your losses on an investment property.
Dealer vs investor: a critical classification
The IRS distinguishes between investors who hold property for long-term investment and dealers who buy and sell property as a business. This distinction matters enormously:
| Investor | Dealer | |
|---|---|---|
| Gains taxed as | Capital gains (0-20%) | Ordinary income (22-37%) |
| Self-employment tax | Not applicable | 15.3% on net income |
| 1031 Exchange | Available | Not available |
| Depreciation | Available | Not available on inventory |
| Installment sales | Available | Not available on inventory |
If you are wholesaling frequently or flipping multiple properties per year, the IRS may classify you as a dealer. There is no bright-line test; the IRS looks at factors like the number and frequency of transactions, the duration of ownership, the extent of improvements made, and whether the properties were your primary source of income.
Many active investors mitigate this by holding rental properties in one entity (taxed as investor) and running their flip/wholesale business through a separate entity (taxed as dealer). This allows the rental portfolio to benefit from capital gains rates and 1031 exchanges while the active business is structured as expected. Consult a CPA who specializes in real estate to structure your entities properly.
Holding vs selling: the after-tax comparison
Sometimes holding a property that is underperforming is still the smarter move after taxes. Consider this scenario:
You own a rental property worth $250,000 with a basis of $180,000 and $40,000 of accumulated depreciation. If you sell, your tax bill looks like this: $40,000 depreciation recapture at 25% ($10,000) plus $30,000 long-term capital gain at 15% ($4,500) equals $14,500 in federal taxes. Net proceeds after tax: roughly $235,500 minus $14,500 = approximately $221,000.
If you hold, the property generates $400 per month net cash flow ($4,800/year), appreciates 3% annually ($7,500/year), the tenant pays down your mortgage ($3,600/year in principal), and depreciation shelters most of the rental income from taxes. The total annual economic benefit of holding is approximately $15,900, which represents a return on the equity that selling would produce. In this case, holding generates a better risk-adjusted return than selling, paying taxes, and redeploying at similar yields.
The math changes if you can redeploy the freed capital into significantly higher-returning opportunities. That is the core question behind the rent vs sell decision.
State tax considerations
Federal taxes are only part of the picture. State taxes can add significantly to your bill or save you money depending on where you operate:
- No state income tax: Texas, Florida, Nevada, Washington, Wyoming, Tennessee, South Dakota, Alaska, New Hampshire (no tax on earned income). Investors in these states only pay federal capital gains.
- High state tax: California (up to 13.3%), New York (up to 10.9%), New Jersey (up to 10.75%), Oregon (up to 9.9%). These states can add 10%+ to your effective tax rate on property sales.
- State 1031 rules: Most states conform to federal 1031 exchange rules, but some (like California) have additional reporting requirements and may claw back deferred taxes if the replacement property is in a different state.
If you are considering selling a property in a high-tax state and exchanging into a property in a no-tax state, the state tax savings alone can be substantial. But check the specific rules. Some states track deferred gains across state lines.
Practical tax strategies for investors
Here are strategies that experienced investors use to minimize their tax burden legally:
- Time your sales for long-term status. If you are close to the 12-month mark, wait. The rate difference between short-term and long-term gains is 10-20 percentage points.
- Harvest losses strategically. Sell underperformers in the same year you realize gains to offset them.
- Use 1031 exchanges to defer indefinitely. Exchange up into larger properties over your career. At death, your heirs receive stepped-up basis.
- Maximize your basis. Document every capital improvement. A higher basis means a lower taxable gain.
- Separate investor and dealer activities. Use different entities for rentals versus flips and wholesale deals.
- Consider installment sales. Spread the gain over multiple tax years by carrying a note. This can keep you in a lower bracket each year.
- Gift or donate appreciated property. Donating appreciated property to charity avoids capital gains entirely and provides a deduction for the fair market value.
- Leverage Opportunity Zones. Investing capital gains into qualified Opportunity Zone funds can defer and partially reduce gains.
The most important strategy: Find a CPA who specializes in real estate investing. General accountants often miss real estate-specific deductions, entity structuring opportunities, and exchange strategies. A good real estate CPA will save you multiples of their fee.
Related articles
- The Complete Guide to Dealing With Problem Properties
- When to Cut Your Losses on an Investment Property
- Should You Rent, Sell, or Wholesale a Property That Won't Flip?
- Exit Strategies Explained
- How to Sell an Investment Property Without an Agent