Capital Gains Tax Calculator
Calculate federal capital gains tax on stocks, real estate, and other investments. See your tax rate for short-term and long-term gains.
Investment Details
Enter taxable income (after deductions), not gross income.
Tax Summary
NIIT is based on modified adjusted gross income (MAGI), estimated here as the gain plus other taxable income plus the standard deduction. The deduction is left out when other taxable income is zero.
Understanding Capital Gains Tax
A capital gain is the profit you earn when you sell an asset for more than you paid. This applies to stocks, bonds, real estate, cryptocurrency, and other investments. The IRS distinguishes between short-term gains (assets held one year or less) and long-term gains (more than one year), and taxes them at very different rates.
Long-term capital gains benefit from a three-tier bracket system: 0%, 15%, or 20%. Your rate depends on your total taxable income, not just the gain itself. For example, a single filer with $40,000 in taxable income (after the standard deduction) and $30,000 in long-term gains would pay 0% on the first $9,450 of gains (filling the 0% bracket up to $49,450) and 15% on the remaining $20,550. Short-term gains receive no such preferential treatment and are taxed at your ordinary income rates, which can reach as high as 37%.
High earners also face the Net Investment Income Tax (NIIT), a 3.8% surtax that applies when modified adjusted gross income exceeds $200,000 for single filers or $250,000 for married couples filing jointly. This pushes the top combined federal rate on long-term gains to 23.8%. Keep in mind that state taxes are additional. Some states, like California, tax capital gains as ordinary income, while others, like Florida, impose no state income tax at all.
Frequently Asked Questions
What is the difference between short-term and long-term capital gains?
Assets held one year or less are taxed as short-term capital gains at ordinary income rates (10-37%). Assets held more than one year qualify as long-term capital gains and receive preferential rates of 0%, 15%, or 20%, depending on your taxable income and filing status.
Who qualifies for the 0% capital gains tax rate?
Single filers with total taxable income (including the gain) up to $49,450 in 2026, or married filing jointly up to $98,900. This means if your ordinary income plus your long-term gains stay within these thresholds, you owe no federal tax on those gains.
What is the Net Investment Income Tax (NIIT)?
The NIIT is a 3.8% surtax on investment income that applies when your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly). It stacks on top of the regular capital gains rate, so the maximum combined federal rate on long-term gains is 23.8%.
Does this calculator include state capital gains tax?
No. State tax on capital gains varies widely. California taxes gains as ordinary income at rates up to 13.3%, while states like Florida, Texas, and Nevada have no state income tax at all. Add your state rate to the federal amount shown here for a complete picture.