EN
Bookkeeping

How Do You Calculate Profit Margin? A Guide to the Difference from Markup, Formulas and Setting Selling Prices

How do you calculate profit margin, how is it different from markup, and what percentage should you add to cost? Formulas, worked examples, a conversion table and VAT-inclusive price calculation.

Contents 11 sections
  1. What is profit margin?
  2. How do you calculate profit margin?
  3. What is the difference between profit margin and markup?
  4. What percentage should you add to cost for a target profit margin?
  5. What is the difference between gross, operating and net profit margin?
  6. How do you calculate a VAT-inclusive selling price based on profit margin?
  7. How do discounts affect profit margin?
  8. What is a good profit margin?
  9. The 7 most common mistakes when calculating profit margin
  10. How do you track profit margin regularly?
  11. Frequently Asked Questions About Profit Margin Calculation

A business that buys a product for ₺400, adds 30% and sells it for ₺520 thinks its profit margin is 30%. In fact, the actual profit margin is 23.1%. The difference looks small, but spread over thousands of sales throughout the year, it affects the price list, campaign decisions and cash planning from start to finish. How do you calculate profit margin, how is it different from markup, and what percentage should you add to cost? The answers lie in a few simple formulas.

In this guide, we explain profit margin calculation from start to finish: the core formulas, the difference between profit margin and markup, a conversion table showing what to add to cost for a target margin, gross and net profit margin, VAT-inclusive selling price calculation, the effect of discounts on margin and break-even revenue. Every section includes a worked example. The figures in the examples were chosen only to illustrate the method; you can do the same calculation with your own costs.

What is profit margin?

In short: Profit margin is the ratio that shows what percentage of the selling price stays with the business as profit. A 25% profit margin means ₺25 of profit remains from every ₺100 sale.

The profit amount alone can be misleading. Earning ₺200 on a ₺2,000 product and earning ₺200 on a ₺500 product are not the same achievement: in the first, the margin is 10%; in the second, 40%. Profit margin lets you compare products at different prices, different periods and different sales channels on the same scale.

Profit margin is examined at three levels depending on which costs are taken into account: gross profit margin considers only the product cost, operating profit margin considers the business's overhead, and net profit margin considers all expenses including taxes. We explain these three levels with an example in a separate section below.

How do you calculate profit margin?

In short: Profit margin = (Selling price − Cost) ÷ Selling price × 100. First find the profit amount, then divide it by the selling price and multiply by 100.

These are the five core formulas used in profit calculations. The first three measure the profitability of an existing sale; the last two set a selling price based on a target:

FormulaFive core formulas for profit margin and selling price calculation
  1. Profit = Selling price − Cost
  2. Profit margin (%) = Profit ÷ Selling price × 100
  3. Markup (%) = Profit ÷ Cost × 100
  4. Selling price for a target margin = Cost ÷ (1 − target margin)
  5. Selling price for a target markup = Cost × (1 + markup)

All amounts are taken excluding VAT. Rates are written as decimals in the formula: 25% = 0.25.

Example: Suppose you sell a product costing ₺400 for ₺500 excluding VAT.

  1. Find the profit: 500 − 400 = ₺100.
  2. Find the profit margin: 100 ÷ 500 × 100 = 20%.
  3. Find the markup: 100 ÷ 400 × 100 = 25%.

The same sale produced two different percentages. Both are correct; they simply answer different questions. Profit margin answers "how much of the sale was left?", while markup answers "how much did I add on top of cost?". If you want a reminder of what cost includes, take a look at the what is cost page.

What is the difference between profit margin and markup?

In short: Profit margin divides profit by the selling price, while markup divides it by cost. Because the denominator differs, markup is always higher than profit margin on the same sale. Confusing the two is the most common reason businesses earn less profit than expected.

Profit marginMarkup
FormulaProfit ÷ Selling priceProfit ÷ Cost
Question it answersWhat percentage of the sale is profit?What percentage was added to cost?
Upper limitCannot exceed 100%No limit (can be 150%, 300%)
Where is it used?Profitability analysis, reporting, product comparisonPreparing price lists, pricing from purchase to sale
₺400 cost, ₺500 sale%20%25

