Margin formula
Margin (%) = (selling price − unit cost) ÷ selling price × 100.
At a EUR 100 price and EUR 70 unit cost, gross profit is EUR 30 and margin is 30%.
FREE TOOLS
Calculate gross margin, markup and the impact of a discount on gross profit. A free calculator, Excel template and commercial audit preparation guides.
01 / Margin and markup
Enter your selling price and unit cost. See the gross profit on each sale and the effect of a discount.
An example is shown. Enter your own amounts excluding VAT.
Price per unit before discount, excluding VAT.
Purchase or manufacturing cost, including allocated inbound freight.
0–100 %
Units of the same product over your chosen period.
0–99.99%
Rounded up to the nearest cent to preserve the selected margin.
Margin = (price − unit cost) ÷ price.
Markup = (price − unit cost) ÷ unit cost.
Required volume increase = original gross profit per unit ÷ discounted gross profit per unit − 1.
This shows gross profit, not company net profit. Sales commissions, outbound delivery, fixed costs and taxes are excluded. If higher volume changes unit cost or requires additional capacity, assess those effects separately.
The discounted price is rounded to cents. Required units are rounded up.
Margin and markup definitions ↗XLSX · fill in separately · no registration
Calculations run in your browser. Your numbers are not sent to the server.
Before discount
Markup is undefined when cost is zero. A target price cannot be determined from the selected margin in this case.
To preserve total gross profit, assuming unit cost stays the same.
50 additional units
FORMULAS AND EXAMPLES
Margin and markup compare the same gross profit with different bases. This calculator models sales of one product, not a company’s net profit.
Margin (%) = (selling price − unit cost) ÷ selling price × 100.
At a EUR 100 price and EUR 70 unit cost, gross profit is EUR 30 and margin is 30%.
Markup (%) = (selling price − unit cost) ÷ unit cost × 100.
In the same example, markup is 42.86%. Markup is undefined when unit cost is zero.
Selling price = unit cost ÷ (1 − target margin (%) ÷ 100).
At a EUR 70 unit cost and a 30% target margin, the required price is EUR 100. The price is rounded up to cents.
Use the selling price and unit cost of the same product, excluding VAT. Results show gross profit: sales commissions, outbound delivery, fixed costs and taxes are excluded. Discount impact assumes an unchanged unit cost.
02 / Before an audit
A clear list of useful data. You do not need to collect everything before the first conversation.
The last 12 completed months are a useful starting point. Use the same period, currency and amounts excluding VAT across all reports. The exact period and data breakdowns are agreed individually.
Download the preparation checklistPDF · 2 pages · no registration
This checklist supports preparation. Audit scope and expected deliverables are discussed separately. Priorities reflect profit impact, urgency and implementation effort.
Checkmarks last while this page remains open. Your information is not collected.
Mark any missing data. An unknown unit cost is not a zero unit cost.
03 / Discount guide
A short guide with a clear worked example and questions to answer before lowering a price.
Download the discount guidePDF · 2 pages · no registration
A 10% discount reduces gross profit per unit from EUR 30 to EUR 20. That is 33.3% less gross profit.
| Metric | Before discount | After discount |
|---|---|---|
| Selling price | 100 € | 90 € |
| Unit cost | 70 € | 70 € |
| Gross profit / unit | 30 € | 20 € |
Preserving total gross profit requires 50% more units.
All amounts exclude VAT. Unit cost is held constant. Additional selling and fixed costs are excluded. Higher sales volume is not guaranteed.
Assess sales that would not happen without the discount, including the effect on volume normally sold at full price.
Check freight, commissions, returns and production or warehouse workload.
Tie the discount to a clear quantity, order value, payment arrangement or other agreed condition.
Specify the period, eligible products and the person responsible for approval.
Compare actual volume and gross profit against the original scenario.
QUESTIONS AND ANSWERS
Margin compares gross profit with selling price; markup compares it with unit cost. At a EUR 100 price and EUR 70 unit cost, margin is 30% and markup is 42.86%. These percentages are not interchangeable.
At an initial EUR 100 price and EUR 70 unit cost, gross profit per unit is EUR 30. A 10% discount reduces it to EUR 20. Preserving total gross profit requires 30 ÷ 20 = 1.5 times as many units. This assumes unchanged unit cost and excludes additional selling expenses.
No. It shows the volume required to preserve original total gross profit. Whether that volume can be sold, and whether it changes unit costs or additional expenses, must be assessed separately. If discounted gross profit is zero or negative, higher volume alone cannot compensate.
Calculations run in your browser. Calculator inputs are not sent to the server or stored by the page. The downloadable Excel file is a separate template, not an export of the numbers entered in your browser.
Yes. Enter your data in the yellow cells, save a working copy and share it with Donatas Kemėšius’s authorship and the kemesius.lt reference retained. Formulas and template structure are protected against ordinary editing.
For the first conversation, describe your business, your main question and the available data. Sales, unit cost, customer terms and sales process reports are useful for subsequent work. This page provides a preparation checklist; exact audit scope and deliverables are agreed individually.
LET’S TALK
Let’s discuss your pricing, unit costs or commercial audit needs. The first conversation is free, with no obligation.