2026-09-22 7 min read

Stock Gain Calculator

Gain on a winning stock position after commissions and dividends. Live calculator with worked steps and charts.

Calculator

Buy Price (per share) Help
$

What you paid per share, before commissions.

Sell Price (per share) Help
$

What you sold (or could sell) each share for.

Number of Shares(shares) Help
shares

How many shares the trade covers.

Advanced options (3)
Buy Commission & Fees
$
Sell Commission & Fees
$
Dividends Received Help
$

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

Optimal

Net Profit

$3,600

After commissions and dividends on 200 shares.

Total Return

45.00%

Total Cost (incl. buy fee)

$8,000

Total Proceeds (net + dividends)

$11,600

Breakeven Sell Price

$40.00

Sell price that leaves profit at exactly zero.

Profit per Share

$18

Shares

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

8,000Cost
11,600Proceeds

Cost vs Profit

Cost69%
Profit31%

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.

Gain = Proceeds (net + dividends) − Cost (incl. buy fee)

Variables

SymbolNameUnitDescription
PProfitcurrencyNet proceeds minus true cost
CTrue costcurrencyPurchase plus buy commission
RTotal returnpercentProfit ÷ true cost
nSharescountShares 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.

Step 1

Add the buy commission to the purchase to get the true cost.

Cost = buy × shares + buy fee
Buy price:$40.00
Shares:200
Buy fee:$0.00
Result: $8,000 total cost
Step 2

Subtract the sell commission, then add any dividends, for net proceeds.

Proceeds = sell × shares − sell fee + dividends
Sell price:$58.00
Sell fee:$0.00
Dividends:$0.00
Result: $11,600 net proceeds
Step 3

Subtract cost from proceeds for profit, then divide by cost for return.

Profit = proceeds − cost · Return = profit ÷ cost
Proceeds:$11,600
Cost:$8,000
Result: $3,600 (45.0%)
Final Answer
$3,600

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

Buy Price (per share):$40
Sell Price (per share):$58
Number of Shares:200
Buy Commission & Fees:$0

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

▸Checking a round-trip trade after commissions and dividends
▸Annualising multi-year gains into a comparable yearly rate
▸Setting breakeven and target prices before entering a position
▸Averaging down or up without losing track of the true cost base

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

Myth: Price return equals total return
Truth: Dividends and fees routinely add or subtract several points — price alone understates buy-and-hold wealth and overstates net trading gains.
Myth: A 50% loss needs a 50% gain to recover
Truth: From the lower base it needs 100%. Percentage losses always demand larger recovery gains.

Practical Tips

  • •Split exits into tranches — banking half a gain beats missing all of it.
  • •Rebalance winners back to target weights.

Common Mistakes

Letting tax drive the whole decision
Tax matters, but holding a deteriorating story to defer tax usually costs more.

Assumptions

This calculator makes the following assumptions to provide estimates:

Prices and fees as entered: No after-hours moves or unsettled corporate actions.

Limitations

Be aware of these limitations when using this calculator:

Limitation: Ignores taxes, which split short-term gains from long-term rates
Limitation: Uses nominal dollars — inflation quietly takes 2–3% a year
Limitation: Past price paths do not predict future returns or volatility
Limitation: Corporate actions (splits, spinoffs) must be adjusted before comparing prices

Frequently Asked Questions

Answers to common questions about this calculator.

Is gain different from profit?
No mathematically — gain is the upside framing of profit, reported when the figure is positive.
Should I bank a gain or let it run?
Compare the annualised gain with your hurdle and check position weight before deciding.
Who uses the stock gain calculator?
It is used by traders banking winners, by investors reviewing exits, and by advisers documenting gains before tax. It sits in the Stock Profit & Returns group of the Stocks, Dividends & Equities section of Atlascalcs.
How accurate is the stock gain calculator?
Every figure follows directly from the inputs using standard equity mathematics, so it is accurate to the quality of the values you enter. Broker rounding, corporate actions and tax treatment explain small differences against a statement.
Should I compare total return or price return?
Total return — price plus dividends minus fees — is the wealth you actually keep. Price return alone understates buy-and-hold compounding and flatters active trading.
Does rounding change the results?
Every calculation runs on full precision and rounds only for display. Broker statements round to cents and apply their own corporate-action adjustments, so expect tiny differences.
Are taxes included?
No. Taxes depend on holding period, account type and jurisdiction, so every figure here is pre-tax. Short-term gains and non-qualified dividends are typically taxed as ordinary income.
What should I have ready before using these calculators?
Per-share prices, share counts, commissions on both legs, dividends received, and for valuation the earnings, book, sales, debt, cash and share-count figures from the latest filings.
How do splits affect historical prices?
Split-adjust old prices before computing multi-year returns — otherwise a 2-for-1 split looks like a 50% crash. Data providers usually publish adjusted closes for this reason.

Related Calculators

Explore more calculators related to this topic.

Related Guides

Deepen your understanding with these educational resources.

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

Returns computed pre-tax in nominal dollars; commissions and dividends included exactly as enteredCAGR uses discrete annual compounding; yields use trailing-twelve-month dividends over priceMultiples use diluted shares where share counts apply; EV adds debt and subtracts cashMoney rounded for display only; all calculations run at full precision

Was This Calculator Helpful?

Page Information

Last Updated:

2026-09-22

Version:

2.0.0

License:

Free to use for educational and professional purposes.