Stock Profit Calculator

Work out the profit, return and break-even price of a stock trade after fees.

Stock Profit Calculator tool

$
$
$
$
—
Profit or loss
—
Return
—
Break-even selling price
—
Total cost
—
Proceeds after fees

About the Stock Profit Calculator

A share price rising from 250 to 300 looks like a 20 percent gain, but brokerage commissions, taxes and other charges reduce what you actually keep. This stock profit calculator takes the buy price, sell price, number of shares and the commission on each side and shows the total cost, the proceeds, the net profit or loss and the percentage return on the money invested. It also gives the break-even selling price, the level a share must reach just to cover fees, which is useful before placing a trade. Capital gains tax rules vary by country and holding period, so check those separately.

Total cost = buy price × shares + buy commission. Proceeds = sell price × shares − sell commission. Profit = proceeds − cost, and the return is profit ÷ cost × 100. The break-even price is (cost + sell commission) ÷ shares, the selling price at which the trade makes exactly zero after both commissions.

Example: buying 100 shares at 50 with a 5 commission costs 5,005. Selling them at 65 with another 5 commission brings in 6,495, a profit of 1,490 and a return of 29.77%. The break-even selling price is 50.10, so any sale above that is profitable. With percentage-based fees or currency conversion charges, add them to the commission fields.

Taxes on capital gains and dividends are not included, and rules vary by country and holding period, so this is an estimate rather than financial advice. For returns over time use the ROI calculator or CAGR calculator, and for income from shares the dividend calculator.

How to use the Stock Profit Calculator

  1. Enter the buy price and sharesType the price per share you paid (or plan to pay) and the number of shares.
  2. Enter the sell priceType the selling price per share, actual or target.
  3. Add commissionsEnter the fee on the purchase and the fee on the sale, including any platform or exchange charges.
  4. Read the resultSee the profit or loss, return percentage and break-even selling price.

Stock Profit Calculator features

  • Profit or loss after buy and sell commissions
  • Percentage return on the money invested
  • Break-even selling price
  • Total cost and total proceeds
  • Works for gains and losses
  • Any currency symbol
  • Step-by-step working

Common uses

  • Checking the result of a completed trade
  • Setting a target price before buying
  • Seeing how fees affect small trades
  • Planning a stop-loss level
  • Recording trades for a portfolio journal

Stock trading profits in practice: fees, capital gains tax, averaging, dividends and records

By the FreeToolsWorld editorial team · Updated November 2026 · How we write and check our guides

A trade's headline gain is the difference between the buying and selling price, but what you keep depends on commissions, taxes and how you handle multiple purchases of the same share. This guide works through a trade on the Pakistan Stock Exchange, shows how tax changes the result, explains averaging down and the asymmetry of percentage losses, and covers dividends, trading costs and the records you need to keep.

A worked example: a PSX trade

An investor buys 500 shares at Rs 120 and pays brokerage of 0.15%, a total cost of Rs 60,090. Later they sell at Rs 138, receiving Rs 68,896.50 after another 0.15% commission. The profit is about Rs 8,806, a return of about 14.7% on the money invested. The break-even selling price, which covers both commissions, is about Rs 120.36.

Real brokerage rates vary by broker and account type, and small regulatory and settlement charges are added on each trade, so use your broker's actual figures for precise results.

Capital gains tax

Gains on listed shares in Pakistan are taxed, with rates set in each budget and higher rates for people not on the active taxpayers list. At a rate of 15%, the tax on the example's profit would be about Rs 1,321, leaving about Rs 7,486. Brokers and the central depository usually calculate and collect this tax, but checking the figure on your statements is worthwhile. Rules change, so confirm the current rate for your situation.

Averaging down

Buying more of a share after its price falls lowers the average cost. An investor who buys 200 shares at Rs 100 and later 300 at Rs 80 has 500 shares at an average cost of Rs 88. If the price recovers to Rs 95, the position is in profit even though it is still below the first purchase price.

