Worth Shield Financial Services · Personal planning estimate
Capital Gains Tax Calculator
No valid results to print. Calculate a valid scenario before printing this report.
Capital Gains Tax Calculator
Calculate taxes on your investment gains and explore tax-loss harvesting opportunities
Enter ordinary adjusted gross income BEFORE these sales, not taxable income; no other capital income or carryovers are assumed. Empty deductions use the basic standard deduction; enter your total allowed deduction to override (including zero for MFS if your spouse itemizes). MAGI defaults to that AGI.
Investment Transactions
Ready to Calculate?
Enter your income and investment transactions, then click "Calculate" to see your capital gains analysis.
Understanding Capital Gains Tax
When you sell an investment for more than you paid, that profit is a capital gain — and how it's taxed depends heavily on how long you held the asset. The difference between short-term and long-term treatment can change your tax bill on the same dollar of profit substantially, which is why holding period is one of the simplest levers investors have to manage their tax bill.
This calculator walks through multiple transactions at once, automatically classifying each as short-term or long-term based on the dates you enter, and layers in the Net Investment Income Tax and state tax where applicable.
How This Calculator Works
Enter ordinary AGI before sales, your allowed deductions, filing status, and each investment transaction's purchase price, sale price, quantity, and dates. The calculator computes your holding period for each transaction, taxes net short-term gains across ordinary tax brackets and net long-term gains across the 0/15/20% brackets for your selected tax year, adds 3.8% NIIT on the lesser of net gain or MAGI excess, and applies your state rate — showing your total tax, after-tax gain, and the savings from long-term treatment.
Frequently Asked Questions
Tax years and sources
Tax years supported: 2025 and 2026.
Capital-gains figures and core rules checked: .
Checked the 0%/15%/20% long-term capital-gains thresholds for all four supported filing statuses, ordinary-income stacking, the 3.8% NIIT thresholds and lesser-of rule, and the annual ordinary-income capital-loss deduction cap against the engine used by this page. This is a scoped review, not a certification of every transaction, tax-return worksheet or special-asset rule.
- IRS Revenue Procedure 2024-40 — 2025 capital-gains thresholds (opens in a new tab)
- IRS Revenue Procedure 2025-32 — 2026 capital-gains thresholds (opens in a new tab)
- IRS Form 1040 instructions — Qualified Dividends and Capital Gain Tax Worksheet (opens in a new tab)
- IRS net investment income tax — thresholds and lesser-of rule (opens in a new tab)
- IRS Topic 409 — capital gains, losses and annual loss deduction limits (opens in a new tab)
- IRS Publication 550 — investment income, holding periods and wash sales (opens in a new tab)
This models eligible investment sales in a taxable account, not IRA or 401(k) withdrawals. NIIT assumes no other net investment income; state tax is a flat-rate illustration. Prior-year loss carryovers, wash-sale adjustments, inherited/gift holding periods, collectibles, home-sale exclusions, real-estate recapture, AMT and credit or deduction phase-out effects are not modeled. Use adjusted basis and allowable losses; confirm your complete tax situation before trading or filing.
Tax planning
Explore this topic
Continue learning, try a planning tool, or explore relevant services.
