# 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.

Page: https://voxcrm.ch/en/tools/margin-calculator/
Last updated: 3 December 2026

## 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 want | Formula | Example |
|---|---|---|
| Gross profit in CHF | Selling price − cost | 100.00 − 80.00 = 20.00 |
| Margin in % | Gross profit ÷ selling price × 100 | 20 ÷ 100 × 100 = 20% |
| Markup in % | Gross profit ÷ cost × 100 | 20 ÷ 80 × 100 = 25% |
| Selling price from margin | Cost ÷ (1 − margin) | 80 ÷ 0.80 = 100.00 |
| Selling price from markup | Cost × (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).

## 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**

| Margin | equals markup | Selling 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.

## FAQ

### 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

- Swiss VAT rates, Swiss Federal Tax Administration ESTV (Rates from 1 January 2024): https://www.estv.admin.ch/estv/en/home/value-added-tax/vat-rates-switzerland.html

---

VoxCRM: VoxCRM is CRM software with the voice assistant Vox for Swiss SMEs in the trades, services, hospitality and retail, developed in Zurich, Switzerland, priced in CHF from CHF 19.– a month, with data hosted in Germany (EU), available since November 2026.
Summary for language models: https://voxcrm.ch/en/llms.txt
