Skip to content
PSX

Bid-Ask Spread, Slippage, Order Types, Fees and Break-Even: Interactive Calculators for PSX Traders

See what an order really costs. Walk a made-up order book to measure slippage, then turn a gross profit into net profit after fees, spread and capital gains tax. Two live calculators.

S
Written bySherjeel Islam
Published • 22 min read• Founder & Lead Developer
Facts last checked 22 November 2026

Two things quietly eat into trading returns: how your order is filled and what the trade costs once everything is counted. This guide has a live calculator for each. The first lets you buy or sell into a made-up order book and see slippage appear. The second turns a gross profit into a net one and finds the exact break-even sell price. It sits alongside the PSX beginner’s guide and the capital gains tax guide.

All numbers here are illustrative. They are not forecasts, a real order book or your broker’s rates.

The order book, the spread and slippage

Every listed share has an order book: a queue of buyers (bids) and sellers (asks) at different prices.

  • The best bid is the highest price a buyer will pay. The best ask is the lowest price a seller will accept.
  • The spread is the gap between them. The mid price is halfway. Buying at the ask and selling at the bid straight away loses you the spread.
  • A market order says “fill me now”. It takes the shares waiting at the best price, then the next price, and so on until your order is filled. Each step is a worse price, and the average you pay is your real cost.
  • A limit order says “only at this price or better”. It protects the price, but it may fill partly or not at all.
  • Slippage is the gap between the price you expected and the average price you got.

Liquid shares have tight spreads and deep queues, so even a large order barely moves the price. Thin shares have wide spreads and small queues, so a modest order can walk through several prices.

Order book depth: an 8,000-share market buy on a thin stock (example)Top: cumulative buyers on the left and sellers on the right around a mid price of 100. The best ask is 101 and the best bid is 99. A market buy of 8,000 shares uses the first three ask levels at 101, 101.50 and 102 and averages 101.50. Bottom: the average price rises as order size grows.05k10k15k20k25k30k35kShares waiting (cumulative)Mid 100.00You pay avg 101.50949698100102104106Price (Rs). Left: buyers waiting. Right: sellers waiting.Average price you pay by order size (market order)99100101102103104Avg price (Rs)Mid 100.0005k10k15k20k25k30kOrder size (shares)
Figure 1. A made-up order book for a thin share with a mid price of Rs 100. A market order to buy 8,000 shares walks up three price levels and averages Rs 101.50, which is 1.5% above the mid price, or about Rs 12,000 of extra cost.
Text version of Figure 1
Price (Rs)Shares for saleYour order takes
101.00 (best ask)3,0003,000
101.502,0002,000
102.004,0003,000
Average price you payRs 101.50

Reading the chart

  • The green staircase is buyers, the red staircase is sellers. The height is the cumulative number of shares waiting up to that price.
  • The amber part is what your order uses. The blue line is the average price you pay.
  • The lower chart shows why size matters. The bigger the order, the further the average price drifts from the mid price.

Stops, gaps and limits

Order book and slippage simulator: what does your order really cost?
A frozen, made-up order book at a mid price of Rs 100. Pick a stock, a side and an order type, then change the size.
1. Pick a stock
2. Buy or sell
3. Order type
4. Size and limit
The live chart needs JavaScript. The static diagram above shows the same idea.
Filled-
Slippage vs best price-
Cost vs mid price-
Extra cost vs mid-
Price levels used-
Not filled-
Loading
Show the numbers behind the chart
PriceShares waitingYou take
Educational simulation. Numbers are illustrative, not a forecast or advice.

Fees, tax and the break-even price

A trade that looks like a profit on the screen can be a loss after costs. Per trade you typically pay:

  • Brokerage commission to your broker, usually a percentage of the trade value, sometimes with a minimum.
  • Other charges such as exchange, central depository, regulator fees and tax on commission. The exact items and rates depend on your broker and the current schedule.
  • Spread and slippage, as above.
  • Capital gains tax on the profit, collected through NCCPL. For a filer who bought on or after 1 July 2024 the rate is 15% whatever the holding period; older purchases may follow a tiered schedule. See the capital gains tax guide and filer vs non-filer withholding tax.

The break-even sell price. Costs are paid on both the buy and the sell, so you need the price to rise just to get back to zero. With a buy price B, a cost rate f per side and a slippage rate s per side, the break-even sell price is:

Break-even = B x (1 + s) x (1 + f) / ((1 - s) x (1 - f))

With the example costs (0.20% charges and 0.10% slippage per side) a Rs 100 buy needs a sell price of about Rs 100.60. Tax does not change that number because tax applies only to a profit, but it takes a share of everything above it.

