Key Takeaways
- The exit tax is assembled, not quoted. It runs in order: amount realized → minus adjusted basis → equals realized gain → the gain is characterized into pieces → each piece meets its own tax layer → what's left is your after-tax proceeds. Skip a step and the number is wrong.
- Your gain gets split into pieces, and they're taxed differently. Depreciation-related pieces can be ordinary income (§1245) or a special capital-gain category capped at a maximum rate (unrecaptured §1250 gain — not "recapture"); the rest is generally long-term capital gain. Not every sale has every piece.
- §1231 is how the business-property gain earns capital treatment — but a net §1231 gain can be pulled back to ordinary income to the extent you deducted §1231 losses in the prior five years.
- NIIT is a separate 3.8% layer, not automatic. Whether your sale gain is subject to it depends partly on the character of the activity and whether the business is passive to you — facts that live upstream (Principles 45/49). This page applies the layer once those facts are known.
- The rates here are current law and dated; the assembly is evergreen. The order never changes; the percentages do — so the numbers live in a dated panel and one worked example you can re-check, and everything else stays timeless.
The exit tax isn't one number — it's an assembly line
Ask what tax you'll pay when you sell an STR and you'll usually get a single percentage back. That's the wrong shape for the answer. The tax on a sale is built in steps, and the reason people are surprised at closing is almost always that they priced the whole gain at one rate — when in reality the gain was split into pieces that were taxed very differently, and one of those pieces (the depreciation you took over the years) was waiting to be settled up.
So this page is an assembly line, run in a fixed order:
1. Amount realized — what you get.
2. Adjusted basis — what you'd already accounted for.
3. Realized gain — the difference.
4. Characterize the gain — split it into its taxable pieces.
5. Apply the tax layers — each piece meets its own rate, plus any NIIT and state tax.
6. After-tax proceeds — what's actually left.
The order never changes — that's the evergreen part. The rates change with the law — so they live in a clearly dated panel below, and in one worked example, not scattered through the doctrine.
(This is educational information about how a sale is taxed, not individualized tax advice or a computation of your liability. Your actual result depends on your facts, your records, your income, and current law, and should be confirmed with your own qualified tax professional. We flag where something is the rule versus our read, and we date every figure.)
Step 1 — Amount realized
Start with what the sale actually brings in. Amount realized starts with the consideration received — money plus the fair market value of any property — and it can include liabilities the buyer assumes or takes the property subject to (§1001(b)). Selling expenses (commissions, closing costs) reduce the amount used to measure gain. One trap to avoid: your own loan payoff is not a second add-on. When the buyer pays a price and escrow uses part of it to pay off your mortgage, that payoff affects the cash you walk away with — it does not get added to amount realized a second time, and it does not reduce your taxable gain. (Buyer-assumed debt is different: that's part of the consideration.) The result is the top of the assembly line — not your profit yet.
Step 2 — Adjusted basis (from the basis page)
Subtract the number the basis page is about. Your adjusted basis is your cost, raised by capital improvements and lowered by the depreciation you took over the hold — the running ledger the Adjusted Basis guide (Principle 53) owns. Bring that number here; this page doesn't rebuild it. The one thing to carry over: because depreciation lowered your basis year after year, your basis at sale is usually well below what you paid — which is exactly why the gain is larger than "what it went up in value."
Step 3 — Realized gain (and a note on timing)
Realized gain is amount realized minus adjusted basis (§1001(a)). On a conventional sale, that gain is generally recognized — taxed — in the year of sale (§1001(c)). One caveat worth naming, not teaching here: recognition timing can differ by transaction structure. A qualifying 1031 exchange defers recognition (Principle 55), and a qualifying installment sale can spread some gain as payments are received — but depreciation-recapture ordinary income generally has separate rules and is recognized in the year of sale, even on an installment sale. This page models a conventional, fully taxable sale; those alternatives are separate planning questions, and installment mechanics stay off this page (pointer at the end).
Step 4 — Characterize the gain: possible layers, applied as relevant
This is the step everyone skips, and it's where the money is. Your realized gain isn't taxed as one thing — it can pass through several characterization layers, applied as relevant (not a guaranteed waterfall where every sale has every piece). The character rules themselves are the Depreciation Recapture guide's (Principle 54); here we just assemble them in the correct order — and the order matters, because recapture comes out first and only what's left enters §1231:
1. Identify any ordinary-income depreciation recapture first. §1245 depreciation (on the shorter-life components a cost-segregation study may have created) comes back as ordinary income to the extent of that depreciation, capped at the gain. §1250 ordinary recapture applies only to depreciation taken above straight-line, so for modern straight-line real property it's usually zero. These ordinary pieces are pulled out before anything else.
2. Put the remaining eligible business-property gain into the §1231 netting process. Only the gain in excess of that recapture enters §1231 — where your net §1231 position for the year is determined (a net §1231 gain can receive long-term capital-gain treatment; a net §1231 loss is ordinary).
3. Apply the five-year lookback where relevant. §1231(c) can pull some of a current net §1231 gain back to ordinary income to the extent you deducted nonrecaptured §1231 losses in the preceding five years — so "§1231 gain = capital gain" holds only after that lookback is cleared.
4. Determine the resulting long-term capital-gain components — including any unrecaptured §1250 gain. Within that resulting capital-gain picture, the part attributable to the straight-line depreciation on the building is unrecaptured §1250 gain. Read the label carefully: despite the "§1250," it is not another recapture bucket — it's a special category within the long-term capital gain, carrying its own maximum rate rather than the general long-term rate.
The arithmetic check that keeps this honest: the pieces have to sum back to the realized gain from Step 3. If your ordinary recapture, unrecaptured §1250 gain, and remaining long-term capital gain don't add up to the gain, a piece is mislabeled. (The worked example below reconciles exactly, on purpose.)
Step 5 — Apply the tax layers
Each piece now meets its own rate, and there are up to three more layers on top:
- Ordinary rates on the §1245 (and any §1250) ordinary-income pieces.
- The unrecaptured-§1250 maximum rate on that capital-gain category — a ceiling, applied to that slice.
- Long-term capital-gain rates on the remaining §1231/LTCG piece.
- Net Investment Income Tax (NIIT) — a separate 3.8% layer, and its own analysis. Gain from a disposition can enter net investment income, but whether it's excluded can depend on both whether the property was held in a qualifying §162 trade or business and whether that business was non-passive to you — so non-passive status by itself does not necessarily remove the gain from NIIT. Material participation is therefore an important input, not a universal "no-NIIT" switch. Use the Tax guides for the upstream classification and participation facts (Principles 44, 45, 49); apply the §1411 rules separately here, once those facts are known.
- State income tax — a separate, potentially material layer that varies by jurisdiction. It can meaningfully change your after-tax proceeds; model it separately with your advisor. This page does not estimate a state rate.
(The actual percentages and thresholds for these layers are current law — they live in the dated panel below, not in this evergreen description.)
Step 6 — After-tax proceeds
What's actually left is your cash from the sale — amount realized, minus selling costs, minus the debt you pay off — reduced by the total tax across the layers above. That last number is the one that should drive any comparison against keeping or exchanging the property (which is the sell-vs-1031-vs-refinance decision's job, Principle 56). The assembly line's whole purpose is to get you an honest after-tax figure instead of a single-rate guess.
The rates for each layer — current law · reviewed August 2026
This is the dated part of the page: the assembly order above is evergreen; the percentages below are current U.S. federal law and can change. Confirm them before relying on them.
- §1245 / §1250 ordinary-income pieces: taxed at your ordinary income tax rates (your marginal bracket).
- Unrecaptured §1250 gain: long-term capital gain at a maximum rate of 25%.
- Remaining long-term capital gain (§1231): the long-term capital-gain rates — 0%, 15%, or 20% depending on taxable income.
- NIIT: 3.8% on the lesser of net investment income or the amount by which MAGI exceeds the applicable threshold ($200,000 single / $250,000 married filing jointly — these thresholds are set by statute and are not inflation-indexed).
- State income tax: varies by state — not included here.
These figures are current federal law as reviewed on the date above. The assembly order in the body does not change; only these numbers do. Confirm the current rates and thresholds with your tax professional.
A worked example — illustrative, every figure traceable
An illustrative sale (round numbers, one simplified fact pattern — not your result). You bought an STR for $500,000 ($100,000 allocated to non-depreciable land), made no capital improvements, and over the hold took $110,000 of depreciation — $80,000 straight-line on the building (§1250) and $30,000 on cost-segregated §1245 components. You sell for a price that nets $650,000 after selling expenses, and you have a $250,000 mortgage that escrow pays off at closing.
Reconciliation A — the tax: character buckets must sum to the realized gain
- Net amount realized (after selling expenses): $650,000
- Adjusted basis = $500,000 cost − $110,000 depreciation = $390,000
- Realized gain = $650,000 − $390,000 = $260,000
- Allocate, then characterize — asset by asset, not inferred from depreciation alone. A sale of land + §1250 building + §1245 components requires the sale price to be allocated among the assets, gain determined for each, and the character rules applied to each (§1245 recapture is bounded by the gain on those specific assets). Under the allocation assumed below, the $260,000 gain characterizes as the four pieces that follow.
- §1245 ordinary-income recapture: $30,000
- §1250 ordinary recapture: $0 (straight-line building)
- Unrecaptured §1250 gain: $80,000
- Remaining §1231 / long-term capital gain: $150,000
- Check: $30,000 + $0 + $80,000 + $150,000 = $260,000 ✓ (reconciles to the realized gain)
Illustrative assumptions for the tax layer
(Chosen to make the arithmetic auditable — not to hit a target total.)
- The sale-price allocation among the land, §1250 building, and §1245 components produces sufficient gain on the §1245 assets for the full $30,000 of prior §1245 depreciation to be ordinary-income recapture, and sufficient qualifying gain on the §1250 property for the $80,000 of unrecaptured §1250 gain shown. Actual sales require asset-level allocation and characterization — these buckets are assumed outputs of that allocation, not mechanically inferred from the depreciation history.
- Held long-term; no prior nonrecaptured §1231 losses affecting the $150,000.
- The property was held as a passive investment, so the entire recognized gain is included in net investment income, and MAGI exceeds the NIIT threshold by at least the gain.
- Assumed ordinary marginal rate: 32%; assumed long-term capital-gain rate: 15%.
- Unrecaptured §1250 gain at the 25% maximum (see the dated rates above).
- State tax omitted (named separately below).
Apply the layers (each line independent)
- §1245 ordinary: $30,000 × 32% = $9,600
- Unrecaptured §1250: $80,000 × 25% = $20,000
- Long-term capital gain: $150,000 × 15% = $22,500
- NIIT: $260,000 × 3.8% = $9,880
- Illustrative federal tax estimate under the stated assumptions = $9,600 + $20,000 + $22,500 + $9,880 = $61,980 (plus any state tax).
Reconciliation B — the cash: what you actually walk away with
This is a different calculation from the gain — the mortgage payoff reduces your cash but not your taxable gain:
- Net sale proceeds (= net amount realized, after selling expenses): $650,000
- − seller mortgage payoff: $250,000 → $400,000 cash at closing
- − illustrative federal tax estimate: $61,980
- ≈ $338,020 approximate cash retained (before state tax and other closing adjustments)
Every number is illustrative and rounded to show the assembly; change any assumption and the totals change. The point is the two reconciliations — the buckets sum to the gain, and cash equals sale minus debt minus tax — not this specific dollar figure.
Reducing or deferring it, honestly
Because the tax is real, "how do I avoid it?" is the natural next question — and the honest answer is usually defer, not avoid. The legitimate levers, each owned by its own page:
- Exchange instead of sell — a qualifying 1031 exchange defers the gain by carrying your basis into the replacement property (Principle 55). Deferral, not forgiveness.
- Spread the recognition — a qualifying installment sale can recognize some eligible gain as payments arrive, though depreciation-recapture ordinary income generally must still be recognized in the year of sale. The mechanics (gross-profit ratio, the recapture rule, seller-financing interest) are outside this page — a separate planning question.
- Hold to a step-up — basis is generally stepped up at death (§1014), which is the one point the deferred gain can actually be extinguished (a forthcoming Step-Up guide covers the bounded reality — it is not a "1031 until you die and taxes vanish" guarantee).
Which of these makes sense — or whether to just sell and pay — is the Sell / 1031 / Refinance? decision (Principle 56). This page only tells you what the bill is so that decision has an honest number to work with.
The exit tax is several taxes stacked in order, not one rate. Amount realized minus basis is the gain; the gain is split into ordinary-income pieces, a capped-rate capital category (unrecaptured §1250 gain — not "recapture"), and long-term capital gain; then NIIT and state can add layers. Assemble it in order and the pieces reconcile to the gain — that's how you get a real after-tax number instead of a single-rate guess. (This page assembles doctrine owned by Principles 53 and 54; it coins no new principle.)
pricing the whole gain at one "capital gains rate," and treating recapture as a separate surcharge bolted on top. Both distort the bill. Your gain is split: the depreciation-related pieces are taxed first — some at ordinary rates (§1245), and the building's straight-line depreciation as unrecaptured §1250 gain, a capital-gain category with its own maximum rate (not ordinary income, and not "recapture") — and only the remainder gets the general long-term rates, after the §1231 five-year lookback is cleared. On top of that, a 3.8% NIIT layer and state tax may apply. Add it up as one rate and you'll under-estimate; call the §1250 piece "recapture" and you'll mischaracterize it. The fix is the assembly line: realize → subtract basis → split the gain into its actual pieces (they must sum back to the gain) → apply each layer.
The bottom line
The tax on selling a short-term rental isn't a number you look up — it's a number you assemble. Start from what you realize, subtract the basis you built over the hold, and split the gain into its pieces: ordinary-income recapture on the short-life components, the building's depreciation as a capped-rate capital category, and the rest as long-term capital gain once §1231 clears — then layer on NIIT and state where they apply. Do it in that order and the pieces reconcile to the gain, and you get an honest after-tax figure. That figure is what the sell-or-exchange-or-hold decision actually needs. Know what the bill consists of before you decide whether to trigger it.

