Margin and markup both describe profit, but they use different denominators. Markup measures profit against cost. Margin measures profit against selling price. Confusing them can make a product look more profitable than it is or cause a price target to miss the intended return. This guide gives you a clear way to calculate, compare, and use both numbers.
The difference in one example
Suppose a product costs $60 and sells for $90. Profit is $30. Markup is profit ÷ cost, or $30 ÷ $60 = 50%. Margin is profit ÷ selling price, or $30 ÷ $90 = 33.33%. Both percentages are correct; they answer different questions. Markup asks how much was added to cost. Margin asks what share of the final selling price remains after cost.
This is why a “50% markup” is not a “50% margin.” To earn a 50% margin on a $60 cost, the selling price must be higher than $90. You need enough price for profit to equal half of the final selling price. Writing the denominator beside the percentage is a simple habit that prevents most mistakes.
How to calculate profit margin
The formula is profit margin = (selling price − cost) ÷ selling price × 100. If the selling price is $125 and the total cost is $80, profit is $45 and margin is $45 ÷ $125, or 36%. Use a consistent definition of cost. Product cost alone gives a gross margin; adding payment fees, shipping, packaging, labor, returns, or overhead produces a different and often more useful operating view.
The profit-margin calculator is a good fit when you know revenue or selling price and cost and want the resulting percentage. If the result is negative, the formula is showing a loss, not an error. Check whether you entered cost per unit against revenue per unit, rather than mixing a batch cost with a single-item price.
How to calculate markup
The formula is markup = (selling price − cost) ÷ cost × 100. With a $50 cost and a $75 selling price, profit is $25 and markup is $25 ÷ $50 = 50%. To calculate a selling price from a known markup, use price = cost × (1 + markup rate). A 40% markup on a $50 cost gives $50 × 1.40 = $70.
Use the markup calculator when your pricing process starts with cost and adds a percentage. This is common in retail, trades, and quoting. Remember that the chosen markup may need to cover more than the item’s purchase cost. If shipping, labor, fees, or overhead are excluded, the resulting margin may be lower than your business target.
Pricing for a target margin
If your target is a margin rather than a markup, use price = cost ÷ (1 − target margin). For an $80 total cost and a 40% target margin, price = $80 ÷ 0.60, or $133.33. The profit is $53.33, which is 40% of the selling price. This formula is different from simply adding 40% to cost; adding 40% creates a 28.57% margin instead.
Before choosing a target, include the costs that the margin is meant to cover. A product can have a strong gross margin and still lose money after advertising, rent, payroll, returns, and taxes. The break-even calculator can show how many sales you need when fixed costs are part of the decision.
Worked example: a price change
Assume a product has $42 of total unit cost and currently sells for $60. Profit is $18, so the margin is 30% and the markup is about 42.86%. If a promotion reduces the selling price to $54, profit falls to $12. The new margin is 22.22%, and the markup is 28.57%. The discount looks small in dollars but removes a much larger share of profit.
To recover the original $18 profit at a $54 sale price, you would need to reduce cost to $36. To keep a 30% margin at that sale price, cost would need to be $37.80 or less. These reverse checks are useful in negotiations because they turn a requested discount into a concrete cost or volume question.
Use margin and markup together
Margin is often useful for reporting and comparing product economics. Markup is often convenient for setting a price from a known cost. Keep both when reviewing a product: markup explains the pricing rule, while margin shows the share of revenue left after cost. Add ROI when you are comparing the return on a wider investment, such as equipment, inventory, or a campaign.
The safest workflow is to calculate the proposed price, check the resulting margin, subtract realistic fees and operating costs, and then test the sales volume needed to break even. A calculator makes the arithmetic quick; your cost definition and business assumptions determine whether the answer is useful. Recheck the math whenever supplier prices, payment fees, or promotional terms change.
