Stock Gain Calculator

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

SC
Written by Sarah Chen, CFP
Certified Financial Planner
JW
Fact-checked by Dr. James Wilson, PhD
Options Strategy Researcher
Profit & LossFact-Checked

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.

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.

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

  • U.S. Securities and Exchange Commission (SEC) - Investor Education
  • Options Clearing Corporation (OCC) - Options Education
  • Chicago Board Options Exchange (CBOE) - Options Strategies
  • Hull, J.C. "Options, Futures, and Other Derivatives" (11th Edition, 2021)

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>