What is a Stock Profit Calculator?

A stock profit calculator is a financial tool that computes the gain or loss from a stock trade based on the prices you paid and received, the number of shares involved, and any associated costs like brokerage fees or capital gains tax.

Basic Profit Profit = (Sell Price − Buy Price) × Number of Shares

But that single formula misses a lot. It does not account for the commission your broker charges, the tax owed on capital gains, or the compounding effect of dividend reinvestment over several years. A proper stock profit calculator handles all of that automatically.

  • Verify whether a trade was actually profitable net of all costs
  • Calculate the true return on investment (ROI)
  • Determine the exact break-even price before entering a position
  • Estimate long-term dividend income with or without reinvestment
  • Compare two different trade setups side by side

Why Basic Math Is Not Enough

Imagine you buy 200 shares of a stock at $45 and sell them at $52. The mental math says you made $7 per share — $1,400 total. But here is what the simple calculation ignores:

ItemAmount
Gross profit+$1,400.00
Buy commission (0.1%)−$9.00
Sell commission (0.1%)−$10.40
Capital gains tax (15%)−$207.09
Net profit+$1,173.51

Your real take-home is $1,173.51 — not $1,400. That is a 16% difference. This is exactly the problem a good stock profit calculator solves.

Key Features of Our Calculator

1. Basic Calculator

Enter buy price, sell price, and number of shares. Instantly see profit, ROI, total investment, sale value, per-share gain, and price change percentage.

2. Advanced Calculator (Fees & Tax)

Add buy/sell commissions and capital gains tax to get true net profit, plus the exact break-even price you need to recover all costs.

3. Dividend Calculator (with DRIP)

Estimate total dividend income over years. Toggle DRIP on to simulate reinvestment compounding — the line chart shows cumulative income growing year by year.

4. Scenario Comparison

Enter two trades side by side. The calculator identifies the winner with profit difference and ROI advantage clearly displayed.

How to Use It — Step by Step

Step 1: Choose your calculation mode

Click one of the four tabs: Basic, Advanced, Dividend, or Scenario.

Step 2: Enter your trade details

Fill in the input fields. All calculations happen in real time — results update as you type.

Example — Basic tab
  • Buy Price: $38.50
  • Sell Price: $47.20
  • Number of Shares: 150

→ Profit: +$1,305.00  |  ROI: +22.60%

Step 3: Add fees and tax (Advanced tab)

Enter your broker's commission rate and your applicable capital gains tax rate. The calculator adjusts net profit and shows the break-even price.

Step 4: Simulate dividends (Dividend tab)

Enter stock price, shares owned, annual yield, and years. Turn on DRIP to see how reinvestment compounds your returns.

Step 5: Compare two opportunities (Scenario tab)

Fill in both scenarios. The calculator identifies the winner and shows the exact profit and ROI advantage.

The Formulas Behind the Numbers

ROI ROI (%) = (Profit / Investment) × 100
Net Profit (with fees & tax) Buy Fee = Investment × (Buy Commission% / 100) Sell Fee = Sale Value × (Sell Commission% / 100) Tax = Gross Profit × (Tax Rate% / 100) [if profit > 0] Net = Gross Profit − Buy Fee − Sell Fee − Tax
Break-even Price Break-even = ((Investment + Buy Fee) / Shares) × (1 + Sell Fee% / 100)

Pro Tips for Better Trade Analysis

Always include fees, even small ones

A 0.1% commission on a $50,000 position is $100 round-trip. Over dozens of trades per year, fees become a significant drag on performance.

Know your break-even before you enter

Run the Advanced tab before placing a trade. If break-even is close to your entry price, the risk-reward ratio is unfavourable.

Use DRIP to see the real power of compounding

Try the Dividend tab with DRIP on versus off over 10 years at a 4% yield — the difference in final portfolio value is often surprising.

Tax rates vary — use the right one

Short-term gains (under one year) are taxed as ordinary income in the US — potentially much higher than the 15–20% long-term rate.

Frequently Asked Questions

How do I calculate stock profit percentage?

Divide your profit by your total investment and multiply by 100. For example: $800 profit on $5,000 investment = 16% ROI.

What is DRIP in the dividend calculator?

DRIP (Dividend Reinvestment Plan) means using dividend payments to buy additional shares automatically, compounding your returns over time.

Is this calculator free?

Yes. All tools on StockToolHub are completely free with no registration required.

Ready to calculate your stock profit?

Free, instant, no sign-up required.

Open Stock Profit Calculator →