Skip to content

    Stock Profit Calculator: Share Gains After Commission

    Calculate stock profit from your prices, shares and commission. See net gain, return percentage and the limits of short mode before comparing results.

    4 July 2026
    14 min read
    2,665 words

    This stock profit calculator estimates a share trade’s profit or loss after the commission you enter. For a long trade, subtract the buy price from the sell price, multiply by shares, then subtract both commissions. The dollar-labelled form accepts prices you type yourself. Its Net Profit excludes costs without an input field. Looking for a stock options profit calculator? Use the options profit calculator for contract-based calculations.

    Short mode needs special care

    In Short mode, the field labelled Buy Price acts as the entry sale price and Sell Price acts as the exit buyback price. These labels are misleading. The percentage shown uses the opening sale value as its base. It does not use margin [cash required by your broker].

    Match each field to your stock trade

    Use the price and quantity that actually traded. A quote is a displayed price; an execution is the price at which shares actually traded. If you are checking a hypothetical exit, keep that planned price separate from the eventual result in your records.

    • Buy Price (USD): your purchase price for a long. For Short mode only, use your opening sale price in this field.
    • Sell Price (USD): your sale price for a long. In Short mode, enter the closing buyback price here.
    • Shares: the quantity covered by this calculation. Keep prices and quantities on the same basis after any stock split.
    • Direction: Long (buy first) or Short (sell first). Choosing a direction changes which price difference the tool uses.
    • Commission per Side (USD): a flat dollar amount applied equally to entry and exit. It is an amount for the whole side, rather than a per-share rate.

    If your entry and exit commissions differ, add them outside the form and enter half the total. That reproduces the total fee deduction, although the form does not preserve the separate charges. For partial exits, calculate each closed quantity with its own exit price rather than assigning the entire position to the final exit. Allocate the original entry commission across those closed quantities so that each fee is deducted only once.

    Stock profit formula in one line

    Net profit = (sell price × shares) − (buy price × shares) − all charges. Return in percent = net profit ÷ the money you put in × 100. That is the whole idea; the calculator above does the same sums for one pair of prices and one commission amount.

    A plain worked line: you buy 100 shares at $50 and sell at $52. Sale value is $5,200 and cost is $5,000, so the gross gain is $200. With $2 commission each way, the net profit is $196, and the return on the $5,000 share value is 3.92%.

    The calculation behind Gross Profit and ROI

    For Long mode, Gross Profit = (Sell Price − Buy Price) × Shares. For Short mode, the tool uses (Buy Price − Sell Price) × Shares because its first field acts as the entry. Total Commission = Commission per Side × 2. Net Profit = Gross Profit − Total Commission.

    ROI [return as a percentage] = Net Profit ÷ (first price field × Shares) × 100. Entry commission is excluded from this denominator. This is a simple trade-value percentage, before tax and omitted costs. It is neither an annual return nor a return on the cash margin used for a short.

    The Outcome card labels a non-negative result Profit, including a result of zero. Read Net Profit itself to distinguish a gain from breakeven. A zero first price cannot produce a meaningful return percentage even if a dollar result appears.

    Worked example: a long trade after commission

    In this made-up example, buy 80 shares at $40 and sell them at $43, with $2 commission per side. Select Long. Gross profit is (43 − 40) × 80 = $240. Both commissions total 2 × 2 = $4, so Net Profit is $236.

    The tool divides $236 by the $3,200 share value, giving 7.38% after display rounding. It does not add the entry commission to that denominator. If you compare this figure with another calculator, check its return definition before treating a small difference as an arithmetic error.

    Made-up example calculated from the inputs above; checked 15 October 2026.
    Example resultAmount or percentage
    Gross Profit$240
    Total Commission$4
    Net Profit$236
    ROI on share value7.38%

    For an example short using the same quantity and commission, suppose the opening sale is $43 and the closing buyback is $40. Enter 43 in Buy Price and 40 in Sell Price, then choose Short. The dollar gain remains $236, while the displayed return becomes 6.86% because the opening trade value is $3,440. These are assumed prices, with borrowing costs excluded.

    Gain or loss at several sell prices

    The table uses one made-up position, 100 shares bought at $50 with $2 commission per side, and changes only the sell price. It is computed the way the tool computes it: gross profit, minus $4 total commission, with the return measured against $5,000.

    Made-up example, long trade, checked 28 Oct 2026. Not a forecast.
    Sell priceGross profitNet profitReturn
    $45−$500−$504−10.08%
    $48−$200−$204−4.08%
    $50$0−$4−0.08%
    $52$200$1963.92%
    $55$500$4969.92%
    $60$1,000$99619.92%

    Notice the $50 row. Selling at the price you paid still loses $4, because commission is charged on both sides. That is the reason a trade needs to move past the entry price before it shows a profit.

    Why the result can differ from your broker statement

    The form has no separate fields for borrowing charges, dividends, interest, taxes or regulatory fees. Its Net Profit therefore means net of the entered commission. A broker statement may include additional debits, credits and adjustments. Keep those in your final record rather than assuming the calculator has estimated them.

    For actual executions, the spread [gap between buy/sell quotes] and any worse execution price are already reflected in the prices received. Do not subtract the same price disadvantage again as a separate fee. When planning from a displayed price, execution may differ, so an estimated result can change before the order completes.

    The SEC explains that short sellers sell borrowed shares and later buy them back. Falling prices can produce a gain; rising prices produce a loss. Borrowing can bring interest costs and obligations to replace dividends. A short’s possible loss has no fixed ceiling because the share price can keep rising.

    The tool does not check borrowing availability, buying power or permission to sell short. Use your broker’s records for those requirements. Avoid treating a positive calculator result as confirmation that a proposed order can be placed.

    Break-even sell price after charges

    To cover charges, the sell price must be above your buy price by the total charges divided by the number of shares. With total commission of $4 on 100 shares, you need $0.04 more per share, so the break-even sell price is $50.04. You can test it by entering 50.04 as the sell price. Net Profit comes out at zero.

    If your own charges are percentages of trade value, such as the Indian charges below, add them up in rupees first and then divide by the shares.

    How much gain you need to recover a loss

    A loss needs a bigger percentage gain to undo. The formula is loss ÷ (1 − loss). A 10% loss needs an 11.11% gain, because a smaller base is now being rebuilt.

    Arithmetic only, before any commission, checked 28 Oct 2026
    Loss on the positionGain needed to get back
    10%11.11%
    20%25%
    30%42.86%
    50%100%

    This is a reason many traders cap the loss per trade. See our risk reward calculator and stock position size calculator to plan the size and the stop before you enter.

    Share profit, option profit and account risk

    A share-price change translates directly into a share-position change when the quantity stays fixed. An option’s result depends on its own premium, contract quantity and settlement terms. Entering the underlying stock price in this form will not calculate an option’s changing value or its expiry payoff.

    Profit and risk also answer different questions. This page evaluates a chosen exit price. The stock position size calculator addresses quantity for a planned stop, while the risk reward calculator compares planned upside and downside. Neither turns a planned stop into a guaranteed execution price.

    After closing the trade, record the actual result and the reason for the exit. OneTradeJournal uses manual trade entries and lets you keep notes, stops, targets and mistakes with the result. A profitable exit can still depart from your plan; a losing exit can still follow it. Reviewing those details requires the record you entered.

    Annualised return: why holding period matters

    A 5% gain in one month and a 5% gain in one year are not the same result. Annualising puts them on the same footing. The compound formula is (1 + return)^(365 ÷ days held) − 1. The calculator above does not do this. It shows the return for the trade only, and it says nothing about time.

    Made-up examples; compound arithmetic, checked 28 Oct 2026
    GainHolding periodAnnualised (compound)
    5%30 days81.05%
    20%2 years9.54% a year

    Treat the first row with care. It assumes you could repeat the same gain every month for a year, which rarely happens. Short holding periods exaggerate the annual figure. Use the CAGR calculator for multi-year holdings and the return annualizer for shorter ones.

    Indian charges that cut your share profit

    The form above takes one commission amount in dollars. For shares bought and sold in India, a bill is made of several parts, and each one is calculated on trade value:

    • Brokerage: set by your broker, and often flat or a percentage with a cap.
    • STT (securities transaction tax): 0.1% on both the buy and the sell for delivery trades; for intraday trades, 0.025% on the sell side only.
    • Exchange transaction charge: about ₹307 per crore on NSE cash trades, each side, since 1 Mar 2026.
    • SEBI fee: ₹10 per crore.
    • GST: 18% on brokerage, the exchange charge and the SEBI fee.
    • Stamp duty: charged on the buy side. The rate is set by law, so check your contract note.
    • DP charge: a flat fee from your broker when you sell delivery shares from your demat account.

    Here is a made-up delivery trade: 100 shares bought at ₹500 and sold at ₹520. Buy value is ₹50,000, sell value is ₹52,000, and gross profit is ₹2,000. STT is ₹50 on the buy and ₹52 on the sell, which is ₹102. The exchange charge, SEBI fee and the GST on them add about ₹3.82. Together that is about ₹105.82 before brokerage, stamp duty and the DP charge, which leaves ₹1,894.18. Your broker's brokerage and the other items then come off this figure.

    Rates change, so confirm them against the rate card of your broker and our charges log. For a longer walkthrough, see how to calculate brokerage charges.

    Tax on stock profit in India: STCG vs LTCG

    Tax is not taken out of the figure the calculator shows. For listed shares held as an investment, the holding period decides the tax. Gains on shares sold within 12 months are short-term capital gains (STCG), taxed at 20%. Gains on shares held for more than 12 months are long-term capital gains (LTCG), taxed at 12.5% on the part above ₹1.25 lakh in a financial year. These rates have been reported as unchanged for FY 2026-27, but rules move with each Budget, so check the Income Tax Department or a CA before you file.

    Intraday share trades are usually treated as business income instead, taxed at your slab rate. Our STCG and LTCG tax calculator works out the tax on investment gains, and the intraday trading taxation guide covers the other side.

    Should you add dividends to stock profit?

    If you held the shares through a dividend, your total return is the price gain plus the dividends, less charges. The calculator does not have a dividend field, so add it yourself outside the form.

    For example, take the $50 to $52 trade above and suppose you received $1.20 a share in dividends. That is $120 on 100 shares. Net profit from the price move is $196, and with the dividend it is $316, which is 6.32% of the $5,000 you put in. Dividends are taxed separately, so see our dividend taxation guide, and use the dividend yield calculator for the yield alone.

    Questions about stock profit calculations

    Sources

    📓 Tools show what happened, a journal shows why. Turn these numbers into better decisions, start your trading journal India.

    Related Topics

    stock profit calculator

    Related Articles

    OneTradeJournal

    The trading journal for Nifty, Bank Nifty and Indian F&O. 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
    Start journaling free

    Yearly ₹3,999 · No broker credentials

    Trading journal India