Finance & Housing Calculators

Stock Profit Calculator

Calculate net stock profit, return on investment (ROI %), break-even share price, and capital gains tax.

  • Free to use
  • No installation
  • Works in your browser

Tool workspace

How to use
Getting your tool ready…
One workspace. Everything you need, right here.
A little code. A lot of possibility.

Great tools belong on your website, too.

Bring this tool to your readers. Add one snippet to your page and let the widget take care of the rest.

  1. 01Copy the snippet
  2. 02Paste into your page’s HTML
  3. 03Publish. You’re ready.
Free to embedAuto-resizingMobile ready
embed.htmlHTML
Your widget, ready to go
Ready to paste into your HTML
Tool Overview & Guide

About Stock Profit Calculator

Key Takeaways

  • Stock Net Profit measures your real dollar return after subtracting both purchase costs and all trading commissions/fees: Net Profit = Net Proceeds - Total Initial Investment.
  • Return on Investment (ROI %): Quantifies your percentage gain or loss relative to total capital deployed: ROI% = (Net Profit / Total Initial Investment) × 100.
  • Break-Even Price: The exact minimum share price needed to cover purchase cost plus both buy and sell commissions without incurring a loss.
  • Commissions & Trading Fees: Even small flat fees or trading percentages can turn a marginal price increase into a net cash loss on smaller positions.
  • Supports capital gains tax calculations, dividend distributions, and long vs. short trade modeling.

How to Calculate Stock Profit and Return on Investment (ROI)

Calculating your true profit or loss on a stock trade requires evaluating both the investment side (your cost basis) and the revenue side (your net proceeds). Many novice investors make the mistake of looking only at the difference between the buy and sell share prices, overlooking brokerage transaction fees, exchange regulatory fees, and taxes that diminish net returns.

The Investment Side (Cost Basis)

  • Total Purchase Cost = Shares × Buy Price
  • Total Initial Investment = Total Purchase Cost + Buy Commission
  • This total represents the actual cash out of your pocket on day one.

The Revenue Side (Exit Proceeds)

  • Gross Sale Revenue = Shares × Sell Price
  • Net Sale Proceeds = Gross Sale Revenue - Sell Commission
  • This is the net cash deposited back into your brokerage account upon exiting.

The Core Stock Profit Formulas

Metric Formula Example (100 shares @ $50 buy, $65 sell, $5 fee each way)
Total Initial Investment (Shares × Buy Price) + Buy Fee (100 × $50) + $5 = $5,005.00
Net Sale Proceeds (Shares × Sell Price) - Sell Fee (100 × $65) - $5 = $6,495.00
Gross Profit Shares × (Sell Price - Buy Price) 100 × ($65 - $50) = $1,500.00
Net Profit (Pre-Tax) Net Proceeds - Total Initial Investment $6,495.00 - $5,005.00 = $1,490.00
Return on Investment (ROI %) (Net Profit / Total Investment) × 100 ($1,490 / $5,005) × 100 = 29.77%
Break-Even Share Price (Total Purchase Cost + Total Fees) / Shares ($5,000 + $10) / 100 = $50.10

Gross Profit vs. Net Profit: Why Fees Matter

Gross profit shows the pure paper gain between your exit and entry prices. Net profit is the actual cash profit remaining after paying your broker and clearing exchange fees.

Consider buying 10 shares of a stock at $20 and selling at $21. Your gross profit is 10 × $1.00 = $10.00. However, if your brokerage charges $6.95 commission to buy and $6.95 to sell ($13.90 total fees), your net result is $10.00 - $13.90 = -$3.90. Even though the stock rose 5%, you experienced a net cash loss of $3.90. This calculator automatically computes your break-even selling price so you know exactly where profitable territory begins.

Accounting for Taxes and Dividends

  • Dividend Income: If you held shares through an ex-dividend date, total dividend cash received should be added directly to your net trade profit, boosting your overall ROI.
  • Short-Term vs. Long-Term Capital Gains: In many jurisdictions (including the United States), stocks held for one year or less are taxed at ordinary income rates (up to 37%), whereas shares held for longer than one year qualify for preferential long-term capital gains tax rates (0%, 15%, or 20%). Use the Advanced Options panel above to factor in estimated capital gains taxes.

Frequently Asked Questions (FAQ)

Stock profit is calculated by subtracting your total initial investment (purchase cost plus buy commission) from your net sale proceeds (sale revenue minus sell commission). In short: Net Profit = (Shares × Sell Price - Sell Fee) - (Shares × Buy Price + Buy Fee).

ROI measures efficiency as a percentage: divide your net profit by your total initial investment and multiply by 100. For instance, making $200 on an initial $1,000 investment equals a 20% ROI.

This occurs when trading commissions, brokerage transaction fees, or exchange fees exceed your gross capital gain. For small position sizes, even a modest flat fee can consume all profit. Always check your break-even price.

The break-even price is the exact share price at which your net proceeds equal your initial investment. It accounts for both entry and exit transaction fees: Break-Even = (Total Purchase Cost + Total Fees) / Shares.

Yes. The math for units, purchase prices, sell prices, and network/exchange trading fees is identical for ETFs, index mutual funds, and cryptocurrencies like Bitcoin and Ethereum.

Gross profit is the simple spread between sell and buy prices multiplied by share count before any deductions. Net profit subtracts all broker commissions, exchange transaction fees, and regulatory fees to reflect true take-home gain.

When short selling, you sell first at a higher price and buy back (cover) at a lower price. In this calculator, simply enter your initial short sale price as the Buy Price and your buy-to-cover price as the Sell Price to model short gains or losses.

Yes. Net realized gains are subject to capital gains tax in taxable accounts. Holding assets over one year usually qualifies for lower long-term capital gains rates. You can test your after-tax return using the Advanced Options panel above.

Pro Tip: Bookmark this page (Ctrl+D / Cmd+D) for quick one-click access whenever you need fast, accurate calculations on the go!