Stock Profit Calculator — Free Stock Return & Gain/Loss Calculator | AllInOneTools
📈 Free Finance Tool

Stock Profit Calculator

Calculate the profit or loss on any stock trade. See your ROI, annualized return, break-even price, and a full cost breakdown — including commissions.

$
$
shares
days
Commissions & Fees
$
$
Net Profit
+$2,200.00
on 100 shares held 365 days
Total ROI
+44.00%
return on investment
Annualized
+44.00%
per year equivalent
Break-Even
$50.00
min sell price
Cost per Share
$50.00
incl. commission
💰 Trade Breakdown
Buy Cost (shares × price)$5,000.00
Buy Commission$0.00
Total Investment$5,000.00
Sale Revenue (shares × price)$7,200.00
Sell Commission$0.00
Net Proceeds$7,200.00
Net Profit / Loss+$2,200.00
📊 Investment vs Return
Investment
Profit
Investment: $5,000Profit: $2,200

How to Calculate Stock Profit: A Complete Guide for Investors

Knowing exactly how much money you made or lost on a stock trade seems like it should be simple — you bought at one price and sold at another. But the true picture requires accounting for the number of shares, trading commissions, the time you held the position, and ultimately how your return compares to alternative investments. A trade that looks profitable on the surface may underperform when you factor in fees and the opportunity cost of your capital. This guide walks through every element of stock profit calculation so you can evaluate your trades with precision.

The Stock Profit Formula

The core calculation is straightforward, but each component matters:

Net Profit = (Sell Price − Buy Price) × Shares − Buy Commission − Sell Commission

Total Investment = (Buy Price × Shares) + Buy Commission
Sale Proceeds = (Sell Price × Shares) − Sell Commission
Net Profit = Sale Proceeds − Total Investment

Example: Buy 100 shares at $50, sell at $72, $10 commission each way
Investment = (100 × $50) + $10 = $5,010
Proceeds = (100 × $72) − $10 = $7,190
Net Profit = $7,190 − $5,010 = $2,180

Notice that the $20 in total commissions reduced the profit from $2,200 to $2,180. On a large trade this impact is minimal, but for frequent traders making many small trades, commissions can significantly erode returns. This is one reason the shift to zero-commission brokerages like Robinhood, Fidelity, and Schwab has been transformative for retail investors.

Return on Investment (ROI)

Dollar profit tells you the absolute gain, but ROI tells you the efficiency of your capital. A $2,200 profit on a $5,000 investment (44% ROI) is far more impressive than a $2,200 profit on a $50,000 investment (4.4% ROI), even though the dollar amount is identical.

ROI = (Net Profit ÷ Total Investment) × 100

Example: $2,180 profit on $5,010 investment
ROI = ($2,180 ÷ $5,010) × 100 = 43.51%

Annualized Return

ROI alone does not account for time. A 44% return in one year is excellent. A 44% return over five years is mediocre — it averages about 7.6% per year. Annualized return normalizes your gains to a per-year basis, allowing you to compare investments held for different durations on equal footing.

Annualized Return = (1 + ROI)^(365 / Holding Days) − 1

Example: 43.51% ROI over 365 days
Annualized = (1.4351)^(365/365) − 1 = 43.51%

Same ROI over 730 days (2 years):
Annualized = (1.4351)^(365/730) − 1 = 19.82%
Benchmark Your Returns
The S&P 500 has returned approximately 10% annually over the long term (before inflation). If your stock trades are consistently producing annualized returns below 10%, you might achieve better results with a simple index fund at lower risk and effort. Use annualized return as your primary metric for comparing individual trades against passive investment alternatives.

Break-Even Price

The break-even price is the minimum sell price needed to recover your total investment including all commissions. This is especially useful when deciding whether to sell a declining position or hold for recovery.

Break-Even = (Total Investment + Sell Commission) ÷ Number of Shares

Example: $5,010 invested, $10 sell commission, 100 shares
Break-Even = ($5,010 + $10) ÷ 100 = $50.20/share

Capital Gains Tax Considerations

Your net profit after taxes depends heavily on how long you held the stock. In the United States, the IRS distinguishes between short-term and long-term capital gains based on a one-year threshold. Stocks held for one year or less are taxed at your ordinary income tax rate (10-37% depending on bracket). Stocks held for more than one year qualify for long-term capital gains rates, which are significantly lower: 0%, 15%, or 20% depending on taxable income.

