Blog

How to Calculate Profit Margin for a Product (With Shop Examples)

By Quantum Solutions · 4 min read

A shop owner checking a handwritten price list next to a calculator at the counter of a small shop

Short answer: To find your profit margin, subtract the cost price from the selling price to get your gross profit. Then divide that gross profit by the selling price and multiply by 100. This gives you the profit margin percentage for a single product sale.

Key takeaways

  • Profit margin shows how much of a sale price you keep as profit.
  • Always remove sales tax from your selling price before you do the math.
  • Discounts lower your selling price and reduce your profit margin.
  • Margin and markup are different calculations based on the same numbers.

What is the profit margin formula?

To calculate your profit margin, you start with two numbers. You need the cost price and the selling price before tax. The profit margin formula takes the profit you make and turns it into a percentage of the sale price.

First, find your gross profit. You do this by subtracting the cost price from the selling price. Next, divide that gross profit by the selling price. Finally, multiply the result by 100 to get your profit margin percentage.

Knowing this number helps you price your products correctly. It tells you how much of every dollar from a sale stays in your shop. People often confuse this with markup.

Margin and markup use the same numbers but give different results. You can read our guide on gross margin vs markup to see the difference.

How do you calculate margin for a single product?

Let us look at a simple example to find the margin from cost and selling price. Imagine you buy a notebook from a supplier for your shop. You want to know exactly how much profit you make when a customer buys it.

  • Cost price: $4
  • Selling price: $10

Here is how you apply the formula step by step.

  • Subtract the cost from the selling price: $10 - $4 = $6 gross profit.
  • Divide the gross profit by the selling price: $6 / $10 = 0.6.
  • Multiply by 100 to get the percentage: 0.6 * 100 = 60%.

Your gross profit margin on this notebook is 60%. This means you keep 60 cents of every dollar the customer pays for the item itself. You can use this money to pay staff, pay rent, and grow your shop.

Why must you remove tax before calculating margin?

You must always remove tax from your selling price before you calculate your margin. Tax money belongs to the government. It is not part of your shop revenue. If you include it in your math, your margin will look artificially high.

Imagine you sell a desk lamp for $55 at the counter. This price includes a $5 sales tax. The cost price of the lamp is $25.

If you use the $55 price, your math will be wrong. You must use the $50 price before tax.

  • Selling price before tax: $50
  • Cost price: $25
  • Gross profit: $50 - $25 = $25
  • Margin: ($25 / $50) * 100 = 50%

If you used the $55 price, you would think your margin is 54.5%. This mistake makes you think your business is more profitable than it really is.

Tax rules differ by country. You should confirm your local tax rules with a local tax adviser. You can also read our guide on retail sales tax for basic concepts.

How does a discount change your profit margin?

When you give a customer a discount, your selling price goes down. Your cost price stays the same. This means your profit shrinks and your margin drops. Shop owners sometimes forget how much a small discount hurts their final margin.

Imagine you sell a leather bag for $100. It costs you $60. Your normal gross profit is $40.

Your normal margin is 40%. Now imagine you give a 10% discount on this bag to close the sale.

  • New selling price: $90
  • Cost price: $60
  • New gross profit: $90 - $60 = $30
  • New margin: ($30 / $90) * 100 = 33.3%

A 10% discount did not just drop your margin by 10%. It dropped your margin from 40% to 33.3%. You have to sell more bags to make up for the lost profit. If you want to run these numbers quickly, use our free margin and markup calculator on our website.

How do you use your margin to set a selling price?

Sometimes you know your cost and your target margin, but you need to find the selling price. You can work the formula backward.

Imagine you buy a vase for $15. You want a 40% profit margin. You need to know what price to put on the shelf.

  • Subtract your target margin from 100%: 100% - 40% = 60%.
  • Turn that percentage into a decimal: 0.6.
  • Divide your cost by this decimal: $15 / 0.6 = $25.

You need to sell the vase for $25 before tax to get a 40% margin. This simple math helps you price new inventory as soon as it arrives. It keeps your pricing consistent across your whole shop.

How DukaanAI helps

DukaanAI helps you track your margins automatically. When you add products to your inventory, you can save both the cost price and the selling price. The software updates your stock with every sale and calculates your profit on the sales report. On the Pro and Business plans, you can view full profit and loss reports that include your staff salaries and other shop expenses.

Frequently asked questions

What is a good profit margin for a shop?

There is no single answer. Margins depend entirely on your shop expenses and what you sell. You need a margin high enough to cover your rent, staff salaries, and bills, while leaving profit for yourself.

Can my profit margin be over 100%?

No, your profit margin cannot be over 100%. The margin is a portion of the selling price. Since your gross profit can never be larger than the selling price, the margin percentage will always be under 100%.

Do I include shop rent in the gross profit margin?

No, gross profit margin only uses the cost to buy the product and the selling price. Rent, utilities, and staff salaries belong in your net profit calculation. Gross margin only shows the profit from the item itself.

Keep reading