My Capital Gain Was Taxed at 0%. Why Did My Tax Bill Go Up?

Written by Troy Sharpe CFP®, CPWA®, CTS®, Founder and CEO
Reviewed/Updated: September 2026 

Intro

A long-term capital gain can be taxed at 0% and still cause your total federal income tax bill to increase.

In the example in this video, a married couple realizes a $10,000 long-term capital gain that falls entirely within the 0% capital gains range. The federal capital gains tax on that $10,000 gain is $0. But the gain increases their provisional income, which causes another $8,500 of their Social Security benefits to become taxable.

The result: the capital gain itself is taxed at 0%, while the couple’s total federal income tax bill still increases by $1,020.

That distinction is the central lesson of the video: the tax rate applied directly to an investment gain does not necessarily tell you the gain’s total tax consequence. 

Quick Answer: Can a 0% Capital Gain Increase Your Taxes?

Yes.

In this example:

$10,000 long-term capital gain
Capital gains tax rate: 0%
Capital gains tax on the gain: $0

But the $10,000 gain also increases provisional income. That causes an additional $8,500 of Social Security benefits to become taxable.

Because that additional $8,500 falls within the couple’s 12% ordinary income tax bracket:

$8,500 × 12% = $1,020 of additional federal income tax

So both statements can be true at the same time:

The $10,000 capital gain is taxed at 0%, and the household’s total federal tax bill increases by $1,020. 

Key Takeaways

  • A 0% long-term capital gains rate does not necessarily mean zero overall tax consequence.
  • Capital gains can be included when calculating provisional income for Social Security.
  • In this example, a $10,000 capital gain causes an additional $8,500 of Social Security to become taxable.
  • The gain itself still receives a 0% capital gains tax rate.
  • Long-term capital gains are generally evaluated after ordinary taxable income fills the lower portion of the income stack.
  • Different types of retirement income can have different tax rules while still affecting one another.
  • A better retirement-tax question is not only, “What tax rate applies to this income?” but also, “If I pull this lever, what else moves?” 

Who This Video Is For

This video may be especially useful if you:

  • Receive Social Security and also have a taxable brokerage account
  • Are considering selling appreciated investments in retirement
  • Expect some long-term capital gains to fall within the 0% capital gains range
  • Take distributions from a traditional IRA or 401(k)
  • Are trying to coordinate IRA withdrawals, Social Security and investment income
  • Have assumed that a 0% capital gains rate means an investment sale cannot increase your overall federal tax bill

The Example at a Glance

Item Before Capital Gain After Capital Gain
Social Security received $80,000 $80,000
IRA withdrawal $40,000 $40,000
Long-term capital gain $0 $10,000
Provisional income $80,000 $90,000
Taxable Social Security $36,600 $45,100
Additional taxable Social Security — $8,500
Increase in AGI caused by gain + Social Security effect — $18,500
Capital gains tax on the $10,000 gain — $0
Additional federal income tax in the example — $1,020

Transcript

You sell an investment and realize a $10,000 long-term gain. And that entire capital gain falls in the 0% cap gains bracket. So you owe $0 tax, but your total federal income tax bill still goes up by over $1,000? Well, both of those statements are true. So how can something taxed at 0% increase your tax bill over $1,000?

Well, in today’s video, I’m going to prove that to you. And to see why, we have to separate two calculations that people often blend together. Does the capital gain affect your other income calculations? And what tax rate actually applies to the gain? And what tax rate actually applies to your other income?

And how do those two interrelate? Well, that’s what we’re going to learn in today’s video. And we’re going to start with our married couple. So let’s see what happens. Okay, so just as a refresher, we did this in the last video.

If you haven’t seen it, feel free to go back and look afterwards, but this video stands on its own. So our married couple, they’re both 67 and they receive $80,000 of Social Security income and take $40,000 from their IRA. So half of their social security is $40,000. So you add the $40,000 of IRA distributions to one half of their social security, which is another $40,000, so $40 and $40, that gets us $80,000.

So that number is important because it’s what we call provisional income. And provisional income helps us to determine. How much of our Social Security income is subject to tax? So I want to slow down here because this is one of the most misunderstood parts of the Social Security calculation. And there are two thresholds that we’re dealing with.

