Cellwise Try it free

Free Excel template · Excel for retail and ecommerce

Free margin and markup calculator template

For shop owners and buyers who price products and run promotions. Enter each product's unit cost and price. The template shows margin and markup side by side, the price you need for your target margin, what a discount does to your margin, and flags products below target. A small converter turns any markup into a margin and back.

cellwise-margin-markup-calculator.xlsxExcel workbook · 5.8 KB · works in Excel, Google Sheets, Numbers and LibreOffice · no signup
Download free template

Preview and try it

This is the template's sheet, calculated by the same engine as the Cellwise app. Change any number to see the formulas react before you download.

ABCDEFGHIJKL
1SKUProductUnit costPriceMarginMarkupProfit per unitPrice for target marginPromo priceMargin at promoCheck
2TS-01Organic crew tee7.4280.735714285712.783783783820.618.522.40.66964285714OK
3HD-02Zip hoodie18.9640.70468752.386243386245.147.2551.20.630859375OK
4CP-03Canvas cap4.1220.813636363644.365853658517.910.2517.60.76704545455OK
5TB-04Tote bag3.25180.819444444444.538461538514.758.1314.40.77430555556OK
6BN-05Beanie3.8240.841666666675.315789473720.29.519.20.80208333333OK
7MG-06Enamel mug4.6190.757894736843.130434782614.411.515.20.69736842105OK
8SK-07Crew socks (3 pack)5.2210.752380952383.038461538515.81316.80.69047619048OK
9PR-08Art print A32.15300.9283333333312.95348837227.855.38240.91041666667OK
10JK-09Rain jacket341190.714285714292.5858595.20.64285714286OK
11WB-10Wool blanket38790.518987341771.0789473684419563.20.39873417722Below target
12BT-11Steel water bottle9.5220.568181818181.315789473712.523.7517.60.46022727273Below target
13
14
15
16

How the formulas work

Margin: profit as a share of price

E2=IF(D2="","",(D2-C2)/D2)

Price minus cost, divided by price. This is the number to compare with your target and with industry figures. The IF keeps empty rows blank.

Markup: profit as a share of cost

F2=IF(OR(C2="",D2=""),"",(D2-C2)/C2)

The same profit divided by cost instead. The tee has a 74% margin but a 278% markup. Both are correct; they answer different questions.

Price for your target margin

H2=IF(C2="","",ROUND(C2/(1-$N$1),2))

Cost divided by (1 minus the target margin in N1). At 60%, a $7.40 tee needs $18.50. Multiplying cost by 1.6 would give $11.84, which is only a 37.5% margin.

Margin left after a promotion

J2=IF(D2="","",(I2-C2)/I2)

I2 takes the discount in N2 off the price; J2 works out the margin at that promo price. A 20% discount on the rain jacket drops its margin from 71% to 64%, and on low-margin products it can wipe out most of the profit.

Convert markup to margin

N6=N5/(1+N5)

A markup of 150% is the same as a margin of 60%. The reverse, in N10, is margin / (1 - margin). Use it when a supplier quotes markup and your reports use margin.

Make it yours

FAQ

What is the difference between margin and markup?

Both use profit (price minus cost). Margin divides it by the price, markup divides it by the cost. A product that costs $10 and sells for $25 has a 60% margin and a 150% markup.

How do I calculate selling price from cost and margin in Excel?

Divide the cost by (1 minus the margin): =cost/(1-margin). For a $12 cost and a 55% margin, =12/(1-0.55) gives $26.67.

Why is my margin lower than the markup I used?

Because markup is measured against cost and margin against the bigger selling price. A 50% markup gives only a 33.3% margin. Use =markup/(1+markup) to convert.

Functions used

Related guides

More free templates

Updated