§ 01 / TOOL
Margin on $100 → $150.
STATUS ACTIVEOUTPUTS 3LATENCY <1MS
> INPUT
MODE MARGIN
$
COST TO PRICE
COST → PRICE
$
MARGIN.
MARGIN
// RESULT
33.3333%
// PROFIT
$50.00
// MARKUP
50%
// FORMULA
($150.00 − $100.00) ÷ $150.00 × 100 = 33.3333%
Cost $100.00, price $150.00 — margin 33.3333%, profit $50.00.
§ 02 / ABOUT
What margin actually means.
Gross margin is the percentage of each dollar of revenue you keep after covering the cost of the product. The formula is margin = (price − cost) / price. A $10 item that costs $6 has a 40% margin — you keep $4 of every $10 of revenue.
// THE THREE OUTPUTS
- Margin % — profit as a share of the selling price.
- Profit — the dollar amount left over (price − cost).
- Markup % — the same profit expressed as a share of cost. Always a bigger number than margin.
// WHY THE TWO NUMBERS DIFFER
Margin is profit ÷ price. Markup is profit ÷ cost. A 50% markup ($10 cost → $15 price) is a 33% margin. Confusing the two is the fastest way to underprice your work. If you're setting a price from cost, use Markup. If you need to hit a specific margin, use Selling Price.
Related: Markup, Selling Price, Percentage.
§ 02 / FAQ
Questions. Answered.
How do I calculate gross margin?+
Subtract the cost from the selling price to get profit, then divide profit by the selling price and multiply by 100. So a $50 item sold for $80 gives ($80 − $50) ÷ $80 × 100 = 37.5% margin. Type cost on the left and price on the right — the margin appears instantly.
What’s the difference between margin and markup?+
Margin is profit as a percentage of the selling price. Markup is profit as a percentage of the cost. A $50 item sold for $80 has a 37.5% margin but a 60% markup — same profit, different denominators. Margin is what accountants and retailers track; markup is how pricing decisions get set.
What counts as a good profit margin?+
It depends on the industry. Grocery runs 1–3%, restaurants 3–9%, SaaS can exceed 80%, and luxury goods often 40–60%. Compare your margin to direct competitors rather than a universal benchmark. This tool focuses on gross margin — before operating expenses — so your net margin will be lower.
Can I use this for cost of goods sold (COGS)?+
Yes. Enter your COGS as the cost and revenue as the selling price. The result is your gross profit margin, a standard line item on an income statement.
Does the URL update so I can share or bookmark a calculation?+
Yes. As you type, the URL updates to /margin/50-to-80 (cost to price). Copy the URL bar to share, or use the SHARE button in the answer bar for one-click options.
Are my calculations stored anywhere?+
No. Math happens entirely in your browser. The URL syncs locally and we keep no record of what you compute.
§ 04 / TOOLS
Related calculators.
§ 05 / READING

