FeeCalculate

Margin Calculator

Calculate your profit margin — profit as a percentage of revenue — live as you type. A percentage is what actually lets you compare profitability across deals of wildly different sizes, which a raw profit dollar figure can't do on its own.

Fees last verified: 2026-08-02

Your numbers

Results update instantly as you type.

USD

Total sales revenue before costs.

USD

All direct costs of producing and delivering the sale.

Profit margin

35.0%

Profit

$2,800

Breakdown

  • Total cost$5,200.00
  • Profit$2,800.00

How the Margin Calculator works

Enter your revenue and total cost. The calculator divides profit (revenue minus cost) by revenue to get your margin percentage, updating instantly as you adjust either number. Three mistakes are common here: confusing margin with markup, since they use the same profit figure but divide by different bases and are never numerically equal; accidentally treating cost as the base instead of revenue when doing the math by hand, which silently computes a markup instead of a margin; and leaving real costs out — packaging, shipping, payment processing fees — which inflates the margin shown without changing what actually lands in the bank.

Who this is for

For freelancers and agencies comparing profitability across clients or projects of very different sizes, where a raw profit number alone can't tell you which one is actually more efficient. Product sellers use it to check whether a price is genuinely sustainable, not just whether it produces a positive dollar figure. And it's for anyone benchmarking their own numbers against typical margin ranges in their field, since what counts as healthy varies enormously by industry and business model.

Worked example

If you generate $8,000 in revenue and it costs $5,200 to deliver, your profit is $8,000 − $5,200 = $2,800. Your margin is $2,800 / $8,000 × 100 = 35%. That means 35 cents of every revenue dollar is retained as profit — the other 65 cents covers cost. That 35% is exactly what makes margin useful for comparison in a way a raw dollar figure isn't: a much smaller deal at $800 revenue and $520 cost produces only $280 profit, but the identical 35% margin — telling you the two deals are equally efficient even though one nets 10 times the dollars. A profit-only comparison would make the larger deal look categorically better; the margin shows they're actually performing the same, and any real difference in appeal comes down to volume and effort, not efficiency.

Margin vs. markup — the exact math, and why the mix-up is expensive

Margin and markup use the identical profit figure but divide it by different bases, and that single difference causes one of the most common pricing errors in business. Margin = Profit ÷ Revenue (what a sale actually paid). Markup = Profit ÷ Cost (what it cost to make). A $50 profit on a $150 price with a $100 cost is a 33% margin but a 50% markup — the same $50, described two different ways, never equal except at zero. The mix-up gets expensive at the pricing stage. To hit a target margin, the correct formula is Price = Cost ÷ (1 − target margin) — not Cost × (1 + target margin), which computes a markup instead. On an $80 cost aiming for a 30% margin, the correct price is $80 ÷ 0.70 = $114.29; multiplying by 1.30 instead gives $104, netting a real margin of only about 23%. That gap compounds fast across repeated sales, which is why margin — not markup — is the number that should drive pricing: it's what actually determines how much of every dollar collected is kept as profit. One pitfall worth remembering: a large markup can still be a thin margin. A 100% markup sounds aggressive, but it's only a 50% margin. And margin calculated without every real cost included — packaging, processing fees, return handling — will always overstate true profitability compared to what actually clears into the account.

Frequently asked questions

How is profit margin calculated?

Margin = (Revenue − Cost) ÷ Revenue × 100. It expresses profit as a percentage of what the customer paid, so you're comparing profitability on the same scale regardless of how large a sale or business is.

What's the exact difference between margin and markup?

Margin divides profit by revenue (profit ÷ revenue); markup divides the identical profit by cost instead (profit ÷ cost). They're never equal except at 0%. A $50 profit on a $150 sale price ($100 cost) is a 33% margin but a 50% markup — same dollars, two different percentages depending on which base you divide by. See our Markup Calculator to check both at once for the same numbers.

Why can't I just multiply cost by (1 + target margin) to hit a margin goal?

Because that calculation produces a markup, not a margin, even though it looks like the same move. To actually hit a 30% margin on an $80 cost, the correct formula is Price = Cost ÷ (1 − margin) = 80 ÷ 0.70 = $114.29. Multiplying instead by 1.30 gives $104 — at that price, profit is $24 on a $104 sale, a real margin of just 24/104 ≈ 23%, well short of the 30% target. The gap (over $10 per sale here) compounds fast across volume, which is exactly why this is one of the most common pricing errors even among experienced sellers.

What's a pricing multiplier, and how does it relate to margin?

A pricing multiplier (or coefficient) sets price as cost times a fixed number — price = cost × 2, ×2.5 — a shortcut common in retail and food service. It's really another way of expressing markup, not margin: a ×2 multiplier means price is double cost, a 50% margin (profit of 1 on a price of 2), while ×3 works out to 66.7%. The implied margin is (Multiplier − 1) ÷ Multiplier.

What counts as 'cost' when calculating margin?

Whatever it actually took to produce and deliver the sale — materials or cost of goods, direct labor, packaging, shipping, and payment processing fees, which are easy to forget since they're deducted automatically and never show up as a line item you manually paid. Leaving any of these out overstates margin without changing what actually landed in your account.

Should I use gross margin or net margin?

This calculator returns whatever margin your 'cost' input represents. Enter only cost of goods sold and you get gross margin; include all operating costs and you get net margin. Neither is more 'correct' — pick based on the decision you're actually making.

Is there a universal 'good' profit margin?

No, and treating one flat percentage as universal will mislead you — margin varies enormously by industry, business model, and how much of the cost is materials versus labor versus overhead. A margin that's thin for a services business can be perfectly healthy for a high-volume retailer. Compare against your own historical performance and your specific industry, not a single number pulled from somewhere else.

How can I raise my margin without raising price?

Lower cost instead — renegotiate supplier or materials pricing, cut payment processing or fulfillment costs where possible, reduce waste or rework, or improve efficiency so the same sale costs less to deliver. Margin only has two levers, price and cost, and raising price isn't always available if the market won't bear it.

Related calculators