Enter the selling price and the cost to see your sales margin, markup, and profit.
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 DemoA 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.
- 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:
Enter the three inventory values for one period, such as a month or a quarter. Use 0 for any value that does not apply.
Add other direct costs
COGS counts direct costs only. Rent, utilities, marketing, sales floor payroll, and card processing fees are operating expenses and stay out.
Schedule a DemoStep 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.
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:
| 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.
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.
| 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 | 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.
| 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:
| 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.
| 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.
Speak with a product specialist and learn how KORONA POS can power your business.








