Calculate Stock Profit/Loss
How Stock Profit Is Calculated
Stock profit (or loss) is the difference between what you receive when selling and what you paid when buying, minus any transaction costs. This calculator computes your net result using these formulas:
Total Cost = (Buy Price × Shares) + Buy Commission
Total Proceeds = (Sell Price × Shares) − Sell Commission
Net Profit/Loss = Total Proceeds − Total Cost
Return % = (Net Profit ÷ Total Cost) × 100
Break-Even Price = (Total Cost + Sell Commission) ÷ Shares
Note: This calculator shows pre-tax results. Actual gains may be subject to capital gains tax. It does not account for dividends, stock splits, or other corporate actions. Consult a tax professional for complete investment analysis.
Worked Examples
Example 1: Simple Profitable Trade
Scenario: You buy 50 shares at $80 each and sell at $95 each. No commissions.
- Total Cost = $80 × 50 = $4,000
- Total Proceeds = $95 × 50 = $4,750
- Net Profit = $4,750 − $4,000 = $750
- Return = ($750 ÷ $4,000) × 100 = 18.75%
- Break-Even Price = $4,000 ÷ 50 = $80.00
Example 2: Trade with Commissions
Scenario: You buy 100 shares at $25, paying $9.99 commission. You sell at $28 with another $9.99 commission.
- Total Cost = ($25 × 100) + $9.99 = $2,509.99
- Total Proceeds = ($28 × 100) − $9.99 = $2,790.01
- Net Profit = $2,790.01 − $2,509.99 = $280.02
- Return = ($280.02 ÷ $2,509.99) × 100 = 11.16%
- Break-Even Price = ($2,509.99 + $9.99) ÷ 100 = $25.20
Without commissions, profit would be $300 (12% return). The $19.98 in fees reduced the return by 0.84 percentage points.
Example 3: Loss Calculation
Scenario: You buy 200 shares at $45 and sell at $38. No commissions.
- Total Cost = $45 × 200 = $9,000
- Total Proceeds = $38 × 200 = $7,600
- Net Loss = $7,600 − $9,000 = −$1,400
- Return = (−$1,400 ÷ $9,000) × 100 = −15.56%
Example 4: Fractional Shares
Scenario: You buy 2.5 shares at $320 each (total $800) and sell at $400 each.
- Total Cost = $320 × 2.5 = $800
- Total Proceeds = $400 × 2.5 = $1,000
- Net Profit = $1,000 − $800 = $200
- Return = ($200 ÷ $800) × 100 = 25%
Fractional shares let you invest specific dollar amounts regardless of share price.
Understanding Return Percentage
Return percentage (also called rate of return or ROI) measures how much your investment grew or shrank relative to what you put in. It is more useful than absolute profit for comparing investments of different sizes.
Why Return % Matters
Consider two trades:
- Trade A: $10,000 invested → $500 profit → 5% return
- Trade B: $1,000 invested → $200 profit → 20% return
Trade A made more dollars, but Trade B was more efficient — the same percentage applied to Trade A's capital would have yielded $2,000. Return percentage lets you compare performance across different investment amounts.
Annualized Return
The return shown by this calculator is total return — the gain over the entire holding period. To compare investments held for different lengths of time, you would need to annualize the return. For example, a 10% return over 6 months is roughly equivalent to a 21% annualized return (compounded).
Break-Even Price Explained
The break-even price is the minimum price per share you need to sell at to avoid a loss, after accounting for all costs. It equals your total cost (including buy commission and anticipated sell commission) divided by the number of shares.
Why Break-Even Matters
- Setting targets: Know the minimum exit price before entering a trade
- Evaluating risk: How far does the stock need to move for you to profit?
- Commission impact: High fees raise the break-even hurdle
Example: If you buy 100 shares at $50.00 with $5 buy and $5 sell commissions, your break-even is ($5,000 + $5 + $5) ÷ 100 = $50.10. The stock must rise above $50.10 for you to profit.
Factors This Calculator Does Not Include
This tool calculates capital gain or loss — the profit from price appreciation. Several other factors affect total investment returns:
- Dividends: Cash payments from the company are separate income. Add dividends received to net profit for total return.
- Taxes: Capital gains may be taxable. Short-term vs. long-term holding periods often have different tax rates. This varies by jurisdiction.
- Currency conversion: If you trade in a foreign currency, exchange rate changes affect your home-currency return.
- Opportunity cost: What could you have earned if the money was invested elsewhere?
- Inflation: A 5% nominal return may be less in real (inflation-adjusted) terms.
For tax-related questions, consult a qualified tax professional in your jurisdiction.
Frequently Asked Questions
How do I calculate stock profit?
Stock profit equals (Sell Price × Shares) minus (Buy Price × Shares) minus any commissions. For example, buying 100 shares at $50 and selling at $60 gives ($60 × 100) − ($50 × 100) = $6,000 − $5,000 = $1,000 profit before commissions.
What is return percentage on a stock trade?
Return percentage is (Net Profit ÷ Total Cost) × 100. If you invested $5,000 total (including commissions) and made $1,000 profit, your return is ($1,000 ÷ $5,000) × 100 = 20%. This shows your gain relative to your initial investment.
How do I calculate break-even price?
Break-even price is your total cost (buy price × shares + all commissions) divided by the number of shares. If you bought 100 shares at $50 with $10 total in fees, your break-even is ($5,000 + $10) ÷ 100 = $50.10 per share.
Does this calculator include taxes?
No. This shows pre-tax profit or loss. Actual gains may be subject to capital gains tax, which varies by jurisdiction, holding period, and individual circumstances.
Can I use this for ETFs and cryptocurrency?
Yes. The profit calculation works the same for any asset bought and sold at different prices — stocks, ETFs, mutual funds, cryptocurrency, or commodities.
What about dividends?
This calculator measures capital gain or loss from price changes only. To include dividends in total return, add any dividend income to your net profit before calculating return percentage.
How do commissions affect my profit?
Commissions reduce profit by increasing total cost and decreasing proceeds. Many brokers offer commission-free trades, but some charge per-trade fees ($5–$10 typical) or per-share fees. Even small fees add up over many trades.
What is cost basis?
Cost basis is your total investment in a position — typically the purchase price plus any commissions or fees. It is used to calculate capital gains or losses when you sell. If you made multiple purchases at different prices, methods like FIFO (first-in-first-out) or average cost determine which cost basis applies.
Related Tools
- ROI Calculator — calculate return on investment for any scenario
- Percentage Calculator — calculate percentages, increases, and decreases
- Compound Interest Calculator — see how investments grow over time
- Break-Even Calculator — calculate break-even point for business or investment
- Margin Calculator — calculate profit margin and markup
Privacy & Limitations
- All calculations run entirely in your browser -- nothing is sent to any server.
- Results are estimates for planning purposes and should not replace professional financial advice.
Related Tools
View all toolsSimple Interest Calculator
Calculate simple interest and total amount
Loan Calculator
Calculate monthly payments and total interest
Loan Amortization Schedule
Generate a full payment-by-payment breakdown with principal, interest, and balance
Mortgage Calculator
Estimate mortgage payments and totals
Refinance Calculator
Calculate break-even point on mortgage refinancing and compare monthly savings
Compound Interest Calculator
Calculate compound growth over time
Stock Profit Calculator FAQ
How do I calculate stock profit?
Stock profit equals (Sell Price × Shares) minus (Buy Price × Shares) minus any commissions. For example, buying 100 shares at $50 and selling at $60 gives ($60 × 100) − ($50 × 100) = $6,000 − $5,000 = $1,000 profit before commissions.
What is return percentage on a stock trade?
Return percentage is (Net Profit ÷ Total Cost) × 100. If you invested $5,000 total (including commissions) and made $1,000 profit, your return is ($1,000 ÷ $5,000) × 100 = 20%. This shows your gain relative to your initial investment.
How do I calculate break-even price?
Break-even price is your total cost (buy price × shares + all commissions) divided by the number of shares. If you bought 100 shares at $50 with $10 total in fees, your break-even is ($5,000 + $10) ÷ 100 = $50.10 per share. You need to sell above this price to profit.
Does this calculator include taxes?
No. This calculator shows pre-tax profit or loss. Actual gains may be subject to capital gains tax, which varies by jurisdiction, holding period, and individual circumstances. Consult a tax professional for tax-specific calculations.
Can I use this for ETFs and cryptocurrency?
Yes. The profit calculation works the same for any asset you buy and sell at different prices — stocks, ETFs, mutual funds, cryptocurrency, or commodities. Enter the buy price, sell price, quantity, and any transaction fees.
What about dividends?
This calculator measures capital gain or loss from price changes only. Dividends are a separate form of return. To calculate total return including dividends, add any dividend income received to your net profit before calculating the return percentage.
How do commissions affect my profit?
Commissions reduce profit by increasing your total cost and decreasing your proceeds. Many brokers now offer commission-free trades, but some charge per-trade fees ($5–$10 typical) or per-share fees. Even small fees compound over many trades.
What is cost basis?
Cost basis is your total investment in a position, typically the purchase price plus any commissions or fees. It is used to calculate capital gains or losses when you sell. If you made multiple purchases, methods like FIFO (first-in-first-out) or average cost determine which cost basis applies.