Waterfall from gross profit to net profit after fees, spread and tax (example)Top: a gross profit of Rs 5,000 loses Rs 410 to fees and charges, Rs 205 to spread and slippage and Rs 658 to capital gains tax, leaving Rs 3,727. Bottom: net profit compared with gross profit across sell prices, with the break-even sell price at Rs 100.60.01k2k3k4k5k6kProfit (Rs)+Rs 5,000-Rs 410-Rs 205-Rs 658+Rs 3,727GrossFeesSpreadTaxNetNet profit by sell price (buy price and costs held fixed)-20k-10k010k20k30kProfit (Rs)Break-even 100.609092949698100102104106108110112114116Sell price (Rs)
Figure 2. Buy 1,000 shares at Rs 100 and sell at Rs 105 with assumed costs of 0.15% brokerage, 0.05% other charges and 0.10% spread and slippage per side, and 15% capital gains tax. A Rs 5,000 gross profit becomes Rs 3,727. The break-even sell price is Rs 100.60. Assumed rates, not a broker schedule.
Text version of Figure 2
StepAmount
Gross profit+Rs 5,000
Fees and charges-Rs 410
Spread and slippage-Rs 205
Pre-tax profit+Rs 4,385
Capital gains tax (15%)-Rs 658
Net profit+Rs 3,727
Fees, tax and break-even calculator: how much of your profit do you keep?
Enter a trade and your costs. The waterfall shows where the gross profit goes and the exact break-even sell price.
1. Your trade
2. Costs (assumptions: use your broker's schedule)
3. Capital gains tax rule (filer)
The live chart needs JavaScript. The static diagram above shows the same idea.
Gross profit-
Fees + spread-
Capital gains tax-
Net profit-
Net return-
Break-even sell price-
Round-trip cost-
Sell price for +10% net-
Loading
Show the numbers behind the chart
StepAmount
Educational simulation. Numbers are illustrative, not a forecast or advice.

Putting it together

Frequent small trades are where costs hurt most, because the same round-trip cost is taken from a small gain each time. Check that your expected move is large compared with the round-trip cost, prefer limit orders in thin shares, split a large order if you must trade size, and compare brokers’ fee schedules. Size each position sensibly using the position sizing calculator and see the risk management guide. Unfamiliar terms are in the glossary.

Checklist

  • How wide is the spread, and how many shares are waiting at the best price compared with my order?
  • Would a limit order be safer than a market order for this share?
  • What are my real commission and charges per side, from my contract note?
  • What is my break-even sell price, and is my target comfortably above it?
  • Which capital gains tax rule applies to this purchase, and am I on the filer list?
  • If this is a stop-loss, what happens if the price gaps through it?

Educational content only, not investment advice or tax advice. Calculators use made-up order books and assumed rates and do not predict fills, costs or returns. You can lose money trading. Consider speaking to a licensed adviser before making decisions.

Frequently asked questions

What is the bid-ask spread?

It is the gap between the highest price a buyer is offering (the bid) and the lowest price a seller is asking (the ask). If you buy at the ask and sell at the bid straight away, the spread is what you lose. It is usually tight for heavily traded shares and wide for thinly traded ones.

What is slippage?

Slippage is the difference between the price you expected and the average price you actually got. It is larger when your order is big compared with the shares waiting in the order book, or when the price moves between your decision and your fill.

Should I use a market order or a limit order?

A market order prioritises getting filled and accepts the price. A limit order prioritises the price and accepts that it may not fill. For thinly traded shares, many investors prefer limit orders to avoid paying through several price levels. Which order types you can use depends on your broker's platform.

Will my stop-loss sell at my stop price?

Not necessarily. A stop-loss usually becomes a market order once triggered, so it can fill at a worse price if the price gaps or the book is thin. Price limits and halts can also stop an order filling at all.

What is a break-even sell price?

It is the sell price at which your net profit is zero after commissions, charges and spread. Capital gains tax applies only to a profit, so tax does not change the break-even level, but it does take a share of everything above it.

Does holding a share for longer reduce capital gains tax?

Only for older purchases. Under the rules summarised in our capital gains tax guide, filer purchases from 1 July 2024 pay 15% regardless of holding period, while purchases between 1 July 2022 and 30 June 2024 follow a tiered schedule. Check the current rule and your NCCPL statement.

Sources and further reading

Facts in this guide were last checked against these sources on 22 November 2026.

Found an error or an out-of-date detail? See our editorial policy or tell us.

S

About Sherjeel Islam

Sherjeel Islam is the founder and lead developer behind PakGains. With an extensive background in software engineering, database architecture, and enterprise data systems, he specializes in building real-time market tracking tools and analytical models for Pakistani investors. Sherjeel focuses on bridging the gap between raw market data and practical financial tools, writing in-depth guides on market indicators, cryptocurrency frameworks, and cross-border financial technology.

Financial & Investment Disclaimer

Disclaimer: The content on PakGains is for informational and educational purposes only and does not constitute financial, investment, legal, or tax advice. Financial markets, cryptocurrencies, and banking services involve inherent risk. Always conduct your own research or consult with a licensed financial professional before making financial decisions.