Business Insider
Personal Finance Taxes

How to Calculate Capital Gains Tax in 2024 and 2025: A Step-by-Step Guide

A photo of capital gains tax forms.
What are capital gain tax rates? Business Insider explains. Keith Srakocic/Associated Press
Updated
  • The capital gains tax rate applies to profits on your investments.
  • If you owned an asset for a year or more before selling, it's taxed at a reduced rate.
  • You can minimize the tax by investing in tax-advantaged accounts, donating appreciated stock, and using capital losses.

Capital gains are profits. Specifically, the profits you make from selling capital assets, such as stocks, bonds, real estate, and collectibles.

Like other income, capital gains are taxed. Let's examine which capital gains tax rate applies to which investments.

What is the capital gains tax?

The capital gains tax is a tax on the net profit from the sale of an asset, such as a mutual fund or a home. You'll owe capital gains tax for an asset in the same tax year in which you sell that asset. So if you sold stock in 2024, you would owe capital gains tax with your 2024 tax return.

The U.S. government taxes capital gains based on how long you hold an asset and your overall income, though some gains are excluded for certain assets.

Importantly, under current law, capital gains aren't taxable until an asset is sold. Selling an asset results in realized capital gains — as opposed to unrealized gains, which would refer to assets or investments that haven't been sold yet.

Generally, the lower your income and the longer you hold an asset, the lower your capital gain tax. In some cases, it could be as low as 0%. However, many high earners pay low capital gains tax thanks to sophisticated strategies such as tax-loss harvesting.

Understanding capital gains

The tax rate you'll pay on capital gains can be lower than the rate you'll pay on other types of income, such as salary or profit from a business. But the amount you'll pay depends on how long you hold onto the asset before selling it.

There are two capital gains tax rates, reflecting the two types of capital gains: short-term and long-term.

  • You have a short-term capital gain if you hold an asset for one year (365 days) or less. 
  • You have a long-term capital gain if you hold an asset for longer than one year.

The clock begins ticking on the day after you buy the asset, up to and including the day you sell it.

Tax Time

The best tax software can help save you time and money when it comes time to file your taxes. TurboTax and TaxAct are popular options.

Capital gains tax rates for tax year 2024

Short-term capital gains

Short-term capital gains are taxed at ordinary income tax rates, up to 37%. The rate you'll pay depends on your filing status and total taxable income for the year.

Short-term capital gains rates:

RateSingleMarried filing jointly and qualifying surviving spousesMarried filing separatelyHead of household
10%$0 to $11,600$0 to $23,200$0 to $11,600$0 to $16,550
12%$11,601 to $47,150$23,201 to $94,300$11,601 to $47,150$16,551 to $63,100
22%$47,151 to $100,525$94,301 to $201,050$47,151 to $100,525$63,101 to $100,500
24%$100,526 to $191,950$201,051 to $383,900$100,526 to $191,950$100,501 to $191,950
32%$191,951 to $243,725$383,901 to $487,450$191,951 to $243,725$191,951 to $243,700
35%$243,726 to $609,350$487,451 to $731,200$243,726 to $365,600$243,701 to $609,350
37%$609,351 and over$731,201 and over$365,601 and over$609,351 and over

Long-term capital gains

If you manage to hold onto your investment for more than one year (365 days), you can benefit from a reduced tax rate on your capital gains. Long-term capital gains are taxed at preferential rates, up to 20%. The rate you'll pay depends on your filing status and total taxable income for the year.

Long-term capital gains rates:

Tax rateTaxable income for singleTaxable income for married filing jointly and qualifying surviving spouses Taxable income for married filing separatelyTaxable income for head of household
0%Up to $44,625Up to $89,250Up to $44,625Up to $59,750
15%$44,626 to $492,300$89,251 to $553,850$44,626 to $276,900$59,751 to $523,050
20%$492,301 and over$553,851 and over$276,901 and over$523,051 and over

The net investment income tax on capital gains

Capital gains taxes aren't the only ones investors have to worry about, though.

The net investment income tax (NIIT) is a separate tax, but it can have an impact on the tax you pay on capital gains as well as other types of investment income.

The NIIT imposes a 3.8% tax on the lesser of your net investment income or the amount by which your modified adjusted gross income (MAGI) exceeds a certain amount.

