Get started

Free tool · no login

Margin calculator: margin and markup

Margin is gross profit divided by the selling price: if an item costs CHF 80.00 to buy and you sell it for CHF 100.00, the margin is 20%. Markup relates the same profit to the cost and is higher at 25%. The calculator solves both in either direction, including the selling price from a target margin.

Updated on 27 November 2026

What you pay net for goods or materials, including freight and customs duty.

What else do you know?
Net selling price

CHF 106.67

CostGross profit

Cost price
CHF 80.00
Gross profit (margin in CHF)
CHF 26.67
Margin on selling price
25%
Markup on cost price
33.34%
Net selling price
CHF 106.67
incl. VAT (MWST) 8.1%
CHF 115.31

Selling price = Cost ÷ (1 − Margin)

Free handbook as a PDF

The VoxCRM Handbook for SMEs

Everything VoxCRM can do at a glance, plus exactly the areas you are interested in, in depth. Compiled for you and sent by email straight away.

  • Product, workflow, security and prices
  • Your modules with real screenshots from the app
  • With an industry part for trades, services, hospitality and retail
Free, no account needed
Cover of the VoxCRM Handbook for SMEs as a book
Margin calculator with a cost of CHF 80.00, a selected margin of 25%, a selling price of CHF 106.67 and a bar showing cost and gross profit

How it works

  1. Enter the cost price

    In the large field, enter what the goods or materials cost you net, meaning after the supplier’s discount and cash discount (Skonto) and including freight or customs duty. A point or a comma as the decimal separator and the apostrophe for thousands both work.

  2. Choose the second figure

    Choose what you already know: the selling price, the target margin in per cent or the markup in per cent. For common values such as 20, 25 or 30%, a tap on the matching chip is enough.

  3. Read the result

    On the right you see the selling price, the gross profit in francs, margin and markup in per cent, and the price including VAT. The bar shows which part of the selling price covers the purchase and which part you keep. If you sell below cost, the calculator reports a loss.

  4. Round and use the result

    If you wish, the calculator rounds the selling price to 5 centimes (Rappen) and recalculates the percentages from the rounded price. With “Copy result” you can paste all the values into a quote (Offerte), a price list or a spreadsheet.

What is a margin?

The margin, in retail also called the trade margin (Handelsspanne), is the difference between the selling price and the cost price. Expressed in francs, this amount is called gross profit. As a percentage, it is always related to the selling price: a margin of 20% means that of every franc taken in, 20 centimes are not used up by the purchase.

Gross profit is not yet profit in the sense of “what is left at the end”. From it, a business pays rent, wages, vehicles, insurance and administration, in other words the fixed costs and other overheads. Only what remains after that is net profit. Anyone who sets the margin too tight sells a lot and still earns nothing. A related figure is the contribution margin, which deducts all other variable costs as well as the purchase.

Formulas: calculating margin and markup

All calculations start from the same gross profit. The only difference is the base: margin divides by the selling price, markup by the cost price. The table shows the five formulas using an item with a cost of CHF 80.00 and a selling price of CHF 100.00.

Formulas with a cost of CHF 80.00 and a selling price of CHF 100.00
You wantFormulaExample
Gross profit in CHFSelling price − cost100.00 − 80.00 = 20.00
Margin in %Gross profit ÷ selling price × 10020 ÷ 100 × 100 = 20%
Markup in %Gross profit ÷ cost × 10020 ÷ 80 × 100 = 25%
Selling price from marginCost ÷ (1 − margin)80 ÷ 0.80 = 100.00
Selling price from markupCost × (1 + markup)80 × 1.25 = 100.00

Work with net amounts, meaning prices before VAT. For a business registered for VAT, the tax is a transitory item: it reclaims the input tax on purchases and pays over the VAT on sales. A business that is not registered for VAT cannot deduct input tax; for it, the VAT paid is part of the cost price. Split gross amounts beforehand with the Swiss VAT calculator. At the end, the margin calculator also shows the selling price including 8.1% VAT (MWST).[1]

Converting margin to markup and back

Because the base is different, the markup is always higher than the margin, and the gap grows as the figures rise. The conversion works without amounts: markup = margin ÷ (100 − margin) × 100, margin = markup ÷ (100 + markup) × 100. The table shows the usual values.

Margin and markup compared
Marginequals markupSelling price at a cost of CHF 100.00
10%11.11%CHF 111.11
15%17.65%CHF 117.65
20%25%CHF 125.00
25%33.33%CHF 133.33
30%42.86%CHF 142.86
40%66.67%CHF 166.67
50%100%CHF 200.00

A margin never reaches 100%, because then the purchase would be free. A markup, by contrast, can be as high as you like: anyone who buys an item for CHF 10.00 and sells it for CHF 30.00 applies a markup of 200% and achieves a margin of 66.67%.

