What Is Profit Margin?
Margin answers one question: of every dollar a customer hands over, how much is still yours once the goods have been paid for. It shares its denominator with revenue, which is why income statements, lender packets and industry benchmarks are all written in margin rather than in anything else.
Margin and Markup Are Not the Same Number
Both describe the same profit dollars. Margin divides them by price; markup divides them by cost. Price is the larger of the two, so margin is always the smaller percentage, and the gap between them widens as the two figures pull apart. A $60 cost sold at $100 returns "40.0% margin" with "Markup on cost: 66.7%" underneath it. A $12.50 cost sold at $29.99 turns the same $17.49 of profit into 58.3% margin and 139.9% markup.
How easily the two words swap places shows up even in official writing. IRS Publication 334 works an example in which a retailer has $300,000 of net receipts and $200,000 of cost of goods sold, instructs you to "divide gross profit by net receipts," and reports the resulting 33⅓% as confirmation of "your markup percentage." The arithmetic it prescribes is margin. Enter those same two figures here and the panel returns "33.3% margin" with "Markup on cost: 50.0%" beside it.
How many units that margin has to move before the fixed costs behind it are covered is a separate question, and it belongs to the Breakeven Calculator.
Gross, Operating and Net Margin
Gross margin is what this page computes: price minus the direct cost of the unit, divided by price. Operating margin then subtracts the cost of running the business — rent, salaries, advertising, software. Net margin subtracts everything that is left, interest and tax included, and is the figure that finally answers whether the company made money.
The three always fall in that order, and the distance between them is the overhead. A shop holding a 40% gross margin whose overhead consumes 32 cents of every sales dollar is left with an 8% net margin: one business, described twice, with a five-fold difference in the number quoted. When someone states a margin without an adjective, the useful reply is to ask which of the three they mean.
Comparisons only work like for like — gross against gross, net against net. The Census figures further down this page are gross margins, which makes them the right benchmark for whatever this calculator hands you and the wrong benchmark for a bottom-line percentage.
How Do You Calculate Profit Margin?
One subtraction and one division, in that order. What makes it worth checking is never the difficulty — it is which of the two numbers goes underneath.
The Margin Formula, Written Out
The definition the calculator implements, with the markup line beside it because the panel returns both:
margin = (price − cost) ÷ price × 100
markup = (price − cost) ÷ cost × 100
price − cost = profit — the same dollars in both lines
Reversed, to price for a margin you have chosen:
price = cost ÷ (1 − margin ÷ 100)
The reversal is where the arithmetic stops being obvious. To reach a 40% margin you divide by 0.60, because the price you are solving for sits inside its own denominator. Adding 40% to cost solves a different equation — it applies a 40% markup — and the two land in different places.
Both directions are gross. "Cost" means the cost of that one unit, and nothing else in the business appears anywhere in the formula.
Step by Step
By hand, on a $60 item that sells for $100:
- Start from the price the customer pays: $100.
- Subtract the cost of that unit: $100 − $60 = $40 of profit.
- Divide the profit by the PRICE: $40 ÷ $100 = 0.40.
- Multiply by 100 for the percentage: a 40% margin, which the panel prints as "40.0% margin".
- For markup, divide the same $40 by the COST instead: $40 ÷ $60 = 0.6666…, printed as "Markup on cost: 66.7%".
- Check the direction before trusting either: markup must be the larger of the two. If your margin figure is bigger, the denominators have been swapped.
Every quantity here is exact except the printed percentages, which are rounded to one decimal at the moment they appear. The divisions themselves carry full precision, so 66.7% is a display of 66.666…, not a value that was rounded before being used.
Worked Example: $60 Cost, $100 Price
The answer in one line, with the mode switch left on "Cost + price → margin":
- Inputs: cost per unit $60 · price $100
- 40.0% margin — $40 profit per unit, 66.7% markup on cost
Three more runs show how quickly the markup figure climbs away from its margin twin. A $12.50 wholesale item sold at $29.99 returns "58.3% margin" against "Markup on cost: 139.9%". A $4.20 cost at $9.00 gives 53.3% and 114.3%. An $0.85 cost at $3.50 — coffee-counter economics — gives 75.7% margin against 311.8% markup, which is the same $2.65 described two ways.
It runs at the other end of the scale just as well, and the contrast there is worth sitting with. An $850 item sold at $1,200 is 29.2% margin, 41.2% markup, $350 a unit. A $27,000 vehicle sold at $31,500 is 14.3% margin, 16.7% markup and $4,500 a unit: less than half the margin percentage, more than twelve times the profit in dollars. Margin and money have to be read together, never one instead of the other.
How Do You Price for a Target Margin?
Move the first control to "Cost + target margin → price" and the arithmetic runs backwards. You supply the margin you intend to earn, and the calculator returns the price that produces it.
Divide by (1 − margin), Never Add
A $60 cost at a 40% target returns "$100 price", with "$60 cost ÷ (1 − 40%) — profit $40 per unit" on the line beneath. The instinct to type $60 × 1.40 produces $84 instead, and $84 on a $60 cost is a 28.6% margin — the other mode will confirm it, along with the $24 of profit that comes with it rather than $40.
The reason is structural. A margin is measured against a price that has not been fixed yet, so the unknown appears on both sides until you divide it out. Adding a percentage to cost measures against the cost instead, which is the definition of markup. A 40% markup and a 40% margin are two different targets, and the shortcut quietly substitutes the smaller one.
The size of the error grows with ambition. At a 10% target the shortcut lands on 9.1% and almost nobody notices. At a 75% target it lands on 42.9%, barely more than half of what was intended.
Table: What the Add-It Shortcut Costs
Cost held at $60 throughout. The second column is the price after adding the target percentage to cost; the fourth is the price the calculator returns for that same target.
| Target margin | Add-it price | Margin it delivers | Correct price | Profit: correct vs add-it |
|---|---|---|---|---|
| 10% | $66.00 | 9.1% | $66.67 | $6.67 vs $6.00 |
| 20% | $72.00 | 16.7% | $75 | $15.00 vs $12.00 |
| 25% | $75.00 | 20.0% | $80 | $20.00 vs $15.00 |
| 30% | $78.00 | 23.1% | $85.71 | $25.71 vs $18.00 |
| 40% | $84.00 | 28.6% | $100 | $40.00 vs $24.00 |
| 50% | $90.00 | 33.3% | $120 | $60.00 vs $30.00 |
| 60% | $96.00 | 37.5% | $150 | $90.00 vs $36.00 |
| 75% | $105.00 | 42.9% | $240 | $180.00 vs $45.00 |
The third column has an exact description: the margin an add-it price delivers is the margin that a markup of that size produces. Adding 40% to cost is applying a 40% markup, and a 40% markup is a 28.6% margin. Because the cost is fixed, whatever the price gives up the profit gives up too — the $16 of price between $84 and $100 is the same $16 of profit between $24 and $40.
Holding a Margin When Cost Moves
A supplier increase does not cost you the cents it added. Hold the price at $100 and move the cost from $60 to $63, and the result falls from "40.0% margin" to "37.0% margin"; at $66 it reads 34.0%, at $70 it reads 30.0%, and at $75 it reads 25.0%. On a $100 price every extra dollar of cost is a whole margin point, because the denominator never moves.
Holding the margin instead means repricing by more than the increase. Running the target mode at 40% returns "$105 price" for a $63 cost, "$110 price" at $66, "$116.67 price" at $70 and "$125 price" at $75. A $3 rise in cost calls for a $5 rise in price, because the added dollars of price have to carry the same 40% margin as the rest of them.
That ratio is worth memorizing in whatever margin you actually work at: the price move is the cost move divided by (1 − margin). At a 40% margin it is 1.67 times the increase, at a 50% margin it is double, and at a 25% margin it is 1.33 times.
Margin Chart: Margin, Markup and Price
Every row is the calculator's target-margin mode run at that margin: the markup that matches it, the price it produces on a $60 cost, and the price per $100 of cost so any other cost can be scaled from it.
| Margin | Markup on cost | Price on $60 cost | Price per $100 of cost |
|---|---|---|---|
| 5% | 5.3% | $63.16 | $105.26 |
| 10% | 11.1% | $66.67 | $111.11 |
| 15% | 17.6% | $70.59 | $117.65 |
| 20% | 25.0% | $75 | $125 |
| 25% | 33.3% | $80 | $133.33 |
| 30% | 42.9% | $85.71 | $142.86 |
| 35% | 53.8% | $92.31 | $153.85 |
| 40% | 66.7% | $100 | $166.67 |
| 45% | 81.8% | $109.09 | $181.82 |
| 50% | 100.0% | $120 | $200 |
| 55% | 122.2% | $133.33 | $222.22 |
| 60% | 150.0% | $150 | $250 |
| 65% | 185.7% | $171.43 | $285.71 |
| 70% | 233.3% | $200 | $333.33 |
| 75% | 300.0% | $240 | $400 |
| 80% | 400.0% | $300 | $500 |
| 90% | 900.0% | $600 | $1,000 |
The price columns are the tool's own output, printed to at most two decimals with no padding, which is why some of them show whole dollars. Scale the right-hand column for any cost you like: $37 at a 45% margin is 0.37 × $181.82 = $67.27, and entering $37 with a 45% target returns "$67.27 price" directly.
Why the Markup Column Runs Away
Margin has a ceiling and markup has none. Margin is profit over price, and profit cannot be larger than the price it came out of, so the left column can approach 100% without ever arriving. Markup divides by cost, and nothing stops a price being ten times a cost: the target field takes anything above 0 and below 100, and a 99% target on a $60 cost returns "$6,000 price" with "That's a 99% margin = 9900.0% markup on cost". Nudge the target to 99.5% and the same $60 cost returns "$12,000 price" at 19900.0% markup.
That is why the two columns separate so violently down the page. Below a 20% margin the pair sit within a few points of each other — 5% margin against 5.3% markup. At 50% the markup is exactly double the margin. Past that it multiplies: a 75% margin is a 300% markup, an 80% margin is 400%, and a 90% margin is 900%.
Keystone Pricing Is One Row of This Table
Keystone is the retail habit of doubling the wholesale cost. Doubling is a 100% markup, and the 50% row shows what that looks like from the revenue side: "$120 price" on a $60 cost, reported as "That's a 50% margin = 100.0% markup on cost". Half the ticket is cost and half is gross profit.
It is a starting position rather than a rule, and the Census figures in the next section show how rarely it survives contact with a real category. Grocery stores and warehouse clubs price well under keystone and make it back on how often the shelf empties; furniture and clothing sit at or above it, with far slower turns behind the higher percentage.
What Is a Good Profit Margin?
For US retail there is a measured answer rather than an opinion. The Census Bureau's Annual Retail Trade Survey publishes gross margin as a percentage of sales by kind of business; the 2022 estimates are below, each with the markup and the price per $100 of cost that this calculator returns for it.
| Kind of business | Gross margin, 2022 | Markup on cost | Price per $100 of cost |
|---|---|---|---|
| Retail total | 31.6% | 46.2% | $146.2 |
| Automobile dealers | 21.8% | 27.9% | $127.88 |
| Warehouse clubs and supercenters | 23.0% | 29.9% | $129.87 |
| General merchandise stores | 26.8% | 36.6% | $136.61 |
| Grocery stores | 28.0% | 38.9% | $138.89 |
| Pharmacies and drug stores | 28.1% | 39.1% | $139.08 |
| Electronics and appliance stores | 29.5% | 41.8% | $141.84 |
| Health and personal care stores | 33.1% | 49.5% | $149.48 |
| Department stores | 34.7% | 53.1% | $153.14 |
| Building material and garden supply dealers | 35.4% | 54.8% | $154.8 |
| Electronic shopping and mail-order houses | 39.7% | 65.8% | $165.84 |
| Sporting goods, hobby, musical instrument and book stores | 45.4% | 83.2% | $183.15 |
| Automotive parts, accessories and tire stores | 48.0% | 92.3% | $192.31 |
| Clothing and clothing accessories stores | 49.8% | 99.2% | $199.2 |
| Furniture and home furnishings stores | 51.0% | 104.1% | $204.08 |
Retail as a whole sat at 31.6% in 2022, against 29.7% in 2017. The spread inside that average is the real finding: an automobile dealer keeps about 22 cents of a sales dollar and a furniture store about 51, a better than two-to-one range within one industry, before either has paid a single overhead bill. Census suppressed the 2022 gasoline-station estimate on quality grounds; the 2021 figure was 18.6%.
Comparing Yourself Against the Right Row
Those are gross margins, which makes them directly comparable to this calculator's output and not at all comparable to a bottom-line percentage. A grocery chain at 28.0% is not keeping 28 cents of the dollar; it is keeping 28 cents before staff, stores, refrigeration, spoilage and distribution, and what survives to the bottom line is a small fraction of it.
Two businesses can also carry identical margins and behave nothing alike, because a margin says nothing about how often it turns. A 28.0% margin on stock that clears every week earns its cost back many times a year. The same 28.0% on stock that sits for a season earns it back once, and pays rent on the shelf in the meantime.
Money tied up in inventory only works while it is moving, which is a question about return rather than about pricing — that one belongs to the ROI Calculator.
The Same Margin at Different Volumes
A margin is a rate, and rates pay no bills by themselves. At a 40% margin on a $60 cost each unit contributes exactly $40 of gross profit: fifty units is $2,000, two hundred and fifty units is $10,000, and a thousand units is $40,000 of gross profit on $100,000 of revenue and $60,000 of cost.
That is the case for the thin end of the Census table. A warehouse club at 23.0% makes $29.87 on every $100 of goods it buys, while a furniture store at 51.0% makes $104.08 on the same $100 — about three and a half times as much per unit. Whether that advantage is real depends entirely on how many times a year each of them repeats it.
So "good" is two questions, not one. Is the margin normal for the category, and does the volume behind it produce enough dollars to cover everything the margin does not contain.
Using This Margin Calculator Online
Three controls, free to use, and nothing to install. Both number fields open blank, so the panel starts empty and waits: enter your values and press Calculate. It does not recalculate while you type, and Reset returns the panel to its empty state.
The Three Fields
- Solve For — a two-way switch. "Cost + price → margin" is selected when the page loads. "Cost + target margin → price" runs the same relationship backwards.
- Cost per Unit — what one unit costs you. Both modes need it and it has to be above zero.
- Price or Target Margin (%) — the field that changes meaning with the switch. In the first mode it is the selling price; in the second it is the margin percentage you are aiming at, entered as a plain number above 0 and below 100.
There is no field for quantity, currency, tax or fees, because none of them appear in the formula. Decimals are accepted everywhere: a $12.50 cost at a 55% target returns "$27.78 price", and a 33.3% target on a $60 cost returns "$89.96 price".
What It Rejects, and Why
Three kinds of entry return the amber notice instead of a number, and each one marks a point where the ratio stops describing anything:
- A cost of zero, a negative cost or an empty cost box returns "Enter the cost". Markup divides by cost, and a cost of zero has no answer to give.
- In margin mode, a price at or below the cost returns "Enter a selling price above the cost". Break-even and below-cost prices are outside what it will report.
- In pricing mode, a target of zero or below, or of 100 or above, returns "Enter a target margin between 1 and 99%". That notice names 1 to 99, but the field is looser than its own wording: anything above 0 and below 100 is accepted, so a 0.5% target on a $60 cost returns "$60.3 price". A 100% margin would require the goods to be free, and dividing by (1 − 1) has no answer either.
None of the three is validation for its own sake. Each marks the boundary where one division stops being a description of a real sale.
How to Read Your Result
Four lines come back in either mode. The first is the answer; the other three exist so that you can check it without leaving the page.
Line by Line
In margin mode, a $60 cost with a $100 price returns:
- "40.0% margin" — the headline figure. Profit as a share of the price, rounded to one decimal.
- "$100 price − $60 cost = $40 profit per unit" — the subtraction spelled out, so you can confirm the two numbers went into the boxes you meant.
- "Markup on cost: 66.7% — same dollars, different denominator" — that same $40 measured against cost instead of price.
- A closing line stating that margin divides by price and markup by cost, which is the distinction this whole page exists to hold in place.
Pricing mode returns the mirror image of that. A $60 cost at a 40% target leads with "$100 price", then "$60 cost ÷ (1 − 40%) — profit $40 per unit", then "That's a 40% margin = 66.7% markup on cost", and closes on the warning about adding instead of dividing.
The "Copy result" link beneath the panel puts all four lines on the clipboard at once, which is the quickest route from here into a supplier email or a spreadsheet cell.
From a Percentage to Money
The panel reports one unit, and one unit rarely settles an argument. Multiply the profit line by the units you expect to move — $40 a unit is $2,000 over fifty and $10,000 over two hundred and fifty — and take fixed costs out of that total rather than out of the percentage. Percentages do not pay rent; the dollars underneath them do.
Read the two percentages for different jobs. Margin is the one to quote and to compare, because income statements, lenders and the Census table are all written in it. Markup is the one to work with at the shelf, because cost is the number you know first: a $60 cost times 1.667 is $100.02, two cents above the $100 the calculator returns, which is near enough for a shelf label and not near enough for the books.
Limits: When This Calculator Does Not Apply
One division, two inputs, no context. Four things sit outside it, and three of them are how a healthy-looking margin still ends a year underwater.
It Is Gross Margin, Not Profit
The only cost the formula knows about is the cost of the unit. Rent, wages, insurance, software, advertising, packaging, storage and the hours spent sourcing the stock are all still in front of the number on screen, and added together they are usually larger than anything you typed into the cost box.
Which costs belong in that box is a decision rather than a rule, and it changes the answer. Landed cost — the unit plus freight, duty and inbound shipping — is the honest figure for a physical product. Entering the invoice price alone overstates the margin by exactly whatever the freight was.
Fees and Discounts Come Out of the Margin First
A marketplace fee is arithmetically a discount: both reduce what you actually receive for the sale, and both land on the margin before anything else gets a turn. On a $60 cost listed at $100:
| Taken off the $100 price | You receive | Margin | Markup on cost | Profit per unit |
|---|---|---|---|---|
| Nothing | $100 | 40.0% | 66.7% | $40 |
| 3% payment processing | $97 | 38.1% | 61.7% | $37 |
| 10% marketplace fee | $90 | 33.3% | 50.0% | $30 |
| 15% marketplace fee | $85 | 29.4% | 41.7% | $25 |
| 20% promotional discount | $80 | 25.0% | 33.3% | $20 |
| 30% clearance discount | $70 | 14.3% | 16.7% | $10 |
To see what a markdown leaves behind before you commit to running it, take the same figures to the Discount Calculator.
One row further down the table would break it. Take 40% off a 40%-margin item and the price lands exactly on the $60 cost, and the calculator refuses it with "Enter a selling price above the cost" because there is no margin left to report. The discount that erases a margin is always the margin percentage itself, which is why a half-price sale only survives above a 50% margin.
It Will Not Show You a Loss
Margin mode insists on a price above the cost, so a sale below cost returns the amber notice rather than a negative percentage. Loss leaders, clearance under cost and distress sales have to be worked by hand, using the same formula: price minus cost over price, which simply comes out negative.
Neither mode knows about returns, shrinkage, spoilage or warranty claims either. A 40% margin on a product with a meaningful return rate is not a 40% margin across the batch, because a returned unit hands the price back while all or part of its cost stays spent.
Rounding, Currency and the Very Thin Margin
Percentages print to one decimal and money prints to at most two, with no zero padding: a $12.50 cost appears in the breakdown as "$12.5 cost", and a price of $146.20 appears as "$146.2". The divisions behind them are not rounded, so those are display conventions rather than the precision of the calculation.
At the very thin end the rounding hides something real. A $100 cost sold at $100.01 returns "0.0% margin" with "Markup on cost: 0.0%", while the line between them correctly reports "$0.01 profit per unit". Anything below 0.05% reads as zero, so a barely-profitable price and a break-even one look alike in the headline.
Where a sticker price includes tax, strip the tax out before either figure means anything, because the tax was never yours to keep — that separation is the job of the VAT Calculator.
The dollar signs are labels rather than logic. Enter euros, pounds or rupees in both boxes and every percentage is identical, since a ratio carries no currency — only the "$" printed beside the figures is making an assumption.