# How to Calculate Profit, Loss and Brokerage Fees in Stock Market Trading?

This is the Part 4 on the series. In this part, I will explain on how to calculate profit (or loss) and applicable fees when buying or selling shares at Bursa Malaysia.

By the end of this part, you will have the basic knowledge to enter stock market.

But the most important thing to remember is that, make sure that you are investing, not gambling in stock market.

In Part 3, we see that the settlement formula as follow.

Total Buy Settlement (RM) = Value of Shares + Brokerage Fees + Clearing Fees + Stamp Duty
Total Sell Settlement (RM) = Value of Shares – Brokerage Fees – Clearing Fees – Stamp Duty

Now I will show you on how calculate all the component in the formula.

### Step 1 – Calculate the value of Shares

This is easy. For example if you buy or sell 1,000 units of A shares at RM5.00 then you have to pay or received RM5,000.

### Step 2 – Calculate Brokerage Fees

Brokerage fees is really depends on your chosen Broker. Normally it range from 0.05% to 0.7% from contract value depending on your value of transaction, account type and trading type. However, broker normally impose minimum brokerage fees per transaction. You can check  for online brokerage fees in this comparison table.

Take the same example as above, and with brokerage fees of 0.42%.

Brokerage Fees = 0.42% x RM5,000 = RM21

### Step 3 – Calculate Clearing Fees

Clearing Fee is charged by Bursa as the clearing house. The fee is 0.03% from contract value or value of shares but subjected to maximum of RM1,000.00

Take the same example as above.

Clearing Fees = 0.03% x RM5,000 = RM1.50

### Step 4 – Calculate Stamp Duty

Stamp duty is a charge by the Government and Broker will collect on their behalf. You have to pay RM1.00 for every RM1,000.00 of contract value or value of shares and rounded up to the nearest ringgit subject to maximum value of RM200.00

Take the same example as above.

Clearing Fees = RM5

### Step 5 – Calculate Profit (or Loss)

Base on formula above we take the following example,

Buy 1,000 units of A shares at RM5.00 and sell it later at RM6.00

Shares Value when buying  = RM5 x 1,000 = RM5,000

Shares Value when selling = RM6 x 1,000 = RM6,000

Buy Settlement =  RM5,000 + 0.42% x RM5,000 +  0.03% x RM5,000 + RM5 = RM5,027.50

Sell Settlement = RM6,000 – 0.42% x RM6,000 –  0.03% x RM6,000 – RM6 = RM5,967.00

Net Profit = RM5,967.00 – RM5,027.50 = RM939.50

### Step 6 – What is Contra?

In Part 3, we already understand that when you buy shares, you only have to pay it at T+3. What happen if you sell the shares that you bought earlier before T+3 or you pay for it?

We call this Contra. What will happen is that, your broker will calculate the different between buy and sell settlement. The different sum will be credited or debited in your trust account depending whether you are making profit or loss.

If you make profit from contra transaction, we call it Contra Gain. If otherwise we call it Contra Loss.

• limseisei 20th May, 2011, 9:09 pm

hi.
thanks.

regards,
lim

• 1mdb.com 20th May, 2011, 9:30 pm

limseisei,

Intraday means that you buy & sell the same stock on the same day.

• AlanMDC 17th June, 2011, 9:12 pm

is your sell settlement calculation correct? should it also subtract the clearing fees (0.03%) and the stamp duty?

• 1mdb.com 17th June, 2011, 10:35 pm

AlanMDC,

You are right, it was typo error. Anyway it is corrected now.

• A.Narasingrao 14th October, 2011, 9:19 pm

I bought 1 share of TCS at 1033 on 3-10-2011 and later on 10-10-2011 I sold it for 1070 What is the net gain ?

• Bursana 14th March, 2012, 11:37 am

Hi,
Thanks for this excellence info. How can we calculate the profit in percentage term? Profit margin?

thanks.

• mansor 22nd October, 2012, 6:32 pm

“In Part 3, we already understand that when you buy shares, you only have to pay it at T+3. What happen if you sell the shares that you bought earlier before T+3 or you pay for it?”

Meaning if sell the share in T+2, i only have to pay the loss… am i right

• 1mdb.com 23rd October, 2012, 5:51 pm

mansor, you only have to settle the different between the selling & buying price. Means that you will have either contra gain or loss.

• SaviourV 27th November, 2012, 3:23 pm

Just how is the calculation of stamp duty done? Working on a formula for use in Excel right now.

I mean, if your total share cost, before adding in extra charges, is RM 1,560, do you get RM 1 or RM 2 worth of stamp duty?

I’d appreciate your answer on this, even though it might be a silly question. ^_^;;

• 1mdb.com 27th November, 2012, 3:28 pm

SaviourV, you will be charged RM2.

• SaviourV 27th November, 2012, 4:41 pm

So, let me get this straight: less than RM 1.5K, RM 1.00 stamp duty; more than that, RM 2.00 stamp duty?

That would mean that the stamp duty’s rounded UP to the next value. 2 decimal places, I guess. Correct me if I’m wrong.

• 1mdb.com 28th November, 2012, 12:02 am

>RM0 to RM1000, stamp duty is RM1
>RM1000 to RM2000 stamp duty is RM2
>RM2000 to RM3000 stamp duty is RM3
and so on

• Marshall 16th March, 2013, 9:34 am

Hi sir,

I have a question in part 3, If I make profit from contra grain transaction within T-3 days, is the profit be debited to my trust account within the same day of transaction date or when? please advise thanks.

regards,
marshall

• 1mdb.com 16th March, 2013, 10:15 am

Hi, the profit will be credited to your account on the day after T+3

• jason 13th August, 2014, 12:35 am

20 5.5 5.52 1000

calculate total amount payable.
ans:
purchase price at market order=RM5.52
then so on…
my question is y use ask price?
not use 5.5?becuz bid price is the price you purchase..am i right?correct me..

• asd 21st December, 2016, 9:42 am

Bid is the price buyer is hoping for
Ask is the price seller is hoping for

• omega 13th November, 2014, 2:28 am

What if u got a contra loss, and broker sold your share, but it still not enough to cover the loss?

• SaviourV 27th May, 2015, 5:11 pm

• 06 5th June, 2015, 4:23 pm

can you do an updated one with gst?

• 1mdb.com 19th June, 2015, 8:31 pm

Ok will update. By the way, GST is only charge on Brokerage Fees & Clearing Fees.

• Jackson Leong 6th November, 2016, 11:00 am

Hi. thank you so much becoz your posts are really great and clear i have learnt a lot of the necessary knowledge before i enter stock market.

im looking to learn further such as how to analyze stocks and monitor the stocks after investing in it…