Calculate your capital gains tax and compare short-term vs long-term rates.
Capital gains tax applies when you sell an asset — such as stocks, bonds, real estate, or cryptocurrency — for more than you paid for it. The amount of tax you owe depends on two key factors: how long you held the asset (short-term vs long-term) and your total taxable income. Understanding these rules can save you thousands by timing your sales strategically and using available tax-saving strategies.
You bought stock for $50,000 and sold it for $85,000 with$85,000 in other taxable income:
Short-term capital gains apply to assets held less than 1 year and are taxed as ordinary income at your marginal tax rate (up to 37%). Long-term capital gains apply to assets held over 1 year and receive preferential rates of 0%, 15%, or 20% depending on your taxable income. This distinction can mean a 20%+ difference in tax rate.
Yes, capital losses offset capital gains dollar-for-dollar through a process called tax-loss harvesting. Short-term losses first offset short-term gains, then long-term gains. If net losses exceed gains, you can deduct up to $3,000 ($1,500 if married filing separately) against ordinary income per year, carrying forward any remaining losses indefinitely.
If you have lived in your home as your primary residence for at least 2 of the last 5 years, you can exclude up to $250,000 in gains ($500,000 if married filing jointly) from capital gains tax under the Section 121 exclusion. This is one of the most valuable tax breaks available to homeowners.
The NIIT is an additional 3.8% tax on investment income (capital gains, dividends, rental income) for individuals with modified AGI above $200,000 ($250,000 for married couples). This means top earners effectively pay 23.8% on long-term capital gains (20% + 3.8% NIIT).
Cost basis is the original value of an asset for tax purposes — typically what you paid for it, plus any commissions or fees. Your capital gain (or loss) is calculated as: Sale Price − Cost Basis. Using the correct cost basis method (specific identification, FIFO, average cost) can significantly affect your tax liability.