Skip to content
corprice

Price calculation: from cost price to selling price with VAT

How to calculate a selling price from cost price and target margin, add VAT, round to a price point and check the price against competitors.

A price calculation takes you from what a product costs you to the price the customer sees in your webshop. In Danish it is called prisberegning. It rests on three figures: the cost price, the other variable costs and the margin you want. This guide covers the formula, how to add VAT, how to round to a price point without losing margin, and how to check the result against competitors’ prices.

The formula for calculating a price from a target margin

When you know the cost price and the target margin, the selling price excluding VAT is:

Price excl. VAT = cost price ÷ (1 − margin)

The formula makes sure the margin is calculated on the selling price and not on the cost price. If you add 35 % to the cost price instead, you get a 35 % markup and a margin of only 25.9 %. The difference is explained in the guide to markup.

Then you add VAT:

Price incl. VAT = price excl. VAT × 1.25

A worked example step by step

Example. The numbers below are made up to show the method.

A stovetop espresso pot costs you DKK 260 excluding VAT, and you want a margin of 35 %.

  1. Price excluding VAT: 260 ÷ 0.65 = DKK 400.
  2. Price including VAT: 400 × 1.25 = DKK 500.
  3. Check: 400 − 260 = DKK 140 in contribution margin, and 140 ÷ 400 = 35 %.

Use the calculator on this page to run the same price calculation with your own figures.

Include shipping and fees in the calculation

The cost price only covers the product. If you pay the shipping to the customer yourself, or the payment fee is a noticeable part of the order, add them to the cost price before you divide. Otherwise you calculate a margin that disappears once the order has been shipped.

Suppose the espresso pot carries DKK 35 in shipping and DKK 8 in fees and packaging per order. The variable costs are then 260 + 35 + 8 = DKK 303.

  1. Price excluding VAT: 303 ÷ 0.65 = DKK 466.15.
  2. Price including VAT: 466.15 × 1.25 = DKK 582.69.

The price rises from DKK 500 to just under DKK 583 when the same 35 % has to hold after shipping and fees. The guide to contribution margin lists which costs belong in the calculation.

A quick factor from cost price to price including VAT

If you calculate many prices with the same margin, you can combine the division and the VAT into one factor: 1.25 ÷ (1 − margin). The cost price excluding VAT multiplied by the factor gives the price including VAT.

Target margin Factor on cost price excl. VAT
20 % 1.563
25 % 1.667
30 % 1.786
35 % 1.923
40 % 2.083
50 % 2.500

Check with the example: 260 × 1.923 = DKK 500.

Round to a price point without losing margin

Few webshops sell at DKK 582.69. The price has to be rounded to a price point that fits the rest of the range, for example DKK 549, 579, 589 or 599. If the margin is a minimum requirement, round up to the next price point and not down.

Price point incl. VAT Price excl. VAT Contribution Margin
DKK 579 DKK 463.20 DKK 160.20 34.6 %
DKK 589 DKK 471.20 DKK 168.20 35.7 %
DKK 599 DKK 479.20 DKK 176.20 36.8 %

DKK 579 falls just short of the target, while DKK 589 is the lowest of the price points that keeps 35 %. Whether you choose DKK 589 or 599 depends on how your other prices end and on what the market charges.

Check the price against competitors’ prices

A price calculated from the cost price tells you what you need to charge. It does not tell you what customers are willing to pay or what they can buy the product for elsewhere. Before the price goes live, compare it with the shops that sell exactly the same product.

Suppose three competitors sell the espresso pot for DKK 549, 569 and 599 including shipping. At DKK 589 you are 7.3 % above the cheapest and 3.5 % above the middle one. You have three options:

  1. Keep DKK 589 if you offer something customers pay for, such as faster delivery or the product in stock.
  2. Move to DKK 569 and accept a margin of 33.4 %, because 569 ÷ 1.25 = DKK 455.20, and 455.20 − 303 = DKK 152.20 in contribution margin.
  3. Negotiate the cost price or the shipping rate if the market sits firmly below what you can accept.

Compare against competitors’ prices including shipping if you ship for free yourself, because the customer sees the total price. The guide to competitor price analysis shows how to set up the comparison.

Set a floor under the calculated price

The calculated price is your regular price. You also need a minimum price, which is the lowest price you will go down to when competitors put pressure on you. With 25 % as the lowest acceptable margin, the minimum for the espresso pot is 303 ÷ 0.75 = DKK 404 excluding VAT, or DKK 505 including VAT. The guide on setting a minimum price from your cost price covers that part in depth.

Corprice checks competitors’ prices daily from PriceRunner, Prisjagt and webshops and suggests minimum and maximum prices from your cost prices, so pricing rules stay within the limits you have approved. Read more on the repricing page.

Price calculator

Change the numbers and the result updates. Nothing is sent anywhere.

Sales price excl. VAT
–
Sales price incl. VAT
–
Contribution margin per unit
–
Markup % on cost price
–

See every competitor price next to yours.

Start free with 5 products, or try any plan for 14 days. No card needed.