Pricing calculator in Excel: markup vs margin, made clear

Add 50% to your cost and you do not make a 50% margin. A pricing calculator in Excel shows markup and margin side by side, sets a list price that still works after a discount, and adds whatever sales tax or VAT applies.

In short: price from markup is =cost*(1+markup), price from margin is =cost/(1-margin). Markup divides the profit by the cost, margin divides it by the price. To keep your price after a discount, set the list price to =price/(1-discount), and add tax with =price*(1+tax_rate).

Before you start: percentages in Excel and ROUND.

Try it now

Cost 45, price 67.50. What are the markup and the margin?

Task An item costs 45 and sells for 67.50 before tax. In B4, work out the profit, in B5 the markup (based on cost) and in B6 the margin (based on the selling price). B5 and B6 return decimals; format them as percentages to see percent.

ABC
1 Cost 45
2 Selling price (excl. tax) 67.5
3
4 Profit
5 Markup
6 Margin
7
8

Download the pricing calculator template

The template shows a price from markup and a price from margin side by side, with the resulting markup and margin for both, a list price that leaves your target after a discount, a tax rate you enter yourself, a work-back from a shelf price to the most you can pay per unit, and conversion tables between markup and margin. Amounts are rounded to cents and the formulas are protected.

Preview of the pricing calculator in Excel: price from markup and from margin side by side, discount and tax, a work-back from shelf price and markup to margin tablesEnlarge preview

Download the finished template

The finished Excel file pricing-calculator-template.xlsx, with sample rows and instructions, is free. All you need is a free account: no subscription, no payment details.

Figures, rates and sample data in the templates are as of 13 November 2026, without guarantee. Check that they still apply to you. The templates are mainly meant to show how to build this in Excel.

Create a free account and download the template Already have an account? Log in

Build the calculator step by step

1. Cost per unit

Enter the purchase or production cost in B5 and shipping, packaging and other costs per unit in B6. The total cost per unit is =B5+B6.

2. Markup and margin side by side

RowMarkup (column B)Margin (column C)
Target %50%50%
Selling price=ROUND($B$7*(1+B10),2)=ROUND($B$7/(1-C10),2)
Profit per unit=B11-$B$7=C11-$B$7
Markup=B12/$B$7=C12/$B$7
Margin=B12/B11=C12/C11

With a cost of 45, a 50% markup gives 67.50, which is a 33.3% margin. A 50% margin needs a price of 90, which is a 100% markup. Both columns use the same cost, so the difference is right in front of you. The absolute references to B7 let you copy the formulas from column B to C.

3. Overheads and the full chain

If you price from a full cost that includes overheads, the steps chain together: cost plus overhead, plus markup, then the list price for your discount, then tax.

Task Price a product forward: in B7, add the overhead rate to the cost, in B8 add the markup, in B9 work out the list price that still leaves the net selling price after the discount, and in B10 the price including tax, rounded to cents.

ABC
1 Cost per unit 40
2 Overhead rate 0.25
3 Markup 0.2
4 Discount 0.1
5 VAT or sales tax 0.2
6
7 Full cost
8 Net selling price
9 List price excl. tax
10 List price incl. tax
11
12

4. Discount and tax

A discount comes off the list price, so adding the same percentage on top is not enough: 60 plus 10% is 66, and 10% off 66 leaves 59.40. Dividing by (1 minus discount) gives 66.67, and 10% off that leaves exactly 60. Tax is an input in B18 with no preset rate, because it depends on what you sell and where. Leave it empty if your prices are quoted before tax.

5. Work back from a shelf price

When the market sets the price, run the chain backward: take the tax out by dividing, take the discount off, and keep your target margin. What is left is the most you can pay per unit.

Task Work backward from a market price of 120 incl. tax: in B7 the price excluding tax, in B8 the price after your discount, in B9 the full cost without your markup and in B10 the highest cost per unit you can pay before overhead.

ABC
1 Market price incl. tax 120
2 VAT or sales tax 0.2
3 Discount 0.1
4 Markup 0.2
5 Overhead rate 0.25
6
7 List price excl. tax
8 Net selling price
9 Full cost
10 Highest cost per unit
11
12

This exercise is part of Premium.

Premium unlocks every exercise in every lesson, unlimited practice with fresh tasks and the final test with certificate.

See Premium Already Premium? Log in

The first exercise in this lesson is free.

In the template, enter the shelf price incl. tax in B24 and your target margin in B27; B29 shows the highest cost per unit. To find the margin for a given price instead, use Goal Seek on the margin cell. Finally, sheet protection locks the formulas.

Markup and margin conversion

margin = markup / (1 + markup), and markup = margin / (1 - margin). Some values from the template's conversion table:

MarkupMargin
25%20.0%
50%33.3%
100%50.0%

Common mistakes

Taking tax off the gross price as a percentage

120 minus 20% is 96, not 100. The price before tax is the gross price divided by 1.2.

Adding the discount on top

Adding 10% and then giving 10% off loses money every time. Divide by (1 minus discount) instead.

Calling markup margin

A 50% markup is a 33.3% margin. When someone asks for a 50% margin, the price has to be twice the cost.

Pricing formulas in German Excel

EnglishGerman
ROUND, IF, ORRUNDEN, WENN, ODER
markup, marginKalkulationszuschlag, Handelsspanne
Goal SeekZielwertsuche

German Excel separates arguments with a semicolon: =RUNDEN($B$7/(1-C10);2).

Which Excel versions support this?

The calculator only needs basic arithmetic, ROUND and IF, which work in every version of Excel, including Excel for Mac and Excel for the web.

FAQ

Is the pricing calculator free?

Yes, with a free account. No subscription and no payment details.

Why is there no tax rate filled in?

Sales tax and VAT rates depend on where you sell and what you sell. Enter the rate that applies to you; the template is not tax advice.

Which currency does it use?

None. There is no currency symbol, so dollars, pounds and euros all work.

Should I use markup or margin?

Either works as long as everyone means the same thing. Margin tells you what share of each sale you keep; markup is handy when you start from cost.

To track what you actually sell and spend, use the expense tracker.

All templates at a glance

Amortization schedule, savings tracker, bill tracker, budget and more, each with a guide and a ready-made file.

See all Excel templates

Write to us

Choose language

Select your preferred language