833.200.0213 

Sales Margin Calculator: Formula, Markup Conversion, And Target Price

Photo of author

Author

Martial A.

Reviewed by

Michael C.

Laptop displaying a sales margin calculator with charts on a retail counter next to a calculator and POS terminal.

Enter the selling price and the cost to see your sales margin, markup, and profit.

$
$
%
Your results appear here as you type.

Selling price
Cost
Profit
Sales margin
Markup

Sales margin divides profit by the selling price. Markup divides the same profit by cost, so the two percentages differ for one sale.

Schedule a Demo

A sales margin calculator shows how much of each sale you keep after paying for the product. Enter a selling price and a cost, and it returns your margin, markup, and profit in dollars.

Below, you will find the formula with a worked example, the steps to calculate margin by hand, and how to price from a target margin.

We also cover margin versus markup, what to do when a supplier raises costs, benchmarks by retail category, and how a POS system tracks margin for you.

Key Takeaways:

  • Sales margin is the share of the sale price you keep as profit: (Selling Price minus Cost) ÷ Selling Price × 100.
  • A $100 item that costs $60 has a 40% sales margin and a 66.67% markup, and the two numbers are never interchangeable.
  • Divide cost by (1 minus target margin) to find the price that delivers it. A 40% target on a $60 cost requires $100.
  • The formula counts direct product costs only, so overhead such as rent and payroll still comes out afterward.
  • A POS system that stores item cost reports margin by product and category without manual math.

Sales Margin Calculator

The tool that follows turns a sale price and a cost into your sales margin, with the matching markup and dollar profit alongside. Pick a mode to solve for a different value:

  • Find Margin: add the selling price along with the cost.
  • Find Selling Price: provide the cost and your target margin.
  • Find Maximum Cost: supply the selling price and the margin you want.

What is Sales Margin?

Sales margin is the percentage of each sale that stays as gross profit once the goods themselves are paid for. Retailers and accountants also call it gross margin or gross profit margin, and all three names describe the same calculation.

Sales Margin Formula

Sales margin equals revenue minus cost of goods sold (COGS), divided by revenue, multiplied by 100.

Sales Margin = Revenue − COGS Revenue × 100
  • Revenue: income from sales of a product, a category, or a time period (selling price multiplied by units sold).
  • COGS: what you paid to acquire the units you sold.

Sales Margin Example

Sell a product for $100 with a COGS of $60 and the math runs: ($100 − $60) ÷ $100 × 100 = 40%. From each $1.00 in sales, $0.40 stays as gross profit and $0.60 repays the product.

How to Calculate Sales Margin Step by Step

Calculating sales margin takes four steps: gather revenue, add up COGS, enter both figures, and interpret the output.

Step 1: Gather Revenue

Revenue is the pre-tax amount customers paid for the product, category, or period you are measuring. Pull it from POS sales reports, invoices, or accounting software. Sales tax is not revenue, so leave it out.

Step 2: Add Up COGS

COGS covers the direct expense of the inventory you sold. For a retailer, that is the wholesale purchase price, inbound freight, and packaging tied to the product. Direct labor counts only when your own staff produce the item. Rent, utilities, marketing, sales floor payroll, and card processing fees are operating expenses, so they stay out.

Use the cost of goods sold calculator below to total COGS from its components:

Beginning inventoryStock value on day one
PurchasesBought during the period
Ending inventoryStock value on the last day
Cost of goods soldWhat the products you sold cost you

Enter the three inventory values for one period, such as a month or a quarter. Use 0 for any value that does not apply.

$
Use 0 if you had no stock on day one.
$
Total from supplier invoices.
$
Value of your count on the last day.
Add other direct costs
$
Shipping from supplier to store.
$
Only items tied to the products sold.
$
Only if your staff make the products.
$
Credits from suppliers on purchases.
$
Add it to see gross profit and sales margin.
Your results appear here as you type.

Goods available for sale
Ending inventory
Cost of goods sold
Revenue
Gross profit
Sales margin

COGS counts direct costs only. Rent, utilities, marketing, sales floor payroll, and card processing fees are operating expenses and stay out.

