Stock Profit Calculator
Work out stock trade profit, ROI and break-even price from shares, prices and commissions.
Work out US federal tax on a stock or crypto sale: long-term or short-term gain, 2026 0/15/20% bands, the 3.8% NIIT and after-tax proceeds.
Loading tool controlsβ¦
Verify it yourself: press F12, open the Network tab, and use this tool β your inputs never leave your browser.
Students, homeowners and small businesses working out money, health or study figures β from mortgages to BMI.
Follow these simple steps to get instant results in your browser.
Type what you paid, what you sold for, and how many days you held the investment β more than 365 days is long-term.
Choose your filing status and enter your other income, since the long-term rates stack on top of it.
Review the gain, the federal tax, any Net Investment Income Tax, the effective rate, and what you keep after tax.
The Capital Gains Tax Calculator estimates the US federal tax on selling an investment β stocks, crypto, or property β from the buy and sell prices, how long you held it, your filing status, and your other income.
Holding for more than 365 days makes the gain long-term, taxed at the preferential 0%, 15%, or 20% rates that stack on top of your other income; holding a year or less makes it short-term, taxed as ordinary income. The tool also adds the 3.8% Net Investment Income Tax when your modified AGI is above $200,000 (single) or $250,000 (married filing jointly).
All calculations run client-side in your browser. Your prices, income, and filing status are never sent to a server.
Disclaimer: This tool estimates US federal tax only β it does not include state tax, and it is not tax advice. A loss means no federal capital gains tax. Actual tax depends on deductions, other gains and losses, and the yearβs tax law; confirm the figures with the IRS or a tax professional before filing.
Applies the 0%/15%/20% preferential rates for gains held over 365 days and ordinary rates otherwise.
Single, married filing jointly, head of household, and married filing separately, each with its own thresholds.
Adds the 3.8% NIIT on the part of the gain above the MAGI threshold.
Long-term gains fill the 0% bracket only after your other income, so the same gain can be taxed at 0% and 15%.
Shows the effective rate and exactly what you keep after federal tax.
The gain is the sell price minus the buy price; a loss means zero federal capital gains tax. Long-term gains stack on top of your other income: the part of the gain that fits under the 0% threshold (single $49,450 for 2026) is taxed at 0%, the part up to the 20% threshold ($545,500 single) at 15%, and the rest at 20%. The 3.8% Net Investment Income Tax applies only to the part of the gain above the MAGI threshold ($200,000 single, $250,000 married filing jointly).
Complementary utilities for your workflow
Work out US federal tax on a sale: gain, 2026 bands, NIIT and after-tax proceeds.
Work out stock trade profit, ROI and break-even price from shares, prices and commissions.
Work out crypto profit, ROI and break-even price from buy/sell prices, quantity and fees.
Calculate total ROI %, annualized CAGR %, net profit, and investment multiples.
Compare your mortgage with a refinance offer: payment, saving, break-even and interest saved.
Plan a fasting schedule with eating window, live timer and fast history.