Capital Gains Tax Calculator
Estimate your capital gains tax based on purchase price, selling price, holding period, and filing status.
How Capital Gains Tax Works
When you sell an asset for more than you paid, the profit is called a capital gain. The IRS taxes capital gains at different rates depending on how long you held the asset. Short-term gains (held less than one year) are taxed at your ordinary income tax rate. Long-term gains (held more than one year) benefit from lower rates of 0%, 15%, or 20%.
Your actual tax rate depends on your total taxable income and filing status. This calculator provides a simplified estimate based on common tax brackets.
Frequently Asked Questions
What are capital gains?
Capital gains are the profits you earn when you sell an investment or asset for more than you originally paid. The gain equals your selling price minus your cost basis (what you paid plus any transaction fees). If you sell for less than you paid, you have a capital loss instead.
What is the difference between short-term and long-term capital gains?
Short-term capital gains come from selling assets held for one year or less. They are taxed at your regular income tax rate, which can be as high as 37%. Long-term capital gains come from assets held longer than one year and are taxed at preferred rates of 0%, 15%, or 20% depending on your income.
What are the current capital gains tax rates?
For 2024, long-term capital gains rates are 0% for lower incomes, 15% for most taxpayers, and 20% for high earners. Short-term gains are taxed at ordinary income rates ranging from 10% to 37%. High-income earners may also owe an additional 3.8% Net Investment Income Tax.
What is cost basis?
Cost basis is what you paid for an investment, including purchase price, commissions, and fees. For inherited assets, the cost basis is typically the fair market value on the date the previous owner passed away. Accurate cost basis records reduce your taxable gain when you sell.
Should I reinvest profits to avoid capital gains tax?
Reinvesting does not eliminate capital gains tax. You still owe tax on the gain from the sale. However, strategies like tax-loss harvesting, using tax-advantaged accounts (401k, IRA), or holding investments longer than one year can help reduce your overall tax burden.
What are capital losses and how do they work?
Capital losses occur when you sell an asset for less than you paid. You can use capital losses to offset capital gains dollar for dollar. If your losses exceed your gains, you can deduct up to $3,000 per year against ordinary income and carry the rest forward to future years.
Can I offset gains with losses?
Yes. Short-term losses first offset short-term gains, and long-term losses first offset long-term gains. Any remaining net losses can then offset the other type of gain. This strategy, called tax-loss harvesting, is a common way to reduce your annual tax bill.