Schedule a Demo

Step 3: Enter Both Figures

Type the revenue and COGS into the sales margin calculator above, or build the formula in a spreadsheet. In Excel or Google Sheets, with revenue in cell B2 and COGS in cell C2, enter =(B2-C2)/B2 and format the cell as a percentage.

Step 4: Interpret Your Result

A higher result means more of each sales dollar remains to absorb overhead and profit. A lower one points to prices set too low or costs running too high. Measure the figure against the same product’s margin last month, then with the category benchmarks further down.

Tips For Accuracy

  • Match time periods, such as month over month.
  • Refresh costs whenever a supplier invoice changes a unit price.
  • Calculate on the pre-tax selling price.
  • Confirm that freight and packaging made it into COGS.

How to Calculate Selling Price From a Target Margin

Divide the cost by one minus the margin to get the selling price for any target margin.

Selling Price = Cost 1 − Target Margin

A $60 cost with a 40% target needs a $100 price ($60 ÷ 0.60), and a $45 cost with a 30% target comes to $45 ÷ 0.70 = $64.29.

Skip the division by multiplying your cost by the matching factor:

Price Multiplier by Target Sales Margin
Price multipliers for four target sales margins, one per row. Multiply unit cost by 1.33 to reach a 25% margin, by 1.43 for 30%, by 1.67 for 40%, and by 2.00 for 50%. Each factor replaces dividing the cost by one minus the target margin.
Target sales margin Price multiplier
25% 1.33
30% 1.43
40% 1.67
50% 2.00

The same multipliers apply to all items on the shelf, and a retail price calculator helps when you are pricing a long list of products.

Cost Ceiling From Price And Margin

To find the most you can pay for a product and still reach a target margin, multiply the sale price by one minus the margin.

Maximum Cost = Selling Price × 1 − Target Margin

A product shelved at $80 with a 35% target can cost up to $80 × 0.65 = $52. That ceiling sets a hard limit for supplier negotiations.

Sales Margin vs. Markup

Sales margin compares profit with the selling price, and markup compares it with cost. The same dollar profit produces a larger markup than margin.

Sales Margin Compared With Markup
Sales margin compared with markup across four points, one per row: what each measures, its formula, its best use, and a worked example. Sales margin is the share of the selling price kept as profit, found by subtracting cost from selling price, dividing by selling price, and multiplying by 100, and it suits judging profitability. Markup is the amount added on top of cost, found by dividing the same difference by cost instead, and it suits setting prices. On a $60 cost and a $100 price, the sales margin is 40% while the markup is 66.67%.
Comparison point Sales margin Markup
Measures Share of the selling price kept as profit Amount added on top of cost
Formula ((Selling Price − Cost) ÷ Selling Price) × 100 ((Selling Price − Cost) ÷ Cost) × 100
Best use Judging profitability Setting prices
$60 cost, $100 price 40% 66.67%

Converting Between Margin And Markup

A pair of formulas translates one figure into the other:

  • Margin = Markup ÷ (1 + Markup)
  • Markup = Margin ÷ (1 − Margin)
Markup Converted to Sales Margin
Five markup percentages converted to their equivalent sales margin, one per row. A 20% markup equals a 16.67% margin, 25% equals 20.00%, 30% equals 23.08%, 50% equals 33.33%, and 100% equals 50.00%. The margin always sits below the markup, and the gap widens as the markup rises.
Markup Equivalent margin
20% 16.67%
25% 20.00%
30% 23.08%
50% 33.33%
100% 50.00%

Setting Price With Markup Alone

Suppose an owner wants a 40% margin and adds a 40% markup to a $60 cost. The result is $84, with $24 of profit that amounts to a 28.57% margin. Reaching 40% takes a $100 price, which is a 66.67% markup.

Protecting Margin When Costs Rise

When a supplier raises prices and the shelf tag stays put, sales margin shrinks on the spot. Take a product that costs $60 and sells for $100. If the cost climbs 10% to $66, profit per unit falls from $40 to $34, a 15% drop triggered by a 10% increase.