Investment income includes:

  • Distributions from annuities
  • Interest
  • Dividends
  • Capital gains
  • Income from passive activities
  • Rents
  • Royalties

The total of your investment income is reduced by any deductions related to investments, such as investment interest expense and expenses related to rental property or royalties, to arrive at net investment income.

The NIIT only applies if your MAGI exceeds the threshold amount for your filing status. Those thresholds are:

  • $200,000 for single filers and head of household
  • $250,000 for married couples filing jointly
  • $125,000 for married couples filing separately

If your income exceeds the threshold, you calculate NIIT on Form 8960 and file it along with your Form 1040 tax return.

How to calculate capital gains

Determine your cost basis 

When you sell a capital asset at a price higher than its "basis," you're generally required to report a capital gain on your federal income tax return. 

Basis means the asset's purchase price, plus any money you reinvested or put into improving it.

Calculate your proceeds

Your proceeds are generally the sale price minus any fees or commissions.

Subtract cost basis from proceeds

You'll subtract your basis from the sale price to get your gain (or loss) for each investment. Then you will need to net short-term gains against short-term losses and long-term gains against long-term losses. 

If you're left with a long-term loss and a short-term gain, or vice versa, you can net them against each other. Remember, only net profits (gains minus losses) are taxable.

To illustrate, say you are a single taxpayer in 2024 with wages of $85,000, a net short-term capital gain of $10,000, and you claim the standard deduction ($14,600). Your taxable income is $80,400 ($85,000 + $10,000 - $14,600), putting you in the 22% tax bracket for 2024.

However, you don't pay 22% on all your income, only income over $47,150 (the top of the 12% tax bracket). You calculate your tax as follows:

  • 10% of the first $11,000 of income: $1,100
  • 12% of the next $36,150 of income: $4,338
  • 22% of the last $33,250 of income: $7,315

For your 2024 tax return (filed in 2025), your tax bill is roughly $12,753.

Now, if the $10,000 gain was long-term, the tax calculation looks a little different.

Your total taxable income is still $80,400, but your ordinary income is $70,400 ($85,000 of wages - $14,600 standard deduction). You leave out the capital gain.

You are still in the 22% tax bracket, and calculate your ordinary income tax as follows:

  • 10% of the first $11,000 of income: $1,100
  • 12% of the next $36,150 of income: $4,338
  • 22% of the last $23,250: $5,115

For long-term capital gains, you fall into the 15% tax bracket, so you calculate your long-term capital gains tax separately as 15% of $10,000: $1,500.

For 2024, your tax bill is roughly $12,053.

Having your capital gain taxed at long-term rather than short-term rates results in $700 of tax savings.

Strategies to minimize capital gains tax

Tax-loss harvesting

When you sell a capital asset for less than your basis, you have a capital loss. You can use those losses to offset capital gains. One way to increase your deductible losses is to sell depreciated investments in a taxable account, a strategy known as tax-loss harvesting.

If your capital losses are greater than your capital gains, you can use up to $3,000 to offset ordinary income. Any remaining losses can be carried forward and used to offset capital gains in future tax years

Invest in tax-advantaged accounts

Tax-advantaged accounts, such as IRAs and 401(k)s, allow your investments to grow on a tax-deferred or even tax-free basis. You don't have to pay capital gains on any sales within these accounts in the year they occur.

With a traditional IRA or 401(k), you'll pay taxes when you take distributions from the account. No tax is due on Roth IRA distributions, as long as you've followed the Roth IRA withdrawal rules

Take advantage of the home sale exclusion

When you sell your home, you get to exclude a certain amount of profit from the sale from your taxable income. That limit is $250,000 for single filers and $500,000 for married couples filing jointly. To qualify, you must have owned the home and used it as your primary residence for at least two of the last five years. You can take advantage of this exclusion once every two years. 

Donate appreciated assets

Feeling philanthropic? Rather than selling stock, paying taxes on the capital gains, and then donating cash to your favorite charity, consider donating the stock directly to the organization. This strategy can reduce your tax bill in two ways.

First, you can avoid the capital gains tax you would have owed if you sold the stock. Second, if you itemize deductions, you can claim a charitable deduction for the donated stock's fair market value.

