This Stock Profit Calculator works out how much you made — or lost — on a stock trade, taking your buy price, sell price, and number of shares into account. Enter the details of a single trade or a position, add optional brokerage and fees, and it instantly shows your total profit or loss, the return percentage, and the absolute move in the stock price. A stock profit calculator online makes it easy to see how a trade actually turned out, without relying on memory or rough estimates.
The price you paid per share when you bought.
The price you received per share when you sold.
The total number of shares traded.
Enter combined brokerage, commissions, exchange fees, and other trading charges. Do not include income or capital gains tax.
| Detail | Value |
|---|
🔥 Popular Calculators
A quick note before you rely on the numbers — this Stock Profit Calculator is a single-trade calculator. It works out profit or loss on one buy-and-sell pair. If you’ve bought the same stock multiple times at different prices, use a stock average calculator first to find your average cost, then plug that into this tool. Actual returns also depend on brokerage, taxes, dividends received during holding, and corporate actions — the trading fees field accounts for brokerage, but taxes are not included and should be estimated separately.
💱 No currency symbols anywhere — and that’s intentional. Type in rupees, dollars, euros, pounds, dirhams, whatever. Just stay consistent with the same currency from top to bottom. This tool doesn’t convert currencies.
What Is a Stock Profit Calculator?
A Stock Profit Calculator works out how much money you made or lost on a stock trade. You enter your buy price, sell price, and the number of shares, and the calculator tells you the net profit or loss, the return as a percentage, and the absolute change in the stock price. A stock profit and loss calculator removes the guesswork from trade review — you see exactly what happened, without relying on rough memory or mental math.
The idea is simple, but the numbers can get muddier than they first appear. A stock gain calculator that ignores brokerage, taxes, and other charges might show a profit that isn’t quite real. A stock return calculator that only looks at price movement can miss dividends received during the holding period. The more complete the inputs, the more useful the output — and this tool is built to handle the most common ones.
How to Use This Stock Profit Calculator
You need four inputs. Three are required, one is optional.
Step 1 — Buy Price per Share. The price you paid per share when you bought. If you bought at multiple prices, use your average cost per share. A stock average calculator can help you find that number if you’re not sure.
Step 2 — Sell Price per Share. The price you received per share when you sold. If you haven’t sold yet, use the current market price as a hypothetical sell price to see your unrealised gain or loss.
Step 3 — Number of Shares. The total number of shares bought and sold. For a partial sale, enter only the shares that were actually sold — the calculator works on the position you’re evaluating.
Step 4 — Total Brokerage & Trading Fees (Optional). This is the combined brokerage, commission, exchange fees, and other charges you paid on both the buy and the sell side. Do not include income tax or capital gains tax here. Leaving the field at zero gives you a gross profit figure. Entering it gives you a net figure that reflects what you actually paid in trading costs.
The Stock Profit Formula Explained
The math behind a stock profit calculator comes down to two simple formulas. The first is profit per share, the second is total profit:
Profit per Share = Sell Price − Buy Price
Total Profit = (Sell Price − Buy Price) × Number of Shares − Total Trading Fees
For the return percentage, the formula is:
Return % = (Net Profit ÷ Invested Amount) × 100
Where Invested Amount is the buy price multiplied by the number of shares. The optional trading fees are subtracted from the gross profit, not from the invested amount.
Quick example. Buy 100 shares at 100. Sell them at 125. No fees for now. Profit per share = 25. Total gross profit = 25 × 100 = 2,500. Invested amount = 10,000. Return = (2,500 ÷ 10,000) × 100 = 25%. Add 20 in total trading fees, and the net profit drops to 2,480, while the return becomes 24.80%.
Worked Examples You Can Relate To
Three scenarios that show how the numbers play out.
Example 1: A Standard Winning Trade
You buy 100 shares at 100 and sell at 125. Brokerage and trading fees total 20.
- Buy price: 100
- Sell price: 125
- Shares: 100
- Gross profit: (125 − 100) × 100 = 2,500
- Net profit after 20 fees: 2,480
- Invested amount: 10,000
- Return: (2,480 ÷ 10,000) × 100 = 24.80%
A clean 25% price gain turns into a 24.80% net return once fees are included. Not a huge difference here, but on smaller trades the fee impact is much larger as a percentage.
Example 2: A Losing Trade
Same 100 shares, but you bought at 100 and sold at 85. Brokerage and trading fees total 20.
- Gross loss: (85 − 100) × 100 = −1,500
- Net loss after 20 fees: −1,520
- Return: (−1,520 ÷ 10,000) × 100 = −15.20%
The loss is larger than the price drop suggests because fees are included. On losing trades, fees add to the damage rather than reduce the gain — a detail that’s easy to overlook.
Example 3: A Small Trade Where Fees Matter
You buy 10 shares at 50 and sell at 52. Brokerage and trading fees total 20.
- Gross profit: (52 − 50) × 10 = 20
- Net profit after fees: 0
- Return: 0.00%
The trade gained 4% on paper, but fees ate the entire gain. This is why small positions and high-frequency trades often struggle to be profitable after costs. A stock gain calculator that doesn’t account for fees can mislead you here.
Brokerage, Taxes, and Other Costs That Affect Stock Profit
The simplest version of a stock profit calculation only looks at buy price, sell price, and shares. In reality, several other costs affect what you actually keep.
Brokerage and trading fees. These vary hugely by broker, market, and product. Some brokers charge per trade, others charge per share, and some are commission-free but make money elsewhere. Whatever the structure, the total amount paid on both the buy and sell side should be included in the fees field. This is what the calculator accounts for.
Taxes. Depending on your country and how long you held the shares, capital gains tax may apply to your profit. Short-term gains are often taxed at a higher rate than long-term gains, and the exact rules differ from country to country. Taxes are not included in this calculator’s fees field. The profit shown is pre-tax — subtract your expected tax separately to estimate what you actually keep.
Dividends received. If the company paid dividends while you held the shares, those payments improve your total return. The calculator here treats price profit and dividend income separately, but you can add dividends to the net profit figure if you want a total-return number.
Things to Keep in Mind About Stock Profit
A calculator gives you clean numbers. Real trading involves more variables. A few things worth keeping in mind.
A paper gain is not cash. Unrealised profit is only real once you sell. Until then, the position can move against you. Many investors use a stock return calculator on unrealised positions too, but the number is only a snapshot.
Inflation reduces real returns. A 10% nominal gain while inflation runs at 6% is really a 4% gain in purchasing power. A stock profit calculator shows nominal numbers; adjusting for inflation gives a more realistic picture.
Fees compound against you. Frequent small trades generate fees each time. After a few dozen trades, the cumulative fees can be a meaningful drag on returns. Every stock investment profit calculator that ignores fees will make this cost invisible.
Using a Stock Profit Calculator Around the World
The math is the same everywhere, but the underlying costs and rules change with the market.
United States. Commission-free brokers are widespread, but short-term capital gains are taxed at ordinary income rates, and long-term gains get preferential rates. Wash sale rules can complicate loss harvesting. Investor.gov offers educational material on investing basics.
India. Brokerage varies by broker, and short-term capital gains tax applies to equity held for under a year, with long-term capital gains tax above that threshold. Securities Transaction Tax (STT) applies to most equity trades, and stamp duty is charged by state. A stock profit and loss calculator shows gross profit — deducting these costs gives the net figure.
Europe and the UK. Tax treatment depends on the country and the account type. UK investors have an annual capital gains allowance, and shares held in ISAs may not trigger capital gains tax on disposal. Dividend and capital gains taxation differ across European jurisdictions.
Related Calculators
If this stock profit calculator was useful, these related tools might round out your financial planning.
- Investment Calculator
- Compound Interest Calculator
- ROI Calculator
- Future Value Calculator
- SIP Calculator
- Lumpsum Calculator
- Simple Interest Calculator
- Savings Calculator
- SWP Calculator
- Inflation Calculator
- Emergency Fund Calculator
- Recurring Deposit Calculator
- Pension Calculator
- Fixed Deposit Calculator
- Annuity Calculator
- Dividend Calculator
Additional Financial Resources
For plain-English explanations of how stock returns work, the difference between realised and unrealised gains, and how taxes affect what you actually keep, the SEC’s Investor.gov resources on stocks are reliable, non-commercial, and up to date.
For a deeper look at cost basis, capital gains, and what counts toward stock profit after tax, the Investopedia guide on capital gains is a solid reference for global readers.
Frequently Asked Questions About Stock Profit Calculators
⚠️ Disclaimer: The results from this Stock Profit Calculator are mathematical projections based on the inputs you provide. They are for educational and informational purposes only and should not be treated as financial, investment, or tax advice. Stock prices are volatile, and actual results depend on the fill prices you receive and the fees you pay. Please consult a qualified financial advisor before making investment decisions.