How to Use This Capital Gains Tax Calculator
Enter your asset's purchase price, sale price, and any selling costs such as broker commissions. Select your asset type, choose short-term or long-term holding period (or enter both purchase and sale dates to let the calculator determine it automatically), and fill in your filing status, annual taxable income, and state tax rate. Click Calculate Capital Gains Tax to see your federal tax, state tax, NIIT if applicable, total tax, and net proceeds. The comparison card below the breakdown shows both short-term and long-term scenarios so you can quantify the tax savings of holding longer.
Short-Term vs Long-Term Capital Gains — The Critical Difference
The most important factor in capital gains taxation is how long you held the asset. Short-term capital gains apply to assets held for one year or less and are taxed at your ordinary income tax rate — anywhere from 10% to 37% depending on your bracket. Long-term capital gains apply to assets held for more than one year and are taxed at preferential rates of 0%, 15%, or 20%. For most middle-income investors, this difference amounts to paying 15% instead of 22% or 24% — a meaningful savings on large gains.
2026 Capital Gains Tax Rates by Filing Status
Long-term capital gains rates for 2026 are structured around taxable income thresholds. Single filers pay 0% on gains up to $49,450, 15% from $49,451 to $545,500, and 20% above that. Married filing jointly filers pay 0% up to $98,900, 15% from $98,901 to $613,700, and 20% above that. Head of household filers pay 0% up to $66,200, 15% from $66,201 to $579,600, and 20% above that; married filing separately filers pay 0% up to $49,450 and 15% up to $306,850. These thresholds are applied by stacking your capital gain on top of your ordinary income — if your ordinary taxable income is already above the 0% breakpoint, all of your gain is taxed at 15% (or 20% for any part above the top breakpoint).
The Net Investment Income Tax — Who Pays It?
The Net Investment Income Tax (NIIT) adds an extra 3.8% on top of regular capital gains rates for higher-income taxpayers. It applies when your Modified Adjusted Gross Income exceeds $200,000 for single and head of household filers, $250,000 for married filing jointly, or $125,000 for married filing separately; these thresholds are not indexed for inflation. (This calculator uses the taxable income you enter as a stand-in for MAGI, which is usually somewhat higher.) The NIIT applies to the lesser of your net investment income (including capital gains) or the amount your MAGI exceeds the threshold. So a single filer with $220,000 in MAGI and $30,000 in capital gains would pay the 3.8% NIIT on the lesser of $30,000 or $20,000 (the excess over $200,000) — resulting in NIIT of $760.
How to Reduce Your Capital Gains Tax Bill
Several legal strategies can reduce the capital gains tax you owe. Hold longer: waiting until you pass the one-year mark converts a short-term gain into a long-term gain, often cutting your federal rate by a third or more (for example, from 22% or 24% to 15%). Tax-loss harvesting: selling investments that have declined in value to offset gains in the same tax year reduces your net taxable gain. Contribute to tax-advantaged accounts: gains inside a traditional IRA or 401(k) are tax-deferred; gains inside a Roth account are tax-free. Time your sale: if your income is unusually low in a particular year, realizing gains that year may push them into the 0% long-term bracket.
Special Rules for Real Estate and Collectibles
Real estate and collectibles have unique capital gains rules. For primary residence sales, most homeowners can exclude up to $250,000 of gain ($500,000 for married filing jointly) if they owned and lived in the home for at least two of the five years before sale. For rental real estate, depreciation you previously claimed must be "recaptured" at a maximum federal rate of 25% — a calculation that requires knowing your accumulated depreciation. Long-term gains on collectibles — art, coins, antiques, precious metals, wine — are taxed at your ordinary income rates but capped at 28%, higher than the 15%/20% rates that apply to stocks and most real estate.
Tax-Loss Harvesting — Offsetting Gains with Losses
Tax-loss harvesting is the practice of selling investments that have declined in value to generate realized losses that offset your capital gains. Capital losses are first applied against capital gains of the same type (short-term losses against short-term gains, long-term losses against long-term gains), then excess losses of either type can offset gains of the other type. If your losses exceed your gains, you can deduct up to $3,000 ($1,500 if married filing separately) of net capital losses against ordinary income per year, with remaining losses carried forward to future tax years. Be aware of the wash-sale rule: if you buy substantially identical securities within 30 days before or after the sale, the loss is disallowed for now and added to the cost basis of the new shares.
Frequently Asked Questions
What is the capital gains tax rate for 2026?
For 2026, long-term capital gains tax rates are 0%, 15%, or 20% depending on your taxable income and filing status. Single filers with taxable income up to $49,450 pay 0%; $49,451–$545,500 pay 15%; over $545,500 pay 20%. For married filing jointly the breakpoints are $98,900 and $613,700; for head of household, $66,200 and $579,600. Short-term capital gains (assets held one year or less) are taxed as ordinary income using the regular federal income tax brackets, which range from 10% to 37%.
How long do I need to hold a stock to get long-term capital gains rates?
You must hold an asset for more than one year to qualify for the lower long-term capital gains tax rates. If you sell after holding for exactly one year or less, the gain is taxed as a short-term capital gain at your ordinary income tax rate. The holding period starts the day after you acquire the asset and ends on the day you sell it.
Do I pay capital gains tax when I sell my house?
Most homeowners can exclude up to $250,000 of capital gains on a primary residence ($500,000 for married filing jointly) if they owned and lived in the home for at least two of the five years before the sale. Gains above the exclusion are taxed at long-term capital gains rates if the home was held over one year. However, any depreciation previously claimed on a home office may be subject to 25% depreciation recapture tax.
What is the Net Investment Income Tax?
The Net Investment Income Tax (NIIT) is an additional 3.8% federal tax on investment income — including capital gains, dividends, and interest — for higher-income taxpayers. It applies when your Modified Adjusted Gross Income (MAGI) exceeds $200,000 for single and head of household filers, $250,000 for married filing jointly, or $125,000 for married filing separately. These thresholds are set in the law and are not adjusted for inflation. The NIIT applies to the lesser of your net investment income or the amount by which your MAGI exceeds the threshold.
Sources: IRS Rev. Proc. 2025-32 (2026 capital gains breakpoints and brackets); IRS Topic 409, Capital gains and losses; IRS Topic 559, Net investment income tax; IRS Topic 701, Sale of your home.