Home/Calculators/Finance/Margin Calculator

Margin Calculator

Find your gross profit margin, profit amount and markup from cost and selling price — instant and free.

margin-calculator
Result
—
In summary: Gross profit margin is profit as a percentage of the selling price: (price − cost) ÷ price × 100. A $40 cost sold for $100 is a 60% margin, a $60 profit and a 150% markup. Margin is measured against the price; markup against the cost.

What your profit margin means

Gross profit margin is the share of the selling price that is profit, after subtracting what the item cost you: Margin % = (price − cost) ÷ price × 100. If an item costs $40 and sells for $100, the profit is $60 and the margin is 60 ÷ 100 = 60%. Margin is always a percentage of the selling price, which is what makes it different from markup.

Margin vs. markup — the key difference

People mix these up constantly. Margin is profit as a percentage of the selling price; markup is the same profit as a percentage of the cost. The $40 → $100 example is a 60% margin but a 150% markup ($60 profit ÷ $40 cost). Markup is always the larger number. To work the other direction — set a price from a target markup — use the markup calculator. At the income-statement level this is your gross profit margin.

How to use this calculator

Enter the cost (what you paid or what it costs to produce) and the selling price. The result shows your gross margin percentage, the dollar profit per unit, and the equivalent markup. Change either field to test pricing scenarios in real time. After every expense the figure that matters is net profit margin.

Margin at different price points

For a product that costs you $40, here is how margin and profit change with the selling price:

Selling priceProfitMargin
$50$1020%
$60$2033.3%
$80$4050%
$100$6060%
$160$12075%

Gross margin vs. net margin

This tool calculates gross margin, which counts only the direct cost of the product. Net margin also subtracts operating expenses such as rent, salaries, marketing and taxes, so it is always lower. Use gross margin to price individual products and net margin to judge the health of the whole business.

How to improve your margin

Three levers move margin: raise the price, lower the cost of goods, or shift your mix toward higher-margin products. Even small price increases flow almost entirely to profit. Before discounting, check the discount calculator to see how much margin a sale gives away.

Common margin mistakes to avoid

The costliest error is confusing margin with markup when pricing: applying a 40% markup when you wanted a 40% margin leaves you short, because a 40% markup is only a 28.6% margin. A second trap is pricing on cost alone and ignoring fees — payment processing, shipping, returns and platform commissions all eat into the margin this tool shows. Third, businesses often discount without checking the margin hit: a 20% discount on a 50% margin product wipes out nearly half your profit per sale. Always confirm the margin after a planned promotion, not before.

Margin glossary

  • Cost of goods sold (COGS) — the direct cost to make or buy the product; the cost input here.
  • Gross margin — profit after COGS, as a percentage of price. What this calculator returns.
  • Net margin — profit after COGS and all operating expenses and taxes; always lower than gross.
  • Markup — profit as a percentage of cost rather than price; see the markup calculator.
  • Contribution margin — price minus variable costs, used to judge how each sale covers fixed costs.

These figures are an estimate for general information only and are not financial advice; consult a qualified professional before making money decisions.

Frequently asked questions

How do I calculate gross profit margin?
Subtract cost from selling price to get profit, divide profit by the selling price, then multiply by 100. For a $40 cost and $100 price: (100 − 40) ÷ 100 = 60%.
What is the difference between margin and markup?
Margin is profit as a percentage of the selling price; markup is profit as a percentage of the cost. The same deal can be a 60% margin and a 150% markup.
Is a higher margin always better?
A higher margin per sale is good, but very high prices can reduce volume. The best price balances margin and how many units you sell.
What is a good profit margin?
It varies widely by industry. Grocery is famously thin (a few percent), while software can exceed 80%. Compare against businesses similar to yours.
Does this include overhead and taxes?
No. This is gross margin, based on product cost only. Net margin, which subtracts overhead and taxes, is lower.
How this tool works

This is an estimate, not financial advice. Check important figures with a qualified adviser before acting on them. The formula behind this tool is written out in full in the sections above, so you can check the maths yourself. Every calculator on Calculorium is verified against worked examples with automated tests before it is published, and pages are reviewed as formulas or standards change. Nothing you type is sent anywhere — the calculation runs entirely in your browser. Read how we build and check these tools.

Last updated: July 27, 2026 · Calculations run in your browser. Estimates for information only.