Gross margin
40.00%
Gross profit of $40.00 on a $100.00 sale
Cost
$60.00
Selling price
$100.00
Gross profit
$40.00
Markup
66.67%
How to use the Margin Calculator
Pricing a product means balancing cost, price and profit. Enter any two of cost, selling price, margin or markup and this margin calculator fills in the rest, including gross profit.
- Choose which two numbers you know.
- Enter the cost: what the item costs you to buy or make.
- Enter the selling price, or the margin or markup you are aiming for.
- Read the gross margin, markup, gross profit and the price or cost that goes with them.
Gross margin and markup formulas
Both compare gross profit (price minus cost) with another number. Margin compares it with the selling price; markup compares it with the cost.
Gross profit = price − cost Margin = profit ÷ price Markup = profit ÷ cost
Example 1: from cost and price
An item costs $60.00 and sells for $100.00. Gross profit is $40.00, the margin is 40.0% and the markup is 66.7%. Same profit, two different percentages.
Example 2: pricing for a target margin
An item costs $45.00 and you want a 40% margin. Divide the cost by 1 minus the margin: $45.00 ÷ 0.60 = $75.00. That price gives $30.00 of gross profit, a markup of 66.7%.
Price = cost ÷ (1 − margin)
Example 3: why margin and markup are not the same
If you mark the same $45.00 item up by 40%, the price is $63.00 and the margin is only 28.6%. Confusing the two is a common pricing mistake: a 40% markup never gives a 40% margin. Markup is always the larger number, and a margin can never reach 100%.
Gross margin vs net margin
This calculator works out gross margin, which counts only the direct cost of the item. Net profit margin also subtracts overhead such as rent, wages, marketing, interest and taxes, so it is lower. A healthy gross margin has to cover those costs before the business makes a profit.
Frequently asked questions
What is the difference between margin and markup?
Both use the same gross profit. Margin divides it by the selling price, markup divides it by the cost. A $40 profit on a $60 item sold for $100 is a 40% margin and a 66.7% markup.
How do I convert markup to margin?
Margin = markup ÷ (1 + markup). A 50% markup is a 33.3% margin. To go the other way, markup = margin ÷ (1 − margin).
What is a good profit margin?
It depends heavily on the industry. Grocery stores often run on thin margins and make it up on volume, while software and services can have much higher gross margins. Compare with businesses like yours.
Can margin be more than 100%?
No. Margin is profit as a share of the selling price, and profit can never exceed the price. Markup has no upper limit.
Does this calculator include taxes and overhead?
No. It calculates gross margin from the item's cost and price. Overhead, sales tax and income tax are not included.
Results are estimates for general information only and are not accounting, tax or legal advice. Gross margin leaves out overhead, taxes and other operating costs.
Sources and how we check our figures
Figures last reviewed: . Rates, limits and brackets come from the official sources below. We test every calculator against worked examples and update the figures when new ones are published. How we build our calculators
Found a number that looks wrong? Tell us and we will check it.