Understanding Capital Gains When Selling Investment Property


By Alan Fruitman
Capital gains taxes are a primary consideration for any real estate investor. While appreciation builds wealth, it also creates a taxable event upon the sale of the asset. Furthermore, many owners are surprised to find that “profit” isn’t the only thing taxed; the tax benefits you claimed years ago through depreciation must also be accounted for.
Understanding these fundamentals helps sellers plan effectively, protect their equity, and avoid surprises at closing. Below is a clear, plain-English overview of capital gains for investment property owners.
What Capital Gains Are and How They’re Calculated
Capital gains represent the profit made from selling an investment property for more than its adjusted basis. To understand your potential tax liability, you must first understand the “Basis” math:
Original Purchase Price:
What you paid for the property.
(+) Capital Improvements:
Money spent on permanent upgrades (e.g., a new roof or structural additions).
(–) Depreciation:
The annual tax deductions you took to account for the property’s wear and tear.
(=) Adjusted Basis:
This is the “book value” used to determine your gain.
Because depreciation steadily reduces your basis, long-term holders often have larger taxable gains than they expect. Even if the market value of the property hasn’t increased significantly, the “gap” between your sale price and your lowered basis creates a taxable gain.
Short-Term vs. Long-Term Capital Gains
Tax rates depend heavily on how long you held the asset. Investment properties held for more than one year benefit from preferential long-term rates.
| Category | Short-Term | Long-Term |
| Holding Period | 1 year or less | More than 1 year |
| Federal Tax Rate | Ordinary income rates (up to 37%) | 0%, 15%, or 20% |
| Surtax (NIIT) | N/A | Possible 3.8% (for high earners) |
| Depreciation Recapture | Taxed as ordinary income | Capped at 25% |
| Best Strategy | Offset with losses | 1031 Exchange or Timing |
Note: High-income earners may also be subject to the 3.8% Net Investment Income Tax (NIIT), which applies to investment income above certain thresholds.
How Depreciation Recapture Works
Depreciation recapture is often the most misunderstood part of a real estate sale. Over the life of your investment, the IRS allows you to deduct a portion of the building’s value to account for aging. When you sell, the IRS “recaptures” this benefit by taxing those previous deductions.
For long-term holders, recapture is capped at a 25% tax rate. It is not a penalty, but rather a reconciliation of the tax breaks you received during ownership. If your goal is to keep 100% of your equity working for you, you must either pay this tax or defer it through an exchange.
When Paying the Tax Makes Sense
Despite the benefits of deferral, paying the capital gains tax is sometimes the right move. You might choose to pay the tax if:
You need immediate liquidity for non-real estate expenses.
The costs of a 1031 exchange (fees and time) outweigh the tax savings.
You are simplifying your estate and do not wish to manage more property.
You have significant capital losses elsewhere to offset the gains.
Common Capital Gains Questions (FAQ)
Does the $250k/$500k primary residence exclusion apply? No. That exclusion (Section 121) is for your main home. Investment properties are governed by different rules, though a property that was once your home and then became a rental may qualify for partial treatment.
What counts as a “Capital Improvement”? Repairs (fixing a leak) are generally deductible in the year they happen. Improvements (replacing the entire plumbing system) add to your basis and reduce your future capital gains tax.
Can I do a 1031 exchange into a REIT? Generally, no. You must exchange into “real property.” However, many investors use a DST (Delaware Statutory Trust) to exchange into a fractional interest of a large institutional property for passive income.
Conclusion
Tax planning shouldn’t be an afterthought; it should be a core component of your exit strategy. By understanding your adjusted basis and the role of recapture, you can decide whether to cash out or reinvest via a 1031 exchange.
RealEstateBrokerMatch.com connects investment property owners with brokers experienced in tax-sensitive transactions to help you optimize your long-term financial impact. Please reach out when you are interested in doing a 1031 exchange.

