Capital Gains Tax Rates for 2023 & 2024

This capital gains tax rates article has been updated for both the 2023 and 2024 tax years. Capital gains tax rules do not make for a particularly thrilling topic. But, seeing that this is a personal finance blog geared towards young professionals and we should all be investing as early as we possibly can, capital gains (and losses) related to investing are something I wanted to do a “101”-type overview on. And what better time than now, as we head in to end of year tax planning and then tax filing season?




If you buy and sell investments, you need to know capital gains tax rate basics or you are at risk of significant losses through bad tax planning, an IRS audit if you calculate things incorrectly, or worse. You need to be particularly careful with capital gains when selling stock units from your employer.

This won’t be a complete guide to capital gains taxes, but hopefully it will provide a base background on the primary things that should be top of mind when it comes to investing assets and tax implications when you sell those assets, so that you can do further research when necessary or be more informed on questions you take to a tax professional or the IRS.

capital gains

Calculating your “Cost Basis”

When you purchase an investment asset (e.g. a stock unit that has fully vested or stock in a taxable investment account), what you pay for that investment is your cost basis. So if you buy 1,000 shares of stock “Doofus & Sons Inc.” at $10 per share, your cost basis for those shares totals $10,000.

Note: you can also factor in the cost of the sale transaction in to your cost basis (e.g. $10 commission would add $10 to your cost basis).

The cost basis is what you use to calculate whether you have a capital gain or capital loss when you sell your asset, and how much those capital gains or capital losses are.




Capital Gain Vs. Capital Loss Definition

When you sell a capital asset, you either have a:

  • capital gain: when the price at which you sell is more than the price at which you purchased the asset
  • capital loss: when the price at which you sell is less than the price at which you purchased the asset

Calculating capital gains and losses is fairly simple, if you don’t purchase and sell often.

For example, let’s say your 1,000 shares of Doofus & Sons appreciated to $15 (up from $10) per share. Your total proceeds from selling would equal $15,000. Your cost basis was $10,000. So your capital gains would be $5,000 ($15,000 proceeds minus $10,000 cost basis).

If, on the other hand, your Doofus & Sons shares declined to $5 (down from $10) per share, you would be left with only $5,000 if you sold the shares. Since your cost basis was $10,000, you would realize a capital loss of $5,000 ($5,000 proceeds minus $10,000 cost basis).




Cost Basis Methods & Reporting

If you do purchase shares often, the math isn’t quite so simple. It used to be that you had to calculate the gains/losses on your own. However, recent legislation now (thankfully) requires brokers to do the calculations for stocks purchased in 2011 or later, and mutual funds and most ETFs purchased in 2012 or later and provide them to you through a 1099B form.

There are a number of different ways that cost basis can be calculated when you have a large number of shares. I won’t go in to all of the details here (the Bogleheads wiki covers it well), but the industry standard default for stocks and mutual funds typically are:

  • Stocks: “first in, first out (FIFO)” – in this method, the first shares purchased are assumed to be the first shares sold.
  • Mutual funds: “average cost” – in this method, you calculate the average cost of all shares that were purchased that are being sold, and use that as the basis.

Short-Term Vs. Long-Term Capital Gains & Losses

Next, there are two types of capital gains or losses:

  • Short-term: capital gains or losses are considered “short-term” if the asset was held for less than a year.
  • Long-term: capital gains or losses are considered to be “long-term” if the asset was held for more than a year.

The difference between the two is significant when it comes to capital gains. What you ultimately pay in taxes on gains will be influenced by how long you held the asset.

Short-term capital gains are taxed at your ordinary income rate. Long-term capital gains, on the other hand, get preferential tax treatment at levels that are below ordinary tax rates. We’ll highlight the actual tax rates for both below.

An important takeaway is that if you are considering selling an investment that has increased in value, it might make sense to continue holding it until at least the 1-year mark for the capital gain to be considered long term (when your taxes could potentially be lower, depending on what bracket you are in). Consider this as something for you to be aware of and look in to. More on this in a bit.

Capital Gains, Losses, & Taxes

If you have both capital gains and capital losses in the same calendar year, the losses cancel out the gains when calculating taxable capital gains.

For example, if you have $5,000 in capital gains and $3,000 in capital losses, you would only pay taxes on the $2,000 in capital gains you netted.

If your capital losses were greater than your capital gains in the same calendar year, you would actually be able to deduct your capital losses, up to $3,000 per year ($1,500 for a married individual filing separately).

Capital losses exceeding $3,000 can also be carried over into the following year and subtracted from gains for that year (or deducted if left with a net negative). This is called a “capital loss carryover“.

Can you Carry a Capital Loss Carryover Beyond 1 Year?

