Markup Calculator in Excel (Markup %, Selling Price, Margin Check, Free)

A markup calculator works out a selling price by adding a percentage of the cost on top of the cost: selling price = cost x (1 + markup %). In Excel that is one formula, =B16*(1+C16). The free markup calculator below does it for a whole product list, rounds each price to a .99 ending and then checks the margin that price really gives you. In the sample, 8 products carry an average markup of 104.5% and an average margin of 49.7%, yet 2 of them still fall under a 40% target margin.

Free download

Markup Calculator (.xlsx, also opens in Google Sheets)

Working formulas, sample data and a How to use sheet. Opens in Excel, or import it into Google Sheets.

Download free (.xlsx)

The markup formula in Excel

Markup is the profit you add to a product, written as a percentage of what the product cost you. With the unit cost in B16 and the markup in C16, the selling price is:

=B16*(1+C16)

A ceramic mug that costs 4.20 with an 80% markup sells for 7.56. To go the other way and find the markup from a price you already charge, subtract the cost from the price and divide by the cost:

=(E16-B16)/B16

Format both markup cells as percentages. That is the whole idea. The rest of the calculator deals with the two things that trip people up: rounded shelf prices and the difference between markup and margin.

Markup is not margin

Markup divides the profit by the cost. Margin divides the same profit by the selling price. Because the price is always bigger than the cost, the margin is always smaller than the markup. A 60% markup is only a 37.5% margin, and a 100% markup is a 50% margin. If your target is a 40% margin and you add a 40% markup, you are well short. The full comparison, with discounts, is in the profit margin calculator in Excel. For quick conversions, two formulas are enough:

=A39/(1+A39)

=D39/(1-D39)

The first turns a markup into a margin. The second gives the markup you need for a target margin: a 40% margin needs a 66.7% markup.

What is inside the free markup calculator

The workbook has a How to use sheet and one Markup Calculator sheet. It has no macros and opens in Google Sheets. Two yellow cells at the top hold the business name and the target margin. An All products box and four cards show the number of products, the average markup, the average margin and how many products are below the target. Below that is a product table with room for 20 rows and a markup vs margin converter.

The sample is a made up shop, Brightside Home Goods, with eight products from a 2.90 notebook to a 28.50 wool throw. Markups run from 55% to 150%, and the target margin is 40%.

Markup Calculator (.xlsx, also opens in Google Sheets) in Excel with sample data
Snapshot 1: the Markup Calculator sheet, with the settings, the All products box, the cards and the product table.

Who this calculator is for

  • Shop owners and online sellers who price from a supplier cost.
  • Makers and small brands who want every price to clear a margin target.
  • Students learning why markup and margin give different numbers for the same product.

This is educational content, not pricing or tax advice. The calculator works with the numbers you type in.

How to build the markup calculator step by step

The table starts in row 16. Column A is the product, B the unit cost and C the markup %. Those are typed. Columns D to J are formulas. The target margin is in B6.

Step 1: Selling price from cost and markup

In D16, add the markup to the cost. The IF keeps empty rows blank:

=IF(A16="","",B16*(1+C16))

Use the landed unit cost: what you paid the supplier plus freight, duties and packaging. If you leave those out, every price in the list is too low by the same hidden amount.

Step 2: Round the price to a .99 ending

Nobody sells a mug for 7.56. In E16, CEILING rounds the price up to the next whole number and the formula takes off one cent:

=IF(A16="","",IF(D16<1,ROUND(D16,2),CEILING(D16,1)-0.01))

The mug becomes 7.99 and the candle 13.99. Prices under 1 are only rounded to the cent. If you prefer prices that end in .95 or a whole number, change the last part of the formula. In Google Sheets, CEILING works the same way.

Step 3: Gross profit and margin at the rounded price

Work out the profit and the margin from the price you will actually charge, not the raw formula price. In F16 and G16:

=IF(A16="","",E16-B16)

=IF(A16="","",F16/E16)

The mug makes 3.79 a unit, a margin of 47.4%. The gross profit calculator in Excel takes the same idea to a whole income statement with units sold and returns.

Product table of the free markup calculator with selling price, .99 rounded price, gross profit, margin, actual markup and target price
Snapshot 2: the product table, with the formula price, the .99 rounded price, the margin it gives, the actual markup and the price needed for the target margin.