So 32,000 and 44,000. So anything below 32,000, there’s no tax on your Social Security benefits if that’s where your provisional income lands. Anything between 32 and 44, up to 50% of your benefit is taxable. Then above 44,000, if your provisional income is above 44,000, up to 85% of your benefit is subject to taxation.

But the calculation is progressive. So as provisional income moves through the thresholds, we calculate each piece individually, and then we add those pieces together. So stick with me here. So if you have eighty thousand dollars of provisional income, we first must calculate how much falls in between that first band. So the first band.

How Taxable Social Security Is Calculated

Is the difference between the thresholds 32 and 44. So that’s $12,000, and that’s the 50% band. So we take 50%, we multiply it times that difference in the thresholds, $12,000, and we get six grand. So that’s the first number. We’re gonna set it to the side.

But our provisional income, as you remember, is $80,000. So we have to now figure out what the second calculation is. So we take the excess between our provisional income of $80,000. And the second threshold, the 44,000. And that second piece is calculated at 85%.

36,000 times 85% equals 30,600. So now we add the results from the two progressive bands. We take the 6,000 plus the 30,600, add them together, and we get $36,600 of taxable Social Security. That’s exactly where that number comes from. So that’s a lot of work just to get to what your provisional income is.

But remember, We s now have to take that IRA distribution. And don’t get confused here because we just went through the IRA distribution of 40,000 and we added it to the one half of Social Security to get to provisional income. But we did all of that just to simply determine how much of Social Security gets added to adjusted gross income.

Now, to calculate how much tax is actually due, we have to take that $40,000 IRA distribution and we have to add it to adjusted gross income by itself. Because initially we just added it to provisional income for the purposes of identifying how much Social Security is subject to tax. We take the $36,600 of taxable Social Security that we just figured out, and then we add that $40,000 of IRA income, we add those two together, and now we get our adjusted gross income of $76,600.

So once you have AGI, you subtract out your standard deductions. So for this couple, because they’re over the age of 65 and married filing jointly, they have the enhanced senior deduction, they have what’s known as the bonus deduction for those over 65 or above, and they have the normal standard deduction. So we subtract 47,500, 47,500 from 766, their adjusted gross income, and that gives us a taxable income of 29,100.

So all of those hoops we just jumped through was to simply get to this number $9,100, and that’s how much income you owe income tax on. Federal income tax on that level of taxable income is $2,996 if you’re married filing jointly. So that’s our starting point.

Why a $20K Brokerage Sale Is Different From an IRA Withdrawal

Now we’re going to change only one thing here. Because I said the couple needs another $20,000. And in our previous video, they took it from the IRA and we walked through the example of how that increased their taxes. The $20,000 that they took actually created a $37,000 increase to their adjusted gross income and over a $4,400 increase to their actual out-of-pocket taxes owed.

So this year, instead of taking it from the IRA, they’re going to say, okay, we wised up. You know, we’re not going to do that. We’re not going to make that mistake again. So they go into the brokerage account. And they sell twenty thousand dollars of investments.

Now, cash received and taxable income aren’t necessarily the same thing. So let’s pretend, or let’s just say that $10,000 of that withdrawal is cost basis. So whatever they purchased those stocks for. And then $10,000 is long-term gain. So that $20,000 that hits the checking account, only $10,000 of it is gain.

Now we need to answer two different questions. Question one: Does this $10,000 gain Affect the provisional income calculation for Social Security? And yes, the answer is it does. Question two, what capital gains tax rate applies to the $10,000 gain itself? That’s a completely separate calculation.

And this distinction is the entire video. Here’s one way to visualize it. IRA income comes through one tax rate door. So think of this: we’re in a fun house or in wherever. You have these different doors.

So your income tax comes through one tax rate door. So it’s taxed at one particular rate when it’s classified as ordinary income or your income taxes. Capital gains, they come through another door entirely. But they’re different, they’re different types of income. They come through different doors, but they end up in the same room.

So when we’re calculating provisional income for Social Security, that capital gain still enters the calculation because it’s still in the same room, even through it went, even though it went through a different door. And this door has its own tax rates, the cap gain tax rates. Your ordinary income and income taxes, they have their own tax rates as well.