Many people think that you can only carry over a capital loss for 1 year. That is not true. You can continue carrying over the capital loss until it is 100% used up or if you make gains in the subsequent years the remaining losses can cancel out the gains.

For example, if you have a capital loss of $21,000 in one year, you could take a deduction of $3,000 in that year and $3,000 each of the next six years (for a total of $21,000 in deductions). If you had a gain of $10,000 in year 2, you would subtract $10,000 in capital losses, and then carry over the remaining capital loss balance to year 3 and future years until it was depleted. If you had an additional new loss in year 2, you simply add that loss to year 1, and carry both over to year 3.

Netting Out Capital Gains & Losses (Short-Term Vs. Long-Term)

What happens when you have a net gain in the short term category and a net loss in the long term category, or vice versa? You net the two against each other, and the remaining gain or loss is taxed according to its character (short term or long term).

Capital Gains Tax Rates:

The below charts show the large difference between how short and long term capital gains are taxed at each tax bracket – with taxable income calculated by subtracting the greater of the standard deduction or itemized deductions from your adjusted gross income:

2023 Short-Term Capital Gains:

Short-term capital gains are taxed at your ordinary income tax rate, corresponding to whatever marginal tax bracket your income falls within. Here are the ordinary income tax rate brackets for 2023:

Ordinary Income Tax Rates (2023)Single Filer Tax BracketsMarried Filing Jointly Tax Brackets (& Surviving Spouses)Married Filing Separately Tax BracketsHead of Household Tax Brackets
10%$0-$11,000$0-$22,000$0-$11,000$0-$15,700
12%$11,001-$44,725$22,001-$89,450$11,001-$44,725$15,701-$59,850
22%$44,726-$95,375$89,451-$190,750$44,726-$95,375$59,851-$95,350
24%$95,376-$182,100$190,751-$364,200$95,376-$182,100$95,351-$182,100
32%$182,101-$231,250$364,201-$462,500$182,101-$231,250$182,101-$231,250
35%$231,251-$578,125$462,501-$693,750$231,251-$346,875$231,251-$578,100
37%$578,126+$693,751+$346,876+$578,101+

2023 Long-Term Capital Gains:

Long-term capital gains get preferential tax treatment at levels that are below ordinary tax rates. Here are the long-term capital gains tax rates for 2023:

Long-Term Capital Gains Tax Rates (2023)Single Filer Tax BracketsMarried Filing Jointly Tax Brackets (& Surviving Spouses)Married Filing Separately Tax BracketsHead of Household Tax Brackets
0%$0-$44,625$0-$89,250$0-$44,625$0-$59,750
15%$44,626-$492,300$89,251-$553,850$44,626-$276,900$59,751-$523,050
20%$492,301+$553,851+$276,901+$523,051+

2024 Short-Term Capital Gains:

Short-term capital gains are taxed at your ordinary income tax rate, corresponding to whatever marginal tax bracket your income falls within. Here are the ordinary income tax rate brackets for 2024:

Ordinary Income Tax Rates (2024)Single Filer Tax BracketsMarried Filing Jointly Tax Brackets (& Surviving Spouses)Married Filing Separately Tax BracketsHead of Household Tax Brackets
10%$0-$11,600$0-$23,200$0-$11,600$0-$16,550
12%$11,601-$47,150$23,201-$94,300$11,601-$47,150$16,551-$63,100
22%$47,151-$100,525$94,301-$201,050$47,151-$100,525$63,101-$100,500
24%$100,526-$191,950$201,051-$383,900$100,526-$191,950$100,501-$191,950
32%$191,951-$243,725$383,901-$487,450$191,951-$243,725$191,951-$243,700
35%$243,726-$609,350$487,451-$731,200$243,726-$365,600$243,701-$609,350
37%$609,351+$731,201+$365,601+$609,351+

2024 Long-Term Capital Gains:

Long-term capital gains get preferential tax treatment at levels that are below ordinary tax rates. Here are the long-term capital gains tax rates for 2024:

Long-Term Capital Gains Tax Rates (2024)Single Filer Tax BracketsMarried Filing Jointly Tax Brackets (& Surviving Spouses)Married Filing Separately Tax BracketsHead of Household Tax Brackets
0%$0-$47,025$0-$94,050$0-$47,025$0-$63,000
15%$47,026-$518,900$94,051-$583,750$47,026-$291,850$63,001-$551,350
20%$518,901+$583,751+$291,851+$551,351+

Capital Gain Tax Forms

Brokerages are now required to send you capital gain and loss reporting via a 1099B form, so that you do not have to calculate everything on your own.

From there, your capital gains and losses will be calculated on IRS Form 8949 and reported on the IRS’s 1040, Schedule D form.

For more info on capital gains tax rules, check out IRS topic 409.

That wasn’t so bad, was it?

Related Posts:

Leave a Reply