+387 61 555 065

Margin, Markup and Discount: Selling Price with VAT

The difference between margin and markup, how to calculate a selling price with VAT, and how payment fees and discounts affect profit, with examples.

Klijent oMedia agencije Author: Anel Memić Published Updated 7 min read

Also available in: Bosanski · Deutsch · Italiano · Français · Slovenščina

Margin, Markup and Discount: Selling Price with VAT
In short: Margin is the part of the selling price that stays as profit, while markup is the amount added on top of cost. The same product with a 30% margin has a 42.86% markup. For a cost of 100 KM, the selling price at a 30% margin is 142.86 KM excluding VAT, and 167.14 KM with the 17% VAT used in Bosnia and Herzegovina (BiH). A discount comes off the price, so it cuts margin faster than it looks.

The most common pricing mistake is mixing up margin and markup, which leads to selling at a lower profit than planned. This article explains the formulas, shows how to calculate a selling price with VAT and how a discount affects profit. The examples use KM, the convertible mark of BiH (1 EUR = 1.95583 KM, so 100 KM is about €51), but the formulas work in any currency. You can check every figure in the free profit margin and selling price calculator, which works in both directions.

What is the difference between margin and markup?

Margin is profit divided by the selling price, and markup is profit divided by cost. For a cost of 100 KM and a net selling price of 125 KM, profit is 25 KM, margin is 20% and markup is 25%.

  • Margin = (net price − cost) / net price. It never exceeds 100%.
  • Markup = (net price − cost) / cost. It can be higher than 100%.
  • Relationship: markup = margin / (1 − margin).
Margin Markup Net price Gross price (17% VAT) Profit per unit
20% 25% 125.00 KM 146.25 KM 25.00 KM
30% 42.86% 142.86 KM 167.14 KM 42.86 KM
50% 100% 200.00 KM 234.00 KM 100.00 KM

The table shows a product with a cost of 100 KM. Net price is cost / (1 − margin), and gross price is net multiplied by 1.17.

How do you calculate the selling price from a target margin?

Divide the cost by (1 − margin) to get the net price, then add VAT. For a cost of 100 KM and a margin of 30%, the net price is 100 / 0.70 = 142.86 KM, and with 17% VAT the gross price is 167.14 KM.

A common mistake is to multiply the cost by 1.30. That gives a 30% markup, not a 30% margin. A net price of 130 KM gives a profit of 30 KM, which is a margin of only 23.08%, because profit is divided by the selling price (30 / 130).

Cost per unit is not just the purchase price. Count the purchase price, delivery per unit, marketing per order and the payment fee. A card payment fee is charged on the gross amount the customer pays, that is, including VAT.

How is a selling price calculated with VAT?

The VAT rate in BiH is 17%. Gross price is net price multiplied by 1.17, and net price is gross divided by 1.17. Margin is always calculated on the net price, without VAT. Check the rate and rules on the website of the Indirect Taxation Authority. VAT rules differ by country, so confirm the details for your market with a local tax adviser.

Example (illustration): the customer pays 58.50 KM. The net price is 58.50 / 1.17 = 50 KM. If the cost is 32 KM, profit is 18 KM, margin is 18 / 50 = 36% and markup is 18 / 32 = 56.25%. The 8.50 KM of VAT is not your earnings, because you pass it on to the state.

For other countries the tool offers these rates: Croatia 25%, Serbia 20%, Slovenia 22%, Germany 19%, Austria 20%, Italy 22% and France 20%, as well as a calculation without VAT.

How do payment fees and delivery change the selling price?

Every item you pay per order reduces profit, so you must include it in the cost before you calculate the price. A fee charged on the gross amount needs a special formula: net price = (cost without the fee) / (1 − margin − fee × (1 + VAT)).

Example (illustration): an online cosmetics store. Purchase price 40 KM, delivery 5 KM, marketing 8 KM per order, a payment fee of 2% of the gross price, VAT 17%, target margin 30%. The cost without the fee is 53 KM. Net = 53 / (1 − 0.30 − 0.02 × 1.17) = 53 / 0.6766 = 78.33 KM. The gross price is 78.33 × 1.17 = 91.65 KM, VAT 13.32 KM, payment fee 1.83 KM, profit 23.50 KM. The break-even point is 54.27 KM net, which is the price at which the margin is zero.

