Stock Profit Calculator Online — Free Stock Profit Calculator Tool
CodexFuse Team · 2026-11-06T05:14:31.673Z · 11 min read min read
Work out your real stock trade profit after commissions with the free CodexFuse calculator — formula, worked example, break-even price, and common mistakes.
A stock profit calculator answers one question before you close a trade: how much money did you actually make? Not the headline gain on the share price — the real number after commissions, fees, and the cost of the shares themselves. Without that number, a trade that looks like a win on screen can quietly be a loss in your account.
This guide shows you how a stock profit calculator works, what each input means, and how to read the result like someone who trades for real. You will also find a full worked example with real numbers, the limits of what the tool can tell you, and the mistakes that cost beginners the most money.
What Is a Stock Profit Calculator?
A stock profit calculator is a free online tool that works out the profit or loss on a share trade from four inputs: the price you bought at, the price you sold at, the number of shares, and the commissions you paid. It returns your total profit in currency and your return as a percentage, so you can judge a trade on facts instead of feelings.
The reason it matters is simple. A share that rises from $45 to $52 looks like a $7 gain per share, but that is not your profit. Commissions on both sides of the trade, exchange fees, and the size of your position all eat into it. The calculator does the subtraction for you, instantly, before you decide whether to sell, hold, or walk away.
How Do You Calculate Stock Profit by Hand?
You can calculate stock profit by hand with one formula: profit equals the total sale value minus the total purchase cost minus all commissions and fees. Divide that profit by your total cost to get your return as a percentage. The arithmetic is easy; the part people skip is including every fee, which is exactly where the calculator earns its keep.
Here is the formula in plain form:
Profit = (Sell Price × Shares) − (Buy Price × Shares) − Buy Commission − Sell Commission
Return % = Profit ÷ (Buy Price × Shares + Buy Commission) × 100
Run it once by hand so you trust the tool, then let the tool do it every time after that. Speed matters when a price is moving and you need an answer in seconds, not minutes.
How to Use the Stock Profit Calculator in 3 Steps
The free stock profit calculator needs no sign-up and runs entirely in your browser. Here is the exact walkthrough.
Step 1: Enter your prices
Type the price you paid per share into the buy price field, then the price you sold at — or the price you are thinking of selling at — into the sell price field. Use the real executed prices from your broker, not the rounded numbers you remember.
Step 2: Enter your shares and commissions
Add the number of shares in the trade, then the commission or fee you paid when buying and when selling. If your broker charges a flat fee per trade, enter that figure on each side. If it charges per share, multiply it by the share count first.
Step 3: Read your profit and return
The tool shows your total profit or loss in currency, your return as a percentage, and a target price — the sell price at which the trade breaks even. That break-even figure is the one most traders forget to check, and it is often the most useful number on the screen.
Before you sell, enter your current market price as the sell price. If the result is barely positive, ask whether the trade is worth closing now or whether holding for a better exit beats paying two commissions for almost nothing.
A Worked Example: 100 Shares, Real Numbers
Here is a complete example, worked end to end, so you can see exactly what the calculator does with your inputs.
The scenario: Sara, a part-time investor, bought 100 shares of a logistics company at $45.20 per share in March. Her broker charged a $6.95 commission on the buy. In October the shares reached $52.75, and she sold the full position, paying another $6.95 commission on the sale.
| Figure | Calculation | Amount |
|---|---|---|
| Total purchase cost | 100 × $45.20 | $4,520.00 |
| Buy commission | Flat fee | $6.95 |
| Total sale value | 100 × $52.75 | $5,275.00 |
| Sell commission | Flat fee | $6.95 |
| Profit | $5,275.00 − $4,520.00 − $13.90 | $741.10 |
| Return | $741.10 ÷ $4,526.95 | 16.37% |
Sara's break-even sell price was $45.34 — anything above that was profit, anything below it a loss. Notice that the headline gain was $7.55 per share, but her real profit was $7.41 per share after commissions. On a small trade the gap is a few dollars; on a large position or a high-fee broker it can be hundreds.
Run the same numbers through the stock profit calculator and you will get $741.10 and 16.37% in under a second — the same answer, without the spreadsheet.
The calculator shows profit before tax. Capital gains tax, dividend withholding, and currency conversion costs are separate and depend on your country and broker. Set money aside for tax on a profitable trade; the calculator's number is what you made, not what you keep.
What Does the Target Price Tell You?
The target price is the sell price at which your profit is exactly zero. It is your buy price plus total commissions divided by shares. For Sara, that was ($4,520 + $13.90) ÷ 100 = $45.34. Any sale above $45.34 made money; any sale below it lost money.
This number is more useful than it looks. It stops you from selling at a small apparent gain that is actually a loss, and it gives you a concrete floor when you set a stop-loss. If you are averaging down — buying more shares at a lower price to reduce your average cost — pair this tool with a stock average calculator to see how your break-even price moves with each new purchase.
Common Mistakes That Shrink Your Real Profit
Most profit-calculation errors are not maths errors. They are omissions — costs people forget to count.
- Forgetting the sell-side commission: beginners count the buy fee and forget the broker charges again to exit. Always enter both sides.
- Ignoring exchange and regulatory fees: some markets add small per-trade fees on top of commission. Check your broker's contract note and add them in.
- Using the wrong share count: partial fills, stock splits, and dividend reinvestments change your holding. Use the exact number of shares sold.
- Mixing currencies: if you bought in dollars and your account is in rupees or euros, conversion spreads apply twice. Convert first, then calculate.
- Counting paper gains as profit: an unsold position has made nothing yet. Profit is only real once the trade closes — and the calculator is most useful when it is used before that moment, not after.
Every trade you close without checking the real numbers is a trade you cannot learn from. CodexFuse gives you the tools to run your numbers properly — fully managed, on credits, with no subscriptions and no server babysitting — so your trading decisions stay grounded in facts, not feelings.
Get Started with CodexFuseStock Profit vs Return: Which Number Matters More?
Profit in currency tells you how much money you made. Return as a percentage tells you how efficiently your money worked. A $741 profit sounds good until you learn it took $4,527 of capital over seven months — a 16.37% return that beat most savings accounts, but a figure you can only judge against your other options by looking at the percentage.
Use both numbers together. Currency profit pays your bills; percentage return lets you compare trades of different sizes and lengths. A $100 profit on $500 of capital is a far better trade than a $741 profit on $50,000, and only the percentage shows it.
What a Stock Profit Calculator Does Not Do
Honest limits matter more than features. This tool calculates the outcome of a trade you describe — it does not predict prices, pick stocks, or tell you whether to buy or sell. It also does not account for tax, inflation, the opportunity cost of your capital, or the risk you took to earn the return. A 16% gain on a volatile stock is a different achievement from 16% on a stable one, and no calculator can judge that for you.
It also assumes a single buy and a single sell. If you bought in several tranches at different prices, calculate each tranche separately or average your cost first. And if your broker's fee structure is tiered or volume-based, confirm the exact fees on your contract note rather than guessing — a wrong fee input gives a confidently wrong answer.
If you are planning the money around your trades, not just the trades themselves, see our loan calculator guide for working out borrowing costs, and our split bill calculator for sharing costs cleanly with partners.
When Should You Check Profit Before Selling?
Check before every exit, not after. The three moments that matter most are when a position hits your target price, when you are deciding between selling and holding through earnings, and when you are comparing two positions and can only free up capital from one. In each case the calculator turns a gut feeling into a number you can act on.
It is also worth running before you buy. Enter your intended buy price and the price you would need to reach for the trade to be worth it, and the tool shows you the return that exit would deliver. If the required move is unrealistic, you have learned something valuable before risking a single dollar.
Frequently Asked Questions
Is the stock profit calculator free?
Yes. The CodexFuse stock profit calculator is free and unlimited, with no sign-up required. You enter your prices, shares, and commissions, and it shows your profit, return percentage, and target price instantly in your browser.
How do I calculate profit on a stock trade?
Multiply your sell price by the number of shares, subtract the total purchase cost (buy price times shares), then subtract all commissions and fees on both sides. Divide the result by your total cost and multiply by 100 for the return percentage.
What is the break-even price for my shares?
Your break-even price is your buy price plus total commissions divided by the number of shares. Selling above it makes a profit; selling below it makes a loss. The calculator shows this as the target price.
Does the calculator include taxes?
No. The calculator shows profit before tax. Capital gains tax, dividend tax, and currency conversion costs depend on your country and broker, so calculate those separately before deciding what a profitable trade actually leaves you with.
Can I use it for partial sales?
Yes. Enter only the number of shares you are selling and the commissions for that portion of the trade. If you bought the shares in several tranches at different prices, use your average cost per share as the buy price, or calculate each tranche separately.
What if my broker charges no commission?
Enter zero for commissions. The calculator still works — your profit is simply the sale value minus the purchase cost. Watch for hidden costs instead: wide spreads, currency conversion fees, and account charges can replace commission as the real cost of trading.
Start Every Trade With the Real Number
A stock profit calculator will not make you a better trader on its own. What it does is remove the one excuse every trader uses after a bad exit: not knowing the real number. Enter your prices, your shares, and your commissions before you sell, and you will know exactly what a trade is worth — in currency and in percentage — while you can still act on it.
Open the free stock profit calculator now, run your open positions through it, and set your break-even price for each one. Then move the rest of your business — your hosting, your email, your security, your backups — onto CodexFuse, where everything is fully managed on credits and you stop paying subscriptions for tools you barely use. One platform, one credit balance, no surprises.


