Profit margin calculator

Find your profit, margin and markup from cost and selling price, or work out the selling price you need for a target margin. Includes SST.

RM
Stock, packaging, delivery and platform fees.
RM
–profit per item
–profit margin
–markup
–selling price before SST
–price customer pays
–total profit
–total sales before SST

Selling price at different margins

For your cost per item. Prices before SST.

MarginSelling priceProfit per itemMarkup

How to use it

  1. Choose what you know: your cost and selling price, or your cost and the margin or markup you want.
  2. Enter your cost per item, including stock, packaging and delivery.
  3. Enter the selling price, target margin or target markup.
  4. Add SST and quantity if you need them. Results update as you type.

Margin vs markup: the difference that costs businesses money

Markup is profit as a percentage of your cost. Margin is profit as a percentage of your selling price. They describe the same profit, but the numbers are different, and mixing them up is one of the most common pricing mistakes.

Say an item costs you RM 60 and you sell it for RM 100. Your profit is RM 40. Your markup is 40 ÷ 60 = 66.7%, but your margin is 40 ÷ 100 = 40%. If you want a 40% margin and add 40% to your cost instead, you sell at RM 84, and your real margin is only 28.6%.

The formulas

  • Profit = selling price − cost
  • Margin = profit ÷ selling price × 100
  • Markup = profit ÷ cost × 100
  • Price for a target margin = cost ÷ (1 − margin ÷ 100)
  • Price for a target markup = cost × (1 + markup ÷ 100)

What to include in your cost

Your margin is only as accurate as your cost. Include everything you pay to sell one item: the product or ingredients, packaging, delivery or shipping, and platform fees. Shopee, Lazada, TikTok Shop and Grab commissions can take 10–30% of the selling price, so for those channels calculate the margin after fees. Rent, wages and utilities are usually covered by your overall margin rather than added to each item.

Pricing with SST

If you are registered for Sales and Service Tax, SST is added on top of your selling price and paid to the government. It is not part of your profit. This calculator shows your price before and after SST, so you can see what the customer pays and what you keep. Service tax is 8% for most services and 6% for food and beverage, telecommunications and parking. Sales tax on goods is 5% or 10% depending on the product.

Worked example

A café's iced latte costs RM 4.20 to make, counting coffee, milk, cup, lid and straw. The owner wants a 70% margin. The price needed is 4.20 ÷ (1 − 0.70) = RM 14.00, which is a 233% markup. With 6% service tax on food and beverage, the menu price becomes RM 14.84, and the café keeps RM 9.80 profit per cup.

Questions

What is a good profit margin for a small business?

It depends on the industry. Restaurants often aim for 60–70% margin on food and drinks before overheads, retail shops 25–50%, and services often more. What matters is that your total profit covers rent, wages and other running costs.

How do I calculate selling price from a margin?

Divide your cost by (1 minus the margin as a decimal). For a 40% margin on a RM 60 cost: 60 ÷ 0.6 = RM 100.

Is margin or markup better to use?

Margin is better for understanding profitability, because it shows how much of every ringgit of sales you keep. Markup is handy for quickly setting prices from cost. Use whichever you like, as long as you don't confuse the two.

Should SST be included in my profit?

No. SST you collect belongs to the government. Work out your margin on the price before SST.