Repricing offers two routes, and each lands on a different price:

  • Hold the margin rate: divide the new cost by 0.60 to reach $110.
  • Hold the dollar profit: add the original $40 profit to the new cost to reach $106, which yields a 37.74% margin.
Repricing Options After a Cost Increase
Four pricing outcomes after a unit cost rises from $60 to $66, one per row. At the original $60 cost, a $100 price returns $40 of profit and a 40% margin. Leaving the price at $100 after the cost increase cuts profit to $34 and the margin to 34%. Setting the price at $106 restores the $40 profit but lands at a 37.74% margin. Setting it at $110 restores both the 40% margin and raises profit to $44. Columns give the price, profit per unit, and margin for each case.
Scenario Price Profit per unit Margin
Original cost of $60 $100 $40 40%
Cost rises to $66, price unchanged $100 $34 34%
Cost rises to $66, price set at $106 $106 $40 37.74%
Cost rises to $66, price set at $110 $110 $44 40%

Blended Sales Margin Across Products

Blended sales margin is total gross profit divided by total revenue, and averaging the individual margins gives a misleading answer. Two products show the difference:

Blended Sales Margin Across Two Products
Blended sales margin across two products, one per row, with a total row. Product A earns $2,400 of gross profit on $6,000 of revenue against $3,600 of cost, a 40% margin. Product B earns $600 on $4,000 of revenue against $3,400 of cost, a 15% margin. Together they produce $3,000 of gross profit on $10,000 of revenue, a blended margin of 30%. Averaging the two individual margins would give 27.5%, which is the wrong answer because the higher margin product carries more revenue.
Product Revenue COGS Gross profit Margin
Product A $6,000 $3,600 $2,400 40%
Product B $4,000 $3,400 $600 15%
Total $10,000 $7,000 $3,000 30%

A simple average of 40% and 15% lands at 27.5%, which understates the blend because Product A brings in more of the revenue.

What is a Good Sales Margin?

A good sales margin depends on the category: grocery and food retailers average 26.31%, and apparel retailers average 56.88%. Set your own figure beside those of businesses that sell what you sell.

Average Margins by Retail Category
Average gross and net margins across five retail categories, one per row: Grocery and Food at 26.31% gross and 1.32% net, General Retail at 33.18% and 5.61%, Building Supply at 34.22% and 7.84%, Special Lines Retail at 35.30% and 5.19%, and Apparel at 56.88% and 3.85%. Gross margin rises steadily across the list while net margin does not follow it, so Apparel posts the highest gross margin and one of the lowest net margins, and Building Supply posts the highest net margin on a mid-range gross margin.
Retail category Average gross margin Average net margin
Grocery and Food 26.31% 1.32%
General Retail 33.18% 5.61%
Building Supply 34.22% 7.84%
Special Lines Retail 35.30% 5.19%
Apparel 56.88% 3.85%

Source: NYU Stern, Margins by Sector (US), January 2026. The averages come from publicly traded U.S. companies, so independent stores can land above or below them.

The distance between the two columns reflects how much overhead consumes. Apparel ends up with a 3.85% net margin on a 56.88% gross margin, so a high sales margin alone cannot promise a profitable store.

Reading Margin Alongside Turnover

A 60% margin item that sells twice a year can contribute less than a 25% margin item that sells daily. Pair sales margin with inventory turnover, which tracks the pace at which stock sells and gets replaced, before deciding which products deserve shelf space.

Common Sales Margin Mistakes

Five patterns account for most sales margin errors, and each has a straightforward fix.

Leaving Out Direct Costs

Omitting freight, packaging, or other direct costs inflates margin and produces prices that look healthier than they are. Reconcile each COGS component with supplier invoices.

Using Outdated Costs

Margin calculated on last quarter’s costs misstates today’s profit. Revise item costs as invoices arrive, or use software that refreshes them at receiving.

Reading Sales Margin as Net Profit

Sales margin stops at the product level and leaves out operating expenses. The general retailers in the table above keep close to one-sixth of their gross margin as net profit.

Cutting Low Margin Products Too Fast

