Stock Gain Calculator

Calculate your stock gains including capital appreciation, dividends, and total return. See your realized and unrealized gains instantly.

MB
Operated by Mustafa Bilgic
Independent individual operator
|Profit & LossEducational only

Input Values

$

Price per share at purchase.

$

Current or sale price per share.

Shares held.

$

All dividends received.

Months held.

Results

Total Gain
$0.00
Percentage Gain
0.00%
Annualized Return0.00%
Capital Gain$0.00
Gain per Share$0.00
Results update automatically as you change input values.

Related Strategy Guides

How to Calculate Stock Gains

Stock gains represent the total profit from owning shares of a company. Total gains include capital appreciation (price increase) and income (dividends). Understanding your stock gains helps you evaluate investment performance, plan taxes, and make informed decisions about holding or selling.

This calculator computes both realized gains (if you have sold) and unrealized gains (if you still hold the shares). For unrealized gains, use the current market price as the sale price to see your paper profit.

Total Stock Gain
Total Gain = (Current Price - Purchase Price) × Shares + Dividends
Where:
Current Price = Current market or sale price
Purchase Price = Original purchase price
Shares = Number of shares
Dividends = Total dividends received
Percentage Gain
% Gain = Total Gain / (Purchase Price × Shares) × 100
Where:
Total Gain = Total dollar gain
Purchase Price × Shares = Total investment amount
Stock Gain Example
Given
Purchase Price
$42
Current Price
$67
Shares
150
Dividends
$225
Holding Period
18 months
Calculation Steps
  1. 1Capital Gain = ($67 - $42) × 150 = $3,750
  2. 2Dividend Income = $225
  3. 3Total Gain = $3,750 + $225 = $3,975
  4. 4Total Invested = $42 × 150 = $6,300
  5. 5Percentage Gain = $3,975 / $6,300 = 63.1%
  6. 6Annualized Return = (1.631)^(12/18) - 1 = 39.4%
Result
The position gained $3,975 (63.1%) over 18 months, which annualizes to 39.4%. Capital appreciation contributed $3,750 and dividends added $225.

Types of Stock Gains

Understanding Different Gain Types
Gain TypeDefinitionTax Treatment (US)When Reported
Short-Term Capital GainStock held < 1 yearTaxed as ordinary income (10-37%)Year of sale
Long-Term Capital GainStock held > 1 yearPreferential rates (0%, 15%, 20%)Year of sale
Unrealized GainPaper profit on held stockNot taxed until soldNot reported until sold
Dividend IncomeCash dividends receivedQualified: 0-20%, Ordinary: 10-37%Year received

Maximizing Stock Gains

1
Hold for Long-Term Rates
If possible, hold stocks for over one year to qualify for long-term capital gains rates (0-20%) instead of short-term rates (up to 37%).
2
Reinvest Dividends
Dividend reinvestment compounds returns. $225 in dividends reinvested at $67/share buys 3.36 more shares, which generate their own future gains.
3
Use Tax-Loss Harvesting
Sell losing positions to offset gains. $3,975 in gains offset by $3,975 in losses results in zero capital gains tax.
4
Track Cost Basis Accurately
Record every purchase price and date. Using the correct cost basis ensures accurate gain calculations and proper tax reporting.
  • The average S&P 500 stock gain is about 10% per year including dividends
  • Individual stock gains can vary dramatically: -100% to +1000%+ in a year
  • Concentration risk: large gains in one stock do not guarantee future performance
  • Consider rebalancing after large gains to manage portfolio risk
  • Tax-advantaged accounts (IRA, 401k) defer or eliminate taxes on gains
!
Gains Are Not Guaranteed

Past stock gains do not predict future performance. A stock that gained 63% over 18 months can just as easily decline. Always diversify, set stop-losses, and never invest more than you can afford to lose in individual stocks.

Calculating Stock Gains: Price Appreciation + Dividends

The complete gain from a stock investment includes both capital appreciation (the increase in share price) and any dividends received during the holding period. Many online calculators show only the price gain, which understates true investment performance. To calculate total stock gain accurately: (1) Start with your original investment cost including commissions, (2) Add any dividends received in cash or their reinvested value, (3) Subtract your original cost from the total final value (shares × current price + cash dividends), and (4) Divide by original cost to get the percentage gain.

Taxes significantly affect your after-tax stock gain. A 30% gain taxed at 15% (long-term capital gains) leaves you with a 25.5% after-tax gain. The same 30% gain taxed at 32% (short-term) leaves only a 20.4% after-tax gain. High-income investors in California might pay 20% + 13.3% = 33.3% on short-term gains, reducing a 30% gross gain to just 20.1% after taxes. When comparing investment performance, always ensure you are comparing pre-tax returns to pre-tax returns, or after-tax to after-tax — mixing them produces misleading conclusions.

Transaction Costs and Their Impact on Stock Gains

Commission-free trading has eliminated explicit commissions at major brokers, but hidden costs remain. The bid-ask spread (the difference between the price buyers and sellers quote) is a real cost on every trade. For heavily traded stocks like Apple or Microsoft, spreads are pennies. For small-cap and micro-cap stocks, spreads can be 0.5-2% of the share price, meaning you immediately lose 0.5-2% just by entering the trade. Additionally, market impact — the price movement your own order causes — affects large orders in less liquid stocks. Always factor these transaction costs into your stock gain calculations for accurate assessment.

~
Use Adjusted Close Prices for Accurate Gains

When looking up historical stock prices to calculate gains, always use 'adjusted close' prices, not the raw closing price. Adjusted close accounts for stock splits and dividends, giving you the true economic gain. Yahoo Finance, Google Finance, and most data providers offer adjusted prices. For example, if you held Apple stock through its 2014 7-for-1 split, the raw price history would show a seemingly large loss when the price dropped from $700 to $100, but the adjusted price reflects the correct economic reality.

Recommended Reading

Affiliate

As an Amazon Associate, we earn from qualifying purchases.

Frequently Asked Questions

Stock Gain = (Sale/Current Price - Purchase Price) × Shares + Dividends. Example: Bought 150 shares at $42, now $67, received $225 dividends. Gain = ($67-$42)×150 + $225 = $3,975. Percentage = $3,975 / $6,300 = 63.1%.

Sources & References

Embed This Calculator on Your Website

Free to use with attribution

Copy the code below to add this calculator to your website, blog, or article. A link back to CoveredCallCalculator.net is included automatically.

<iframe src="https://coveredcallcalculator.net/embed/stock-gain-calculator" width="100%" height="500" frameborder="0" title="Stock Gain Calculator" style="border:1px solid #e2e8f0;border-radius:12px;max-width:600px;"></iframe>
<p style="font-size:12px;color:#64748b;margin-top:8px;">Calculator by <a href="https://coveredcallcalculator.net" target="_blank" rel="noopener">CoveredCallCalculator.net</a></p>

More Picks You Might Like

Affiliate

As an Amazon Associate, we earn from qualifying purchases.