Stock Calculator

Calculate total return, gain/loss, and after-tax profit from any stock investment.

FreeInstant resultNo signup
Copied

Reviewed & updated for 2026 by Methodology & sources · How we calculate

Total return: the only number that matters

When investors quote stock performance, they often mean price return, the change in share price alone. But your actual outcome is total return: price change plus dividends reinvested. Over long periods, the difference is enormous. Over decades, reinvested dividends have accounted for a large part of the stock market's total return, though the exact share depends on the index and the years measured.

For individual stocks, dividends matter even more for high-yield names. A utility paying 4% annually with flat share price still delivers a 4% return per year. A growth stock with 8% price appreciation and no dividend delivers 8%. They look different in headlines but math the same in your account.

Annualized return matters when comparing investments held for different periods. A 50% total return sounds great, until you learn it took 7 years (annualized to about 6%). Use this formula: Annualized = (1 + total return)^(1/years) − 1. A 35% return over 18 months is (1.35)^(1/1.5) − 1 = 22% annualized, substantially better than 50% over 7 years.

2026 capital gains tax brackets at a glance

Long-term capital gains (assets held more than one year) get preferential federal rates. For 2026 tax year, single filers pay 0% on long-term gains up to about $49,450 of taxable income, 15% up to about $545,500, and 20% above that. Married couples filing jointly pay 0% up to $98,900 and 15% up to $613,700 (Rev. Proc. 2025-32), so only the 0% threshold doubles. These are layered on top of ordinary income, so the threshold applies to your total taxable income, not just the gain.

Short-term gains (held one year or less) are taxed as ordinary income at your marginal rate (10-37%). For a high earner in the 37% bracket, the difference between holding a stock 364 days versus 366 days can be 17 percentage points on the gain. On a $20,000 profit, that's $3,400, a powerful incentive to wait those extra weeks.

Net Investment Income Tax (NIIT) adds 3.8% on investment income for single filers above $200,000 modified AGI ($250,000 married). State tax on capital gains varies wildly: California taxes them as ordinary income (up to 13.3%), Texas and Florida have no state income tax, Washington taxes long-term gains above its annual deduction at 7%, and from tax year 2025 at 9.9% on gains over $1 million.

Tax strategies investors actually use

  • Tax-loss harvesting: Sell losing positions in December to offset gains elsewhere. You can offset unlimited gains and an additional $3,000 of ordinary income per year. Beware the wash sale rule: if you buy the same or a substantially identical security within 30 days before or after the sale, the loss is disallowed for now and added to the cost of the new shares.
  • Specific share identification (SpecID): When selling part of a position, choose which specific lots to sell, typically the highest-cost lots to minimize gain. Default FIFO often sells your lowest-cost (longest-held) shares first, maximizing tax.
  • Hold across the long-term line: If your purchase date is approaching one year and you want to sell, waiting can cut your tax in half. Count from the trade date, not the settlement date: the holding period starts the day after you bought and ends on the day you sell.
  • Tax-advantaged accounts first: Trade aggressively in IRAs and 401(k)s where gains are tax-deferred. Hold buy-and-hold positions in taxable accounts for the long-term rate.
  • Donate appreciated stock: Giving stock with large embedded gains to a charity (or donor-advised fund) avoids the capital gains tax entirely and, for stock held more than a year, gives you a deduction at full market value if you itemize (income limits apply).

FAQs

How do you calculate stock return?

Formula: Return % = ((Sell price + Dividends − Buy price) / Buy price) × 100. Example: Buy at $100, sell at $130, $5 dividends. Return = (130 + 5 − 100) / 100 = 35%. To include commissions: subtract them from numerator.

What's the difference between gain and total return?

Capital gain = sell price − buy price. Total return = capital gain + dividends received. A stock can have a positive total return even if the price went DOWN, if dividends were generous.

How is stock profit taxed?

Depends on holding period. Short-term (1 year or less): taxed as ordinary income (10-37% federal). Long-term (over 1 year): preferred rates of 0%, 15%, or 20% based on income. NIIT (3.8%) applies to the smaller of your net investment income or the amount your modified AGI exceeds $200K single / $250K married ($125K married filing separately); those thresholds aren't indexed for inflation. Plus state tax in most states.

Should I include commissions?

Yes for accuracy. Most online brokers (Robinhood, Fidelity, Schwab) now offer commission-free stock trading. Older accounts or international stocks may charge $5-$10 per trade. Always factor these into your true return calculation.

Related

Total return

$—

Enter trade details

Total invested—
Total received (sale + div)—
Capital gain (pre-tax)—
Return %—
Estimated tax owed—
Net profit after tax—

Estimate

  • The tax figure uses the 2026 long-term rate that usually goes with your ordinary bracket (0% through 12%, 15% through 35%, 20% at 37%) and taxes dividends at the same rate. It leaves out the 3.8% net investment income tax and state tax, and the bracket edges don't line up exactly.
  • Past performance figures describe what happened, not what will.

Full methodology, sources and limitations