Stock Gain Calculator
Gain on a winning stock position after commissions and dividends. Live calculator with worked steps and charts.
Calculator
What you paid per share, before commissions.
What you sold (or could sell) each share for.
How many shares the trade covers.
Advanced options (3)
Cash dividends collected while holding.
This stock profit & returns calculator runs on standard equity maths: price moves plus dividends minus costs drive returns, payouts drive income, and multiples or discounted cash drive value.
Results
Net Profit
$3,600
After commissions and dividends on 200 shares.
45.00%
$8,000
$11,600
$40.00
Sell price that leaves profit at exactly zero.
$18
200
Live results update as you type — currently showing net profit of $3,600. Replace the defaults with your own prices, payouts and share counts for an exact answer.
Visualizations
Cost vs Proceeds
Cost vs Profit
Formula
The gain lens on the same round-trip maths as profit: proceeds net of the sell commission plus dividends, less the all-in purchase cost.
Variables
| Symbol | Name | Unit | Description |
|---|---|---|---|
| P | Profit | currency | Net proceeds minus true cost |
| C | True cost | currency | Purchase plus buy commission |
| R | Total return | percent | Profit ÷ true cost |
| n | Shares | count | Shares in the trade |
Explanation
This is how much the position is up after every cost and dividend — the bankable upside.
Step-by-Step Calculation
Follow each step to understand how the result is calculated from your inputs.
Add the buy commission to the purchase to get the true cost.
Subtract the sell commission, then add any dividends, for net proceeds.
Subtract cost from proceeds for profit, then divide by cost for return.
Worked Examples
See how the calculator works with different scenarios.
Scenario
The stock gain calculator run on the values above, showing the full calculation path rather than only the answer.
Inputs
Calculation
1. Add the buy commission to the purchase to get the true cost. → $8,000 total cost 2. Subtract the sell commission, then add any dividends, for net proceeds. → $11,600 net proceeds 3. Subtract cost from proceeds for profit, then divide by cost for return. → $3,600 (45.0%)
Result
Net Profit: $3,600
Interpretation
This is how much the position is up after every cost and dividend — the bankable upside.
Understanding Your Result
Your Result: Net Profit: $3,600
Typical range: A 45.0% round-trip beats the long-run ~10% yearly stock average only if earned in under a year; annualise it before comparing.
What This Means
This is how much the position is up after every cost and dividend — the bankable upside.
Why It Matters
Net $3,600 on $8,000 (45.0%); breakeven $40.00/share.
Professional Interpretation
Net $3,600 on $8,000 (45.0%); breakeven $40.00/share.
How this is calculated
The gain lens on the same round-trip maths as profit: proceeds net of the sell commission plus dividends, less the all-in purchase cost.
What drives the result
Profit is proceeds minus cost, and return is profit divided by cost. Time turns a total return into a CAGR via compounding, while averaging reshapes the cost base that every future return is measured against. Because fees and dividends hit cost and proceeds directly, the headline return always differs from the bare price move.
Recommendations
- •Confirm the after-tax figure — short-term gains are taxed as ordinary income.
- •Compare against simply holding: the return per year matters more than the total.
Educational Content
Introduction
Stock returns come from two sources: the price moving and cash paid out along the way. Every figure on this page — profit, return, CAGR, breakeven, average cost — is derived from that single relationship, which is why adding commissions or dividends shifts all of them at once.
Concept Explanation
Profit is proceeds minus cost, and return is profit divided by cost. Time turns a total return into a CAGR via compounding, while averaging reshapes the cost base that every future return is measured against. Because fees and dividends hit cost and proceeds directly, the headline return always differs from the bare price move.
Applications
Benefits
- •Separates price moves from all-in returns including fees and income
- •Turns holding periods of any length into comparable yearly rates
- •Makes breakeven and profit targets explicit before emotions intervene
- •Keeps averaged positions honest about what recovery really needs
Limitations
- •Ignores taxes, which split short-term gains from long-term rates
- •Uses nominal dollars — inflation quietly takes 2–3% a year
- •Past price paths do not predict future returns or volatility
- •Corporate actions (splits, spinoffs) must be adjusted before comparing prices
Best Practices
- •Always include both commissions when judging a trade
- •Annualise before comparing with market benchmarks
- •Write the exit (target and stop) before entering the position
- •Recompute the average cost the same day any new lot settles
Common Misconceptions
Practical Tips
- •Split exits into tranches — banking half a gain beats missing all of it.
- •Rebalance winners back to target weights.
Common Mistakes
Assumptions
This calculator makes the following assumptions to provide estimates:
Limitations
Be aware of these limitations when using this calculator:
Frequently Asked Questions
Answers to common questions about this calculator.
Is gain different from profit?
Should I bank a gain or let it run?
Who uses the stock gain calculator?
How accurate is the stock gain calculator?
Should I compare total return or price return?
Does rounding change the results?
Are taxes included?
What should I have ready before using these calculators?
How do splits affect historical prices?
Related Calculators
Explore more calculators related to this topic.
Related Guides
Deepen your understanding with these educational resources.
How price moves, fees and dividends combine into the return you keep.
Sustainable yields, payout safety and the compounding snowball.
Which multiple when, how DCF works, and what buffer to demand.
Glossary
Technical terms used in mortgage calculations explained in plain language.
- Profit
- Proceeds minus cost, including commissions and any dividends received while holding.
- Total return
- Profit divided by true cost, capturing price moves plus income minus fees.
- Cost basis
- The all-in amount invested per share or in total, including commissions; the anchor for gains and taxes.
Authoritative References
Trusted sources and standards referenced by this calculator.
Applicable Standards
Was This Calculator Helpful?
Page Information
2026-09-22
2.0.0
- SEC — Investor.gov: stocks, dividends and corporate actions
- SEC EDGAR — company filings (10-K, 10-Q) for earnings and share counts
- IRS — Topic 404: dividends (qualified vs ordinary)
- Federal Reserve — corporate profits and equity valuations (Z.1)
- S&P Global — S&P 500 earnings and dividend history
- Morningstar — equity research and valuation methodology
Free to use for educational and professional purposes.