How Do Capital Gains Taxes Work, Exactly?

Capital gains tax rates are based on how long you held an asset before selling. Long term capital gains can be lower than marginal tax rates, but not always.
Advertising Disclosure.

Advertiser Disclosure: Opinions, reviews, analyses & recommendations are the author’s alone. This article may contain links from our advertisers. For more information, please see our Advertising Policy.

The Military Wallet has partnered with CardRatings for our coverage of credit card products. The Military Wallet and CardRatings may receive a commission from card issuers. Some or all of the card offers that appear on The Military Wallet are from advertisers. Compensation may impact how and where card products appear, but does not affect our editors’ opinions or evaluations. The Military Wallet does not include all card companies or all available card offers.

When you sell an investment for more than you bought it, the government wants a cut of the gains, known as capital gains. You must pay taxes on your capital gain swhen you sell your investment.

However, the amount of taxes you have to pay on the gains depends on two major factors: 

  • How long you have owned the investment and 
  • Your income.

Now for the good news. You only pay capital gains taxes on the increased value when you sell. So, if you bought an asset for $500, and it appreciates over time to $1,500, you don’t pay taxes on the $1,500 when you sell the asset. Instead, you only pay taxes on the capital gains — in this case, $1,000.

Table of Contents
  1. How Capital Gains Work: Long-Term vs. Short-Term
    1. Current Long-Term Capital Gains Tax Rates
  2. Tax Advantages to Holding Investments for Longer Periods
  3. Using Capital Gains Rates to Your Advantage
    1. How Much Can You Save with Long-Term Capital Gains Tax Rates?
  4. What About Investment Losses?
  5. Tracking Capital Gains (and Losses)
    1. Specifying Which Shares to Sell
  6. Special Exclusions to Capital Gains Taxes
  7. Capital Gains FAQs
    1. Do I Need to Pay Estimated Taxes on Capital Gains?
    2. Will the Capital Gains Rate Remain the Same?
  8. Planning Around Capital Gains Taxes is Only Part of the Picture

How Capital Gains Work: Long-Term vs. Short-Term

The rate at which you pay capital gains taxes is determined by how long you have held the asset, and your income.

If you hold the asset for a year or less, it is considered a short-term investment. You are taxed at your marginal tax rate, meaning the gain is treated as ordinary income.

If, however, you hold the asset for at least one year and one day, it is considered a long-term investment. When you sell, your gains are taxed at a rate that might differ from your marginal tax rate. Sometimes this works in your favor.

Right now, taxpayers in the lowest two tax brackets don’t pay any federal capital gains taxes when they sell long-term assets.

Those in higher tax brackets will have to pay either 15% or 20% on their capital gains. (Capital gains taxes were previously capped at 15%). In addition, certain high-income taxpayers may pay net investment income tax, or NIIT. This additional tax is 3.8% on either net investment income (including capital gains), or adjusted gross income above certain thresholds.

While NIIT isn’t directly tied to capital gains taxes, capital gains can trigger NIIT.

Current Long-Term Capital Gains Tax Rates

2024 Long-Term Capital
Gains Tax Rate
0%15%20%
Single Filers$0 - $47,025$47,026 – $518,900Over $518,900
Married Filing
Jointly
$0 - $94,050$94,051 – $583,750Over $583,750
Head of
Household
$0 - $63,000$63,001 – $551,350Over $551,350
Married Filing
Separately
$0 - $47,025$47,026 – $291,850Over $291,850

Tax Advantages to Holding Investments for Longer Periods

As you can see, there are tax advantages to holding investments for longer periods. If you expect your income to increase, holding long-term assets can allow you to take advantage of the lower tax rate on your gains.

Indeed, one of the reasons that many of the wealthiest pay a lower tax rate is that a large chunk of their incomes come from selling long-term investments. You might be in the 32% tax bracket, but if the bulk of your income comes as you sell long-held assets, you may only pay a 15% tax on that income.

Using Capital Gains Rates to Your Advantage

Many wait long enough for their investments to be taxed at long-term capital gains rates before selling. This allows them to realize gains, access funds, and avoid paying short-term tax rates, which are the same as their marginal income tax bracket.

If you’re trying to minimize the taxes, long-term investments are the best choice.

That said, not all buy/sell decisions should be based on the tax impact. That should only be one factor to consider, not the only factor.

Short-term investments and trades can be an excellent option depending on your involvement in your portfolio and your risk preferences. Sometimes you should lock in gains when you have them, rather than risk losing them. It’s better to pay higher taxes on gains than to watch those gains melt away and sell at a loss.

