Capital Gains Tax Calculator

Calculate your tax liability on investment profits quickly and accurately

$
The original amount you paid to purchase the investment
$
The current market value or sale price of your investment
How long you have held the investment in years
Your annual taxable income tax bracket percentage
Category of investment such as stocks, bonds, or real estate
$
Any capital losses you can use to offset your capital gains
Your state of residence for state income tax calculations
Capital Gain Amount
Net Capital Gain (after losses)
Federal Tax Rate Applied
Federal Capital Gains Tax
State Income Tax
Total Tax Owed
Effective Tax Rate
Net Proceeds (after tax)
What does this mean? Your capital gain is the difference between what you sold the investment for and what you originally paid. The federal tax rate depends on your holding period and tax bracket, with long-term gains typically taxed at preferential rates. Your total tax owed includes both federal and state taxes, and your net proceeds show what you keep after all taxes are paid.

Understanding Capital Gains Tax

Capital gains tax is the tax you owe on profits from selling investments like stocks, bonds, real estate, or other assets. When you sell an investment for more than you paid for it, that profit is considered a capital gain and is subject to taxation. The amount of tax you owe depends on several factors including how long you held the investment, your income tax bracket, and your state of residence. Using a capital gains tax calculator helps you estimate your tax liability and plan your investments more effectively.

Short-Term vs. Long-Term Capital Gains

The IRS distinguishes between short-term and long-term capital gains based on how long you held the investment. Short-term capital gains apply to investments held for one year or less and are taxed at your ordinary income tax rate, which can be as high as 37% for the highest earners. Long-term capital gains apply to investments held for more than one year and receive preferential tax treatment with rates of 0%, 15%, or 20% depending on your income level. This significant difference makes holding investments for at least one year and one day a common tax strategy for investors seeking to minimize their tax burden.

Federal Tax Brackets and Capital Gains Rates

For 2024, the long-term capital gains tax rates are determined by your taxable income and filing status. If your taxable income falls within the 10% or 12% ordinary income tax bracket, you may qualify for a 0% long-term capital gains rate. Income falling within the 22%, 24%, 32%, or 35% brackets qualifies for a 15% long-term capital gains rate. Finally, income within the 37% bracket is subject to a 20% long-term capital gains rate. Additionally, high-income earners may be subject to the Net Investment Income Tax (NIIT) of 3.8%, which applies to investment income for individuals earning over $200,000 or married couples earning over $250,000.

Using Capital Losses to Offset Gains

You can use capital losses to reduce your capital gains and lower your tax liability through a strategy called tax-loss harvesting. If your capital losses exceed your capital gains in a given year, you can deduct up to $3,000 of the net loss against your ordinary income. Any remaining losses can be carried forward to future years indefinitely. This strategy is particularly useful at the end of the year when you can review your portfolio and strategically sell underperforming investments to offset gains from your winners, creating a more tax-efficient portfolio.

State Income Tax on Capital Gains

In addition to federal capital gains taxes, most states also tax capital gains as ordinary income. The state tax rates vary significantly, ranging from 0% in states like Texas, Florida, and Wyoming to over 13% in states like California. Some states like Alaska, Nevada, South Dakota, Tennessee, and Washington have no income tax at all. A few states like North Carolina have begun preferential treatment of long-term capital gains similar to the federal system. When calculating your total tax liability, it's essential to factor in your state's specific capital gains tax treatment to get an accurate picture of your net proceeds.

Planning Your Investment Sales

Effective tax planning can significantly impact your investment returns. Consider the timing of your sales strategically—selling investments in years when your income is lower can result in lower tax rates. If you're near a long-term holding period milestone, waiting those extra months can qualify you for preferential long-term rates. Additionally, consider offsetting gains with losses, donating appreciated securities to charity instead of selling them, or using tax-advantaged accounts like 401(k)s and IRAs for your investments. Working with a tax professional or financial advisor can help you develop a comprehensive strategy that aligns with your financial goals while minimizing your tax burden.

FAQ

What is the difference between short-term and long-term capital gains?
Short-term capital gains are from investments held for one year or less and are taxed at your ordinary income tax rate. Long-term capital gains are from investments held for more than one year and are taxed at preferential rates of 0%, 15%, or 20%, which are typically lower than ordinary income rates.
How do I calculate my cost basis?
Your cost basis is the original purchase price of the investment plus any fees or commissions paid to buy it. For inherited investments, the cost basis is typically stepped up to the fair market value on the date of the previous owner's death. Most brokerage firms provide cost basis information on your statements.
Can I use capital losses to offset other income?
You can deduct up to $3,000 of capital losses against ordinary income in a single tax year. If your losses exceed $3,000, the remaining losses can be carried forward to future years indefinitely until they are used up. Capital losses can first be used to offset any capital gains you have.
What is the Net Investment Income Tax (NIIT)?
The Net Investment Income Tax (NIIT) is an additional 3.8% tax on investment income for high-income earners. It applies to individuals with modified adjusted gross income over $200,000 (or $250,000 for married couples filing jointly). This tax applies to capital gains, dividends, interest, and other investment income.
How can I reduce my capital gains taxes?
You can reduce capital gains taxes by holding investments for more than one year to qualify for long-term rates, using capital losses to offset gains through tax-loss harvesting, timing asset sales strategically based on your income level, donating appreciated securities to charity, and using tax-advantaged accounts like 401(k)s and IRAs for your investments.

Bookmarks