Profit Margin Calculator

Calculate gross margin, gross profit, and markup from revenue and cost.

Enter total sales or revenue.
Enter the direct cost associated with the revenue.

Gross margin

32%

Gross profit$4,800
Markup47.1%
Break-even revenue$10,200

How to use this profit margin calculator

  1. Enter revenue

    Type total sales or revenue.

  2. Enter cost

    Enter the direct cost of goods sold or cost to deliver.

  3. Review gross profit margin

    Review the gross profit margin percentage.

  4. Review markup

    Use the markup percentage for pricing decisions.

Methodology

How this profit margin calculator works

This profit margin calculator computes gross margin, gross profit, and markup from revenue and cost of goods sold. Gross margin is a foundational business metric that shows what percentage of revenue remains after covering direct costs — it determines how much room you have for operating expenses, marketing, and profit. The calculator also shows markup (profit as a percentage of cost), which is the inverse perspective used in pricing decisions.

Formula
Gross margin = [(revenue – cost) / revenue] × 100 ; Markup = [(revenue – cost) / cost] × 100
Gross margin Profit as a percentage of revenue (seller's perspective)
Markup Profit as a percentage of cost (pricing perspective)
Revenue Total sales or income received
Cost Direct cost of goods sold (COGS) or cost to deliver
Example

If revenue is $50,000 and cost of goods sold is $32,000: gross profit = $18,000, gross margin = 36 %, and markup = 56.25 %. This means 36 % of revenue is available to cover operating expenses and profit after direct costs.

If revenue rises from $50,000 to $60,000 while cost stays at $32,000, the gross margin increases because the additional revenue carries no incremental direct cost in this model. The improved margin shows the operating leverage available when revenue grows faster than cost of goods sold.

Keeping revenue at $50,000 but reducing cost from $32,000 to $28,000 improves both the gross margin and the markup percentage. Cost reduction has a direct, amplified effect on profitability because every dollar saved flows straight to gross profit without requiring additional sales.

Assumptions
  • This calculates gross margin only — operating expenses, taxes, interest, and depreciation are not included.
  • Cost should include only direct costs (COGS); including overhead would produce a different metric closer to operating margin.
  • A single revenue and cost pair is used; for multi-product businesses, compute margin per product or use a weighted average.
  • Break-even revenue assumes the same margin percentage applies — in practice, scaling may change the cost structure.
Notes
  • Margin and markup are often confused: a 50% margin means half of revenue is profit, while a 50% markup means price is 1.5× the cost — these are very different.
  • Healthy gross margins vary dramatically by industry: software businesses may see 70–90%, while grocery retailers typically operate at 25–35%.
  • Track margin trends over time rather than relying on a single calculation — declining margins can signal rising costs or pricing pressure.
  • For pricing decisions, work backward from a target margin: price = cost / (1 – target margin).
Sources
  1. Gross margin definition — Financial Accounting Standards Board (FASB)
  2. Industry margin benchmarks — NYU Stern Damodaran datasets

What is gross margin?

Gross margin is the percentage of revenue that remains after subtracting the direct cost of goods sold. It represents the first layer of profitability in any business and determines how much room exists to cover operating expenses, marketing, research, and ultimately net profit. A high gross margin means the business retains a large share of each revenue dollar before overhead, while a low margin means most revenue is consumed by production or procurement costs. Gross margin varies widely by industry: software companies often operate at 70 to 90 percent because the marginal cost of serving an additional customer is near zero, while grocery retailers typically run at 25 to 35 percent because physical goods have substantial per-unit costs. Tracking gross margin over time is often more valuable than looking at a single snapshot, because declining margins can signal rising input costs, pricing pressure, or a shifting product mix — all of which deserve management attention before they erode the bottom line.

Margin versus markup in pricing

Margin and markup are two ways of expressing the same profit, but they use different denominators and are easily confused. Gross margin divides profit by revenue (the selling price), answering the question: what fraction of every dollar a customer pays is profit? Markup divides profit by cost, answering: how much did I add on top of my cost? A 50 percent margin means half of the selling price is profit, while a 50 percent markup means the price is only 1.5 times the cost — a much smaller absolute profit. This distinction matters in pricing decisions. If a business targets a 40 percent gross margin, the correct formula is: price equals cost divided by 0.60. Using a 40 percent markup instead would set the price at cost times 1.40, which produces only a 28.6 percent margin — well below the target. Confusing the two is one of the most common pricing errors in small businesses. When setting prices, always specify whether the target is a margin or a markup, and use the corresponding formula to avoid underpricing.

Profit margin calculator FAQs

What is the difference between margin and markup?

Margin expresses profit as a percentage of revenue (selling price). Markup expresses profit as a percentage of cost. A 50% margin corresponds to a 100% markup.

What is a good gross margin?

It varies by industry. Software and services businesses often target 60–80%, while retail and manufacturing typically operate at 20–40%. Compare against industry benchmarks.

Is gross margin the same as net margin?

No. Gross margin only accounts for direct costs. Net margin also deducts operating expenses, taxes, and interest — it represents the final profit percentage.

How do I set prices using margin?

Divide your cost by (1 – target margin). For example, to achieve a 40 % margin on a product that costs $32,000, price it at $53,333.33.

Written by Jan Křenek Founder and finance calculator author
Reviewed by DigitSum Methodology Review Finance model verification
Last updated Mar 10, 2026

Use this as an estimate and validate important decisions with a qualified professional.

Inputs stay in the browser unless a future feature explicitly tells you otherwise.