A low-margin item can justify its shelf space if it draws customers in or sells alongside higher-margin products. Review basket contents and turnover before dropping it.

Ignoring Discount Impact

Markdowns and discounts come straight out of margin. A $100 product with a $60 cost sold at 20% off brings in $80, which leaves a 25% margin and $20 in profit, half of the original $40. To protect a 30% margin on that $60 cost, the price cannot fall below $85.71, a maximum discount of 14.29%.

Using a POS System For Sales Margin

Point of sale software calculates sales margin automatically by matching each sale to the stored cost of the item sold.

What a POS System Records

At checkout, the software records revenue, holds each item’s cost, and adjusts inventory as units sell. Margin then comes from item-level data instead of invoices copied into a spreadsheet. Accuracy hinges on the costs entered, so refresh them when purchase orders arrive.

How KORONA POS Reports Margin

KORONA POS, a processor-agnostic point of sale system, keeps item costs, adjusts them as purchase orders are received, and reports margin and markup by product, category, and location in KORONA Studio. It syncs with QuickBooks Online for accounting, and ABC product analysis points to the products that drive results.

Practical Applications of Sales Margin Insights

Sales margin sits among the core retail KPIs, and its data supports four decisions:

  • Pricing: margin by product reveals which prices leave room for promotions and which need to rise.
  • Product performance: high-margin items deserve more promotion, and weak performers face scrutiny.
  • Cost management: a maximum cost for each product gives supplier talks a concrete target.
  • Financial planning: margin trends feed revenue forecasts, budgets, and launch decisions.

Picture two product lines that each bring in $20,000. At a 50% margin, the first earns $10,000 in gross profit. At 10%, the second earns $2,000. Lifting the second line to 15% adds $1,000 with no additional sales.

Sales Margin Calculator FAQs

How do You Calculate Sales Margin?

Take the selling price, subtract your cost, divide the remaining profit by that same price, then multiply by 100. As an example, a $50 item that costs $32 leaves $18 of profit, which works out to a 36% sales margin.

What is a 30% Margin on $100?

30% of $100 is $30, so the product cost $70 and left $30 in gross profit. The markup on that same sale is higher, at 42.86%, because the $30 is measured against the $70 cost.

Does 20% Margin Mean 20% Profit?

Not exactly. A 20% margin covers gross profit only, so the lease, staff wages, and utilities come out of what remains. On a $50 sale, 20% leaves $10 before those bills, and net profit ends up smaller.

Does 30% Markup Equal 30% Margin?

No. With a 30% markup, a $100 cost sells at $130, which is a 23.08% margin. Markup is figured on cost and margin on price, so the margin number runs lower for any given profit.

Can a 50% Profit Margin be Too High?

It varies by category. Public apparel retailers average a 57% margin and grocers average 26%, so 50% is ordinary in one aisle and ambitious in another. Pricing pressure and sales volume ultimately decide whether it lasts.

What is The Difference Between Sales Margin And Gross Margin?

None in the math. Both terms describe the share of revenue left once product costs are paid. Accountants prefer the label gross margin, and retail owners tend to say sales margin when they set prices.

Maximize Profits With KORONA POS And Sales Margin Calculator

Whether you’re a small business owner or managing a large enterprise, now is the time to leverage the power of a sales margin calculator. Explore online tools, set up a spreadsheet, or, better yet, invest in a POS system like KORONA POS.

KORONA POS, a modern point of sale system, enhances your sales margin calculator by providing accurate inventory data.

It tracks revenue and COGS effortlessly, ensuring precise margin calculations. Click below to schedule a demo with one of our product specialists.

Schedule a KORONA POS Demo!

Speak with a product specialist and learn how KORONA POS can power your business.

Photo of author

Written By

Martial A.

Martial Amoussou has over 5 years of writing and content creation experience in the POS, retail, and payment processing industry. He has interviewed and consulted with hundreds of business owners across liquor stores, vape/smoke shops, convenience stores, museums, attractions operations, dispensaries, and many more, giving him a ground-level understanding of what operators actually struggle with day to day. Reach Martial here.