Matt Nunn is the founder of Builders Finance. He has spent two decades working with the financial side of real estate businesses, and started Builders Finance to give short-term-rental operators the financial systems, frameworks, and plain-language education that most hosting advice skips over. Builders Finance publishes educational content for STR owners; it is not legal or tax advice, tax treatment depends on your facts and circumstances, and it is not a substitute for guidance from your own qualified tax professional.
Continue learning
Adjusted Basis: The Number That Determines Your Exit Tax
Step 2 of this assembly: the basis you subtract, and where it comes from. (Principle No. 53.)
Concept GuideDepreciation Recapture When You Sell an STR
Step 4's character rules in depth: §1245 recapture vs. unrecaptured §1250 gain. (Principle No. 54.)
Concept GuideThe 1031 Exchange for Short-Term Rentals
how to defer this bill rather than pay it now. (Principle No. 55.)
Decision GuideShould I Sell, 1031, or Refinance?
the decision this number feeds: whether triggering the bill is the right move at all. (Principle No. 56.)
The STR Financial Bible
the complete financial system for short-term-rental operators, from underwriting a deal to financing it to structuring it to keeping the books to taxes to the exit. ---
Explore the book →Educational information only — not individualized tax, legal, or investment advice. The worked example is an illustrative model, not a projection or a recommendation.