By Adam Lambert, founder of Deal Run · February 16, 2026 · Updated October 30, 2026

Tax Implications of Selling vs Holding an Investment Property

When you sell an investment property, federal tax falls on three pieces: depreciation you took on a rental (taxed at up to 25% as unrecaptured section 1250 gain), the rest of the gain (0%, 15% or 20% if you held more than one year, or ordinary rates of 10–37% if you held one year or less), and possibly the 3.8% net investment income tax, plus state tax. Holding defers all of that, and a 1031 exchange can defer it when you sell. Whether to sell or hold comes down to comparing the after-tax cash from selling with what the property earns if you keep it. Figures below are for the 2025 tax year per the IRS (checked October 30, 2026).

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 periodTax classificationTax rate
One year or lessShort-term capital gainTaxed as ordinary income (10–37% federal)
More than one yearLong-term capital gain0%, 15%, or 20% depending on taxable income (2025: 15% starts above $48,350 single or $96,700 married filing jointly)

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. Had they waited until they'd held it more than one year (at least a day past the one-year anniversary), the rate would drop to 15%. On a $50,000 gain, that's $16,000 versus $7,500, a federal tax saving of $8,500.

There is also the Net Investment Income Tax (NIIT): an additional 3.8% surtax on net investment income for individuals with modified adjusted gross income above $200,000 (single) or $250,000 (married filing jointly); see IRS Topic 559. 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 commonly called depreciation recapture. For real property, the part of your gain that comes from depreciation is “unrecaptured section 1250 gain,” taxed at your ordinary rate but no more than 25%. So it's up to 25%, not a flat 25%: an investor in a lower bracket pays less.

