PublicSoftTools
Tools7 min read

Profit Margin Calculator: Margin, Markup and Pricing Explained

Pricing a product incorrectly — even by a few percentage points — can quietly erode profitability across thousands of transactions. This guide explains profit margin and markup, shows the formulas behind both, and walks through how to use the free profit margin calculator to price products confidently.

What Is Profit Margin?

Profit margin is the percentage of revenue that remains as profit after deducting the cost of the product. It answers the question: of every dollar a customer pays, how many cents do you keep as gross profit?

The formula is straightforward:

Profit Margin (%) = ((Selling Price − Cost) / Selling Price) × 100

For example, if a product costs $40 to make and sells for $100, the gross profit is $60 and the margin is 60%. This means 60 cents of every dollar in revenue is gross profit before operating expenses.

What Is Markup?

Markup is also a profit ratio, but the base is cost rather than selling price.

Markup (%) = ((Selling Price − Cost) / Cost) × 100

Using the same example: profit of $60 on a cost of $40 gives a markup of 150%. The selling price is 150% above the cost price.

Margin vs Markup — Why It Matters

The two figures describe the same transaction but from different directions — margin looks backward from revenue, markup looks forward from cost. Confusing them is a common and costly pricing mistake.

MarkupEquivalent Margin
10%9.1%
20%16.7%
25%20.0%
50%33.3%
100%50.0%
200%66.7%

A buyer who tells a supplier “we need 40% margin” and a supplier who quotes “40% markup” are not agreeing on the same number. The margin is 28.6% on a 40% markup. Ensuring both parties use the same definition prevents expensive misunderstandings in contracts and wholesale agreements.

How to Use the Profit Margin Calculator

  1. Open the Profit Margin Calculator.
  2. Choose a mode. Cost + Price calculates margin and markup from known figures. Cost + Target Margin finds the selling price you need to hit a specific margin.
  3. Enter your cost price and either the selling price or your target margin percentage.
  4. Click Calculate to see gross profit, margin %, markup %, and a visual cost/profit breakdown.

Calculating Selling Price from a Target Margin

If you know your cost and need to hit a specific margin, use this formula:

Selling Price = Cost / (1 − Target Margin%)

For a product costing $60 with a target margin of 40%: Selling Price = $60 / (1 − 0.4) = $60 / 0.6 = $100. The calculator handles this in the Cost + Target Margin mode automatically.

Advanced Pricing Workflows

Gross vs net margin

The profit margin calculator computes gross margin — the margin before operating costs. To arrive at net margin, subtract overheads (rent, payroll, marketing, depreciation) from gross profit and divide by revenue. Gross margin informs pricing; net margin informs business viability.

Blended margin across a product range

Not every product needs the same margin. High-volume, low-differentiation products often run on thin margins; premium or exclusive products can sustain 60–80%. Calculate margin per SKU and use a weighted average to understand your blended portfolio margin.

Accounting for discounts and returns

If you regularly discount or accept returns, your effective margin is lower than the nominal margin at list price. Factor in an average discount rate and return rate when setting your baseline margin target. A nominal 40% margin can become 30% after a 10% average discount and 5% return rate.

Minimum viable margin for break-even

Calculate the gross margin needed to cover your total monthly fixed costs at your expected sales volume. This is your break-even margin floor — pricing below it means growing revenue actually increases losses. Gross Margin Floor = Fixed Costs / Revenue.

Common Questions

What is a good profit margin by industry?

Grocery retail typically operates at 2–5% net margin. General retail runs 5–20%. Manufacturing varies widely, 5–20%. Software and SaaS companies often achieve 60–80% gross margins. Services businesses fall in between, typically 20–50%. The right target depends on your cost structure and competitive positioning — industry benchmarks provide a reference, not a rule.

Is this tool for gross or net margin?

The calculator computes gross profit margin — profit as a percentage of revenue after subtracting the direct cost of the product. It does not account for operating expenses, taxes, or interest. For net margin analysis, subtract those costs from the gross profit figure manually.

Does the currency matter?

No. The calculator works with any currency. As long as cost and selling price are in the same currency, the margin and markup percentages are accurate regardless of whether you input dollars, pounds, euros, or any other unit.

Calculate Your Profit Margin Now

Enter cost and price — or work backward from a target margin to find your selling price.

Open Profit Margin Calculator