The confusion usually starts like this: the business says "I want to make 30% profit" and adds 30% on top of cost. The ₺400 product is sold for ₺520, and the profit is ₺120. But 120 ÷ 520 = 23.1%. To reach the targeted 30% profit margin, the product would have had to be sold for 400 ÷ (1 − 0.30) ≈ ₺571, meaning 42.9% should have been added to cost, not 30%.

Free toolProfit Margin Calculator

What percentage should you add to cost for a target profit margin?

In short: Rate to add to cost = Target margin ÷ (1 − Target margin). For a 20% margin, add 25% to cost; for a 30% margin, 42.9%; for a 50% margin, 100%.

The conversion table below shows the rate to add to cost for the most commonly targeted profit margins and the resulting VAT-exclusive selling price of a product costing ₺400. You can use this table directly when preparing your price list.

Target profit marginRate to add to costSelling price of a ₺400 product (excluding VAT)Unit profit
%10%11,1444,44 ₺44,44 ₺
%15%17,6470,59 ₺70,59 ₺
%20%25500,00 ₺100,00 ₺
%25%33,3533,33 ₺133,33 ₺
%30%42,9571,43 ₺171,43 ₺
%40%66,7666,67 ₺266,67 ₺
%50%100800,00 ₺400,00 ₺
%60%1501.000,00 ₺600,00 ₺
ChartAs the target margin rises, the rate you need to add to cost grows rapidly
  1. For a 10% margin11.1%
  2. For a 20% margin25%
  3. For a 30% margin42.9%
  4. For a 40% margin66.7%
  5. For a 50% margin100%
  6. For a 60% margin150%

Formula: Rate to add to cost = Target margin ÷ (1 − Target margin).

The curve in the chart shows an important truth about pricing: as the margin target rises, each new point requires a much larger addition to cost. To go from 50% to 60%, you have to raise the added rate from 100% to 150%. That is why, for products targeting a high margin, it is essential to check whether the price is at a level the market will accept. For an approach that changes prices according to demand, see our article on dynamic pricing.

What is the difference between gross, operating and net profit margin?

In short: Gross profit margin deducts only the cost of goods sold; operating profit margin also deducts operating expenses such as rent, staff and marketing; net profit margin shows the profit left after deducting all expenses, including financing expenses and taxes.

The three margins are the steps of the income statement. For a business with monthly sales of ₺100,000 excluding VAT, the steps proceed as follows:

ChartFrom ₺100,000 in sales to ₺9,000 in net profit: three profit steps
  1. Net sales (excluding VAT)₺100,000
  2. Cost of goods sold−₺60,000
  3. Gross profit (40% margin)₺40,000
  4. Operating expenses (rent, staff, marketing)−₺25,000
  5. Operating profit (15% margin)₺15,000
  6. Financing expenses−₺3,000
  7. Profit before tax₺12,000
  8. Corporate tax (25%)−₺3,000
  9. Net profit (9% margin)₺9,000

Prepared with sample values. The general corporate tax rate is taken as 25%; for sole proprietorships, income tax is calculated using the progressive tariff.

MarginFormulaValue in the exampleWhat does it tell you?
Gross profit margin(Sales − Cost of goods sold) ÷ Sales40.000 ÷ 100.000 = %40How profitable is the product itself?
Operating profit marginOperating profit ÷ Sales15.000 ÷ 100.000 = %15What does the business earn from its core operations?
Net profit marginNet profit ÷ Sales9.000 ÷ 100.000 = %9What is left after everything is paid?

In a business with a high gross margin but a low net margin, the problem is not the product's price but the expenses. Conversely, in a business with a low gross margin, no matter how much you cut expenses, net profit stays limited; you need to review the price or the purchase cost. For details on operating profit, see the what is operating profit page.

BreakdownHow ₺100,000 in monthly sales is distributed across expenses and profit
  • Cost of goods sold₺60,00060%
  • Net profit₺9,0009%
  • Operating expenses₺25,00025%
  • Financing expenses₺3,0003%
  • Corporate tax₺3,0003%

