Margin & Markup Calculator
Calculate gross margin, markup percentage, and profit for your business pricing.
Markup = (Revenue − Cost) / Cost × 100%
| Markup % | Margin % |
|---|---|
| 10% | 9.09% |
| 20% | 16.67% |
| 25% | 20.00% |
| 33% | 24.81% |
| 50% | 33.33% |
| 100% | 50.00% |
Calculate gross margin, markup percentage, and profit for your business pricing.
| Markup % | Margin % |
|---|---|
| 10% | 9.09% |
| 20% | 16.67% |
| 25% | 20.00% |
| 33% | 24.81% |
| 50% | 33.33% |
| 100% | 50.00% |
Margin and markup are both ways of expressing the relationship between cost and selling price, but they use different denominators and produce different numbers for the same situation. Markup is profit divided by cost (how much more you charge than you pay). Margin is profit divided by selling price (what fraction of revenue is profit). A 50% markup is a 33.3% margin; a 50% margin is a 100% markup. Confusing these is one of the most common pricing errors in retail and e-commerce.
This calculator handles both directions. Given any two of cost, selling price, profit, margin percentage, and markup percentage, it computes the others. Whether you start with a target margin and need to determine the selling price, or with cost and markup and need the resulting margin, the calculation is one form fill away.
Calculations happen in your browser using basic arithmetic. Currency formatting is applied to dollar amounts; percentages are shown to two decimal places by default.
Pricing decisions in retail, wholesale, and e-commerce frequently involve switching between margin and markup language. Suppliers may quote in markup; finance may track in margin; pricing software may use either. A calculator that converts between the two prevents the most common pricing math error.
The calculator also helps with target-margin pricing. Given a desired margin and known cost, what selling price achieves the target? This is a one-formula calculation, but doing it consistently across many products benefits from a tool rather than mental math.
Enter any two values, get the others.
Markup percentage = ((selling price - cost) / cost) * 100. Margin percentage = ((selling price - cost) / selling price) * 100. Profit = selling price - cost.
Inverting: selling price from cost and margin = cost / (1 - margin/100). Selling price from cost and markup = cost * (1 + markup/100). Margin from markup = markup / (1 + markup/100). Markup from margin = margin / (1 - margin/100).
Floating-point arithmetic is fine for currency to two decimal places. The calculator rounds final values for display while keeping internal precision higher to avoid compounding rounding.