Business and finance

Profit Margin Calculator

Profit margin is the share of the selling price that is profit: (price − cost) ÷ price × 100. An item that costs $60 and sells for $100 has a 40% margin (and a 66.67% markup). The second tab works out the price needed for a margin you choose.

Margin on the selling price and markup on cost.

Margin on price

40%

Profit per unit
40.00
Markup on cost
≈ 66.67%

Formula

Margin % = (Price − Cost) ÷ Price × 100

Step by step

  1. Profit: 100.00 − 60.00 = 40.00
  2. Margin: 40.00 ÷ 100.00 × 100 = 40%
  3. Markup: 40.00 ÷ 60.00 × 100 = 66.67%
Part: 40 (40%) · Whole: 100 0%25%50%75%100% Part: 40 · 40% Whole (100%): 100
Visual representation

Formula

Margin % = (Price − Cost) ÷ Price × 100

Price for a margin = Cost ÷ (1 − Margin ÷ 100)

Gross margin uses only the cost of goods sold; net margin subtracts every expense (staff, rent, taxes…) and is net income ÷ revenue × 100. The formula is the same — what changes is what counts as “cost”.

Do not confuse margin with markup: margin is measured on price and never reaches 100%; markup is measured on cost and can exceed it.

How to use this calculator

  1. Tab 1: enter cost and selling price to get margin, profit and markup.
  2. Tab 2: enter the cost and the margin you want to get the price.
  3. Use prices before sales tax so margins are comparable.

Worked examples

I buy at $60 and sell at $100. What is my margin?

Solution: Margin on price: 40%

  1. Profit: 100.00 − 60.00 = 40.00
  2. Margin: 40.00 ÷ 100.00 × 100 = 40%
  3. Markup: 40.00 ÷ 60.00 × 100 = 66.67%

What should I charge for an item costing $24 to make a 35% margin?

Solution: Selling price: 36.92

  1. Factor: 1 − 35 ÷ 100 = 0.65
  2. Price: 24.00 ÷ 0.65 = 36.92

A company has $480,000 revenue and $427,200 total costs. What is its net margin?

Solution: Margin on price: 11%

  1. Profit: 480,000.00 − 427,200.00 = 52,800.00
  2. Margin: 52,800.00 ÷ 480,000.00 × 100 = 11%
  3. Markup: 52,800.00 ÷ 427,200.00 × 100 = 12.36%

Common mistakes

  • Adding the margin to the cost

    For a 40% margin on a $60 cost the price is not $84 (that is a 40% markup) but $100.

  • Including sales tax

    Tax is not profit. Calculate margin on pre-tax prices.

  • Forgetting discounts and fees

    If you sell at 10% off or pay marketplace fees, deduct them before measuring the real margin.

When to use it

  • Pricing

    Find the minimum price that covers cost at your target margin.

  • Product analysis

    See which products earn the most per dollar sold.

  • Negotiating discounts

    Know how far you can discount before you lose money — the margin is the limit.

Frequently asked questions

How do I calculate profit margin?

Subtract cost from the selling price, divide by the selling price and multiply by 100.

What is the difference between gross and net margin?

Gross subtracts only the cost of goods sold; net subtracts all expenses and taxes. Net is always lower or equal.

Can margin be 100% or more?

Not on the selling price, unless cost is 0 (100% margin). Markup can exceed 100%.

How do I convert margin to markup?

Markup = Margin ÷ (100 − Margin) × 100. A 40% margin is a 66.67% markup.

Methodology

Margin is measured on the selling price and markup on cost. A cost of 0 makes markup undefined; a price of 0 makes margin undefined. Money is shown to the cent.

Calculation Methodology — Percentage Calculator

References