Markup and margin: from cost price to shelf price

Two numbers are often mixed up in a shop. Markup (avance) is what you add on top of the cost price. Margin (dækningsgrad) is the share of the selling price left for rent, wages and profit. Here are the formulas, an example and a calculator where you enter your own numbers.

Last checked:

On this pageWhat this page covers
  1. Three formulas
  2. An example
  3. The card fee eats into the contribution
  4. The figures in the POS

Three formulas

  • Contribution = selling price excl. VAT − cost price.
  • Margin = contribution ÷ selling price excl. VAT.
  • Markup = contribution ÷ cost price.

To hit a given margin, the selling price excl. VAT is the cost price divided by (1 − margin). The shelf price is that price times 1.25, because Danish VAT is 25% of the taxable amount. The price on the sign must include VAT, because the selling price to consumers is the final price including VAT and duties.

An example

A bag costs DKK 200 from the supplier. You want a 50% margin. The selling price excl. VAT is 200 ÷ 0.5 = DKK 400, and the shelf price 400 × 1.25 = DKK 500. The contribution is DKK 200. The markup is 100%, because you add DKK 200 on top of DKK 200.

This is where the mix-up happens. «We add 50%» gives a margin of only 33%. DKK 200 plus 50% is DKK 300, the contribution is DKK 100, and 100 ÷ 300 is one third.

The card fee eats into the contribution

The card fee is charged on the amount the customer pays, so including VAT. If you sell the bag for DKK 500 by card, you pay DKK 8.50 at 1.7% with Shopify Basic, DKK 4.45 at 0.89% with SumUp and DKK 9.75 at 1.95% with PayPal POS. On one bag that is small change. On a year’s turnover the difference between the fees shows up in the accounts. Compare POS systems over three years on the POS page.

Selling price from cost price and margin

Your numbers
kr.
%
%
Selling price excl. VAT
400.00 kr.
Shelf price incl. 25% VAT
500.00 kr.
Contribution after card fee
200.00 kr.
Markup as a percentage of cost
100.00 %

VAT 25% under the Danish VAT Act § 33. Enter the card fee from your own agreement. Nothing is sent or stored.

Last checked:

Get help with prices and figures in the till

The figures in the POS

A POS that knows the cost price of every item can show the contribution per item, per product group and per day. Ask the vendor whether the cost price can be stored per variant and whether it updates when you buy in at a new price. Shopify lists retail reports and stock reporting in POS Pro, and Shopbox lists financial dashboards in every plan.

Round prices such as DKK 499 give a slightly different margin than the calculator. That is normal; use the calculator to see how far you are from the target.

Questions about markup and margin

What is the difference between markup and margin?

Markup is calculated on the cost price, margin on the selling price excl. VAT. 100% markup is 50% margin.

Should the margin be calculated with or without VAT?

Without. VAT is not your money; it goes on to the Tax Agency. The shelf price is the selling price excl. VAT times 1.25.

How do we work back from the shelf price?

Divide the shelf price by 1.25 to get the price excl. VAT, subtract the cost price, and divide by the price excl. VAT. DKK 500 on the shelf and DKK 200 cost gives 50%.

Do discounts count?

Yes. The discount comes off the selling price, but the cost price stays the same. Sell the bag at 20% off and the price excl. VAT falls from DKK 400 to 320, and the contribution from DKK 200 to 120. Remember the previous-price rules too, see price marking.

Sources

Last reviewed: 2026-12-01

Fixed price, no commitment

Get the figures out of your POS

Write which POS you have and which figures you are missing. You get a written proposal at a fixed price.

  • A fixed price before we start
  • An answer by e-mail, no calls
  • Your details are used only to answer you

Fields marked with * are required.

What is it about?