How do you calculate a VAT-inclusive selling price based on profit margin?

In short: First find the VAT-exclusive selling price with the target margin: Cost ÷ (1 − margin). Then multiply this price by (1 + VAT rate) to get the shelf price. Margin is never calculated on the VAT-inclusive price.

VAT is a tax added to the selling price and passed on to the state; it is not the business's income. That is why both cost and selling price are taken excluding VAT in the profit margin calculation. For details, see our article what is VAT and how is it calculated.

Setting the priceThe shelf price for a target margin is found in four steps
  1. 01
    Take the cost excluding VATThe VAT-exclusive amount on the purchase invoice: ₺400.
  2. 02
    Choose the target marginIn the example, a 25% profit margin is targeted.
  3. 03
    Find the VAT-exclusive price400 ÷ (1 − 0.25) = ₺533.33.
  4. 04
    Add VAT533.33 × 1.20 = ₺640 shelf price.

The most common mistake in this example is calculating the margin on the ₺640 shelf price: (640 − 400) ÷ 640 = 37.5%. This rate does not reflect reality, because ₺106.67 of the ₺640 is VAT and does not belong to you. The actual profit is 533.33 − 400 = ₺133.33, and the actual margin is 25%.

How do discounts affect profit margin?

In short: A discount comes off the selling price but does not change the cost; that is why it cuts profit far more sharply than the discount rate. Additional sales needed to keep the same total profit = Discount ÷ (Margin − Discount).

Consider a product sold for ₺1,000 with a 30% profit margin: cost ₺700, profit ₺300. With a 10% discount, the price falls to ₺900, profit to ₺200, and the margin to 22.2%. Because the profit amount drops by a third, you need to sell 50% more to earn the same total profit. The table below shows the additional sales needed at different margins and discount rates:

Current profit margin5% discount10% discount15% discount20% discount
%2033.3% more sales100% more sales300% more salesProfit drops to zero
%30%20%50%100%200
%40%14,3%33,3%60%100
%50%11,1%25%42,9%66,7
ChartAdditional sales needed as the discount grows on a product with a 30% margin
  1. 5% discount20%
  2. 10% discount50%
  3. 15% discount100%
  4. 20% discount200%
  5. 25% discount500%

Formula: Additional sales needed = Discount ÷ (Margin − Discount). When the discount equals the margin, profit drops to zero.

The table does not tell you to avoid discounts; it lets you see the cost of a discount in advance. On low-margin products, even a small discount can wipe out profit. For these products, options such as a shipping benefit or bundle sales lose less profit than a price cut. We explain step by step how to do the calculation on a marketplace, including commission and shipping, in our guide how to calculate net profit on a marketplace.

Takeaways from the examplesFour numbers to remember about profit margin
  • 23.1%actual profit margin when 30% is added to cost
  • 42.9%rate to add to cost for a 30% margin
  • 37.5%misleading margin calculated from the VAT-inclusive price; the real one is 25%
  • +50%additional sales needed after a 10% discount at a 30% margin

What is a good profit margin?

In short: There is no single right margin for everyone. A good profit margin is one that covers the business's fixed expenses and leaves the targeted net profit. The way to find it is to calculate break-even revenue.

Profit margin varies greatly by sector, sales channel, product turnover speed and competition. A low margin may be enough for fast-moving, low-priced products, while slow-selling products that sit in inventory for a long time need a high margin. That is why the healthiest comparison is not with other businesses' margins but with your own business's fixed expenses.

Break-even revenue = Monthly fixed expenses ÷ Gross profit margin. In the example above, monthly operating expenses are ₺25,000 and the gross profit margin is 40%: 25,000 ÷ 0.40 = ₺62,500. When the business sells less than ₺62,500 a month, it makes a loss; 40% of every sale above this amount remains as profit. If the gross margin falls to 30%, break-even revenue rises to ₺83,333. A 10-point drop in margin requires about ₺21,000 more in sales each month to cover the same expenses.

The 7 most common mistakes when calculating profit margin