How does a discount affect margin?

A discount is taken off the selling price while the cost stays the same, so the whole amount of the discount comes out of profit. A discount equal to the margin wipes out profit completely.

Discount on selling price Net price Gross price (17% VAT) Profit Margin
no discount 142.86 KM 167.14 KM 42.86 KM 30.00%
10% 128.57 KM 150.43 KM 28.57 KM 22.22%
20% 114.29 KM 133.71 KM 14.29 KM 12.50%
30% 100.00 KM 117.00 KM 0.00 KM 0.00%

The table starts from a cost of 100 KM and a margin of 30%. A 10% discount cuts profit from 42.86 KM to 28.57 KM, that is, by a third. So plan discounts in advance: decide the largest discount that still leaves an acceptable margin, not just how much discount your competition gives. The tool does not include returns or discounts, so calculate them separately.

Which costs does margin not cover?

The margin from the calculator is margin per unit, not the final profit of a company. It does not include corporate income tax, fixed costs such as rent and salaries, returns or discounts. So the result is a calculation, not tax or accounting advice. How to get from margin to the real profit of a store is covered in the article on increasing online store profits, and delivery as a per-order cost is described in the article on payment and delivery in a web shop.

When purchasing, prices and margins run through several spreadsheets, manual calculation becomes a source of errors. If you need a store that calculates prices on its own, see our website and online store development service, and you can find other free tools on the oMedia tools page. If you would like someone to look at your price calculation, send us a description. You can verify the same calculation in the profit margin calculator.

Frequently asked questions

What is the difference between margin and markup?

Margin is profit divided by the selling price, and markup is profit divided by cost. For a cost of 100 KM and a selling price of 125 KM, profit is 25 KM, margin is 20% and markup is 25%. Markup is always higher than margin, and margin never exceeds 100%.

How do you calculate the selling price from a target margin?

Divide the cost by (1 − margin). For a cost of 100 KM and a margin of 30%, the net price is 100 / 0.70 = 142.86 KM. Add VAT: with 17% in BiH the gross price is 167.14 KM. If you have a payment fee on the gross price, the tool includes it algebraically.

How do you calculate margin from the purchase and selling price?

Subtract the cost from the net selling price and divide the difference by the net price. Example: net 50 KM, cost 32 KM, profit 18 KM, margin 36%. If you have a gross price with VAT, first divide it by 1.17 (for BiH).

What is the VAT rate in BiH and how do you include it in the price?

The VAT rate in BiH is 17%. Gross price is net price multiplied by 1.17, and net price is gross divided by 1.17. For 58.50 KM including VAT, the net price is 50 KM. Margin is always calculated on the net price, without VAT. Other countries have other rates, so check yours with a local tax adviser.

Which markup corresponds to a 50% margin?

A 50% margin is a 100% markup. The formula is markup = margin / (1 − margin), so 0.50 / 0.50 = 1. For a cost of 100 KM that is a net price of 200 KM. For a 20% margin the markup is 25%, and for a 30% margin it is 42.86%.

How much does a discount reduce margin?

For a product with a cost of 100 KM and a margin of 30%, a 10% discount drops the margin to 22.22%, a 20% discount to 12.5% and a 30% discount to zero. A percentage discount equal to the margin wipes out the entire profit.

Ready for the next step?

Let's start working
on your project.

Web development, advertising, design and AI solutions: one partner for all your digital needs.

Mon–Fri 09:00 – 17:00
Reply within 4h
Sarajevo · BiH

Cookies

We use cookies for analytics and ad measurement only with your consent. Necessary cookies (e.g. for language) are always on. Privacy Policy

NecessaryAlways on: language and site security.
AnalyticsGoogle Analytics: visit statistics.
MarketingGoogle Ads and Meta Pixel: ad measurement.