How a Capital Gain Changes Provisional Income

But again, they go through the door, they end up in the same room as the cap gains. And so now all of this enters the calculation for provisional income, which determines how much of our social security is going to be added to our taxable or adjusted gross income and ultimately our taxable income. So our $10,000 gain pushes provisional income from 80,000 to 90,000.

So even though it’s a cap gain system, it still is in the same room. It increases our provisional income. So from 80 to 90. Now let’s see what that does to Social Security.

The first progressive band doesn’t change. Remember the 32 to 44,000, that’s already maxed out, that’s already been filled up. It’s $6,000 because 50% of 12, the difference in between those two thresholds, 12,000, so the 50% band, $6,000 is what we set aside. And it’s cumulative, so we’re gonna add that to whatever we calculate next.

Provisional income in this case is now ninety thousand dollars because of the ten thousand dollar capital gain. So we’re forty six thousand above the second threshold of forty-four thousand. And do you remember what rate the second threshold gets taxed at? Well, if you said 85%, you’re correct.

So that second piece is $46,000 times 85%, which equals $39,100. So we add Both of those pieces together because they’re progressive, the 6,000 plus the 391, and we get $45,100 of your social security now gets added to your adjusted gross income. Before the capital gain, $36,600 was taxable of the Social Security. After the capital gain, $45,100.

So the difference is $8,500 of your Social Security benefits are now additionally subject to income tax because of the cap gain. So our $10,000 capital gain caused $8,500 more Social Security to become taxable. Now watch what happened to AGI.

We created $10,000 of capital gain that directly adds $10,000. But the gain also caused $8,500 more Social Security to become taxable. So AGI increased by $18,500. But we still haven’t answered the question from the beginning. Is the capital gain itself really taxed at 0%?

How Capital Gains Stacking Actually Works

To answer that, We need to understand one more concept: capital gain stacking. Long-term capital gains have their own tax rates, but you don’t take the $10,000 gain by itself and ask which bracket does the $10,000 fit into. Your ordinary taxable income fills the stack first, then your long-term cap gains sits on top of it. Where the gain lands on that stack helps determine the rate that applies to your capital gain. Let’s build it out.

So after the brokerage sale, Adjusted gross income is $95,100. So we subtract out the $47.5 of standard deductions, which leaves us $47,600 of total taxable income. But that $47.6 contains two different types of income. Remember, we came through two different doors to get to that 47.6.

10,000 of it is long-term capital gain that came through its own door and has its own tax system. And then the rest of it came through the ordinary income tax door. So Here’s where long-term gain stacking matters and how this calculation works. $37,600 is ordinary income. Your $10,000 long-term capital gain gets stacked on top of that.

So that’s $47,600 of total taxable income. We now compare that $47,600 to the cap gain thresholds. So the top of the 0% long-term capital gains range is $98,900. So If you’re at 47.6 and the 0% range goes all the way up to 998.9, even though your cap gains stacked on top of your ordinary income, that’s only to determine how much of that cap gains is taxable. So you’re well below the threshold of the top 98.9.

So all $10,000 of that gain is tax-free. The main takeaway there, though, it’s similar to the provisional income in that. We have ordinary income, we have capital gains income, they come through different doors, they go into the same room and they’re stacked on top of each other. And the order there is ordinary income then cap gains, but they’re in the same room only to determine do they exceed the capital gains threshold?

So they are taxed at a rate greater than zero percent. And if they were, if both of those added together, the the total amount of income was 110,000. Well, we have another calculation to do, but we have exceeded the 98.9 in this particular example. And so that would no longer be a 0% tax on that $10,000 capital gain.

So they’re in the same room, but only for a little bit. You know, they’re gonna hang out, have a drink, see where they’re where they stack up and the the threshold for capital gains purposes, and they go back into their own system. They go back out their own door and they’re taxed at whatever rate was determined while they were together in that room.

Why a 0% Gain Still Added $1,020 in Tax

Now we can resolve the contradiction. The capital gain itself really was taxed at 0%. But that $10,000 gain entered the provisional income calculation. So a different room. They went into a lot of rooms together, but that caused $8,500 more of their Social Security to become taxable.

