Margin Calculator

Calculate gross margin, markup, and profit. You can also solve for the selling price using a target margin or markup.

Margin Calculator tool

Enter your total effective cost (e.g., item cost + fees) if needed.

Result will appear here.

Privacy: calculations run locally in your browser. No inputs are stored or transmitted.

Profit: price − cost
Margin % (gross margin): (price − cost) ÷ price × 100
Markup %: (price − cost) ÷ cost × 100

Price from target margin: price = cost ÷ (1 − marginRate)
Price from target markup: price = cost × (1 + markupRate)

Examples

  • Cost 60, price 80 → profit 20 → margin 25% → markup 33.33%
  • Cost 60, target margin 25% → price 80
  • Cost 60, target markup 25% → price 75

FAQ

  • What is profit margin?

    Profit margin (gross margin) is profit divided by selling price: margin% = (price − cost) ÷ price × 100.

  • What is markup?

    Markup is profit divided by cost: markup% = (price − cost) ÷ cost × 100. Markup and margin are different.

  • How do I get price from cost and margin?

    price = cost ÷ (1 − marginRate). Example: cost 60, margin 25% → price = 60 ÷ 0.75 = 80.

  • How do I get price from cost and markup?

    price = cost × (1 + markupRate). Example: cost 60, markup 25% → price = 60 × 1.25 = 75.

  • Can margin be 100%?

    A 100% margin would require cost to be 0. If cost is positive, margin will be below 100%.

  • Does this include taxes, shipping, or fees?

    No. Enter your full effective cost (including any fees) if you want them reflected in the result.

Related tools