Skip to content
Business Finance

Profit Margin Calculator

Work out the margin a price actually delivers — or start from the margin you need and back out the price that produces it. Two directions, one calculator, and the arithmetic that decides whether a sale is worth making.

  • Updated Aug 17, 2026
  • Reviewed by the BSF CPA Editorial Team
  • US small business
  • 8 min read
Quick Answer

Margin is profit as a share of price, and buying more of it gets expensive fast. On a $60 cost, a 40% margin needs a $100 price. Want 60%? That is $150. Want 80%? $300 — you have to triple the price to double the margin, because every point of margin has to come out of a base that is shrinking as you climb.

Use the first tab to find the margin a price delivers. Use the second to set a target margin and get the price it requires.

Profit Margin Calculator

Work out margin from cost + revenue, or set a margin and back out the price you need.





Gross profit margin

Gross profit per unit
Total gross profit
Markup on cost
Total revenue
Total cost (COGS)



Required selling price

Profit per unit
Markup on cost

Gross margin = (Revenue − Cost) ÷ Revenue. Markup = (Revenue − Cost) ÷ Cost. This tool assumes COGS only — add operating expenses for net margin.
 •  Built by Business Skill Forge.

How to read your results

OutputWhat it meansWhy it matters
Profit marginProfit ÷ selling priceWhat your accounts report. Always less than markup.
Profit per unitPrice − costThe dollars each sale contributes.
Total profitProfit per unit × unitsWhat volume turns the margin into.
MarkupProfit ÷ costHow you price. Always more than margin.
Required priceCost ÷ (1 − target margin)Second tab. The price your margin goal demands.

The two directions

Tab 1

Calculate Margin

You know the price and the cost. Enter both plus a unit count and you get margin, markup, profit per unit and totals. This is the analysis direction — checking whether an existing price works.

Tab 2

Set Margin → Find Price

You know the cost and the margin the business needs. Enter both and you get the price required. This is the pricing direction — building a price from a target.

Most pricing mistakes happen because people work in the first direction while thinking in the second — checking what a price happens to deliver rather than deciding what the business needs and pricing to it.

The formula

profit per unit = price − cost
profit margin = (price − cost) ÷ price
markup = (price − cost) ÷ cost

Working backwards:
required price = cost ÷ (1 − target margin)
  • price Net selling price — what you actually collect after discounts.
  • cost Direct cost of the unit sold. See the gross-margin note below.
  • units Affects totals only. It cannot change the margin.

Note the denominators. Margin divides by price; markup divides by cost. A $60 cost sold at $100 is a 40% margin and a 66.67% markup — the same $40, measured against different bases. Our markup calculator covers that conversion in full.

Gross margin is not net margin

This calculator computes gross margin only

It compares price to the direct cost of the unit. Rent, salaries, marketing, software, insurance and interest are not included, so a comfortable figure here can still sit above a net loss.

A business selling at a 40% gross margin on $500,000 of revenue produces $200,000 of gross profit. If overheads are $220,000, it loses $20,000 — while this calculator reports a perfectly healthy 40%. Gross margin tells you whether each sale contributes; only the full profit and loss tells you whether the business makes money.

The three margins in ascending strictness: gross margin deducts direct costs, operating margin also deducts overheads, and net margin also deducts interest and tax. This tool measures the first. Use the break-even calculator to check whether your gross margin and volume together cover fixed costs.

Why high margins cost so much price

Margin has a ceiling of 100% — you cannot keep more than the whole price. As you approach it, each additional point demands disproportionately more price. On a fixed $60 cost:

Target marginRequired pricePrice increaseEquivalent markup
10%$66.6711.1%
20%$75.00+$8.3325.0%
30%$85.71+$10.7142.9%
40%$100.00+$14.2966.7%
50%$120.00+$20.00100.0%
60%$150.00+$30.00150.0%
70%$200.00+$50.00233.3%
80%$300.00+$100.00400.0%
The first ten points are cheap; the last ten are not

Moving from 10% to 20% margin costs $8.33 of price. Moving from 70% to 80% costs $100 — twelve times as much for the same ten points. The curve is hyperbolic because the divisor (1 − margin) is heading toward zero.

Practically: if you are at a 30% margin, pushing to 40% is a modest price move your market may absorb. If you are at 70% and want 80%, you are asking customers to pay half as much again. High-margin businesses defend their pricing rather than raise it.

Three worked examples

Example 1 — Checking an existing price

$250 price, $150 cost, 100 units

Margin 40.00%, markup 66.67%, profit per unit $100. Across 100 units: $25,000 of revenue, $15,000 of cost and $10,000 of gross profit. Whether that is a good business depends entirely on whether overheads are below $10,000.

Example 2 — Pricing from a target

$24.50 cost, 50% target margin

Required price $49.00, profit $24.50, equivalent markup 100.00%. This is keystone pricing arrived at from the margin side: a 50% margin and a 100% markup are the same decision described two ways.

Example 3 — A sale below cost

$120 price, $150 cost, 10 units

Margin −25.00%, markup −20.00%, profit per unit −$30, total −$300. The calculator handles negatives correctly, which matters when you are modelling clearance pricing. Selling below cost can be rational to clear stock or win a customer — but know the number rather than discovering it later.

Volume changes profit, not margin

A common misreading: selling more does not improve your margin. On a $100 price and $60 cost, margin stays at 40% forever:

UnitsRevenueGross profitMargin
100$10,000$4,00040%
500$50,000$20,00040%
1,000$100,000$40,00040%
5,000$500,000$200,00040%

