Stock Profit Calculator

Calculate your total stock profit or loss including dividends, commissions, and capital gains in seconds.

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

Input Values

$

The price you paid per share when buying.

$

The price per share at which you sold or plan to sell.

Total number of shares purchased.

$

Commission paid when purchasing shares.

$

Commission paid when selling shares.

$

Total dividend income received while holding the position.

Results

Total Profit/Loss
-$5,000.00
Percentage Return
-100.00%
Capital Gain/Loss$0.00
Total Amount Invested$0.00
Total Sale Proceeds$0.00
Cost Basis per Share$0.00
Results update automatically as you change input values.

How to Calculate Stock Profit

Calculating stock profit seems straightforward - buy low, sell high, and the difference is your profit. But accurate profit calculation must account for commissions, fees, dividends received, and tax implications. Our stock profit calculator handles all of these variables so you can see your true return on investment, not just the raw price change.

Understanding your actual stock returns is critical for portfolio management and tax planning. Many investors overestimate their returns by ignoring trading costs and underestimate them by forgetting dividend income. This calculator provides a complete picture of your stock investment performance.

Stock Profit Formulas

Basic Stock Profit
Profit = (Selling Price - Purchase Price) x Shares - Buy Commission - Sell Commission + Dividends
Where:
Selling Price = Price per share at sale
Purchase Price = Price per share at purchase
Shares = Number of shares traded
Commissions = Trading fees paid to broker
Dividends = Total dividend income received
Percentage Return
Return % = (Total Profit / Total Invested) x 100
Where:
Total Profit = Net profit after all costs
Total Invested = Purchase cost plus buy commission
Stock Profit Calculation Example
Given
Purchase Price
$50.00
Selling Price
$65.00
Shares
100
Buy Commission
$4.95
Sell Commission
$4.95
Dividends
$120.00
Calculation Steps
  1. 1Total invested = ($50.00 x 100) + $4.95 = $5,004.95
  2. 2Sale proceeds = ($65.00 x 100) - $4.95 = $6,495.05
  3. 3Capital gain = $6,495.05 - $5,004.95 = $1,490.10
  4. 4Total profit = $1,490.10 + $120.00 dividends = $1,610.10
  5. 5Percentage return = $1,610.10 / $5,004.95 = 32.17%
Result
Your total profit is $1,610.10, representing a 32.17% return on your $5,004.95 investment including $120 in dividends and $9.90 in total commissions.

Understanding Cost Basis for Tax Purposes

Your cost basis is the total amount you paid for your investment, including commissions and fees. This number is critical for tax reporting because your capital gain or loss is calculated as the difference between your sale proceeds and your cost basis. In the United States, you report stock sales on IRS Form 8949 and Schedule D. Canadian investors report on Schedule 3 of their T1 tax return.

!
Tax Tip

If you bought shares of the same stock at different times and prices, you need to determine which shares you are selling. Methods include FIFO (first in, first out), specific identification, or average cost (for mutual funds). The method you choose can significantly affect your tax liability.

Short-Term vs. Long-Term Capital Gains

US Capital Gains Tax Rates (2026)
Holding PeriodTax RateExample on $10,000 GainNet After Tax
< 1 year (Short-term)10-37% (ordinary income)$2,200 at 22% bracket$7,800
> 1 year (Long-term)0%, 15%, or 20%$1,500 at 15% rate$8,500
Qualified Dividends0%, 15%, or 20%$1,500 at 15% rate$8,500
Non-Qualified Dividends10-37% (ordinary income)$2,200 at 22% bracket$7,800

Including Dividends in Your Total Return

Dividends are a significant component of total stock returns, especially for long-term investors. Historically, dividends have contributed approximately 40% of the S&P 500's total return over the past century. When calculating your stock profit, always include dividends received to get an accurate picture of your investment performance. Our calculator includes a dividend field so you can account for all income sources.

Common Stock Profit Calculation Mistakes

  • Forgetting to include commissions and fees in cost basis calculations, which understates your true cost and overstates profit
  • Not tracking dividend reinvestments, which change your cost basis and share count
  • Ignoring the effect of stock splits on cost basis - a 2:1 split halves your per-share cost basis but doubles your share count
  • Comparing raw returns without annualizing them - a 20% return over 2 years is different from 20% over 6 months
  • Not considering inflation-adjusted (real) returns for long-term investments

Annualized Return Calculation

Annualized Return Formula
Annualized Return = ((1 + Total Return)^(365/Days Held) - 1) x 100%
Where:
Total Return = Total percentage return as a decimal
Days Held = Number of calendar days position was held

Annualized returns allow you to compare investments held for different time periods on an equal basis. A 10% return over 6 months is equivalent to approximately 21% annualized, while a 10% return over 2 years is only about 4.9% annualized. Always annualize when comparing performance across different holding periods.

Frequently Asked Questions

Stock profit = (Selling Price - Purchase Price) x Number of Shares - Total Commissions + Dividends Received. For example, buying 100 shares at $50 and selling at $65 with no commissions gives you ($65 - $50) x 100 = $1,500 profit. If you also received $120 in dividends, your total profit is $1,620. The percentage return is calculated by dividing total profit by your total investment (purchase price x shares + buy commission).

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-profit-calculator" width="100%" height="500" frameborder="0" title="Stock Profit 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>