When it comes to investing, few areas are as misunderstood or as full of opportunity as the way the IRS taxes long-term capital gains and dividends. You may know that the government gives these types of investment income lower "preferential" tax rates compared to wages, but what most investors don’t realize is that the order in which income is stacked makes all the difference.
With proper planning, you can strategically unlock the 0% long-term capital gains bracket and, in some cases, sell investments for a profit while paying nothing in federal taxes. In this article, we’ll walk through how the rules work, give examples at different income levels, explain how dividends fit in, and share planning strategies to maximize your after-tax wealth.
The IRS splits taxable income into two broad categories:
👉 The catch: Ordinary income is counted first and reflects the so-called "stacking rule" used in the U.S. tax system. Gains and qualified dividends are then layered on top. This ordering rule determines how much of your gains and dividends qualify for a 0%, 15%, or 20% tax rate.
Here are the official IRS thresholds for 2025:
Filing Status | 0% Bracket | 15% Bracket | 20% Bracket |
---|---|---|---|
Single | $0 – $48,350 | $48,351 – $533,400 | $533,401+ |
Married Filing Jointly | $0 – $96,700 | $96,701 – $600,050 | $600,051+ |
📌 On top of this, high earners may also owe the 3.8% Net Investment Income Tax (NIIT) once modified adjusted gross income (MAGI) exceeds $200,000 (single) or $250,000 (joint).
Taxable ordinary income = $18,800
Preferential income (gains) = $30,000
Total taxable income = $48,800
Since the 0% bracket extends to $96,700, all $30,000 of gains are taxed at 0%. This couple can sell appreciated stock and "reset" their basis, potentially saving thousands in future taxes.
Taxable ordinary income = $58,800
Preferential income = $50,000
Total taxable income = $108,800
Result: Their effective tax rate on $50,000 of gains is just 3.6%.
Taxable ordinary income = $284,400
Preferential income = $100,000
Total taxable income = $384,400
Here’s what happens:
Taxable ordinary income = $38,800
Preferential income = $30,000 (dividends + gains)
Total taxable income = $68,800
Since they’re still under the $96,700 joint 0% cutoff, all $30,000 of dividends and gains are taxed at 0%.
👉 Important: Qualified dividends and long-term gains are taxed under the same preferential system. Non-qualified dividends, however, would have been added to ordinary income instead.
Understanding how brackets "stack" unlocks several powerful strategies:
In low-income years (such as early retirement, sabbaticals, or business transition years), you can intentionally sell appreciated assets, pay no tax, and reset the cost basis to a higher amount.
Structuring portfolios for qualified dividends (rather than ordinary income distributions) can dramatically reduce annual tax drag.
In years when ordinary income is low, you might fill lower ordinary brackets with Roth conversions while still leaving room for 0% capital gains. This is advanced, but highly effective planning.
Selling a business, exercising stock options, or taking large retirement distributions can crowd out the 0% bracket. Careful timing across tax years can save tens of thousands.
For high earners, strategies like shifting income, investing through tax-efficient accounts, or offsetting gains with losses (tax-loss harvesting) can avoid or reduce the 3.8% surtax.
Do all taxpayers benefit from the 0% rate?
Yes. Technically, every taxpayer has access to the 0% bracket. But high earners usually see it "used up" by their wages and ordinary income before capital gains are considered.
Are qualified dividends always better?
Yes. Qualified dividends are taxed at preferential rates (0%, 15%, 20%) instead of ordinary income rates (up to 37%). However, eligibility rules apply, such as holding period requirements.
How do capital gains interact with Social Security taxation?
Realizing gains can increase provisional income, which may cause more of your Social Security benefits to become taxable. This is another reason to model carefully.
What about short-term capital gains?
Short-term gains (on assets held one year or less) are taxed as ordinary income. They do not get the 0% / 15% / 20% treatment.
Long-term capital gains and qualified dividends are among the most tax-favored types of income in the U.S. system. However, the real planning magic lies in understanding how they stack up against ordinary income.
With the right strategy, you can:
At VIP Wealth Advisors, we run tax-forward projections to map ordinary income, qualified dividends, and long-term gains using the stacking rules. We’ll show you how much room you have in the 0% bracket and how to coordinate Roth conversions, equity comp, and withdrawals to keep more of your returns.
Get a personalized plan to harvest gains tax-efficiently and build your after-tax wealth.
📅 Book Your VIP Planning Call