Stock Calculator
Calculate total return, gain/loss, and after-tax profit from any stock investment.
Reviewed & updated for 2026 · 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. From 1928 to 2024, the S&P 500 returned about 6% annually from price appreciation alone, but reinvested dividends pushed the total return to roughly 10%, meaning $1 invested in 1928 grew to about $200 on price alone, but $7,000+ with dividends reinvested.
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 filing jointly thresholds roughly double. 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 added a 7% tax on long-term gains above $250,000 in 2022.
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 30-day wash sale rule, you can't buy back the same security within 30 days.
- 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. Check the actual purchase date, not the trade date approximation.
- 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 gives you a deduction at full market value.
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 above $200K single / $250K married income. 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.