Business & Income

Markup Formulas in Excel and Google Sheets Step by Step: Price, Cost, Markup and Margin

Spreadsheet formulas for selling price from cost and markup, markup percent from cost and price, price from a target margin, cost from price, and rounding to .99 prices, with a ready-to-copy price list layout and calculator screenshots to check the results.

"Markup Formulas in Excel and Google Sheets Step by Step: Price, Cost, Markup and Margin": notebook, typing, coffee
Photo: Pexels on Pixabay

The core markup formulas in a spreadsheet: price = cost × (1 + markup), markup = (price − cost) ÷ cost, and price from a target margin = cost ÷ (1 − margin). With cost in A2 and markup in B2, =A2*(1+B2) turns a $25 cost and 60% markup into a $40 price. Every formula below works the same in Excel and Google Sheets.

Step 1: Set up the columns

A B C D E
1 Cost Markup % Price Profit Margin %
2 25.00 60% =A2*(1+B2) =C2-A2 =D2/C2

Results in row 2: price $40.00, profit $15.00, margin 37.5%.

Format B and E as percentages (Ctrl+Shift+5 in Excel, Format → Number → Percent in Sheets). Then typing 60 shows as 60% and is stored as 0.60. If you type 60 into an unformatted cell, the formula treats it as 6,000% markup.

Step 2: The formulas for every direction

You know You want Formula (cost in A2, other value in B2) Example
Cost, markup % Price =A2*(1+B2) $25, 60% → $40.00
Cost, price Markup % =(B2-A2)/A2 $25, $40 → 60%
Cost, price Margin % =(B2-A2)/B2 $25, $40 → 37.5%
Cost, target margin % Price =A2/(1-B2) $25, 40% → $41.67
Price, markup % Cost =B2/(1+A2) (price in B2, markup in A2) $40, 60% → $25.00
Markup % Margin % =B2/(1+B2) 60% → 37.5%
Margin % Markup % =B2/(1-B2) 40% → 66.7%

The most common error is using =A2*(1+B2) with a margin in B2. A 40% margin needs =A2/(1-B2), giving $41.67, not $35.00.

Step 3: Check the numbers in the calculator

Cost and markup give the price:

Markup calculator with $25 cost and 60% markup, showing a $40 price, $15 profit and 37.5% margin
$25 × 1.60 = $40. The same sale is a 37.5% margin.

Cost and selling price give the markup:

The calculator with $25 cost and $40 price, showing 60% markup
($40 − $25) ÷ $25 = 60% markup.

Cost and target margin give the price:

The calculator with $25 cost and a 40% target margin, showing a $41.67 price and 66.7% markup
$25 ÷ (1 − 0.40) = $41.67 for a 40% margin, which is a 66.7% markup.

Step 4: Round to retail prices

Goal Formula (raw price in C2) $41.67 becomes
Nearest cent =ROUND(C2,2) $41.67
Up to the next dollar =CEILING(C2,1) $42.00
Ending in .99 =CEILING(C2,1)-0.01 $41.99
Ending in .95 =CEILING(C2,1)-0.05 $41.95
Nearest $5 =MROUND(C2,5) $40.00
Up to the next $5, minus a cent =CEILING(C2,5)-0.01 $44.99

After rounding, recalculate the real margin with =(price-cost)/price so you know what you actually earn.

Step 5: Build a full price list

A B C D E F
1 Item Cost Markup % Price Retail price Margin %
2 Mug 6.50 120% =B2*(1+C2) =CEILING(D2,1)-0.01 =(E2-B2)/E2
3 T-shirt 9.80 100% =B3*(1+C3) =CEILING(D3,1)-0.01 =(E3-B3)/E3
4 Poster 4.25 150% =B4*(1+C4) =CEILING(D4,1)-0.01 =(E4-B4)/E4

Results: mug $14.30 → $14.99 (56.6% margin); T-shirt $19.60 → $19.99 (51.0%); poster $10.63 → $10.99 (61.3%).

One markup for every item: put it in a single cell such as H1 and use =B2*(1+$H$1). The dollar signs keep the reference fixed when you fill the formula down.

Markup by category: keep a small table of categories and markups, and look it up with =B2*(1+XLOOKUP(G2,Categories,Markups)) in Excel 365 or =B2*(1+VLOOKUP(G2,Table,2,FALSE)) in either app.

Common errors

Symptom Cause Fix
Price is 61 times the cost Markup typed as 60 in a non-percent cell Format the column as percent or enter 0.6
Margin column shows 0.375 Not formatted Format as percent
#DIV/0! in margin Price cell empty =IF(C2=0,"",(C2-A2)/C2)
Margin higher than expected Used markup formula with a margin target Use =A2/(1-B2)

For a full markup-to-margin conversion table, see margin vs. markup chart.

UtilityCal Editorial Team

We build free calculators and plain-English guides for US readers, and check every formula against worked examples. How we work.