Averaging down can work for a sound company whose price has fallen temporarily, but it increases exposure to a company that may have fallen for good reasons. Deciding whether you would buy the share today, with fresh eyes, is a better test than wanting to recover a loss.

Losses need bigger gains to recover

A share that falls 50% must rise 100% to return to its original price, and a fall of 20% needs a rise of 25%. This asymmetry is why limiting large losses matters so much. Spreading money across several companies and sectors reduces the damage any single fall can do.

Dividends

Many companies pay dividends, which form part of the total return. Dividend income is usually taxed when paid, often by deduction at source. On the ex-dividend date, the share price typically falls by roughly the amount of the dividend, so buying just before a dividend does not create free money. Including dividends received when calculating your return gives the full picture.

Trading costs add up

Frequent trading multiplies costs. If each round trip, a purchase and a sale, costs about 0.4% in commissions and charges, twenty round trips a year cost about 8% of the money traded, a large hurdle before any profit. Long-term investors pay these costs far less often.

Comparing with the index

A profit on a trade does not show whether it was a good decision. If the market index rose 25% over the same period while your shares rose 14.7%, you would have done better with an index fund. Comparing your returns with a benchmark over the same dates keeps expectations honest.

Keeping records

Record the date, price, quantity and charges for every purchase and sale, together with dividends received. If you buy the same share several times and sell part of your holding, tax rules decide which purchase price applies. Good records make tax filing easier and show your real performance over time.

Common mistakes

  • Ignoring commissions and charges when judging a small trade.
  • Forgetting capital gains tax and tax on dividends.
  • Averaging down into a company without reassessing it.
  • Measuring success without comparing with the market.

Related tools

For quick percentage changes, use Percentage Calculator. To project long-term investing, try Investment Calculator, and for income from shares, Dividend Calculator.

Target and stop-loss prices

Some investors set selling prices in advance: a target price for taking profits and a stop-loss price for limiting losses. Using the break-even price from the calculator as a reference, they can see how far the share must move to reach each level. Deciding these levels before buying helps avoid emotional decisions when prices move quickly.

Long-term holding

Investors who buy shares to hold for many years care less about the exact profit on each trade and more about the companies' long-term performance and dividends. For them, the main lessons from this calculator are the effect of costs and taxes, which shrink when trading is infrequent, and the value of comparing returns with a benchmark over long periods.

Limits

The calculator includes the commissions you enter but not taxes or other charges. It is an estimate for planning, not financial or tax advice.

Frequently asked questions

How do I calculate stock profit?

Profit = (sell price × shares − sell commission) − (buy price × shares + buy commission). For 100 shares bought at 50 and sold at 65 with 5 commission each way, profit = 6,495 − 5,005 = 1,490.

How is the return percentage calculated?

Return = profit ÷ total cost × 100. In the example, 1,490 ÷ 5,005 × 100 = 29.77%. For trades held for different lengths of time, compare annualized returns with the ROI calculator.

What is the break-even price?

It is the selling price that covers the purchase cost and both commissions: (buy cost + sell commission) ÷ shares. Selling above it makes a profit; below it, a loss.

Do I need to include taxes?

For a full picture, yes. Capital gains tax depends on your country, income and how long you held the shares. Subtract the expected tax from the profit shown here.

How do I handle partial sales?

Enter only the number of shares you are selling and the buy price for those shares. If you bought at several prices, use the average cost per share as the buy price.

Does this work for crypto or other assets?

Yes. Any asset bought and sold in units works the same way: enter the price per unit, the number of units and the fees on each side.

What is the difference between realized and unrealized profit?

Realized profit is locked in when you sell. Unrealized profit is the paper gain on shares you still hold, based on today's price. Enter the current price as the sell price to see an unrealized gain.

How do I calculate my average cost per share?

Add up the total cost of every purchase, including fees, and divide by the total number of shares. Buying 50 shares at 40 and 50 at 60 gives an average cost of 50 per share.