Open an Investing Account

SoFi Active Invest®
Start investing
On SoFi®'s website
Insider’s Rating
A five pointed star A five pointed star A five pointed star A five pointed star A five pointed star
4.67/5
Icon of check mark inside a promo stamp It indicates a confirmed selection.
Perks

Get up to $2,000 in stock when you fund a new account. (Offer ends 4/1/25)

Account Minimum

$0 ($1 to start investing); $5 fractional shares; $2,000 for margin trading

Fees

0% for active trading and automated investing

Bonus

Get up to $2,000 in stock when you fund a new account.

Pros
  • Check mark icon A check mark. It indicates a confirmation of your intended interaction. No account minimum
  • Check mark icon A check mark. It indicates a confirmation of your intended interaction. No account or trading fees, and low fees to own funds
  • Check mark icon A check mark. It indicates a confirmation of your intended interaction. Access to Certified Financial Planners
  • Check mark icon A check mark. It indicates a confirmation of your intended interaction. IPOs available
  • Check mark icon A check mark. It indicates a confirmation of your intended interaction. SoFi 1% IRA match
Cons
  • con icon Two crossed lines that form an 'X'. No tax-loss harvesting, an advanced investing technique where you sell a stock or mutual fund at a loss for a tax benefit
  • con icon Two crossed lines that form an 'X'. No option for stop-loss orders when actively investing. SoFi's active investing account only uses market orders
  • con icon Two crossed lines that form an 'X'. Currently only available to US residents
Insider’s Take

SoFi Invest is a great platform for US investors who are looking for an intuitive online trading experience, an open active or automated investing account.

SoFi Active Invest review External link Arrow An arrow icon, indicating this redirects the user."
Product Details
  • Promotion: Get up to $2,000 in stock when you fund a new account. (Offer ends 4/1/25)
  • App store rating: 4.8 iOS/3.8 Android
  • Consider it if: You want an easy-to-use platform paired with rock-bottom pricing.
Robinhood Investing
Start investing
On Robinhood's website
Insider’s Rating
A five pointed star A five pointed star A five pointed star A five pointed star A five pointed star
4.21/5
Icon of check mark inside a promo stamp It indicates a confirmed selection.
Perks

Gold members earn 4.00% Annual Percentage Yield (APY) on uninvested cash. Other members earn .01% APY.

Account Minimum

$0 ($1 for fractional shares; $2,000 for margin trading)

Fees

0% ($5/month for Robinhood Gold)

Pros
  • Check mark icon A check mark. It indicates a confirmation of your intended interaction. Free stock, option, ETF, and cryptocurrency trades; 0.01% APY on uninvested cash for non-Gold users and 4.00% for Gold members
  • Check mark icon A check mark. It indicates a confirmation of your intended interaction. IPO investing available
  • Check mark icon A check mark. It indicates a confirmation of your intended interaction. Cash management accounts available
  • Check mark icon A check mark. It indicates a confirmation of your intended interaction. Website is easy to navigate; advanced charts for all users
Cons
  • con icon Two crossed lines that form an 'X'. Lack of investing research and trading tools; can only take advantage of professional research if you're a Robinhood Gold member
  • con icon Two crossed lines that form an 'X'. No joint accounts, education savings accounts, or mutual funds
Product Details
  • App store rating: 4.2 iOS/4.0 Android
  • Consider it if: You want to trade crypto and invest in a wide range of stocks and ETFs.
Wealthfront Investing
Start investing
On Wealthfront's website
Insider’s Rating
A five pointed star A five pointed star A five pointed star A five pointed star A five pointed star
4.34/5
Icon of check mark inside a promo stamp It indicates a confirmed selection.
Perks

Fund your first taxable investment account with at least $500 in the first 30 days of account opening and earn a $50 bonus.

Account Minimum

$1 ($500 for automated investing)

Fees

$0 for stock trades. 0.25% for automated investing (0.06% to 0.13% for fund fees)

