Stock Profit Calculator
Enter your trade details below to estimate your net stock gain or loss, return percentage, and break-even sale price.
How to Use This Stock Profit Calculator
A stock trade can look profitable on the surface, but once you include commissions, fees, and position size, the real result may be different. This calculator helps you quickly estimate your true performance from a buy-sell trade.
Just enter the number of shares, your entry and exit price, and any fees paid at purchase or sale. If you earned dividends during the holding period, include those too. The calculator then shows both dollar profit and percentage return.
What the Calculator Tells You
- Total Investment: What you paid to open the position, including buy-side fees.
- Total Sale Proceeds: What you received from selling, minus sell-side fees.
- Capital Gain/Loss: The trading gain from price movement alone.
- Dividend Income: Cash received from dividends while holding shares.
- Net Profit/Loss: Capital gain/loss plus dividend income.
- Total Return (%): Net profit divided by total investment.
- Break-even Sell Price: The exact sale price needed to avoid a loss after fees.
Core Formula Behind Stock Profit
1) Cost Basis
Cost basis is your true invested amount:
Cost Basis = (Shares × Buy Price) + Buy Fees
2) Net Sale Proceeds
Sale proceeds should account for selling costs:
Net Sale Proceeds = (Shares × Sell Price) − Sell Fees
3) Final Profit or Loss
Profit combines trading gain and dividends:
Net Profit = (Net Sale Proceeds − Cost Basis) + Dividend Income
This is the number that matters most if you want an honest view of your trade performance.
Worked Example
Suppose you bought 120 shares at $40.00 and sold at $46.50. You paid $4.95 to buy and $4.95 to sell. During the holding period, you also received $0.60 per share in dividends.
- Cost basis = (120 × 40.00) + 4.95 = $4,804.95
- Net sale proceeds = (120 × 46.50) − 4.95 = $5,575.05
- Capital gain = 5,575.05 − 4,804.95 = $770.10
- Dividend income = 120 × 0.60 = $72.00
- Net profit = 770.10 + 72.00 = $842.10
Return percentage in this example is approximately 17.53% before taxes.
Why Break-Even Price Matters
Many investors focus only on upside targets. But knowing your break-even exit price helps you manage risk more effectively. If your projected exit stays below break-even after fees, that trade idea may need a better setup or a smaller position.
Common Mistakes This Tool Helps Avoid
- Ignoring fees and overestimating profits
- Forgetting dividend income in total return
- Comparing trades by dollars only instead of percentage return
- Not evaluating how long capital was tied up (annualized return)
Important Notes
Taxes Are Not Included
This calculator does not include capital gains taxes, dividend taxes, or withholding. Your after-tax return may be lower depending on your jurisdiction and holding period.
Slippage and Market Impact
Real-world fills can differ from expected prices, especially for thinly traded stocks. For more conservative planning, you can model this by increasing fees or adjusting your sell price downward.
Frequently Asked Questions
Can I use this for partial sells?
Yes. Enter only the shares and prices for the specific portion you sold.
Can this calculator be used for ETFs?
Absolutely. The same math applies to stocks, ETFs, and many listed securities.
What if my broker has zero commissions?
Leave both fee fields at zero. If there are small regulatory or exchange fees, include them for more accurate results.
Final Thought
Good investing decisions come from clear numbers, not guesswork. Use this stock profit calculator before and after each trade to evaluate position sizing, expected reward, and real performance. Consistent review of your trade math can improve discipline over time.