Step 4: Actual markup after rounding

Rounding up raises the markup. In H16, divide the profit by the cost again:

=IF(A16="","",F16/B16)

The typed markups average 93.8%, but after rounding the shop is really charging 104.5% on average. Small cost items move the most: the 2.90 notebook goes from a 110% markup to 141.0%.

Step 5: Price for the target margin

The most useful column answers the reverse question: what is the lowest price that hits my margin? In I16:

=IF(A16="","",B16/(1-$B$6))

For a 40% margin, the cost divides by 0.6. The wool throw costs 28.50, so it needs at least 47.50. With a 55% markup it sells for 44.99, a margin of only 36.7%.

Step 6: Flag the products below target

Column J compares each margin with the target:

=IF(A16="","",IF(G16<$B$6,"Below target","OK"))

The bamboo cutting board is the tricky one. Its 60% markup rounds to 18.99, and the margin shows as 40.0%, but the real figure is 39.97%, a fraction under the target. The price for target margin column says 19.00, so one more cent fixes it. Conditional formatting colors each flag red or green. The summary box counts the flags with COUNTIF and names the product with the lowest margin:

=INDEX(A16:A35,MATCH(MIN(G16:G35),G16:G35,0))

Here that is the wool throw blanket. A check cell confirms that every product is either OK or flagged.

Markup vs margin converter in the free markup calculator
Snapshot 3: the markup vs margin converter. Type any markup or target margin in yellow.
How to use sheet in the free markup calculator
Snapshot 4: the How to use sheet included in the download.

When markup pricing is not enough

Cost plus markup is quick and easy to explain, but it ignores what customers will pay and what competitors charge. Use it as the floor, then look at the market. To see how price, discounts and volume change the profit of the whole business, read the profit margin formula in Excel guide next.

Common mistakes

  • Using the markup as the margin. A 40% markup is a 28.6% margin. Use the converter or the price for target margin column.
  • Leaving freight and packaging out of the cost. The markup then sits on a cost that is too low.
  • Checking the margin at the formula price. Rounding changes it. Always check the price on the shelf.
  • Trusting a rounded percentage. 39.97% shows as 40.0% with one decimal. Let the flag compare the real value.
  • One markup for every product. Cheap items can carry a higher markup and still look cheap. Expensive items often need a lower one.
Pricing Calculator in Google Sheets

Want more than the free file?

Pricing Calculator in Google Sheets

Price every product from its full cost, with markup and margin side by side, discount scenarios and a ready summary of profit per item.

Get the full version

Frequently asked questions

How do I calculate markup in Excel?

Subtract the cost from the selling price and divide by the cost, for example =(E16-B16)/B16, then format the cell as a percentage.

How do I calculate a selling price from cost and markup?

Multiply the cost by 1 plus the markup: =B16*(1+C16). A cost of 4.20 with an 80% markup gives 7.56.

What markup do I need for a 40% margin?

Divide the margin by 1 minus the margin: 0.4/(1-0.4) = 66.7%. The price is then cost divided by 0.6.

What is the difference between markup and margin?

Both use the same profit. Markup divides it by the cost, margin divides it by the selling price, so the margin is always the smaller number.

Does this markup calculator work in Google Sheets?

Yes. Upload the file to Google Drive and open it with Google Sheets. CEILING, INDEX, MATCH, COUNTIF and the conditional formatting all work there.

Free download

Markup Calculator (.xlsx, also opens in Google Sheets)

Working formulas, sample data and a How to use sheet. Opens in Excel, or import it into Google Sheets.

Download free (.xlsx)
Monthly Budget Planner Template in Excel

Want the finished version?

Monthly Budget Planner Template in Excel

Plan income and spending and compare budget against actual every month.

View the pro template

Written by

Priyendra Kumar (PK)

Excel, Google Sheets and Power BI trainer

PK is the founder of PK: An Excel Expert and NextGenTemplates.com and a corporate trainer in Excel, VBA and Power BI. Since 2020 he and his team have built Excel and Google Sheets tutorials and templates for business users.

About The Margin Sheet · PK: An Excel Expert

Education only. Not financial, tax or investment advice.

The Margin Sheet

Finance in Excel, Google Sheets and Power BI, explained step by step, with a free template in every tutorial.