Updated 2026-03

Stock Return Calculator

Free stock return calculator. Compute gross profit, ROI percentage, and after-tax return on a stock trade. Models US long-term capital gains tax (0%, 15%, 20% by income bracket).

Stock Return Calculator


$

$

$

Holding period

Long-term gains taxed at 0/15/20%; short-term at ordinary income brackets.

Share with friends

How to use

  1. 1 Enter the buy price per share and the number of shares purchased.
  2. 2 Enter the sell price per share.
  3. 3 For after-tax return, toggle Include capital gains tax and pick your LTCG rate: 0% (single under $49,450 / MFJ under $98,900), 15% (middle), or 20% (single over $545,500 / MFJ over $613,700).
  4. 4 Enter commission if your broker still charges per-trade fees (most US brokers are now $0).
  5. 5 Click Calculate to see gross profit, ROI percentage, tax owed, and after-tax net profit.

FAQ

Q How is capital gains tax calculated on stocks?

Capital gain = sell price − cost basis (purchase price + commissions). If held over 1 year, the gain is long-term and taxed at 0/15/20% based on income. If held 1 year or less, the gain is short-term and taxed at ordinary income rates (10–37%). Brokers report cost basis on Form 1099-B.

Q What is the 0% capital gains tax bracket?

For taxable income up to $49,450 (single) or $98,900 (MFJ) in the current year, long-term capital gains are taxed at 0%. This is the lowest LTCG bracket — strategically realizing gains while in this bracket (e.g., a sabbatical year, early retirement before SS) is a known optimization called "harvesting gains."

Q Should I sell my stocks to lock in profits?

Tax considerations matter, but holding for over 1 year qualifies for lower LTCG rates. Don't sell purely on tax grounds — over the long term, fundamental performance dwarfs tax friction. Vanguard research shows tax drag on a low-turnover index fund is roughly 0.5–1% per year, while emotional trading can cost 3–5%.

Q What is the wash-sale rule?

IRS Publication 550: if you sell a security at a loss and buy the same or substantially identical security within 30 days before or after, the loss is disallowed and added to the cost basis of the new shares. Avoid this by waiting 31+ days, or by buying a similar but not identical security (e.g., S&P 500 ETF for total market ETF).

Q Do I owe taxes on dividends as well as capital gains?

Yes. Qualified dividends (US large-cap stocks held over 60 days, most index funds) are taxed at LTCG rates. Non-qualified dividends (REITs, money markets, foreign) are taxed at ordinary income rates. Brokers report both on Form 1099-DIV.

Q How does the Net Investment Income Tax (NIIT) work?

Adds 3.8% to investment income (capital gains, dividends, interest) for taxpayers with MAGI over $200,000 (single) or $250,000 (MFJ). At the highest LTCG bracket, the effective rate becomes 23.8% federal. Most middle-class investors don't pay NIIT.

Q What is the average return on the S&P 500?

Roughly 10% nominal annualized over the long term (1928–2024), or about 7% real after inflation. Year-to-year volatility is large — the S&P has dropped 50%+ in three of the past 25 years (2000–02, 2008, 2020 briefly). Use historical averages for planning, not for predicting next year.

Q Are there any tax-free ways to invest in stocks?

Yes — Roth IRA and Roth 401(k) growth and qualified withdrawals are tax-free at federal level. Health Savings Accounts (HSAs) used for qualified medical expenses are tax-free in and out. Section 529 college savings plans are state and federal tax-free for education. Direct brokerage accounts are always taxable.