It is easy to feel good about a trade that "went up" and still misjudge how well it actually did. A stock can rise nicely while your real return stays small because the position was tiny, or fees ate the gains, or you forgot that you needed the price to clear your break-even point first. A stock profit calculator exists to replace that gut feeling with a clear number: how much you actually made or lost, and what percentage return that represents on the money you put at risk.
This guide walks through the formula, a full worked example, and the difference between the profit you see on screen and the profit you keep. It is written for reviewing trades and understanding returns, not for predicting prices or recommending what to buy or sell.
The stock profit formula
Three short equations cover most of what a stock profit calculator does:
Gross profit = (Sell price − Buy price) × Shares
Net profit = Gross profit − Fees, commissions, and other costs
Return % = (Net profit / Total cost) × 100
Gross profit is the raw price move multiplied by how many shares you held. Net profit subtracts the costs of trading, such as commissions or transaction fees. Return percentage expresses your net profit relative to what the position actually cost you, which is the figure that lets you compare one trade against another fairly, regardless of size.
Why quantity changes everything
A $5 rise in a share price means very different things depending on how many shares you own. On 10 shares it is $50; on 1,000 shares it is $5,000. The percentage move is identical, but the dollar outcome depends on position size. This is why "the stock went up 12%" is only half the story. The calculator combines the price move with the quantity to show the dollar profit, and combines that with your cost to show the percentage return. Both views matter: dollars tell you the impact on your account, and percentage tells you how efficient the trade was.
Worked example
Suppose you buy 100 shares at $40, sell them later at $52, and pay $5 in commission to buy and $5 to sell, for $10 in total fees.
Gross profit = (52 − 40) × 100 = $1,200
Net profit = 1,200 − 10 = $1,190
Total cost = (40 × 100) + 5 = $4,005
Return % = (1,190 / 4,005) × 100 ≈ 29.7%
The trade produced about $1,190 in net profit and a return of roughly 29.7% on the cost. The fees only shaved $10 off here because the gain was large, but on a smaller move the same $10 could turn a modest winner into a loser. That is the value of computing net profit rather than eyeballing the price change.
Break-even price
Before a trade is profitable, the price has to rise enough to cover what you paid to get in and out. The break-even price is where net profit equals zero:
Break-even price = Buy price + (Total fees / Shares)
In the example, that is 40 + (10 / 100) = $40.10. You do not actually make money until the price clears $40.10. With low fees and many shares, the break-even sits just above the buy price. With high fees, a small position, or frequent trading, the break-even can climb meaningfully, which is one reason active trading can underperform a buy-and-hold approach even when individual price calls look right.
Outcomes at different sell prices
The table below holds the position fixed (100 shares bought at $40, $10 total fees) and varies only the sell price, so you can see how profit and return scale.
| Sell price | Gross profit | Net profit (after $10) | Return % |
|---|---|---|---|
| $36 | −$400 | −$410 | −10.2% |
| $40 | $0 | −$10 | −0.2% |
| $44 | $400 | $390 | 9.7% |
| $52 | $1,200 | $1,190 | 29.7% |
| $60 | $2,000 | $1,990 | 49.7% |
The row at $40 is instructive: selling at exactly your buy price still leaves a small loss because of fees. Profit only becomes positive once the price clears the break-even point.
Gross profit versus net profit
Gross profit is the headline; net profit is the truth. The gap between them is every cost of trading: commissions, transaction fees, currency conversion if you trade across currencies, and any platform charges. On a single large winning trade the gap is small. Across many small trades it compounds, because each round trip pays the costs again. When you judge a strategy, always use net profit, and ideally net profit after taxes, rather than the gross number that makes every trade look better than it was.
Realized versus unrealized gains
A gain is unrealized while you still hold the shares; it exists only on paper and can vanish if the price falls before you sell. It becomes realized the moment you sell and lock it in. A stock profit calculator computes a realized result based on the sell price you enter, so if you are still holding, you are really modeling a hypothetical sale at today's price. This distinction matters for decisions and for taxes, because in most places only realized gains are taxed, and the rules can differ by how long you held.
Taxes as an external cost
Taxes are usually the largest cost the calculator does not show. Depending on your country, account type, and holding period, realized gains may be taxed at different rates, and short-term trades are often taxed less favorably than long-term holdings. Because these rules vary so widely, a general calculator leaves them out. The practical takeaway is that your true, spendable return on a taxable account is typically lower than the calculator's net profit, and you should treat tax as a separate line you estimate for your own situation.
Risk, reward, and position sizing, in general terms
A clear-eyed view of profit also means looking at what was risked to earn it. Two trades can both return $1,000, but if one risked $2,000 and the other risked $20,000, they are not equally good. Thinking about risk and reward, and about how large any single position is relative to your total portfolio, is part of reviewing trades honestly. This is general education, not a recommendation about how much anyone should risk, which depends on individual circumstances and tolerance.
What the calculator assumes, and what it leaves out
A stock profit calculator assumes the prices, share count, and fees you enter are accurate, and that the sale actually happens at the sell price. It does not include taxes, does not adjust for inflation, and does not account for dividends received during the holding period unless you add them. It also does not measure risk, opportunity cost, or how the trade fits your broader plan. Treat it as a precise tool for one trade's arithmetic, not a verdict on your investing overall.
When the calculator is useful
It is ideal for reviewing a completed or hypothetical trade: confirming your real net profit, finding your break-even price before you commit, comparing the percentage return of different trades, and seeing how fees affect small positions. Used as a record-keeping and review tool, it sharpens your sense of which trades actually paid off.
When not to rely on it
Do not use it to predict where a price will go, to decide what to buy or sell, or to estimate your after-tax return without considering your own tax rules. For those, you need market research, a plan suited to your goals, and tax guidance. Run the Stock Profit Calculator to check the math on a trade, and consult a qualified professional for decisions that carry real money or tax consequences.
Why net profit matters more than gross profit
Gross profit is the number that feels good: the price went up, multiply by the shares, and there is the gain. Net profit is the number you actually keep. The gap between them is every cost of trading, and on small or frequent trades that gap can be the difference between a winner and a loser. A trade that looks profitable on the price move alone can turn negative once commissions, platform fees, and other charges are subtracted, which is why judging a trade by its gross figure quietly flatters every decision you make.
The habit worth building is to evaluate trades, and whole strategies, on net profit rather than gross. A strategy that produces many small gross gains can still lose money if each round trip pays fees that eat the edge. Looking only at the price moves hides this slow leak. Net profit, and ideally net profit after tax, is the honest scorecard, because it reflects the money that ends up in your account rather than the money that briefly appeared on the screen.
A break-even example
Imagine you buy one hundred shares at forty dollars and pay ten dollars in total fees to enter and exit. Your break-even is not forty dollars, it is forty dollars and ten cents per share, because the price first has to cover the fees before any profit appears. Sell at exactly forty dollars and you are slightly behind, having lost the ten dollars in costs. Sell at forty dollars and ten cents and you are flat. Only above that point does the trade actually make money.
On a large position the break-even sits just a fraction above the buy price, so fees barely matter. On a small position, or when you trade in and out often, the break-even can drift noticeably higher, because the same fixed costs are spread over fewer shares and paid again on every trade. Knowing your break-even before you commit tells you how far the price truly has to move before the trade is worth making, which is often a sobering number for very active trading.
Why a calculator and your brokerage statement may disagree
A simple stock profit calculator works from the few inputs you give it: buy price, sell price, shares, and the fees you remember. Your brokerage statement reflects everything that actually happened, which is usually more. Trades may fill at a slightly different price than expected, a gap known as slippage. Currency conversion can apply to a foreign listed stock. Corporate actions such as splits or mergers can adjust your cost basis, and small regulatory or exchange fees may be added. Taxes owed or withheld are tracked by the broker but not by a basic calculator. None of this means the calculator is wrong, only that it models a clean version of a trade while the statement records the complete one.
Common mistakes
Judging trades by gross profit. Fees and taxes can turn an apparent winner into a loss.
Ignoring break-even. The price must clear your buy price plus per-share fees before you make anything.
Forgetting position size. A big percentage move on a tiny position barely moves your account.
Confusing unrealized with realized gains. Paper profit is not locked in until you sell.
Leaving taxes out of the plan. Your spendable return is usually lower than the calculator's net profit.
FAQ
How do I calculate stock profit? Gross profit is (Sell price − Buy price) × Shares. Subtract fees to get net profit, then divide net profit by your total cost and multiply by 100 for the percentage return.
What is the difference between gross profit and net profit on a stock? Gross profit is the raw price gain times shares. Net profit subtracts commissions and other trading costs, so it reflects what you actually keep before taxes.
What is a break-even price? The price at which net profit is zero, equal to the buy price plus fees per share. You only profit once the price rises above it.
What is the difference between realized and unrealized gains? Unrealized gains exist on paper while you still hold the shares and can disappear. Realized gains are locked in when you sell, and in most places only realized gains are taxed.
How do fees affect my trading return? Fees lower net profit and raise your break-even price. They matter most on small positions and frequent trading, where repeated costs can erase otherwise reasonable gains.
Does a stock profit calculator include taxes? Usually not. Tax rules vary by country, account, and holding period, so a general calculator omits them. Your real after-tax return is typically lower than the net profit shown.
Why do my calculator results differ from my brokerage report? Because the calculator uses only the inputs you provide, while your broker records every detail. Differences usually come from slippage between expected and actual fill prices, currency conversion, extra exchange or regulatory fees, corporate actions that change your cost basis, and tax treatment. The calculator is a clean estimate; the statement is the full, official record.
Educational only. Trading and investing involve risk. Taxes, fees, and rules vary. This is not financial, investment, trading, or tax advice.