When you sell a rental property, the tax bill is rarely one number at one rate. It's usually two or three separate pieces stacked together, each taxed differently, and the piece most investors forget is the one tied to depreciation they claimed years ago.
This guide covers how the calculation actually works for the 2026 tax year, the current brackets, and the deferral tools worth knowing about. It also covers the situation where none of this applies because the IRS considers you a dealer rather than an investor, which catches a lot of people who flip.
*One note before starting: this is educational, not tax advice. Everyone's facts differ, and the difference between a good outcome and an expensive one usually comes down to details a CPA needs to see. Use this to understand the framework, then take specifics to your accountant.
Short Term Versus Long Term
The dividing line is one year. Per IRS Topic 409, if you hold an asset for more than one year before disposing of it, the gain is long-term. Hold it one year or less, and it's short-term.
The clock starts the day after you acquire the property and includes the day of sale, so "more than 365 days" is the safe way to think about it. Closing on day 366 rather than day 364 can change your rate by 15 percentage points or more.
Short-term gains are taxed as ordinary income at graduated rates. There is no separate short-term capital gains tax on real estate; the gain simply gets added to your other income.
2026 long-term capital gains brackets
| Filing Status | 0% Rate | 15% Rate | 20% Rate |
|---|---|---|---|
| Single | Up to $49,450 | $49,451 to $545,500 | Over $545,500 |
| Married filing jointly | Up to $98,900 | $98,901 to $613,700 | Over $613,700 |
| Married filing separately | Up to $49,450 | $49,451 to $306,850 | Over $306,850 |
| Head of household | Up to $66,200 | $66,201 to $579,600 | Over $579,600 |
Thresholds are taxable income for tax year 2026, per IRS inflation adjustments. Verify against your own return, since the amounts adjust annually.
2026 ordinary income brackets, which apply to short-term gains
| Rate | Single | Married Filing Jointly |
|---|---|---|
| 10% | Up to $12,400 | Up to $24,800 |
| 12% | $12,401 to $50,400 | $24,801 to $100,800 |
| 22% | $50,401 to $105,700 | $100,801 to $211,400 |
| 24% | $105,701 to $201,775 | $211,401 to $403,550 |
| 32% | $201,776 to $256,225 | $403,551 to $512,450 |
| 35% | $256,226 to $640,600 | $512,451 to $768,700 |
| 37% | Over $640,600 | Over $768,700 |
The Two Taxes Most Investors Forget
Depreciation recapture
Every year you own a rental, you deduct depreciation. That deduction reduces your basis in the property. When you sell, the portion of your gain attributable to that depreciation gets carved out and taxed separately as unrecaptured Section 1250 gain, at ordinary rates with a maximum of 25%.
Two details matter here. First, this applies even if the rest of your gain sits in the 15% bracket, so it can be the highest-rate piece of your sale.
Second, the reduction is for depreciation "allowed or allowable." If you never claimed depreciation, the IRS still reduces your basis as though you had.
Skipping the deduction does not avoid the recapture; it just means you gave up the deduction and kept the tax. Our guide to rental property depreciation covers how to track this properly from the start.
Net investment income tax
An additional 3.8% applies to the lesser of your net investment income or the amount by which your modified adjusted gross income exceeds a threshold. Per the IRS, those thresholds are $250,000 for married filing jointly, $200,000 for single and head of household, and $125,000 for married filing separately.
Here's the part worth knowing: the IRS states plainly that these thresholds are not indexed for inflation. They have been unchanged since 2013. Almost every other figure in the tax code rises each year; this one does not. A gain large enough to push your MAGI over the line will trigger it even if your regular income normally sits below.
What Adjusts Your Basis
Basis is the number everything else depends on, and per IRS Publication 551, plenty of things move it.
Increases basis: capital improvements with a useful life beyond one year, special assessments for local improvements such as paving, casualty restoration costs that prolong life or increase value, legal fees to defend or perfect title, zoning costs, and construction costs including labor, materials, architect fees, and permits.
Decreases basis: depreciation allowed or allowable, Section 179 expensing, casualty and theft loss deductions net of reimbursement, energy tax credits claimed, and amounts received for granting easements.
The practical advice is to keep improvement receipts for the entire hold period. The distinction between a repair, which is deducted currently, and an improvement, which is capitalized and added to basis, is worth getting right with your accountant early rather than reconstructing at sale.
Ways to Defer
Section 1031 exchange
A like-kind exchange lets you roll gain from one investment property into another rather than recognizing it. Since the 2017 tax law, it applies to real property only. The deadlines are strict:
- 45 days from the closing of your relinquished property to identify replacement property in writing to your qualified intermediary.
- 180 days from that closing to receive the replacement property, or the due date of your return including extensions, whichever comes first.
Both are calendar days with no extension for weekends or holidays. Only IRS disaster relief can extend them. You also need a qualified intermediary in place before the first closing, because touching the proceeds yourself disqualifies the exchange. Our guide to 1031 exit strategies covers the sequencing.
Installment sales
Under Section 453, spreading payments across multiple years spreads the gain recognition with them, which can keep you in lower brackets and below the NIIT threshold in any single year. This pairs naturally with seller financing, and our guide to seller financing covers how to structure the note.
One caveat: once your aggregate outstanding installment obligations exceed $5 million in a tax year, Section 453A imposes an additional interest charge on the deferred tax tied to the excess, priced at the federal underpayment rate, which changes quarterly. For most individual investors, this won't apply, but it's worth knowing the ceiling exists.
Converting to a primary residence
The Section 121 exclusion shelters $250,000 of gain for a single filer or $500,000 for a married couple on the sale of a primary residence, with a two-out-of-five-years ownership and use test.
Moving into a former rental does not unlock the full exclusion. Under Section 121(b)(5), gain must be allocated between qualifying use as your residence and nonqualified use as a rental, based on the ratio of years. And depreciation taken after May 6, 1997 is never excludable regardless of the allocation; it gets recaptured first.
Opportunity Zones, with a 2026 warning
The program was made permanent by 2025 legislation, but the structure changed meaningfully, and the timing right now is awkward.
New zone designations and the new deferral framework take effect January 1, 2027, with a five-year deferral period and a basis step-up of 10% for standard zones and 30% for rural zones. Investments made during 2026 fall under the old rules, where deferral runs only to December 31, 2026, and the step-up windows can no longer be reached. Separately, investors holding previously deferred Opportunity Zone gains generally must recognize them on December 31, 2026 under the original statute.
If you have existing Opportunity Zone exposure or are considering an investment this year, this is worth a specific conversation with your CPA about timing rather than a general rule.
If You Flip, This May Not Apply to You
This is the part most articles skip, and it changes the answer entirely for a large share of active investors.
The IRS distinguishes between property held for investment and property held primarily for sale to customers in the ordinary course of business. If you're the latter, you're a dealer, your properties are inventory, and your profit is ordinary income. Not capital gain. Holding period is irrelevant.
Worse, dealer income is subject to self-employment tax at 15.3% on top of ordinary income tax if you operate as a sole proprietor. A flipper netting $80,000 can face a materially higher effective rate than an investor with the same gain.
Dealer status is determined by facts and circumstances, including your intent at purchase, how frequently you transact, the extent of improvements, and how you market the properties. There is no bright-line holding period that converts a flip into an investment, and renting a property while you try to sell it does not by itself change the classification.
If flipping is your model, structure and entity choice matter a great deal, and this is a conversation to have with a CPA before your first deal rather than at filing time. Our guide to capital gains tax on house flipping covers the distinction further.
State Taxes Change the Total
Federal rates are only part of it. Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas, and Wyoming impose no state tax on capital gains. Washington is a partial exception, exempting gains below roughly $270,000 while taxing above that.
At the other end, states that tax capital gains as ordinary income at high marginal rates include California at 13.3%, New York at 10.9%, New Jersey at 10.75%, Oregon at 9.9%, and Minnesota at 9.85%. On a $150,000 gain, the state layer alone can be a $20,000 swing.
Note that the relevant state is generally where the property sits, not where you live. Confirm with your accountant if you own out of state.
Planning Around It
A few practical habits reduce the bill more reliably than any single strategy.
- Watch the calendar. Crossing the one-year mark is the single highest-value timing decision in this whole area.
- Track basis from day one. Every improvement receipt you keep reduces taxable gain later.
- Consider which year you sell. A sale in a lower-income year can drop you a full bracket, and may keep you under the NIIT threshold.
- Harvest losses. Capital losses from other investments offset capital gains directly.
- Decide on a 1031 before you list. The intermediary has to be engaged before closing, so this cannot be arranged afterward.
Understanding how capital gains tax on real estate investment property works won't make the bill disappear, but it does let you plan around it, which is where most of the savings actually come from.
Then take your figures to a CPA who works with real estate investors. The rules reward planning, and most of the useful decisions have to be made before you sell rather than after.
Frequently Asked Questions
How much is capital gains tax on an investment property?
It depends on holding period and income. Held more than a year, the gain is taxed at 0%, 15%, or 20%, plus 3.8% net investment income tax if your MAGI exceeds $200,000 single or $250,000 married filing jointly. The portion matching depreciation you claimed is taxed separately at ordinary rates capped at 25%. Held one year or less, the entire gain is taxed as ordinary income at up to 37%. State tax may apply on top.
How do I avoid capital gains tax when selling a rental property?
Complete elimination is rare, but deferral is common. A 1031 exchange rolls the gain into a replacement property if you identify within 45 days and close within 180. An installment sale spreads the gain across years.
What happens if I never claimed depreciation on my rental?
You still owe the recapture. The IRS reduces your basis by depreciation "allowed or allowable," meaning the amount you could have claimed whether or not you did. Skipping the deduction gives up the annual tax benefit without avoiding the recapture at sale. If this describes your situation, ask your CPA about Form 3115, which can allow a catch-up adjustment.
Is flipping houses taxed as capital gains?
Usually not. The IRS generally treats flipping as a business, making the property inventory rather than a capital asset, so profit is ordinary income regardless of holding period. Sole proprietors also owe 15.3% self-employment tax on that income. Classification depends on facts and circumstances, including intent, transaction frequency, and improvement activity. There is no holding period that automatically converts a flip into an investment.

