One Calculator Logo One Calculator
Personal Finance • Formulas shown

Margin Calculator

Quick Answer

Gross margin = (price − cost) ÷ price × 100. Markup = (price − cost) ÷ cost × 100. An item that costs $60 and sells for $100 has a 40% margin but a 66.67% markup. Margin is always lower than markup for the same sale.

Result

Gross margin: 40%

Markup66.67%
Profit$40.00
Cost$60.00
Selling price$100.00
Step-by-step calculation
  1. Profit = selling price − cost
  2. Margin = profit ÷ selling price × 100
  3. Markup = profit ÷ cost × 100
  4. $40.00 ÷ $100.00 = 40% margin; $40.00 ÷ $60.00 = 66.67% markup

About the Margin Calculator

Margin and markup both describe profit, but they use different bases, which is a frequent cause of pricing mistakes. Margin is profit as a share of the selling price. Markup is profit as a share of the cost. A 50% markup is only a 33.3% margin.

Choose what you already know and the calculator fills in the rest. It works forwards (cost and price to margin) and backwards (cost and target margin to price), which is how most pricing decisions are made.

How to Use the Margin Calculator

  1. Select what you know: cost and price, cost and margin, cost and markup, or price and margin.
  2. Enter the two values.
  3. Read the margin, markup, profit, cost and selling price.

Formula and Method

Gross margin

margin % = (price − cost) ÷ price × 100

Profit as a percentage of revenue.

Markup

markup % = (price − cost) ÷ cost × 100

Profit as a percentage of cost.

Price from margin

price = cost ÷ (1 − margin)

Use this to hit a target margin.

Worked Example

Pricing for a 40% margin

Input: Cost $60, target margin 40%

  • price = 60 ÷ (1 − 0.40) = 60 ÷ 0.60 = $100
  • profit = 100 − 60 = $40
  • markup = 40 ÷ 60 = 66.67%

Result: Sell at $100 for a 40% margin, which equals a 66.67% markup.

Frequently Asked Questions

What is the difference between margin and markup?

Margin divides profit by the selling price; markup divides profit by the cost. For the same profit, markup is always the larger percentage.

How do I price an item for a 30% margin?

Divide the cost by 0.70. A $70 item priced at $100 gives a 30% margin. Multiplying the cost by 1.30 would give only a 23.1% margin.

Is gross margin the same as net margin?

No. Gross margin considers only the direct cost of goods. Net margin also subtracts overheads, interest and taxes.

Can margin exceed 100%?

Margin cannot exceed 100% because profit cannot exceed revenue. Markup can exceed 100% when the price is more than double the cost.

Related Calculators

All Financial Calculators →

Sources and Further Reading

Accuracy and Scope

These calculators provide estimates for planning only and are not financial, tax or investment advice. Actual loan terms, taxes and fees vary by lender and jurisdiction. See our full disclaimer.