That $8,500 falls into the couple’s 12% ordinary income bracket. $8,500 times 12% equals $1,020. And that’s why the tax bill went up. So both of these statements are true.

The $10,000 capital gain was taxed at 0%. And the couple’s total federal tax bill increased by $1,020. The gain itself wasn’t taxed. The gain changed another calculation, and that’s the distinction.

A 0% capital gains rate does not necessarily mean zero tax consequence. This is why retirement income decisions get more interesting than simply asking what tax rate applies to this account. Your IRA has one set of rules, capital gains have another, and Social Security has another. But a decision in one place can change what happened somewhere else on the tax return.

So the question I’d want answered isn’t only what’s the tax rate on this income, it’s if I pull this lever, what else moves?

Frequently Asked Questions

Can long-term capital gains affect how much of my Social Security is taxable?

Yes. Capital gains can increase the income used in the provisional-income calculation that determines how much of your Social Security benefits are included in taxable income.

In the example in this video, a $10,000 long-term capital gain increases provisional income from $80,000 to $90,000. That causes taxable Social Security to increase from $36,600 to $45,100. 

How can a capital gain be taxed at 0% but still increase my tax bill?

Because two separate tax calculations are involved.

The capital gain itself may qualify for the 0% long-term capital gains rate. At the same time, that gain can affect another calculation—such as the taxation of Social Security—and cause additional income to become taxable.

In this example, the gain itself produces $0 of capital gains tax but causes another $8,500 of Social Security to become taxable, producing $1,020 of additional federal income tax. 

What is provisional income?

Provisional income is a calculation used to determine how much of your Social Security benefits may be taxable.

It is not the same as adjusted gross income or taxable income. In the example used in this video, IRA income and the long-term capital gain are among the amounts affecting provisional income, which then determines how much Social Security is included in AGI. 

What is capital gains stacking?

Capital gains stacking describes how ordinary taxable income and long-term capital gains interact when determining the tax rate applied to the gain.

Ordinary taxable income fills the lower portion of the income stack first. Long-term capital gains sit on top of that income, and where those gains fall relative to the applicable capital gains thresholds helps determine whether they are taxed at 0%, 15% or another applicable rate.

In this video’s example, the couple has $37,600 of ordinary taxable income and $10,000 of long-term capital gain, creating total taxable income of $47,600. The $10,000 gain remains within the 0% long-term capital gains range used in the example. 

Does selling $20,000 from a brokerage account mean I have $20,000 of taxable income?

Not necessarily.

The amount of cash received from an investment sale and the amount of taxable gain are different concepts. In this example, the couple sells $20,000 of investments, but $10,000 represents cost basis and $10,000 represents long-term capital gain. 

Are capital gains and IRA withdrawals taxed the same way?

No.

Traditional IRA distributions are generally treated as ordinary income, while qualifying long-term capital gains have their own tax-rate structure. However, both types of income can interact with other retirement tax calculations.

That interaction is why looking at each account or tax rate in isolation can miss an important part of the picture. 

Does a 0% capital gains rate mean I should always realize gains in retirement?

No. A 0% capital gains rate describes the rate applied directly to qualifying gains under the applicable rules. It does not by itself determine the effect that realizing those gains may have on Social Security taxation or other income-dependent calculations.

The video’s example illustrates why the broader household tax picture matters when evaluating a retirement-income decision.

Free Social Security Decisions Guide

If you want to see how capital gains, IRA withdrawals, Medicare and other retirement-income decisions can affect your Social Security taxes, download our free Social Security Decisions guide here: https://click2retire.com/3UCtb1h

Related Retirement Tax Videos

Why a $20,000 IRA Withdrawal Can Increase Your AGI by $37,000
The Social Security Tax Torpedo
$5,300 vs. $900 in Taxes on the Same $50,000 Withdrawal
Same Stock. 3 Accounts. Completely Different Outcomes.

About Troy Sharpe, CFP®, CPWA®, CTS®
Troy Sharpe is the founder and CEO of Oak Harvest Financial Group and focuses on helping families coordinate retirement income, investments, taxes, healthcare and estate planning.

Reviewed/Updated: October 2026