Margin Calculator
Price with your eyes open: enter a cost and a selling price to see the gross profit, the margin and the markup — plus the price you would need for any target margin.
Gross margin
Disclaimer: For illustration only. Gross margin here is price minus unit cost only — overheads, fees, shipping and tax sit below it and decide your real (net) margin.
Margin and Markup Are Not the Same Number
Few mix-ups cost businesses more money than this one. Margin is profit measured against the selling price: of every dollar a customer pays, how much is gross profit? Markup is profit measured against the cost: how much did you add on top of what it cost you? Same profit, two different denominators, two very different percentages — and a team where one person prices by markup while another reports margin will quietly underprice everything. This calculator shows both, side by side, with the split of the price drawn out so the difference is impossible to miss.
The Formulas
Gross profit = price − cost. Margin = profit ÷ price × 100%. Markup = profit ÷ cost × 100%. To price from a target margin, reverse it: price = cost ÷ (1 − margin) — the table in the result does exactly this for margins from 10% to 50%. Note the asymmetry that trips people up: a 50% markup is only a 33.3% margin, and a 100% markup (doubling your money) is a 50% margin. Margin can never reach 100% at any finite price; markup has no ceiling.
Worked Example
A product costs $60 and sells for $100. Gross profit is $40. Margin = 40 ÷ 100 = 40%. Markup = 40 ÷ 60 = 66.67%. Both describe the same $40 — but if you had wanted a 40% margin and instead applied a 40% markup, you would have priced at $84 and banked a margin of only 28.6%, giving away more than a quarter of the intended profit on every unit. Run the confusion the other way and the table shows what a true 40% margin requires: a price of exactly $100 on a $60 cost, and $120 for a 50% margin.
What a Healthy Margin Looks Like
It depends entirely on the trade. Grocery retail survives on gross margins of a few percent because volume is enormous and stock turns fast; software and services often run at 70% or more because each extra sale costs little. Restaurants, clothing and electronics sit in between, and in every sector the gross margin on this page is only the first line of the story — rent, wages, platform fees, shipping, returns and tax all come out of it before anything is truly earned. Use margin to compare products inside your own range (which items earn their shelf space?), to price new lines from a target rather than a guess, and to sanity-check discounts: a 20% sale on a 25%-margin product leaves almost nothing, however busy it makes you. Our Discount Calculator and ROI Calculator pick the story up from there.
Frequently Asked Questions
What is the difference between margin and markup?
Margin is profit as a share of the selling price; markup is profit as a share of the cost. A $40 profit on a $100 price and $60 cost is a 40% margin and a 66.67% markup — the same money described two ways. Confusing them is a classic underpricing mistake.
How do I price for a target margin?
Divide the cost by (1 - margin): for a 40% margin on a $60 cost, 60 / 0.60 = $100. The table in the result does this for margins from 10% to 50% and shows the markup each one equals.
What is a good gross margin?
It varies enormously by trade: a few percent in grocery retail, often 70%+ in software and services, with most physical-goods businesses in between. Judge your margin against your own sector — and remember overheads, fees and tax still come out of it.
Why can margin never reach 100%?
Because margin divides profit by price, and profit is always less than the price whenever the cost is above zero. Markup has no such ceiling — a 300% markup is possible; a 300% margin is not.