Free tools by ToolSynergyLab:InstantLinkHubFeexioSwiftConvertHub

Profit Margin Calculator

Enter your cost and selling price to instantly calculate gross profit and margin percentage. Know your numbers before you price anything.

What Is Profit Margin?

Profit margin is the percentage of revenue that remains as profit after subtracting costs. It is calculated as: Margin % = (Selling Price − Cost) ÷ Selling Price × 100. A product that costs $60 and sells for $100 has a gross profit of $40 and a margin of 40%.

Gross profit margin only accounts for the direct cost of goods (COGS). Net profit margin subtracts all operating expenses, taxes, and interest — giving a more complete picture of profitability. Use this calculator for gross margin; for net margin, you'll need to factor in overheads separately.

Margin vs Markup: What's the Difference?

Margin is profit as a percentage of selling price. Markup is profit as a percentage of cost. For the same $60 cost / $100 selling price example: margin = 40%, markup = 66.7%. Confusing them is one of the most common pricing errors — a 40% markup does NOT produce a 40% margin. Read the full markup vs margin guide →

What Is a Good Profit Margin?

There is no universal answer — it depends heavily on industry. Retail typically runs 20–50% gross margin. SaaS and software can reach 70–80%. Service businesses often target 50–70%. Physical goods with high manufacturing costs may see 10–30%. The right margin is one that covers all your operating costs and leaves sufficient net profit after taxes and overheads.

Worked Example: Pricing a Product

You buy a product for $27 and sell it for $45. Enter both values and the calculator shows a profit of $18.00 and a margin of 40.0% ($18 ÷ $45).

The same numbers expressed as markup give a very different percentage: $18 ÷ $27 = 66.7% markup. Both are correct; they just use a different base. Margin is calculated on the selling price, markup on the cost. Confusing the two is one of the most common pricing errors – see markup vs margin.

Finding the Price for a Target Margin

To reach a specific margin, divide the cost by one minus the margin: price = cost ÷ (1 − margin). For a 50% margin on a $27 cost: $27 ÷ 0.50 = $54. For a 35% margin: $27 ÷ 0.65 = $41.54. Enter the result in the calculator to confirm.

Use your full cost, not just the supplier price. Payment processing, packaging, shipping and platform fees all come out of the same $45. If a marketplace takes 15% and payment processing about 3%, your $18 profit drops to roughly $9.90 – a 22% margin. For imported products, start from the landed cost per unit.

Common mistakes

  • Applying a 40% markup when you meant a 40% margin.
  • Calculating margin before fees, shipping and returns.
  • Comparing your margin with businesses in a different industry.

Frequently Asked Questions

What is the formula for profit margin?

Profit Margin % = (Selling Price - Cost) ÷ Selling Price × 100. For example: selling price $150, cost $90 → Profit $60 → Margin = 60 ÷ 150 × 100 = 40%.

What is the difference between profit margin and markup?

Margin is profit as a percentage of selling price. Markup is profit as a percentage of cost. A 40% markup does NOT equal a 40% margin. A $60 cost with 40% markup = $84 selling price = 28.6% margin.

What is a good profit margin for a small business?

It varies by industry. Retail: 20-50%. Services: 50-70%. SaaS/software: 70-85%. Restaurants: 3-9% net margin. The key is that your margin must cover operating costs, taxes, and still leave a viable net profit.

How do payment fees affect profit margin?

Payment fees (PayPal 3.49% + $0.49, Stripe 2.9% + $0.30) directly reduce your realized selling price. On a $100 sale with a 40% margin, a 3% payment fee reduces net margin to roughly 37.1%. Always factor payment processing costs into your cost structure.

Related Calculators

💳
PayPal Fee Calculator
3.49% + $0.49 per transaction
💼
Freelance Rate Calculator
Your minimum hourly rate
📈
Compound Interest
Watch your investment grow