Markup is profit divided by cost, times 100: how much you add on top of what something costs you. The formula is markup % = (price - cost) / cost x 100, and the selling price is cost x (1 + markup). A $60 item with a 50% markup sells for $90, which is a 33.33% margin on the price.
Enter what one unit costs you and the markup you want to add. The defaults are illustrative.
Already have a price? Enter the cost and the selling price to see the markup and margin you are getting.
Finance teams usually set a gross margin target. Enter the cost and the margin you need, and get the price and the markup that deliver it.
Convert one percentage into the other without a cost or price. Pick what you have, then enter it.
Get The Forecast Brief
You just worked out your markup, price and margin. The Forecast Brief is a short email from Pete Furseth, ORM's COO, built on what ORM sees in its customers' forecasts.
Markup formulas, with Excel and Google Sheets versions
Every result in the calculator comes from one of these formulas. The examples use the calculator's defaults: a $60 cost, and either a 50% markup, a $100 price or a 40% target margin. All are illustrative.
| To find | Formula | Excel or Sheets | Example |
|---|---|---|---|
| Markup % | (Price - cost) / cost | =(B2-B1)/B1 | ($100 - $60) / $60 = 66.67% |
| Selling price from markup | Cost x (1 + markup) | =B1*(1+B3) | $60 x 1.5 = $90.00 |
| Profit per unit | Price - cost | =B2-B1 | $100 - $60 = $40.00 |
| Margin % | (Price - cost) / price | =(B2-B1)/B2 | $40 / $100 = 40.00% |
| Price for a target margin | Cost / (1 - margin) | =B1/(1-B4) | $60 / 0.6 = $100.00 |
| Markup from margin | Margin / (1 - margin) | =B4/(1-B4) | 0.40 / 0.60 = 66.67% |
| Margin from markup | Markup / (1 + markup) | =B3/(1+B3) | 0.50 / 1.50 = 33.33% |
| Cost from price and markup | Price / (1 + markup) | =B2/(1+B3) | $90 / 1.5 = $60.00 |
B1 is cost, B2 selling price, B3 markup and B4 margin, with B3 and B4 formatted as percentages. If cost or price can be blank or zero, wrap the division in IFERROR, for example =IFERROR((B2-B1)/B1,""), so the sheet shows a blank instead of a #DIV/0! error.
How to calculate markup, step by step
- Decide what counts as cost. For a product, that is usually what you paid for it plus freight in. For a service hour, it is the fully loaded cost of the person delivering it. Markup on a narrow cost and markup on a full cost are different numbers.
- Find the profit per unit. Selling price minus cost. $100 - $60 = $40.
- Divide by cost. $40 / $60 = 0.6667.
- Multiply by 100. The markup is 66.67%.
- Check the margin too. Divide the same $40 by the $100 price: a 40% margin. Finance reports margin, so if a price is set with a markup, show the margin next to it.
To go the other way, from a markup to a price, multiply the cost by one plus the markup: a 25% markup on $80 is $80 x 1.25 = $100.
Markup to margin conversion table
The same profit gives a larger markup than margin, because markup divides by the smaller number. Each row below is exact to two decimals, from margin = markup / (1 + markup) and markup = margin / (1 - margin).
| Markup on cost | Margin on price | Margin on price | Markup needed | |
|---|---|---|---|---|
| 10% | 9.09% | 10% | 11.11% | |
| 20% | 16.67% | 20% | 25.00% | |
| 25% | 20.00% | 25% | 33.33% | |
| 30% | 23.08% | 30% | 42.86% | |
| 40% | 28.57% | 40% | 66.67% | |
| 50% | 33.33% | 50% | 100.00% | |
| 60% | 37.50% | 60% | 150.00% | |
| 75% | 42.86% | 70% | 233.33% | |
| 100% | 50.00% | 75% | 300.00% | |
| 150% | 60.00% | 80% | 400.00% | |
| 200% | 66.67% | 90% | 900.00% | |
| 300% | 75.00% | 95% | 1,900.00% |
The right-hand columns show why high margins need very large markups. Each extra point of margin near the top costs more markup than the last, and a 100% margin would need an infinite markup. That is why the calculator asks for a target margin below 100%.
Worked examples
Each example was checked by hand against the calculator. The first five are illustrative.
- A product with a 50% markup. Cost $60, markup 50%. Price = $60 x 1.5 = $90.00. Profit = $30.00. Margin = $30 / $90 = 33.33%.
- The markup on an existing price. Cost $60, price $100. Markup = $40 / $60 = 66.67%. Margin = $40 / $100 = 40.00%. The price is 1.67 times cost.
- A services rate set from a margin target. A SaaS company's implementation team costs $95 an hour fully loaded, and finance wants a 40% services margin. Rate = $95 / (1 - 0.40) = $158.33 an hour. That is a 66.67% markup, and the margin check is $63.33 / $158.33 = 40.00%.
- A reseller on a software license. A partner buys a license at $8,000 and lists it at $10,000. Markup = $2,000 / $8,000 = 25.00%. The partner's margin, the number partner programs usually quote as a discount off list, is $2,000 / $10,000 = 20.00%.
- A price below cost. Cost $50, price $45. Profit = -$5.00. Markup = -$5 / $50 = -10.00%. Margin = -$5 / $45 = -11.11%.
- A discount on a marked-up price. The $90 item from the first example sold at 20% off goes for $72.00. Profit falls from $30.00 to $12.00, so a 20% discount removes 60% of the profit. Markup drops to 20.00% and margin to 16.67%.
- A real retailer. Walmart's fiscal 2026 10-K reports net sales of $706,413 million and cost of sales of $535,395 million (Walmart, Form 10-K, fiscal year ended January 31, 2026). Gross profit is $171,018 million, which is the figure Walmart reports in its MD&A. On our arithmetic, that is a 24.21% gross profit rate on net sales and an average markup of 31.94% on cost.
Typical markups by industry, worked back from gross margins
Few public sources publish markups, because companies report margins. Aswath Damodaran at NYU Stern publishes gross margins for US public companies by industry. The January 2026 update covers 5,994 firms (Damodaran, Margins by Sector (US), January 2026). The markup column is our conversion, markup = gross margin / (1 - gross margin). It is the average markup on everything in cost of goods sold, not the markup on any one item.
| Industry (number of firms) | Gross margin | Implied markup on cost |
|---|---|---|
| Retail, automotive (34) | 21.96% | 28.1% |
| Computer services (64) | 24.26% | 32.0% |
| Retail, grocery and food (15) | 26.31% | 35.7% |
| Retail, distributors (62) | 30.57% | 44.0% |
| Restaurant and dining (64) | 32.24% | 47.6% |
| Retail, general (23) | 33.18% | 49.7% |
| Business and consumer services (155) | 33.38% | 50.1% |
| Retail, special lines (94) | 35.30% | 54.6% |
| Apparel (35) | 56.88% | 131.9% |
| Software, internet (29) | 62.58% | 167.2% |
| Software, system and application (309) | 71.72% | 253.6% |
| Total market (5,994) | 37.76% | 60.7% |
Two cautions. These are aggregates of public companies, weighted toward the largest ones, so a small store or agency can sit well above or below its row. And companies put different costs in cost of goods sold: one restaurant group may count kitchen labor and occupancy there while another counts only food and packaging, so the same menu price can show very different markups.
Markup in a SaaS company
Software companies rarely price from cost. A subscription's cost of revenue is mostly hosting, support and the amortization of capitalized software, and it is small next to the price. At an 80% gross margin, every $1 of delivery cost supports $5 of revenue, a 400% markup. ORM's notes on what to include in SaaS COGS and what a good SaaS gross margin is cover the cost side.
Markup still shows up in three places:
- Services rates. Implementation, training and consulting are usually priced as a rate over loaded cost, as in the $158.33 example above. A services line that only covers its cost dilutes the company's gross margin.
- Resold and usage-based costs. Third-party data, messaging or compute passed through to customers is often priced at a markup on what the vendor charges. Check that the markup survives the discount the sales team gives.
- Partner and reseller programs. A partner discount off list price is a margin for the partner. A 20% discount off list is a 25% markup on the partner's buy price.
For the subscription itself, a markup on cost sets a floor, not a price. Value-based pricing sets the price from what the customer gains, and a price floor keeps discounting above the cost line. To see what is left after variable costs on each sale, use contribution margin, and to measure cost of revenue as a share of sales, use the cost of sales calculator.
Discounts and markup
A discount comes out of the profit, not out of the cost, so it cuts markup faster than it cuts price. In the first worked example, a 20% discount on the $90 price took 60% of the profit. The deeper the discount relative to the markup, the larger the share of profit it removes, and a discount equal to the margin (33.33% here) takes all of it. ORM's guide to average discount rates in B2B SaaS covers how sales teams set those limits.
How the calculator handles edge cases
- Cost of zero or less. Markup divides by cost, so it has no value when cost is zero. The calculator asks for a cost above zero instead of showing an infinite markup.
- Price below cost. Markup and margin both turn negative, and the readback says how much each unit loses.
- Markup of -100% or lower. A -100% markup means a price of zero, and anything lower means a negative price, so the calculator asks for a markup above -100%.
- Target margin of 100% or more. The price would have no limit, so the calculator asks for a margin below 100%. Negative target margins are allowed and give a price below cost.
- Blank or invalid inputs. A blank markup or margin counts as zero, so the price equals the cost. A blank cost or price, or one the browser cannot read as a number, also counts as zero and shows the message to enter a value above zero.
- Very large numbers. Costs and prices are limited to below $1 trillion, and percentages to below 1,000,000%, so results stay precise.
- Rounding. Results are shown to the cent and to two decimal places of a percent. The math uses the unrounded numbers, so a margin worked back from a rounded price can differ in the last decimal.
Common markup mistakes
- Using the markup as the margin. Pricing at a 40% markup to hit a 40% margin leaves you at 28.57%. To reach a 40% margin, use a 66.67% markup or divide the cost by 0.6.
- Leaving costs out. Freight, payment fees, returns and support all belong in the cost if the price has to cover them.
- Discounting after the markup without rechecking. A list price set at a healthy markup can fall below the margin target once the usual discount is applied.
- Comparing markups across companies. One company's cost of goods sold can include costs another books below gross profit. Compare margins on the same definition instead.
- Pricing software on cost alone. A markup on hosting says nothing about what the product is worth to the buyer.
This calculator is for pricing and planning. It is not accounting, tax or legal advice.
ORM's take on markup and the revenue plan
For a B2B SaaS finance team, markup is a pricing check, and the bigger question is volume: how many deals close, at what price after discount, and when. A margin plan built on list price and a hopeful bookings number misses twice. ORM builds bookings and ARR forecasts from your own CRM data, including how deal size and discount move through the quarter, so the margin in the plan rests on revenue you can expect. ORM targets 95% accuracy on the forecasts it builds.
Common questions
How do you calculate markup?
Subtract the cost from the selling price, divide by the cost, then multiply by 100. An item that costs $60 and sells for $100 has $40 of profit, so its markup is 40 / 60 x 100 = 66.67%. In Excel or Google Sheets, put cost in B1 and price in B2 and use =(B2-B1)/B1, formatted as a percentage.
How do you add a markup to a cost?
Multiply the cost by one plus the markup. A 50% markup on a $60 cost gives $60 x 1.5 = $90. A 25% markup on $100 gives $125, and a 100% markup doubles the cost. In a spreadsheet, with cost in B1 and the markup as a percentage in B2, use =B1*(1+B2).
What is the difference between markup and margin?
Both use the same profit dollars. Markup divides that profit by cost, and margin divides it by the selling price. A $60 item sold for $90 makes $30: a 50% markup and a 33.33% margin. Markup can be any size, while margin on a positive price stays below 100%, so the markup is always the larger number on a profitable sale.
What markup gives a 50% margin?
A 100% markup. Doubling the cost makes the profit equal to the cost, so profit is half the price. The general formula is markup = margin / (1 - margin): a 40% margin needs a 66.67% markup, a 25% margin needs 33.33%, and an 80% margin, at the high end for software (Damodaran's January 2026 figure for system and application software is 71.72%), needs a 400% markup on delivery cost.
What is a good markup percentage?
It depends on the industry and on what sits in cost. Converting Damodaran's January 2026 US gross margins into markup on cost gives about 36% for grocery retail, 48% for restaurants, 132% for apparel and 254% for system and application software. Use your own gross margin target first, then work back to the markup with the third tab of the calculator.
Can markup be negative?
Yes. When the selling price is below cost, profit is negative and so is the markup. A $50 item sold for $45 has a markup of -10% and a margin of -11.11%. Markup cannot go below -100%, which would mean a price of zero. A negative markup is sometimes a choice, such as a loss leader, but it should be a decision, not a surprise.
See the deal sizes behind your pricing
Markup sets the price on paper. Discounts and deal mix decide what you collect. ORM forecasts both from your CRM.
Schedule a Demo