Pros
  • Check mark icon A check mark. It indicates a confirmation of your intended interaction. Low annual fee for investment accounts; crypto trust investments available
  • Check mark icon A check mark. It indicates a confirmation of your intended interaction. Tax-loss harvesting, portfolio lines of credit, 529 college savings plans available
  • Check mark icon A check mark. It indicates a confirmation of your intended interaction. Cash account
  • Check mark icon A check mark. It indicates a confirmation of your intended interaction. Mobile app and investing and retirement tools
Cons
  • con icon Two crossed lines that form an 'X'. You need at least $100,000 to utilize additional investment strategies
  • con icon Two crossed lines that form an 'X'. No human advisor access
Insider’s Take

Wealthfront is one of the best robo-advisor options if you're in search of low-cost automated portfolio management, and one of the best socially responsible investing apps for features like tax-loss harvesting, US direct indexing, and crypto trusts.

Wealthfront review External link Arrow An arrow icon, indicating this redirects the user."
Product Details
  • Consider it if: You're balancing several goals and want to streamline your finances.
  • Promotion: Fund your first taxable investment account with at least $500 in the first 30 days of account opening and earn a $50 bonus.

FAQs

What assets are subject to capital gains?

Chevron icon It indicates an expandable section or menu, or sometimes previous / next navigation options.

Stocks, bonds, and real estate are assets subject to capital gains. Collectibles are subject to a higher capital gains tax rate.

How do I report capital gains on my tax return?

Chevron icon It indicates an expandable section or menu, or sometimes previous / next navigation options.

To report capital gains and losses and calculate tax owed on your tax return, you'll need Schedule D and Form 8949.

Can I deduct capital losses from my taxes?

Chevron icon It indicates an expandable section or menu, or sometimes previous / next navigation options.

You can't directly deduct capital losses from your taxes, but you can use capital losses to offset gains. If you have excess capital losses, up to $3,000 can be used to reduce ordinary income and the rest, if any, can be carried forward to future tax years.

What is the wash sale rule?

Chevron icon It indicates an expandable section or menu, or sometimes previous / next navigation options.

The wash sale rule stipulates that if you sell an investment at a loss and buy another "substantially identical" investment within 30 days, you won't be able to deduct your losses. Pay attention to this rule when you're tax-loss harvesting.

What are the current federal capital gains tax rates?

Chevron icon It indicates an expandable section or menu, or sometimes previous / next navigation options.

The current short-term capital gains rates match the ordinary income rates, which are 10%, 12%, 22%, 24%, 32%, 35%, and 37%. Long-term capital gains rates are 0%, 15%, and 20%, plus a 3.8% net investment income tax for earners with an annual income of $200,000 (or $250,000 if married and filing jointly).

Sofi Active Invest: Investments are not FDIC-insured - Are not bank-guaranteed - May lose value - Brokerage and Active investing products offered through SoFi Securities LLC, member FINRA(www.finra.org)/SIPC(www.sipc.org).

Must be a SoFi Plus member at the time a recurring deposit is received into your SoFi Active or Automated investing account to qualify. Bonus calculated on net monthly recurring deposits made via ACH and paid out as Rewards Points. See Rewards Terms of Service. SoFi reserves the right to change or terminate this promotion at any time without notice. See terms and limitations. https://www.sofi.com/sofiplus/invest/#disclaimers.

SoFi Plus members can schedule an unlimited number of appointments with a financial planner during periods in which the SoFi Plus member meets the eligibility criteria set forth in section 10(a) of the SoFi Plus Terms and Conditions. SoFi members who are not members of SoFi Plus can schedule one (1) appointment with a financial planner. The ability to schedule appointments is subject to financial planner availability. SoFi reserves the right to change or terminate this benefit at any time with or without notice. Advisory services are offered by SoFi Wealth LLC, an SEC-registered investment adviser. Information about SoFi Wealth's advisory operations, services, and fees is set forth in SoFi Wealth's current Form ADV Part 2 (Brochure), a copy of which is available upon request and at www.adviserinfo.sec.gov.

Customer must fund their Active invest account with at least $50 within 30 days of opening the account. Probability of customer receiving $2,000 is 0.028%. See full terms and conditions at https://www.sofi.com/greenintwoterms/.

Back to Top A white circle with a black border surrounding a chevron pointing up. It indicates 'click here to go back to the top of the page.'

Read next

Jump to

  1. Main content
  2. Search
  3. Account