The costly mistake: a 30% markup is not a 30% margin

A business knows from its annual accounts that it needs a 30% margin on goods sold to cover overheads and profit. With a cost price of CHF 500.00, it calculates 500 × 1.30 and charges CHF 650.00. That is a markup of 30%, but the margin is only 150 ÷ 650 = 23.08%.

  1. Wrong: markup instead of margin

    CHF 500.00 × 1.30 = CHF 650.00. Gross profit CHF 150.00, margin 23.08%.

  2. Correct: divide by (1 − margin)

    CHF 500.00 ÷ 0.70 = CHF 714.29. Gross profit CHF 214.29, margin exactly 30%.

  3. The difference per sale

    The wrong calculation leaves CHF 64.29 missing per item. With 200 such sales a year, that is CHF 12'858.00 that was planned in the costing but never invoiced.

In the calculator, choose “Margin in %” for this case. If you choose “Markup in %” instead, the result shows straight away which margin you actually achieve.

From the supplier’s list price to the cost price

The margin is only right if the cost price (Einstandspreis) is right. The cost price is not the list price in the catalogue but what an item really costs by the time it reaches your own warehouse or the building site. An example for a component ordered by Muster Haustechnik GmbH:

  1. Supplier’s list price

    CHF 100.00 according to the price list.

  2. Less 15% reseller discount

    CHF 100.00 − 15.00 = CHF 85.00.

  3. Less 2% cash discount for payment within 10 days

    CHF 85.00 − 1.70 = CHF 83.30, the net purchase price.

  4. Plus procurement costs

    Freight and packaging of CHF 4.20 give a cost price of CHF 87.50.

  5. Selling price with a 30% margin

    CHF 87.50 ÷ 0.70 = CHF 125.00 net. The gross profit is CHF 37.50.

Work out the supplier’s discounts and cash discount (Skonto) beforehand with the discount calculator. If you deduct the cash discount in the cost price, you must also pay the invoice on time; otherwise the margin is 2% smaller than planned.

Keeping an eye on margin in quotes and projects

A calculator answers the question for one item. In everyday work, however, a quote contains twenty line items with different purchase prices and discounts. In VoxCRM you enter the purchase price for products; in the quote editor the sidebar then shows the margin of the whole quote, internally only and never on the customer’s document. In the bulk editing of products you see the prices and margins of all items as a table.

Whether the margin was actually achieved in the end is only shown by the post-calculation (Nachkalkulation). In projects, VoxCRM compares the budget with the actuals in hours and francs. VoxCRM is not a financial accounting system with a profit and loss statement; the annual figures for your costing come from your accounting or from your fiduciary (Treuhand). The break-even point shows the turnover at which the margin covers all fixed costs; you can work it out with the break-even calculator.

More than a calculator

What you calculate here once, VoxCRM handles continuously in your daily work:

FAQ

Frequently asked questions

Can’t find your question? Write to us at hello@voxcrm.ch.

What is a margin?

The margin is the part of the selling price that remains after deducting the cost price. In francs it is called gross profit; as a percentage it is related to the selling price. If you sell for CHF 100.00 and bought for CHF 80.00, the margin is CHF 20.00 or 20%. From it you pay overheads and profit.

How do I calculate the margin in per cent?

Subtract the cost price from the selling price, divide the result by the selling price and multiply by 100. With a selling price of CHF 120.00 and a cost of CHF 80.00, that is 40 ÷ 120 × 100 = 33.33%. Use the net amount for both prices, otherwise the margin will be wrong.

What is the difference between margin and markup?

Both start from the same gross profit, but on a different base. Margin relates it to the selling price, markup to the cost price. That is why a 20% margin equals a 25% markup, and a 50% margin equals a 100% markup. Anyone who confuses the two sells too cheaply.

How much margin does my business need?

There is no generally correct figure. The margin has to cover overheads and the planned profit, and these differ in every business. Divide overheads plus your profit target by the expected annual turnover from goods, and you have the minimum margin you need. The calculator gives you the matching selling price.

Can a margin be over 100%?

No. The margin is a share of the selling price and therefore always stays below 100% as long as the purchase costs something. Only the markup can exceed 100%: with a cost of CHF 10.00 and a selling price of CHF 30.00, it is 200%, while the margin is 66.67%.

Sources and date

Sources

  1. Swiss VAT rates (opens in a new window), Swiss Federal Tax Administration ESTV. Version: Rates from 1 January 2024, retrieved on 17 November 2026.

Last updated:

Try it free for 14 days.

Every feature, 60 minutes of Vox, no credit card. Then you choose a plan. Without a plan the account is paused, and you can export your data until it is deleted on day 60.

Go to the plan finder: which plan fits and what it costsBook a demoDemo