Volume multiplies profit; only price or cost moves margin. Where scale genuinely helps is in unit cost — better supplier terms at higher volumes — and in spreading fixed overheads across more sales, which lifts net margin without touching gross.

Common mistakes

Mistake 1

Applying a margin percentage to cost

Adding 40% to a $60 cost gives $84 — a 28.6% margin, not 40%. Divide by (1 − margin) instead: $100.

Mistake 2

Reading gross margin as profitability

It ignores every overhead. A 40% gross margin business can still lose money if fixed costs exceed gross profit.

Mistake 3

Using list price rather than net

Discounts, promotions, returns and payment fees all reduce what you collect. Use the realised figure.

Mistake 4

Excluding freight and duty from cost

Landed cost is the real cost. Leaving inbound charges out inflates every margin you calculate.

Mistake 5

Expecting volume to lift margin

It does not. More units multiply profit at the same percentage. Only price or unit cost changes the rate.

Mistake 6

Comparing margins across industries

Software runs at margins a grocer could never reach, and neither number says anything about the other's health.

Best practices

Price from the target, not the cost

Decide the margin the business needs, then use the second tab. Working forwards from cost tends to leave money on the table.

Check gross margin against overheads

Multiply margin by expected revenue and compare with fixed costs. If it does not clear them, the price is wrong or the volume is.

Re-run when costs move

Holding price through a supplier increase silently erodes margin. A $6 cost rise on a $100 price costs six points.

Track margin by product, not in aggregate

A blended margin can hide loss-making lines entirely. Run the calculator per product or per group.

Frequently asked questions

What is the difference between margin and markup?

Margin divides profit by the selling price; markup divides it by cost. A $60 cost sold at $100 is a 40% margin and a 66.67% markup — the same $40 measured two ways. Margin is always the smaller number.

How do I price for a specific margin?

Divide cost by one minus the margin. For a 40% margin on a $60 cost: 60 ÷ 0.60 = $100. The second tab does this for you. Never add the margin percentage to cost — that produces a different, lower margin.

Is this gross or net margin?

Gross. It compares price to the direct cost of the unit only. Overheads, salaries, marketing, interest and tax are excluded, so a healthy figure here does not guarantee the business is profitable overall.

What is a good profit margin?

It varies enormously by sector. Grocery retail runs on low single-digit net margins; software can exceed 80% gross. The useful comparison is against your own history and direct competitors, not a universal benchmark.

Why can't margin reach 100%?

Because price always includes the cost. Only a zero-cost product could reach 100%, and as you approach it each extra point requires disproportionately more price — 70% to 80% costs $100 of price on a $60 cost, against $8.33 for 10% to 20%.

Does selling more units improve my margin?

No. Volume multiplies total profit at the same percentage. Margin only moves if price or unit cost changes. Scale can reduce unit cost through better buying, which then improves margin.

Should cost include shipping and duty?

Yes — use fully landed cost, including freight, duty, handling and inbound fees. Excluding them overstates margin on every unit.

How do payment processing fees affect margin?

They come off the price, so they reduce margin directly. A 3% card fee removes about three points. Either deduct fees from the price you enter or treat them as a cost.

Can margin be negative?

Yes, when you sell below cost. The calculator handles it — $120 against a $150 cost shows a −25% margin. Deliberate below-cost selling can be rational for clearance or customer acquisition, but it should be a decision, not a discovery.

Which margin do investors and lenders look at?

Both, for different reasons. Gross margin shows whether the core product economics work; net margin shows whether the whole business does. A high gross margin with a negative net margin points at a cost structure problem rather than a pricing one.

How does margin relate to break-even?

Break-even divides fixed costs by contribution margin per unit. A higher margin means fewer units needed. Our break-even calculator works that through with your fixed costs.

Does the unit count change anything except totals?

No. Units scale revenue, cost and total profit proportionally, leaving margin and markup unchanged. Set it to 1 if you only want the per-unit picture.

Methodology & sources

Profit per unit is selling price minus cost. Profit margin divides that by the selling price and markup divides it by the cost; totals multiply the per-unit figures by the unit count. The second tab derives the required price as cost divided by one minus the target margin. All figures are gross — they reflect direct unit costs only and exclude overheads, salaries, marketing, interest, tax, discounts, returns and payment processing, each of which reduces realised profitability. Negative margins are computed and displayed where price is below cost. Currency selection is presentational and does not convert values.

Sources
  1. Standard gross margin and markup arithmetic as applied in US managerial accounting.
  2. US Small Business Administration — pricing and profitability guidance for small businesses.
  3. All figures independently modelled and verified against the live calculator.
BSF
BSF CPA Editorial Team
Certified Public Accountants & financial analysts

Our team reviews every calculator against current practice and re-verifies its arithmetic against an independent model before publication.

For educational purposes only; not financial, tax or business advice. Gross margin is one measure among several and does not indicate overall profitability. Consult a qualified accountant before setting pricing policy.

Related resources

Decide the margin, then set the price

Use the second tab. Working backwards from what the business needs beats checking what a price happens to deliver.

Goes deeper on this

13-Week Cash Flow Forecast (Excel)

The rolling quarter-ahead forecast lenders ask for and owners actually use. It flags the week you run short, not the week after.

Read what is inside — $29.00

Email me this result

We will send the numbers this page just showed you, plus a link back to it. No account needed.

Keep exploring

Explore the Business Skill Forge ecosystem