Skip to content

Business

Profit Margin Calculator

Enter revenue and cost to see gross profit, gross margin, and markup in one pass. The calculator subtracts cost from revenue, divides profit by revenue for margin, and divides profit by cost for markup. Both percentages describe the same profit from different bases, so a 40% margin equals a 66.7% markup.

Updated 2026-11-12 Editorial estimate Calccc Editorial Team Free · No sign-up

Loading calculator…

What this calculator does

Margin and markup describe the same gap between cost and price from two different bases. This calculator reports gross profit, gross margin, and markup together, so you can quote whichever figure a lender, a spreadsheet, or a price sheet expects. Use it to price a product, test a supplier quote, or work backward from a target margin before you set a selling price.

How to use it

  1. Enter total revenue for the period, net of returns and discounts.
  2. Enter the direct cost of the goods or services sold.
  3. Read gross profit in dollars, then margin and markup as percentages.
  4. Change one input to see how a price cut or cost increase moves the result.
  5. Use margin for income statements and markup for pricing sheets.

How it works

Gross profit = revenue - cost. Gross margin = (gross profit / revenue) x 100. Markup = (gross profit / cost) x 100. Revenue and cost must cover the same period and the same units, and cost means the direct cost of what was sold, not rent or salaries. Markup is larger whenever profit is positive because it divides by the smaller base.

Example calculations

Example 1: $1,000 revenue, $600 cost

Gross profit is $400, gross margin is 40%, and markup is 66.7%. The same $400 is 40% of the price but two-thirds of the cost.

Example 2: $250 revenue, $200 cost

Gross profit is $50, margin is 20%, and markup is 25%. A quarter added to cost becomes a fifth of the price.

Example 3: $500 revenue, $500 cost

Profit is $0 and both measures are 0%. The sale covers its direct cost and adds nothing, so overhead makes it a loss.

What the result means

Margin answers how much of each sales dollar stays with the business after direct cost. Markup answers how much was added to cost to reach the price. A 40% margin needs a 66.7% markup, and a 50% margin needs a 100% markup, so the two figures are never interchangeable. Margin also moves faster when price falls: a 10% price cut on a 40% margin product drops margin to 33.3% and profit by 25%. Gross margin stops short of profit, since rent, payroll, marketing, interest, and taxes still come out of what is left. Check margin after every price change, because a small discount costs more than it appears to.

Common mistakes

  • Applying a 40% markup when you meant a 40% margin, which prices the item too low.
  • Using total operating expenses as the cost, which turns gross margin into net margin.
  • Comparing revenue from one period against cost from another.
  • Forgetting that discounts and returns come off the selling price and cut margin.
  • Treating a 100% markup as a 100% margin.

Assumptions and limits

  • Revenue is net of returns, discounts, and sales tax collected.
  • Cost covers only the direct cost of the units sold in the same period.
  • All units are pooled as one product; a mixed catalog needs a weighted figure.
  • Overhead such as rent, payroll, and marketing is excluded.
  • Figures use one currency and ignore exchange-rate movement.

Frequently asked questions

What is the difference between margin and markup?

Margin divides profit by revenue; markup divides profit by cost. A $100 item that costs $60 has a 40% margin and a 66.7% markup.

How do I convert markup to margin?

Divide the markup by 100 plus the markup. A 50% markup becomes a 33.3% margin, and a 100% markup becomes a 50% margin.

Why is margin different from profit?

Profit is a dollar amount; margin is that amount as a share of revenue. A $400 profit is 40% of $1,000 and 20% of $2,000.

Does this calculate net profit?

No. It stops at gross profit and ignores rent, salaries, marketing, interest, and taxes. Subtract those to reach net profit.

Can margin be negative?

Yes. If cost is higher than revenue, profit, margin, and markup are all negative. Every sale at that price loses money.

Which number should I use when pricing?

Use margin when planning from an income-statement target, and markup when a supplier quotes cost-plus terms. Convert both to one basis first.

Sources

This calculator is an educational estimate only and is not accounting, tax, or investment advice. It reports gross margin from the figures you enter and ignores overhead, financing, and taxes. Your bookkeeper or accountant should confirm how revenue and cost are recorded for your business.

2026 update

How to use the professional output

This page is not just a formula box. The result is designed to be checked, compared, and taken away.

  • Professional worksheet. The result includes the inputs used, the method and scope, and a one-variable sensitivity check for finance calculators.
  • A/B scenarios. Save two input sets in the browser and compare the primary, secondary, and breakdown figures side by side.
  • Print / PDF and CSV. Print a branded worksheet, or export the year-by-year table when the calculator produces one.

The formulas and assumptions above still govern the number. The worksheet makes the estimate auditable; it does not make it a lender quote, tax return, or personalized advice.

Go deeper

Guides that explain the math

Profit Margin: Gross, Operating, and Net (With Examples)
Business

Profit Margin: Gross, Operating, and Net (With Examples)

Three margins, three different questions. Learn what each one includes and how to compare a business with its own history.

6 min read

Calccc Editorial Team · Updated 2026-11-12

Prepared by Calccc Editorial Team as an educational estimate. This page is not a licensed professional review and is not financial, medical, legal, or tax advice.

Editorial estimate prepared by the Calccc Editorial Team; not a licensed professional review.