Key Takeaways
- A sale's tax is assembled, not quoted. One gain splits into pieces that are taxed under different rules, and a separate 3.8% test runs on top of the result. Priced at one rate, the answer is wrong — and the size of the error is not knowable without doing the assembly.
- The order is the lesson, not the arithmetic. Amount realized → basis → gain → allocated asset by asset → ordinary carved out first → everything remaining into §1231 → the rate categories nested inside whatever survives → the released suspended loss lands in the same year → net investment income tax runs its own test. Skip a step and the number is wrong.
- On this Library's property, most of the taxable gain is depreciation, not appreciation. Of a $62,261 realized gain, $40,386 is attributable to depreciation deductions already taken and $21,875 to the property's rise in value — nearly two to one, on a plain straight-line rental with no cost segregation.
- A released suspended loss does not shrink your capital gain. It becomes allowable and is reported on its own footing. What it is worth depends on the rest of your return, which is why this page will not multiply it by a rate.
- The 3.8% net investment income tax is a lesser-of test, not a percentage of your gain. It reaches the gain at all only because this activity is passive — material participation can put the same sale outside §1411. Where it does apply, on this example it applies to $38,290 rather than to the full gain, and the difference is the whole point of how the rule is written.
- Its thresholds are fixed in the statute and are not adjusted for inflation. The taxable-income breakpoints inside the other rate structures are adjusted annually; §1411's thresholds are not, so rising nominal incomes can bring more owners within range over time without Congress changing anything.
- This page states no total, deliberately. Once you can see the layers and their order, the total is arithmetic on facts only your own return contains.
Ask what tax you will pay when you sell a rental and you will usually get a percentage back. That is the wrong shape for the answer, and it is wrong in a way that costs money at closing.
The tax on a sale is not one rate applied to one number. It is several layers, applied in an order, to pieces of a gain that are not all the same kind of gain. Some of it may be ordinary income. Some of it is a capital-gain category with its own ceiling. Some of it is ordinary long-term capital gain. A separate 3.8% tax may run on top of the result under its own test. And in the same year, if the disposition qualifies, a balance of suspended losses becomes deductible.
Three pages in this domain built those pieces one at a time. This one puts them in the same year and shows what that looks like.
Why this page states no total
It would be easy to end this page with a dollar figure, and most pages that promise a tax bill do. This one does not, and the reason is worth stating before anything else rather than as an apology at the end.
The layers are general. The rates that apply to them are not. Your ordinary income and your preferential income stack against each other, so which bracket a slice of gain actually lands in depends on the rest of your return — your other income, your deductions, your filing status, and how much of each layer you have. Two owners with an identical property and an identical gain can owe materially different amounts, and neither of them is doing anything unusual.
So the assembly transfers and the total does not. What this page can give you exactly is the order, the pieces, and the one computation that is genuinely self-contained. What it cannot honestly give you is a number to put in your own model, and a page that supplies one anyway has traded a real lesson for a satisfying ending.
The number is not the deliverable. The order is. If you know which layers exist and where each one enters, you can ask your own tax professional a precise question — and check the answer.
The order
Everything below runs in this sequence, and the sequence is not optional:
Amount realized → less adjusted basis → equals realized gain → allocated asset by asset → ordinary income carved out first → everything remaining enters §1231 → the rate categories sit inside whatever long-term gain survives → the released suspended loss lands in the same year → the net investment income tax runs its own test.
This Library teaches on one property throughout — a single-family rental bought for $280,000. What follows takes it through a sale in year five, so the steps have real numbers attached rather than placeholders. The figures are this property's; the lesson is the order.
Step one — what you actually realize
The sale price is not what you realize. Selling costs come out first.
| gross sale price (the year-five value) | $324,597 |
|---|---|
| less selling costs | $22,722 |
| amount realized | $301,875 |
The 7% used for selling costs here is a stated modeling assumption, not a market rate. It stands for brokerage commission plus the seller's closing costs, it was chosen for this worked example, and your own figure belongs in its place. Nothing in the order below changes if your number is different.
That subtraction is not a rounding detail. $22,722 of the property's value never reaches you and never reaches the tax computation either — and it is the first thing standing between the equity you were told you had and the cash you end up with.
Step two — the basis you subtract
Gain is measured from your adjusted basis, and that number is the subject of its own page. Bring it here; this page does not rebuild it.
| purchase price | $280,000 |
|---|---|
| less depreciation taken over the hold | $40,386 |
| adjusted basis at exit | $239,614 |
The one thing worth carrying across: depreciation lowered your basis every year you owned the property. That is what the deduction does. So the basis you subtract at sale is well below what you paid, which means the gain is larger than "what it went up in value" — often by a wide margin on a long hold.
Step three — the gain, and the order it gets characterized in
| amount realized | $301,875 |
|---|---|
| less adjusted basis | $239,614 |
| realized gain | $62,261 |
Now the step the shortcut leaves out. That gain is not taxed as one thing. But it does not simply split into pieces either — it runs through an order, and the order is the whole subject of the depreciation-and-character page. This page assembles what that page decided; it does not re-derive it.
### First, the allocation — which comes before any character question
Where a sale includes more than one asset — the land, the building, separate §1250 site improvements, separate §1245 assets — the price is allocated among them, and gain or loss is measured asset by asset. That is why every cap below speaks of the gain attributable to a component rather than to the property as a whole.
The worked example that follows assumes that allocation has been done, and that the depreciation-related gain is attributable to the building. That assumption is doing real work. On a property where the land appreciated and the building did not, the amounts below move even though the total does not — because unrecaptured §1250 gain is capped by the gain attributable to the building, not by the depreciation taken.
### Then ordinary income is carved out — first, and on its own
| the piece | amount | why |
|---|---|---|
| §1245 ordinary recapture | $0 | this property has no separately depreciated personal-property components. A cost-segregation study is not what creates a §1245 bucket — separately depreciated personal property is, so a rental with appliances, furniture or equipment on their own schedules can have one with no study at all. This one does not. |
Depreciation taken in excess of straight-line on §1250 property held more than a year is ordinary income too. On a modern straight-line rental building there generally is none, and there is none here. The holding period is part of that rule rather than a detail of it: for §1250 property held a year or less, it reaches all of the depreciation adjustments rather than only the excess.
### Everything that remains enters §1231 — including the building's depreciation
The full $62,261, since nothing was carved out as ordinary. The §1231 rules net it against your other business-property gains and losses and can look back at nonrecaptured §1231 losses from the previous five years, before any treatment is settled.
If that process leaves a net gain receiving long-term capital-gain treatment, that gain is what contains the rate categories:
| inside the surviving long-term capital gain | amount |
|---|---|
| unrecaptured §1250 gain | $40,386 |
| the rest — plain appreciation | $21,875 |
This is the relationship the shorthand gets wrong, and it is worth stating plainly: unrecaptured §1250 gain does not sit beside §1231 gain as a separate final category. It is a rate category inside the long-term capital gain that survives §1231 — which means both amounts above are contingent on that netting, not only the second. If the §1231 process does not leave that net gain, the unrecaptured §1250 category cannot simply be assumed.
Two checks worth running on your own numbers, and they sit at two different levels rather than being one three-way sum.
The carve-out check is unconditional. Ordinary recapture plus everything else equals the realized gain — here, $0 + $62,261 = $62,261.
The rate split reconciles to the gain that actually survives §1231 — not to the gain you started with. On this example's stated assumption, that the netting and the lookback leave the whole $62,261 as long-term capital gain, it is $40,386 + $21,875 = $62,261. Change that assumption and the split has to be recomputed — which is not the same as saying both figures change. The unrecaptured §1250 category is limited by the surviving long-term gain rather than scaled down with it. Where enough gain survives to cover that category it can stand at its full amount, and only the appreciation piece shrinks. Where less survives, the limit binds and the category itself is the smaller number. Either way the check is the same: the pieces reconcile to the gain that actually survives, whatever the netting produces — and a correct partial-survival computation is not a mislabeled one.
### What the empty bucket is teaching
The zero is not a gap. This property has nothing on a separate personal-property schedule, so it genuinely has no §1245 ordinary-income piece — and because that carve-out is empty, something else becomes visible that a more complicated example would bury.
$40,386 of a $62,261 gain — about two-thirds of it — is attributable to depreciation deductions already taken, not to the property's rise in value. The appreciation slice is $21,875. The depreciation slice is nearly twice as large.
That is not a quirk of this example. It is what a long hold on a modest single-family rental can look like, and it is the part of the bill that is easiest to overlook — because nothing about it shows up in the sale price. The deductions were real and they were worth having. They were also, in part, a timing arrangement, and this is the year it is settled.
Step four — the rate layers
Each piece meets a different rule. These are the maximum and structural rates, which is deliberate: the taxable-income breakpoints inside them change every year, and a page that tabulated them would be wrong within twelve months.
| the piece | the layer it meets |
|---|---|
| ordinary recapture (§1245), carved out first | your ordinary income rates |
| unrecaptured §1250 gain, inside the surviving long-term capital gain | a capital-gain category taxed at a maximum of 25% |
| the rest of that surviving long-term capital gain | the long-term capital-gain rates — 0%, 15% or 20%, by taxable income |
| all of the above, if the activity is passive and the test below is met | plus 3.8% net investment income tax |
Two things about that 25% that get misread constantly. It is a maximum, not a rate — an owner whose ordinary rates are below 25% does not pay 25% on this piece. And it is a capital-gain category, not ordinary income and not "recapture" in the §1245 sense, which is why it sits in this table rather than the first row.
(A 28% maximum exists for collectibles. It is named here only so the 25% above is not read as a general rate on anything called recapture — it has nothing to do with real estate.)
Whether the §1231 process leaves long-term capital gain at all depends on facts this property cannot supply — and that caveat governs both of the capital rows above, not just the last one. Net §1231 gain is subject to a five-year lookback: where you had non-recaptured net §1231 losses in the preceding five years, current-year net §1231 gain can be treated as ordinary income to that extent. That is a fact about you, not about the property.
Which is why the unrecaptured §1250 row is contingent too. That category exists only inside long-term capital gain that survives the netting; it is not a separate result that arrives whatever else happens on your return. The worked example below states an assumption rather than a conclusion for exactly this reason.
Step five — the released suspended loss lands in the same year
If the property carried suspended passive losses and the disposition qualifies under §469(g), the balance becomes deductible in the same year the gain lands. On this property that balance is $18,971.
The intuitive version of what happens next is that the loss offsets the gain and you are taxed on the difference. That is not what happens, and the difference matters more than it looks:
The qualifying disposition makes the $18,971 suspended loss allowable, but it does not convert the sale gain into a smaller capital-gain number. The gain and the allowed loss remain reported according to their own character, on the forms and schedules where they belong. The loss reduces taxable income, but its actual tax value depends on the rest of the return, so it should not be valued simply by multiplying it by an assumed ordinary marginal rate.
What releases a suspended loss — and what only looks like it does — is the suspended-loss page's subject, and the conditions are not trivial. This page starts after the release has happened. It is worth knowing that a qualifying 1031 exchange generally does not produce one, because where gain stays deferred the recognition condition is not met — though §469(g) turns on whether all realized gain or loss was recognized rather than on the §1031 label. That page and the exchange page own the interaction.
Step six — the 3.8% test, which is not 3.8% of your gain
The net investment income tax is the layer most easily mis-estimated, and the shortcut that causes it is worth naming precisely.
One predicate before the arithmetic: this gain is net investment income because this activity is passive. §1411 reaches net gain from the disposition of property held in a passive activity; gain from a trade or business in which you materially participate is outside it. The worked example below rests on the same assumption the suspended-loss balance above rests on — that the rental has been an always-passive activity with respect to its owner — and that assumption is what puts the whole disposition gain into net investment income. An owner who materially participates in the rental activity can be outside §1411 on the same sale, in which case none of the arithmetic below runs at all. The assumption is load-bearing here, not a formality, and it is a fact about you rather than about the property.
It is not 3.8% of the gain. It applies to the lesser of two amounts: your net investment income, or the amount by which your modified adjusted gross income exceeds a statutory threshold. Neither of those is the gain — net investment income can be smaller than the gain, as it is here, and it can also be larger where you have other investment income.
Both halves matter here. The released suspended loss is a properly allocable deduction in computing net investment income, so it reduces the first amount before the comparison is made:
```
net investment income = $62,261 gain − $18,971 released loss = $43,290
```
Now the comparison, on a return where modified adjusted gross income exceeds the married-filing-jointly threshold of $250,000 by $38,290:
```
the LESSER of ( $43,290 net investment income , $38,290 MAGI excess ) = $38,290
net investment income tax = $38,290 × 3.8% = $1,455
```
The excess governed, not the net investment income. That is the entire reason the rule is written as a lesser-of test, and it is invisible in any example that multiplies the gain by 3.8% — which would have produced $2,366 here, on a base that does not apply.
### The thresholds do not move
The statutory thresholds are $250,000 for married filing jointly, $200,000 for single and head of household, and $125,000 for married filing separately.
§1411 contains no inflation-adjustment provision. The rate structures above have breakpoints that are adjusted annually. These thresholds are not. So rising nominal incomes can bring more owners within range of the tax over time without Congress changing the thresholds — and a threshold that looked remote when the rule was written does not stay remote. That is a planning fact, not a footnote.
What is left, and what it says about the equity
The return-on-equity page told you this property's equity in year five: $129,183. Here is what converting it involves.
| gross sale price | $324,597 |
|---|---|
| less selling costs | $22,722 |
| less loan payoff | $195,414 |
| cash before tax | $106,461 |
| less the assembled tax above | your return |
$129,183 of equity, and $106,461 reaches your account before any tax at all. The difference is exactly the selling costs — a check worth running, because equity minus cash before tax should equal what it cost to sell.
That is $22,722 of $129,183 gone before the first tax layer is applied. Whatever the layers above come to on your return, they come out of what is left.
None of this says selling is wrong. It says the equity a balance sheet reports and the cash a sale produces are different numbers, and the gap is knowable in advance. What to do about it is the next page's question, not this one's.
What this page does not model
State income tax is a real layer and is not modeled here. States vary in whether and how they tax capital gain, and several do not follow the federal characterization. For an owner in a high-rate state it can be the difference that decides a transaction, and it belongs in your own model beside everything above.
Nor does this page model your return. Every figure above that belongs to the property is exact. Every figure that would require knowing your other income, your deductions, your filing status or your §1231 history has been left where it belongs — with you and your tax professional.
Pricing the whole gain at one "capital gains rate," then treating recapture as a surcharge bolted on top. Both halves distort the bill. The gain is divided — the depreciation-related pieces are characterized first, some potentially at ordinary rates and the building's straight-line depreciation as unrecaptured §1250 gain, which is a capital-gain category with its own maximum rate rather than ordinary income and rather than "recapture" in the §1245 sense — and only the remainder reaches the general long-term rates. The §1231 five-year lookback governs both capital rows rather than only the last one: where you had non-recaptured net §1231 losses in the preceding five years, current-year net §1231 gain is treated as ordinary income to that extent — which reaches the unrecaptured §1250 slice too, not just the residual. The 3.8% layer then runs its own lesser-of test rather than applying to the gain. The related error is expecting a released suspended loss to shrink the capital gain; it becomes allowable on its own footing, and what it is worth depends on the rest of the return. Assemble the layers in order and you can ask a precise question. Multiply once and you have guessed at four different rules with a single number.
Your Action Plan
- Get your adjusted basis before you model anything. Every figure downstream is measured from it, and it is knowable now rather than at closing.
- Ask what your accumulated depreciation actually is. On a long hold it can be the largest single piece of the taxable gain, and it is measured from records rather than estimated.
- Run the two reconciliation checks, at their two different levels. Ordinary recapture plus everything else equals the realized gain — that one is unconditional. And inside whatever long-term gain survives §1231, the unrecaptured §1250 piece plus the rest equals that surviving amount, which is the original gain only where the netting leaves all of it. If either fails, something is mislabeled — and a mislabeled piece changes which rate applies to it.
- Ask specifically about the §1231 five-year lookback. Non-recaptured net §1231 losses in the preceding five years can turn current §1231 gain into ordinary income, and that is a fact about your returns rather than about the property.
- Find out whether you have a suspended balance, and whether this disposition qualifies to release it. Both halves matter, and the second is not automatic.
- Confirm the gain belongs in net investment income before you test it. §1411 reaches property held in a passive activity; material participation in the rental can put the same sale outside it entirely. That is a question about your participation, and it comes before any arithmetic.
- Then run the net investment income test as a lesser-of, not a multiplication. Compare your net investment income against your MAGI excess and use the smaller. Multiplying the gain by 3.8% will overstate the tax whenever the excess is smaller.
- Add your state. It is a real layer, it varies, and it is not modeled anywhere on this page.
- Take the assembled layers to your tax professional rather than a total. The order is what makes the conversation precise; the number is what their software is for.
The bottom line
The tax on a rental sale is assembled, not quoted, and the assembly runs in a fixed order: amount realized after selling costs, less the adjusted basis depreciation has been lowering all along, equals a realized gain that is then characterized in an order rather than taxed as one thing — and allocated asset by asset before that order even begins. On the property this Library teaches on, that gain is $62,261 — of which $40,386 is attributable to depreciation already deducted and only $21,875 to the property's rise in value, because this property has nothing on a separate personal-property schedule and so has no §1245 piece at all, and the empty carve-out makes the proportion visible. Ordinary income comes out first and meets ordinary rates; everything remaining enters §1231, and only if that process leaves net long-term capital gain does that gain contain a category capped at a maximum of 25% rather than taxed at it, with the long-term rates on the rest. Both of those depend on the same netting and the same five-year lookback, which are facts about your returns rather than the property. A qualifying disposition makes a suspended loss balance allowable in the same year, but it does not shrink the capital gain; it is reported on its own character, and its worth depends on the rest of the return. The 3.8% net investment income tax reaches this gain at all only because the activity is passive — material participation can put the same sale outside it — and it then runs a lesser-of test, here against $38,290 rather than the full gain, producing $1,455 where multiplying the gain would have produced $2,366, on thresholds the statute never indexed for inflation, so rising nominal incomes can bring more owners within range over time. And $129,183 of equity becomes $106,461 of cash before a single tax layer applies. This page states no total on purpose: once the layers and their order are visible, the total is arithmetic on facts only your own return contains.

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, tax, or investment advice, treatment depends on your facts and circumstances, and it is not a substitute for guidance from your own qualified professionals.
Continue learning
Sell, 1031, or Refinance?
The decision this bill informs — and what each route out actually costs
Concept GuideDepreciation & Gain Character at Sale
The order the character rules run in, and why the categories nest rather than sit side by side
Concept GuideSuspended Losses and the Year You Sell
What actually releases a suspended loss, and what only looks like it does
Concept GuideThe 1031 Exchange
The disposition that defers this bill instead of assembling it
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 →This resource provides general educational information about how the tax on a rental property sale is assembled, and is not individualized tax, legal or investment advice. Statutory references are to the Internal Revenue Code as in effect when written; rates, thresholds and administrative guidance change, and the taxable-income breakpoints inside the rate structures described here are adjusted annually. The worked figures are an illustrative model of one property, not a projection or a recommendation, and the selling-cost percentage is a stated assumption rather than a market rate. No total tax is stated because the rate applying to each layer depends on facts particular to your return. State income tax is not modeled. Work the specifics with your own qualified tax professional.
Primary sources (verified at draft; re-verify at publish): BFC Wealth & Exit P53 — basis first — and P54 — recapture changes the character of your gain, not its size — both cited, not coined; their coining pages are the deployed /library/guides/adjusted-basis-str-exit-tax/ and /library/guides/depreciation-recapture-selling-an-str/. The STR antecedent is the deployed /library/guides/tax-when-you-sell-an-str/, whose assembly-line structure and two reconciliation checks this page adapts; its suspended-loss layer is new here, because the STR page has none, and its net-investment-income computation is corrected rather than carried across — that page applies 3.8% to the gain, which omits both the properly allocable deduction and the statutory lesser-of test. Rate structures verified against IRS Topic 409 (unrecaptured §1250 gain at a maximum 25%; long-term capital-gain rates of 0/15/20%; the 28% collectibles maximum, named here only to bound the 25%), the IRS Net Investment Income Tax page (the lesser-of test and the statutory thresholds), §1411 itself (which contains no inflation-adjustment provision — read in the statute, not inferred), and the Form 8960 instructions (suspended losses allowed in full as a properly allocable deduction on a qualifying disposition of an always-passive activity). The §469(g) allowance-versus-character question is resolved per the Form 8582 instructions, whose worked rental example reports the disposition gain and the allowed passive losses on their own forms rather than netting them into a single figure. Statutory anchors: gain as amount realized less adjusted basis §1001, adjustments to basis §1016, recapture on personal property §1245, recapture on real property §1250, the capital-gain rate structure and the unrecaptured §1250 category §1(h), the character of gain on business and investment property and its five-year lookback §1231, the disposition of an entire interest in a passive activity §469(g), the net investment income tax §1411, and non-recognition on a like-kind exchange §1031. Canonical deal: ltr-sfh-280k. The exit-state figures are derived from registered components and are declared. No taxpayer is canonical and no modified adjusted gross income figure is stated — the net investment income test is shown through the quantities it actually consumes, so that no illustrative income figure enters the corpus. No total tax is stated: ordinary and preferential income stack against one another, so the rate reaching each layer is a fact about a return rather than about this property.