Just be aware that locking in gains on a short-term trade may result in higher taxes.

If you are confused about how your investments will be taxed, I suggest meeting with a financial advisor. They can walk you through the whole process and help you determine which type of investments will be best for you.

How Much Can You Save with Long-Term Capital Gains Tax Rates?

Let’s look at a simple example based on current tax rates. Let’s assume you are Married Filing Jointly, and your taxable income is $250,000. This is right in the middle of the 24% tax bracket.

Now let’s assume you sell some mutual funds for a gain of $10,000.

If this was a short-term capital gain, you would have to pay $2,400 in capital gains taxes.

If this was a long-term capital gain, you would have to pay only $1,500 in capital gains taxes, a savings of $900.

What About Investment Losses?

One way you can offset Capital Gains Taxes is when you lost on another investment. These are Capital Losses, if you will. Let’s see how this works in practice.

Let’s say you have $1,000 worth of stocks in two different companies, Company A and Company B.

Company A’s stock price increases by 20%, but Company B’s stock price decreases by 10%. You decide to sell both at these prices.

So your holdings are now:

Company A:

  • Bought – $1,000
  • Sold – $1,200
  • Realized Gain – $200

Company B:

  • Bought – $1,000
  • Sold – $900
  • Realized Loss – $100

The terms, “Realized Gain” and “Realized Loss” indicates that these are no longer paper gains or losses. Once you execute the trade, you have “Realized” the final value. As far as the IRS is concerned, this is what matters.

When it comes time to file your taxes, you subtract any Realized Losses from your Realized Gains.

Keep in mind that all short-term transactions are lumped together, and all long-term transactions are lumped together. You will pay the short-term or long-term capital gains taxes on the gains.

You can write off or deduct up to $3,000 in losses each year against your income if you lose money.

Nobody wants to lose money on an investment. But you can at least use your capital losses to offset some of the gains that would otherwise be taxed.

Note: Be sure to understand the wash-sale rule, which states you can’t deduct losses if you sell an investment at a loss, then repurchase it within 30 days. This is an important tax rule for planning purposes.

Tracking Capital Gains (and Losses)

Not too long ago, it was up to investors to report taxable events to the IRS. However, investment firms and brokerages are now required to track your cost basis (the amount of money you paid for the investment), the duration of time you held the investment, and the final sale price.

All of this is automated on the back end of their software systems. They report the final tally for your account at the end of the calendar year. The IRS logs it on their end, and the brokerage firm sends you an IRS Form 1099 to report your investment gains and losses and whether those gains and losses are short-term, long-term, or ordinary. If the ‘Ordinary’ box on your Form 1099 is checked, then your transaction may be subject to special rules.

Most brokerages will also allow you to download a file you can import into your tax software to help make tax filing easier. Once you upload the data, the tax software will process your short-term and long-term gains and offset any losses. Then they determine the appropriate amount of taxes you should pay based on your total tax return (all your income, deductions, credits, and other factors).

The biggest decision you have to make is when to sell to best optimize your gains and losses and, ultimately, your taxes. The rest can be handled automatically.

Specifying Which Shares to Sell

As an investor, you need to pay attention to your overall holdings. More importantly, you need to pay attention to how the cost basis is tracked for your shares.

Depending on your tax planning approach, you can direct your brokerage or investment firm on which method to track the sale of investment shares. Brokerage and investment firms will normally track your investments in one of three ways:

  • FIFO – First In, First Out
  • Average Cost
  • Specific ID (spec ID).

FIFO – With the First In, First Out, accounting method, investment firms will always sell the first shares you acquired, regardless of the cost basis. This can be an easy way to track your accounting, but it gives you less overall flexibility in the long run.

Average Cost – The Average Cost of Shares is another simple way to track investments. In some ways, it can be good because it smooths your returns over time. However, like the FIFO method, you lose flexibility in handling your sales.

Specific ID – This accounting method gives you the most flexibility and allows you to “specify” which shares you want to sell. This allows you to sell some shares at long-term capital gains rates, or specify specific shares to sell at a loss if you want to offset some other gains.

Special Exclusions to Capital Gains Taxes