In short: The most common mistakes are mistaking markup for profit margin, calculating with VAT-inclusive amounts, and not adding sales-related expenses such as shipping and commission to cost.

  1. Mistaking markup for profit margin. Adding 30% to cost does not produce a 30% profit margin; the actual margin is 23.1%.
  2. Calculating with the VAT-inclusive price. A margin calculated on the shelf price comes out inflated by the amount of VAT.
  3. Counting only the purchase price as cost. Purchase-related expenses such as freight, customs and packaging are also part of the product's cost.
  4. Forgetting sales-related expenses. A margin calculated without deducting expenses incurred on every sale, such as commission, shipping, payment gateway commission and returns, shows gross profit higher than it really is.
  5. Calculating with an old purchase price. If the selling price is not updated when the purchase price changes, the margin melts away unnoticed.
  6. Looking only at the average. While the business's average margin looks good, a few products may be losing money. Margin should be tracked product by product.
  7. Applying the same rate to all products. Each product has a different cost, turnover speed and competitive position. A single markup rate stops sales on some products and wastes profit on others.

How do you track profit margin regularly?

In short: To track profit margin regularly, keep current product costs, sales invoices and expenses in the same place; then run a product-level margin report and review the price or purchase cost of products whose margin is falling.

The hard part of margin tracking is that the data is scattered: purchase prices sit on invoices, selling prices on the sales screen, and expenses in bank transactions. NetKasam inventory management keeps your product costs and inventory movements and shows your inventory turnover rates. With invoice tracking, you create your invoices and track them from one place; expense management records your expenses under the relevant categories. In the Reports section, you can run and save reports with any filter you like and export them to Excel to prepare your product-level margin table. Bookkeeping and the e-Invoice system are always free.

Frequently Asked Questions About Profit Margin Calculation

How do you calculate profit margin?

Profit is found by subtracting cost from the selling price, then profit is divided by the selling price and multiplied by 100. For example, if a product costing ₺400 is sold for ₺500 excluding VAT, the profit margin is 100 ÷ 500 × 100 = 20%.

What is the difference between profit margin and markup?

Profit margin divides profit by the selling price, while markup divides it by cost. On the same sale, markup always comes out higher: with a cost of ₺400 and a sale at ₺500, the profit margin is 20% and the markup is 25%.

What percentage should you add to cost for a 30% profit?

If you are targeting a 30% profit margin, add 42.9% to cost; the formula is 0.30 ÷ (1 − 0.30). If you add only 30% to cost, your actual profit margin stays at 23.1%.

Is profit margin calculated including VAT?

No. Because VAT is not the business's income, profit margin is calculated on the VAT-exclusive selling price and the VAT-exclusive cost. The shelf price is found by multiplying the VAT-exclusive price by (1 + VAT rate).

What is the difference between gross profit margin and net profit margin?

Gross profit margin deducts only the cost of goods sold. Net profit margin is the ratio to sales of the profit left after all expenses are deducted, including operating expenses, financing expenses and taxes.

Can profit margin exceed 100%?

No. Since profit cannot be greater than the selling price, profit margin stays below 100%. Markup, however, can exceed 100%; for a product sold at three times its cost, the markup is 200%.

How do you set the selling price based on a target margin?

VAT-exclusive selling price = Cost ÷ (1 − target margin). For example, if you are targeting a 25% margin for a product costing ₺400, the VAT-exclusive price is ₺533.33, and with 20% VAT the shelf price is ₺640.

How often should I check my profit margin?

A good habit is to update your product-level margin table at least once a month, and also check it whenever purchase prices change and before campaigns.

Calculating profit margin takes only a few formulas; the real difference comes from doing it regularly. Start today by writing down the cost and VAT-exclusive selling price of your ten best-selling products side by side. Once you find the products whose margin falls below your target, you will also see in which direction to change the price, the purchase cost or the campaign plan.

Bookkeeping Is Now Completely Free

Manage your bookkeeping and e-Invoice operations with NetKasam without paying a thing. Customer and supplier accounts, inventory, collections and more in one panel, completely free.

Start FreeProfit Margin Calculator

Read similar articles

19 free tools

Commission, shipping, VAT and profit calculations in your browser, no sign-up needed.

All tools