Stock Profit Calculator
Free stock profit calculator. Enter buy price, sell price, shares and commission to get net profit, ROI, gross profit and total fees for long or short trades.
A stock profit calculator is a simple tool that shows how much money a share trade truly made or lost after costs, not just the sticker gap between your buy price and sell price. The calculator above takes five inputs (Buy Price, Sell Price, Shares, Direction, and Commission per side) and returns your Net Profit, Gross Profit, Total Commission, Return on Investment (ROI, meaning your gain shown as a percent of the money you put in), and a plain Outcome label. US stock and ETF traders use it three ways: to sanity-check a plan before entering, to confirm the real result after exiting, and to log honest numbers in a trading journal. It does not predict the market and it cannot promise a profit, because any trade can lose money and prices can move against you fast.
Key Takeaways
- 1.Gross profit is the raw price difference times shares. Net profit is what you keep after commissions and other costs.
- 2.For a long trade you profit when the price rises. For a short trade you profit when the price falls, and your loss can be far larger.
- 3.ROI turns dollars into a percent so you can compare a 500 dollar win on a small position against a 500 dollar win on a large one.
- 4.Most large US brokers now charge 0 dollars commission on stocks and ETFs, but the bid ask spread and short borrow fees still quietly reduce returns.
- 5.Short selling carries theoretically unlimited loss because a stock price has no upper ceiling, so size these trades with extra care.
- 6.The old 25,000 dollar Pattern Day Trader minimum was removed by FINRA in June 2026, so it is no longer a current rule.
What a stock profit calculator is
A stock profit calculator answers one direct question: if I buy this many shares at this price and sell them at that price, what do I actually walk away with? The word actually matters. A screen might show that AAPL rose from 180 to 195 while you held it, a 15 dollar move. But the money in your pocket depends on how many shares you owned, whether you were long or short, and what costs came out along the way. The calculator strips away the guesswork and gives you a single net dollar figure plus a percent return. It works for individual stocks like AAPL and for exchange traded funds (ETFs, baskets of stocks that trade like a single share) such as SPY, the fund that tracks the S&P 500 index.
This tool covers cash equity trades, meaning plain shares bought or sold. It is not built for the leverage math of futures contracts such as ES (the E-mini S&P 500), NQ (the E-mini Nasdaq 100), or CL (crude oil), where one contract controls a large dollar value and a small point move produces an outsized gain or loss. For shares, the relationship is straightforward and linear, which is exactly why a clean calculator is so useful for building discipline.
How the calculator works: every input and output
Each field on the calculator above maps to a real part of your trade. Understanding what each one does keeps your numbers honest and stops small errors from hiding a losing habit.
The five inputs
- Buy Price: the price per share at which you enter a long trade, or the price at which you buy shares back to close a short. Use your real fill price, not the price you hoped for.
- Sell Price: the price per share at which you exit a long trade, or the price at which you first sell short. Again, use the actual executed price.
- Shares: the number of shares in the position. With 100 shares, every 1 dollar of price movement equals 100 dollars of profit or loss.
- Direction: long or short. Long means you buy first and profit when the price rises. Short means you sell borrowed shares first and profit when the price falls.
- Commission per side: the broker fee charged on each leg of the trade. One side is the entry, the other side is the exit, so a full round trip has two sides. Many US brokers charge 0 dollars on stocks, but some charge a per share or flat fee.
The five outputs
- Gross Profit: the price difference times shares, before any costs. This is the theoretical result.
- Total Commission: commission per side multiplied by two, since you pay on both entry and exit.
- Net Profit: gross profit minus total commission. This is the real dollar figure you keep or lose.
- ROI: net profit divided by the money you committed, shown as a percent. It lets you compare trades of different sizes fairly.
- Outcome: a plain label such as profit, loss, or breakeven so you can scan results quickly when reviewing many trades.
How to use the stock profit calculator step by step
- Choose your Direction first, long or short, because it changes how the profit is calculated.
- Enter your Buy Price and Sell Price using the exact fills from your broker, including cents.
- Enter the number of Shares in the position.
- Enter Commission per side. If your broker is commission free on stocks, enter 0, but remember the bid ask spread is still a hidden cost.
- Read the Gross Profit to see the raw move, then read Net Profit to see what you actually keep after fees.
- Check the ROI to judge how efficient the trade was against the capital you risked, not just the dollar amount.
- Copy the Net Profit and ROI into your trading journal so your record matches reality, win or lose.
The formula and mechanics behind the numbers
The math is intentionally simple, which makes it easy to trust. Gross Profit for a long trade is (Sell Price minus Buy Price) times Shares. For a short trade the sign flips, because you profit when the price drops, so Gross Profit is (Sell Price minus Buy Price) times Shares as well, but here the Sell Price is your higher entry and the Buy Price is your lower exit. Total Commission is Commission per side times 2. Net Profit is Gross Profit minus Total Commission. ROI is Net Profit divided by (Buy Price times Shares) for a long trade, then multiplied by 100 to read as a percent.
Two hidden costs never show up as a line item but still shrink your result. The first is the bid ask spread, the small gap between the highest price a buyer will pay (the bid) and the lowest price a seller will accept (the ask). You usually buy at the ask and sell at the bid, so a 0.03 dollar spread on 200 shares quietly costs 6 dollars every round trip even at a zero commission broker. The second, for short sellers only, is the borrow fee, an ongoing charge for borrowing the shares you sold short. Hard to borrow stocks can cost a lot per day, and that fee is subtracted from your net whether the trade wins or loses.
When you go long, the most you can lose is the money you put in, because a share cannot fall below zero. When you go short, there is no ceiling on how high a price can climb, so the loss is theoretically unlimited. A stock that doubles on you turns a 100 share short into a loss larger than your original sale proceeds, plus you keep paying borrow fees the whole time. Treat short positions with strict stops and small size.
Three worked examples with real numbers
Example 1: A long ETF trade with zero commission
You buy 50 shares of SPY at 560.00 dollars and sell at 580.00 dollars. Direction is long and your broker charges 0 dollars per side. Gross Profit is (580 minus 560) times 50, which is 1,000 dollars. Total Commission is 0 dollars, so Net Profit is also 1,000 dollars. Your cost basis is 560 times 50, which is 28,000 dollars, so ROI is 1,000 divided by 28,000, about 3.57 percent. Here gross and net are equal because there were no explicit fees, though the bid ask spread still nibbled a few dollars on the way in and out.
Example 2: A long stock trade where commissions bite
You buy 200 shares of a stock at 50.00 dollars and sell at 53.00 dollars. Direction is long and your broker charges a flat 5 dollars per side. Gross Profit is (53 minus 50) times 200, which is 600 dollars. Total Commission is 5 times 2, which is 10 dollars, so Net Profit is 590 dollars. Cost basis is 50 times 200, or 10,000 dollars. Net ROI is 590 divided by 10,000, or 5.90 percent, while the gross ROI would have looked like 6.00 percent. The 10 dollars of commission shaved a tenth of a percent off your return, and on a thinner move that drag can be the difference between a winner and a loss.
Example 3: A short trade with borrow fees
You short 100 shares of a stock at 200.00 dollars, expecting a decline, and later cover (buy back) at 185.00 dollars. Direction is short, commission is 1 dollar per side, and the borrow fee over your holding period totals 15 dollars. Gross Profit is (200 minus 185) times 100, which is 1,500 dollars. Total Commission is 2 dollars, and subtracting the 15 dollar borrow fee gives a Net Profit of 1,483 dollars. Now picture the opposite: the stock rallies to 260 instead. Your loss would be (260 minus 200) times 100, or 6,000 dollars, plus fees, and it could keep growing if you did not cover. That asymmetry is the whole reason short trades demand tight discipline.
Reference table of common scenarios
| Direction | Buy Price | Sell Price | Shares | Comm/side | Gross Profit | Net Profit | ROI |
|---|---|---|---|---|---|---|---|
| Long | 560.00 | 580.00 | 50 | 0.00 | 1,000.00 | 1,000.00 | 3.57% |
| Long | 50.00 | 53.00 | 200 | 5.00 | 600.00 | 590.00 | 5.90% |
| Long | 180.00 | 195.00 | 100 | 1.00 | 1,500.00 | 1,498.00 | 8.32% |
| Short | 200.00 | 185.00 | 100 | 1.00 | 1,500.00 | 1,483.00* | 7.42% |
| Long | 48.50 | 46.00 | 300 | 0.00 | -750.00 | -750.00 | -5.15% |
| Short | 95.00 | 110.00 | 100 | 1.00 | -1,500.00 | -1,502.00 | -15.81% |
Tips for getting accurate results
- Always use your real filled prices, not the price at the moment you clicked, since fast markets fill you a little worse than expected.
- Add the bid ask spread to your mental cost even when commission is 0 dollars, especially on low volume stocks with wide spreads.
- For short trades, ask your broker for the estimated borrow rate before you enter, because hard to borrow names can quietly erase a good move.
- Compare ROI, not just dollars, so a large position that returned 2 percent does not look better than a small one that returned 9 percent.
- Run the calculator before you enter to preview your breakeven and target, then run it again after you exit to record the truth.
- Keep position sizes consistent so your win and loss dollars stay comparable across your journal.
Common mistakes to avoid
The most frequent error is confusing gross with net. A trader sees a 600 dollar gross move and mentally banks 600 dollars, then forgets the commissions, spread, and any borrow fee that already trimmed it. Over hundreds of trades those small gaps compound into a real difference between imagined and actual performance. A second mistake is only counting commission once instead of on both sides, which understates costs by half. A third is ignoring ROI and judging trades purely by dollar size, which rewards oversized positions that took on far more risk. A fourth, specific to shorts, is treating the loss as capped the way a long loss is capped; it is not, because the price can keep rising. Finally, some traders log only their winners, which turns the journal into a highlight reel rather than an honest record you can learn from.
How this supports disciplined journaling
A calculator is only as valuable as the habit around it. The discipline-first idea is simple: record every trade at its true net result, then review the pattern instead of the single outcome. When you log Net Profit and ROI rather than a rough gross guess, your equity curve reflects reality, your average win and average loss are trustworthy, and your win rate is not inflated by ignored costs. Over time this honest record shows whether your edge is real or whether fees and spread are eating it. It also removes emotion from the review: the numbers are what they are, win or lose, and there is nothing to advise you to do beyond keep sizing sensibly and keep recording. This tool gives you the number. Your journal gives you the story behind it.
Run your next trade through the calculator above, then write the net result and ROI straight into your journal on OneTradeJournal. One honest entry at a time is how a scattered set of trades becomes a clear, reviewable record you can actually learn from, in the wins and especially in the losses.
Related Topics
Related Articles
Forex Profit Calculator
Free forex profit calculator. Enter entry, exit, direction and lot size to get profit or loss in your account currency and in pips, for standard and JPY pairs.
IPO Timeline Calculator 2026: IPO Dates & Listing Schedule
Track IPO timeline from bid dates to listing. Calculate allotment date, refund date, and expected listing date for upcoming IPOs.
Trading Expectancy Calculator 2026: Measure System Edge
Enter win rate and average win and loss to get expectancy per trade, expected profit per 100 risked, and a plain verdict on whether your edge is real.
Absolute Returns Calculator for Investments (2026)
Calculate absolute returns on your investments. Simple point-to-point return calculation for stocks, mutual funds, and trading positions in India.
Options Probability Calculator 2026: Calculate Win Rate
Calculate probability of profit for options strategies. Estimate win rates for Nifty and Bank Nifty options using delta-based probabilities.
Emotion Tracker Analyzer 2026: Trading Psychology Tool
Log how you felt on each trade and see the link between mood and money. Spot revenge trading, FOMO and hesitation before they wreck the month.
The trading journal for stocks, options, forex, futures & crypto. Track your trades, spot patterns, build discipline.
- Log one trade a day by hand, on purpose
- AI mentor finds your repeat mistakes
- Behavioural analytics catch tilt early
- Trading calendar with P&L heatmap
- Pre-trade checklist flags risks
Free to start · No broker credentials