Realize that there are special cases when it comes to capital gains taxes. Two items to consider include:

  • Home sale exclusion: If you sell your qualifying primary residence, you are exempt from paying on up to $250,000 in gains ($500,000 in gains if you’re married), if you meet certain ownership and use criteria. This means that if your main home appreciates, and you have owned and primarily lived in the property for at least two years out of the last five, you can exclude the capital gains from taxable income, subject to these limits. For married homeowners filing a joint return, generally both spouses must meet the use criteria, but only one spouse needs to have owned the home for at least 2 years. IRS Publication 523, Selling Your Home, has additional information on about the tax exclusion on the sale of your primary residence.
  • Collectibles: Collectibles, such as coins or art, are taxed with a maximum capital gains tax rate of 28% unless you have held them for less than a year. If you have held the investments for less than a year, then you will pay your ordinary income tax rate (your marginal income tax rate). Understand that physical gold is taxed as a collectible.
  • Lower income tax bracket. Generally, if you’re in the 10% or 12% tax bracket, your capital gains rate will be zero.  If your taxable income, after deductions, is lower than $47,025 if you’re single or $94,050 if you’re filing jointly, your capital gains tax rate will be zero. This is a great tax planning opportunity for certain taxpayers looking to rebalance their investments.

Capital Gains FAQs

Capital Gains taxes aren’t super-complicated. But it is a good idea to understand the ins and outs to minimize your tax obligations.

Do I Need to Pay Estimated Taxes on Capital Gains?

You may be required to make estimated tax payments if you have a large taxable capital gain. This will depend on the amount of your capital gains, your current income, and other factors.

For additional information, consult with a tax professional, or refer to IRS Publication 505Tax Withholding and Estimated TaxEstimated Taxes, and Am I Required to Make Estimated Tax Payments?.

Will the Capital Gains Rate Remain the Same?

Like all tax rates, the capital gains tax rate is subject to change.

Previously, capital gains tax rates were either 0% or 15%. However, recent tax law changes created three brackets – 0%, 15%, and 20%.

The ultimate long-term tax rate depends on your income.

Even the recent increase still represents tax planning opportunities based on how much of your income is derived from long-term investments. Keep this in mind when planning taxable events, such as selling stocks or other investments subject to capital gains taxes.

Planning Around Capital Gains Taxes is Only Part of the Picture

Investing is the only way to get ahead financially. That said, it doesn’t have to be overly complicated. If you’re new to investing, you might be worried about the taxes you will pay. It’s simpler than you might think. In fact, most tax software programs handle capital gains taxes automatically. Don’t let capital gains taxes scare you away from making some short-term and long-term investments.

Instead, focus on the underlying fundamentals and use the capital gains tax rates to plan your purchases and sales so you can maximize your gains and minimize your tax impact.

If you need any additional tax advice, check out our full Tax Guide.

About Post Author

Get Instant Access
FREE Weekly Updates! Enter your information to join our mailing list.

Posted In:

Reader Interactions

Leave A Comment:

Comments:

About the comments on this site:

These responses are not provided or commissioned by the bank advertiser. Responses have not been reviewed, approved or otherwise endorsed by the bank advertiser. It is not the bank advertiser’s responsibility to ensure all posts and/or questions are answered.

The Military Wallet is a property of Three Creeks Media. Neither The Military Wallet nor Three Creeks Media are associated with or endorsed by the U.S. Departments of Defense or Veterans Affairs. The content on The Military Wallet is produced by Three Creeks Media, its partners, affiliates and contractors, any opinions or statements on The Military Wallet should not be attributed to the Dept. of Veterans Affairs, the Dept. of Defense or any governmental entity. If you have questions about Veteran programs offered through or by the Dept. of Veterans Affairs, please visit their website at va.gov. The content offered on The Military Wallet is for general informational purposes only and may not be relevant to any consumer’s specific situation, this content should not be construed as legal or financial advice. If you have questions of a specific nature consider consulting a financial professional, accountant or attorney to discuss. References to third-party products, rates and offers may change without notice.

Advertising Notice: The Military Wallet and Three Creeks Media, its parent and affiliate companies, may receive compensation through advertising placements on The Military Wallet; For any rankings or lists on this site, The Military Wallet may receive compensation from the companies being ranked and this compensation may affect how, where and in what order products and companies appear in the rankings and lists. If a ranking or list has a company noted to be a “partner” the indicated company is a corporate affiliate of The Military Wallet. No tables, rankings or lists are fully comprehensive and do not include all companies or available products.

Editorial Disclosure: Editorial content on The Military Wallet may include opinions. Any opinions are those of the author alone, and not those of an advertiser to the site nor of  The Military Wallet.