What the Tax Bill Looks Like When You Sell
Three earlier pages taught three pieces separately — what your basis is (broadly, what you paid for the property, adjusted over the years you owned it), what kind of gain you have, and what happens to the losses that were suspended along the way. Those are rental losses the passive-loss rules did not let you deduct in earlier years, so they were carried forward instead. None of them showed those pieces landing in the same year, because that is this page's job. What you get here is the assembly: which layers there are, what order they come in, and where each one enters. What you will not get is a single number at the bottom, and the reason for that is the most useful thing on the page.
On this page10 sections
- Why this page states no total
- The order
- Step one — what you actually realize
- Step two — the basis you subtract
- Step three — the gain, and the order it gets characterized in
- Step four — the rate layers
- Step five — the released suspended loss lands in the same year
- Step six — the 3.8% test, which is not 3.8% of your gain
- What is left, and what it says about the equity
- What this page does not model
- Your action plan
- The bottom line
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 income 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. The amount realized at the start is the full price you sell for, less selling costs (paying off your mortgage from the proceeds does not reduce it).
- On the example rental, most of the taxable gain is depreciation, not appreciation. Of a $61,923 realized gain, $40,048 is attributable to depreciation deductions already taken and $21,875 to the property's rise in value — nearly two to one, on a plain rental depreciated straight-line (an equal amount each full year), with no cost-segregation study separating out parts of the property that can be depreciated faster.
- A released suspended loss does not shrink your capital gain. It becomes allowable, meaning you can now deduct it, but it keeps its own character on your return instead of turning the gain into a smaller capital-gain number. 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 applies to the smaller of two amounts: your net investment income, or the amount by which your modified adjusted gross income exceeds a threshold set in the statute. It reaches the gain at all only because this activity is passive — a §162 trade or business that is non-passive to you (for a rental, generally real estate professional status plus material participation) is what it takes to put the same sale outside §1411. Where it does apply, on this example it applies to $38,294 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 kind of answer, and the mistake costs real 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, taxed at your regular income-tax rates. Some of it is a capital-gain category with its own maximum rate. Some of it is remaining 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 earlier guides in this series each covered one of those pieces on its own. 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 (gain that qualifies for the lower capital-gain rates) 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 carries over to your sale, 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 responsibly 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.
The examples throughout these guides use one property — a single-family rental bought for $280,000, an illustration rather than a forecast, whose base rental assumptions are listed in The Operating-Expense Build & the 50% Rule. What follows takes it through an illustrative sale on 31 December of year five, with its value assumed to grow 3% a year and depreciation taken under the mid-month convention in the first and last years, 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,048 |
| adjusted basis at exit | $239,952 |
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,952 |
| realized gain | $61,923 |
Now the step the one-rate 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 that settles the character of each part: whether the tax law treats it as ordinary income or as capital gain, which decides the rates it meets. That order is the whole subject of the page on depreciation and gain character at sale. 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 limited twice over — it can be no more than the depreciation taken on the building, and no more than the gain attributable to the building — and in that case it is the second limit that binds.
Then ordinary income is carved out — first, and on its own
| the piece | amount |
|---|---|
| §1245 ordinary recapture | $0 |
Why: 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 $61,923, 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. Those are net business-property losses from those years that have not yet been used to turn a later gain into ordinary income.
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,048 |
| 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 + $61,923 = $61,923.
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 $61,923 as long-term capital gain, it is $40,048 + $21,875 = $61,923. 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,048 of a $61,923 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 also, in part, postponed tax rather than removing it, and this is the year that part 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 the losses allowed in the year of sale total $18,629: the suspended carryforward at the start of the year, $16,454, plus the year-of-sale passive loss, $2,175.
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,629 of losses allowable (the carryforward and the year-of-sale loss together), 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 property held in a §162 trade or business that is non-passive to you 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 whose rental is a §162 trade or business that is non-passive to them (for a rental, generally real estate professional status plus material participation) can be outside §1411 on the same sale, in which case none of the arithmetic below runs at all. The arithmetic below depends on this assumption; it is 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 (MAGI) 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 = $61,923 gain − $18,629 released loss | $43,294 |
|---|
Now the comparison. Assume, for this example only, a married-filing-jointly return whose modified adjusted gross income exceeds the $250,000 threshold by $38,294 — an illustrative figure for this one return, not something every sale produces:
| the LESSER of ( $43,294 net investment income , $38,294 illustrative MAGI excess ) | $38,294 |
|---|---|
| net investment income tax = $38,294 × 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 simply multiplies the gain by 3.8%. Here that shortcut would have produced $2,353, on a base that does not apply to this example: neither amount the test compares is the gain. (The tax can come to 3.8% of a gain, but only where the gain is the net investment income and is also the smaller amount.)
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
Cash Return on Current Equity & the Wealth Engines puts this property's equity in year five at $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. That is a capital-gain category with its own maximum rate, not ordinary income and not "recapture" in the §1245 sense. 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 and keeps its own character, 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; holding the rental in a §162 trade or business that is non-passive to you (for a rental, generally real estate professional status plus material participation) 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 with the amount by which your MAGI exceeds the threshold, 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. The amount realized after selling costs, less the adjusted basis that depreciation has been lowering all along, equals a realized gain. That gain is allocated asset by asset, and then characterized in an order rather than taxed as one thing. On the example rental, that gain is $61,923. Of that, $40,048 is attributable to depreciation already deducted and only $21,875 to the property's rise in value. This property has nothing on a separate personal-property schedule, so it has no §1245 piece at all, and that empty carve-out is what 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 — a non-passive §162 trade or business can put the same sale outside it. It then runs a lesser-of test, here against $38,294 rather than the full gain, producing $1,455 on this example; simply multiplying the gain by 3.8% would have produced $2,353. The statute never indexed its thresholds 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.
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 for tax year 2026 (reviewed October 2026); 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.