Here is how it works with a concrete example (ignoring selling costs, and assuming the investor's brackets put the 1250 gain at the 25% cap and the rest at 15%):

  • 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 unrecaptured section 1250 gain (taxed at up to 25% = $14,546)
  • The remaining $80,000 is capital gain (taxed at 15% long-term rate = $12,000)
  • Total federal tax: up to $26,546, before any 3.8% NIIT or state tax

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 (capped at 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 the gain, including the depreciation portion, by buying replacement real property of equal or greater value. The tax isn't forgiven; it carries over into the replacement property's basis. Done repeatedly over a career, the deferral can last as long as you keep exchanging.

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 replacement properties in writing within 45 calendar days of closing on the sale, usually up to three properties of any value (other identification rules allow more under value limits).
  • 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 how a loss is treated depends on how you held the property.

Rental property (section 1231). Real property used in a trade or business and held more than one year is section 1231 property, and IRS Publication 544 says property held for the production of rents is generally treated as used in a trade or business. If your section 1231 transactions for the year net to a loss, it's an ordinary loss: it offsets wages and other income without the $3,000 capital-loss cap. The catch: if you have a net 1231 gain in any of the next five years, that gain is taxed as ordinary income up to the amount of the earlier loss.

Property held as a capital asset (for example, land held purely for investment). Losses are capital losses: they offset capital gains, and beyond that you can deduct up to $3,000 a year ($1,500 married filing separately) against other income, carrying the rest forward.

Either way, timing matters. If you have a property that is losing money and gains elsewhere, selling the underperformer in the same tax year can offset them; your CPA can tell you which bucket each sale falls in. 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:

InvestorDealer
Gains taxed asCapital gains (0–20%)Ordinary income (10–37%)
Self-employment taxNot applicable15.3% on net income
1031 ExchangeAvailableNot available
DepreciationAvailableNot available on inventory
Installment salesAvailableNot 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 worth $250,000. You paid $220,000 including improvements and have taken $40,000 of depreciation, so your adjusted basis is $180,000. You owe $100,000 on the mortgage.

  • Amount realized: $250,000 sale price minus $15,000 of selling costs (6%) = $235,000
  • Total gain: $235,000 minus $180,000 adjusted basis = $55,000
  • Unrecaptured 1250 gain: $40,000 at up to 25% = up to $10,000
  • Remaining long-term gain: $15,000 at 15% = $2,250
  • Federal tax: up to $12,250 (before NIIT and state tax)
  • Cash in hand: $235,000 minus the $100,000 loan payoff minus $12,250 tax = $122,750

If you hold, the property nets $400 a month ($4,800 a year) after the full mortgage payment, taxes, insurance, a vacancy allowance, property management and maintenance. It appreciates 3% a year ($7,500), and the tenant pays down about $3,600 of principal a year. The principal is part of the payment already subtracted from cash flow, so counting it here isn't double counting. That's about $15,900 a year of economic benefit, roughly 13% on the $122,750 you'd walk away with, though only $4,800 of it is cash you can spend. Holding also defers the $12,250 tax rather than erasing it. In this case, holding beats selling and redeploying at similar yields, unless you have a clearly better use for the cash.

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 broad state income tax: Texas, Florida, Nevada, Washington, Wyoming, Tennessee, South Dakota, Alaska, New Hampshire. Investors there generally pay only federal tax on a property sale, but check each state's current rules (Washington, for example, has a separate capital gains tax with its own exemptions).
  • High state tax: California (top rate 13.3%), New York (up to 10.9%), New Jersey (up to 10.75%), Oregon (up to 9.9%). These are top marginal rates, which change; check your state's current-year schedule.
  • 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:

  1. Time your sales for long-term status. If you are close to the one-year mark, wait until you've held the property more than one year. The gap between ordinary and long-term rates can be large.
  2. Harvest losses strategically. Sell underperformers in the same year you realize gains to offset them.
  3. Use 1031 exchanges to defer indefinitely. Exchange up into larger properties over your career. At death, your heirs receive stepped-up basis.
  4. Maximize your basis. Document every capital improvement. A higher basis means a lower taxable gain.
  5. Separate investor and dealer activities. Use different entities for rentals versus flips and wholesale deals.
  6. Consider installment sales. Spread the gain over multiple tax years by carrying a note. This can keep you in a lower bracket each year.
  7. Gift or donate appreciated property. Donating appreciated property to charity can avoid the capital gains tax, and the deduction can be up to fair market value, subject to income limits and reduced by any depreciation that would be taxed as ordinary income. Get a CPA involved.
  8. Look at Opportunity Zones. Investing capital gains into a qualified Opportunity Fund can defer them. Under the 2025 tax law (the One Big Beautiful Bill Act), gains deferred into funds under the original rules are recognized by December 31, 2026; for investments made from January 1, 2027, the program becomes permanent with a rolling five-year deferral and a 10% basis increase (30% for qualified rural funds), per law-firm summaries of the act. IRS guidance on the new rules is still coming, so confirm with your CPA.

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.

Sources and check dates

  • IRS Topic 409, Capital Gains and Losses (holding period, 2025 rate thresholds, 25% maximum on unrecaptured section 1250 gain, $3,000 loss limit; page updated September 24, 2026): irs.gov/taxtopics/tc409, checked October 30, 2026.
  • IRS Publication 544 (2025), Sales and Other Dispositions of Assets, chapter 3 (section 1231 property and losses): irs.gov/publications/p544, checked October 30, 2026.
  • IRS Topic 559, Net Investment Income Tax: irs.gov/taxtopics/tc559.
  • Greenberg Traurig, summary of the One Big Beautiful Bill Act's Opportunity Zone provisions (secondary source): gtlaw.com, checked October 30, 2026.

Related Articles

Know your numbers before you decide

Deal Run (our product) runs sold and rental comps for a current value and rent, an AI repair estimate from the property's photos, and your max offer for flip, rental and wholesale exits. It doesn't do tax calculations; take its numbers to your CPA. Analyze is $29/mo; Analyze + Sell is $99/mo. Or pay per deal: $2 to analyze, $20 with 100 buyers.

Analyze Your Property