The impact is substantial. On a $10,000 capital gain, a taxpayer in the 32% bracket would owe $3,200 in short-term tax but only $1,500 in long-term tax — a difference of $1,700. This tax differential is one of the strongest arguments for holding winning positions beyond the one-year mark when possible.

Wash Sale Rule
If you sell a stock at a loss and repurchase substantially identical stock within 30 days before or after the sale, the IRS disallows the loss deduction under the wash sale rule. The disallowed loss is added to the cost basis of the new shares. This rule exists to prevent investors from harvesting tax losses while maintaining their market position. Be aware of this rule when tax-loss harvesting.

The True Cost of Commissions

While many US brokerages now offer zero-commission trading for stocks and ETFs, commissions still apply in many contexts: options contracts (typically $0.50-$0.65 per contract), international stock exchanges, full-service brokers, and cryptocurrency trades. Even "zero commission" platforms may charge through wider bid-ask spreads or payment for order flow, which creates hidden costs that do not appear as line items but still reduce your effective returns.

For active traders, these costs compound quickly. A trader making 200 round-trip trades per year at $10 per trade spends $4,000 annually on commissions alone. On a $50,000 portfolio, that is an 8% drag on returns before a single trade is profitable or not. This is why commission structure should be a primary consideration when choosing a brokerage, particularly for high-frequency trading strategies.

Commission Impact Rule of Thumb
If commissions represent more than 1% of any single trade's value, that trade needs to overcome a significant hurdle just to break even. For a $500 trade with a $10 commission, you need a 2% price move just to cover fees. For a $50,000 trade, $10 is just 0.02% and negligible. Size your trades appropriately relative to your fee structure.

Dollar-Cost Averaging and Profit Calculation

When you buy shares of the same stock at different times and prices — which is common with regular investment contributions — calculating profit requires determining your average cost basis. If you bought 50 shares at $40, then 50 more at $60, your average cost is $50 per share (total $5,000 ÷ 100 shares), not the simple average of $40 and $60. If you later sell all 100 shares at $70, your profit is ($70 − $50) × 100 = $2,000, not ($70 − $40) × 50 + ($70 − $60) × 50 (which yields the same result, but the average cost method is simpler and is required for mutual funds).

For tax purposes, you can use either the average cost method, FIFO (First In, First Out), or specific identification, depending on the security type and your broker's settings. Specific identification offers the most flexibility for tax optimization, as you can choose to sell higher-cost shares first to minimize taxable gains.

Frequently Asked Questions

How do I calculate stock profit?
Net Profit = (Sell Price − Buy Price) × Shares − Total Commissions. For 100 shares bought at $50 and sold at $72 with $10 total fees: ($72 − $50) × 100 − $10 = $2,190. This calculator handles all the math and also shows ROI, annualized return, and break-even price.
What is a good ROI on stocks?
The S&P 500 averages roughly 10% annually over the long term. Individual stock trades that consistently beat this benchmark are considered strong. Short-term trades might target 5-20% per trade, while long-term holds aim for 10%+ annually. Any positive return that outperforms your alternative options (index funds, bonds) can be considered good relative to your risk.
What is annualized return?
Annualized return converts your total ROI to an equivalent yearly rate, enabling fair comparison between investments held for different periods. Formula: (1 + Total ROI)^(365/days held) − 1. A 50% return over 2 years annualizes to about 22.5% per year. A 50% return in 6 months annualizes to about 125%.
How are stock profits taxed?
In the US, stocks held over 1 year are taxed at long-term capital gains rates (0%, 15%, or 20%). Stocks held 1 year or less are taxed as ordinary income (10-37%). The holding period makes a massive difference — the same $10,000 gain could cost $1,500 or $3,700 in tax depending on when you sell.
What is break-even price?
Break-even is the minimum sell price needed to recover your full investment including commissions. It equals (Total Cost + Sell Commission) ÷ Number of Shares. With zero commissions, break-even equals your buy price. With $20 total commissions on 100 shares, break-even is $0.20 above your buy price.
Do dividends count as stock profit?
Dividends are a separate form of return from price appreciation. Total return = price gain + dividends received. This calculator focuses on price-based profit. For total return including dividends, add your cumulative dividend payments to the net profit figure. Dividends are taxed separately as qualified (lower rate) or ordinary dividend income.