Check the background of this financial professional on brokercheck.finra.org/

Man looking at computer in office

Taxation of Capital Gains

Many taxpayers are confused when it comes to the taxation of capital gains, and for good reason! In order to comprehend this concept, you’ll need a general understanding of the following: (a) an asset’s holding period, (b) the “netting” rules, (c) ordinary and preferential tax rate schedules, and (d) the 3.8% Net Investment Income Tax. While this may seem overwhelming, answering the following three questions should clear up much of the confusion:

  1. How do the “netting” rules work for short-term and long-term capital gains and losses?
  2. How do I determine whether my capital gains will be taxed at 0%, 15%, 20%, or my ordinary income tax rate?
  3. Will my capital gains be subject to the 3.8% Net Investment Income Tax (NIIT)?
Let’s consider each question in turn.

How do the “netting” rules work for short-term and long-term capital gains and losses?

First, you’ll need to understand the difference between short-term and long-term gains/losses. The difference depends on the underlying asset’s holding period. If an asset is held for one year or less before it is sold, the resulting gain or loss is short-term. If the asset is held for more than one year before it is sold, the resulting gain or loss is long-term.

At the conclusion of the tax year, short-term gains are netted with short-term losses, and long-term gains are netted with long-term losses. Consider the following example:

Trade Gain/(Loss) Short-Term | Long-Term
1 $10,000 Short-Term
2 ($5,000) Short-Term
3 ($15,000) Long-Term
4 $8,000 Long-Term
Net Short-Term Gain/Loss: $5,000
Net Long-Term Gain/Loss: ($7,000)

The final step is to combine the net short-term gain/loss with the net long-term gain/loss. Continuing with the example above, this would result in a capital loss for the year of $2,000. This $2,000 loss is used to offset the taxpayer’s ordinary income. Keep in mind, the maximum allowable capital loss in any given tax year that may be used to offset ordinary income is $3,000. Any amount of capital loss in excess of $3,000 is carried forward to subsequent tax years indefinitely until the full amount is utilized by the taxpayer.

How do I determine whether my capital gains will be taxed at 0%, 15%, 20%, or my ordinary income tax rate?

Short-term and long-term capital gains are taxed differently. Short-term gains are taxed as ordinary income at rates ranging from 10% to 37%, depending on the taxpayer’s total taxable income.* Long-term capital gains (along with qualified dividends) are taxed at preferential rates, according to the table below.

Tax Rate Married Filing Joint & Surviving Spouses Single
Taxable Income
Minimum Maximum Minimum Maximum
0% $89,250 $44,625
15% $89,251 $553,850 $44,626 $492,30
20% $553,851 $492,301


To determine which rate will apply to your capital gains, follow the steps in the graphic below and consider the following example:

How to determine tax liability 

Step 1 – Calculate Net Ordinary Income.
Net Ordinary Income = Ordinary Income - The Greater of the Applicable Standard Deduction or Itemized Deductions
 
Step 2 – Calculate ordinary income tax by applying the applicable ordinary income tax rate schedule to net ordinary income.
 
Step 3 – Calculate capital gains tax by applying the applicable capital gains tax rate schedule to long-term capital gains and qualified dividends.

Remember: Both ordinary income and capital gains tax rate schedules are progressive. Net ordinary income fills up the lower tax brackets, then long-term capital gains and qualified dividends are stacked on top. The initial capital gains tax rate is based on where net ordinary income ends. Long-term capital gains and qualified dividends can advance the capital gains tax rate to the next bracket.

* Ordinary income tax rate schedules and standard deductions can be found in our separate piece, “2023 Quick Tax Facts.”

Example: How to Determine Tax Liability

In 2023, Luke and Rae are both over age 65 and have the following income and deductions:

Retirement Income $110,000
Short-term capital gains 3,700
Long-term capital gains +10,000
Adjusted gross income $123,700
Standard deduction -30,700
Taxable Income $93,000



Step 1
– Luke and Rae’s net ordinary income is $83,000.

($93,000 - $10,000 = $83,000)
 
Step 2 – Luke and Rae figure their ordinary income tax by applying the relevant 2023 income tax table* to their $83,000 of net ordinary income. Their ordinary income tax liability is $9,520.

($2,200 + 12% of the amount over $22,000 = $9,520)

Step 3 – Finally, Luke and Rae determine their long-term capital gains tax liability by applying the capital gains tax table (provided above) to their $10,000 long-term capital gain. In order to apply the correct rates, they must pick up where net ordinary income left off. Because their net ordinary income was $83,000, the first $6,250 (from $83,000 to $89,250) of their $10,000 long-term capital gain is taxed at 0%. The remaining $3,750 of their long-term capital gain is taxed at 15% for total capital gains tax liability of $562.50.


Luke and Rae’s tax bill, including ordinary income tax and capital gains tax, totals $10,082.50.


Will my capital gains be subject to the 3.8% Net Investment Income Tax (NIIT)?

You will be subject to the NIIT if you have net investment income and have modified adjusted gross income in excess of the applicable threshold ($250,000 for married taxpayers filing jointly and $200,000 for single taxpayers). The 3.8% NIIT will be imposed on the lesser of (a) your net investment income or (b) your excess modified adjusted gross income over the applicable threshold.

Let’s repeat steps one through three to account for a modification to our previous example. We will include an additional fourth step to calculate the NIIT.

 

Example: How to Determine Tax Liability with NIIT

Step 1 – Luke and Rae still have $110,000 of retirement income, $3,700 in short-term capital gains, and $10,000 in long-term capital gains. Additionally, they decide to sell a piece of land to a developer and thereby realize an additional long-term capital gain of $500,000. Their adjusted gross income is now $623,700, and their taxable income is now $593,000.
 
Step 2 – Luke and Rae’s ordinary income tax remains at $9,520

($2,200 + 12% of the amount over $22,000 = $9,520)
 
Step 3 – Luke and Rae apply the capital gains tax table to their $510,000 long-term capital gain. Again, they pick up where their ordinary income left off – $83,000. The first $6,250 (from $83,000 to $89,250) of their $510,000 long-term capital gain is taxed at 0%. The next $464,600 is taxed at 15% for a total of $69,690, and the remaining $39,150 is taxed at 20% for a total of $7,830. This brings the overall capital gains tax liability to $77,520.
 
Step 4 – Luke and Rae’s modified adjusted gross income is $623,700. The 3.8% NIIT will be imposed on the lesser of (a) their net investment income ($513,700) or (b) their excess modified adjusted gross income over the applicable threshold.

($623,700 - $250,000 = $373,700)

They will pay the 3.8% NIIT on $373,700 for total NIIT liability of $14,200.60.
  

Luke and Rae’s tax bill, including ordinary income tax, capital gains tax, and NIIT, comes out to $101,240.60.

* Ordinary income tax rate schedules and standard deductions can be found in our separate piece, “2023 Quick Tax Facts.”

The above are hypothetical scenarios for illustrative purposes only. Stifel compiled this information from numerous Internal Revenue Service (IRS) sources. Additional state and local taxes may apply. Do not rely on this information when making decisions with tax consequences. Stifel does not provide legal or tax advice. You should consult with your legal and tax advisors regarding your particular situation.

1222.5361029.1