Profit Margin Calculator: Gross Margin and Markup

Calculate the relationship between cost, selling price, profit, margin, and markup without confusing the two percentages.

Inputs and calculation method

Profit is revenue minus cost. Margin divides profit by revenue, while markup divides profit by cost.

Core formula: Margin = (revenue − cost) ÷ revenue × 100%; markup = (revenue − cost) ÷ cost × 100%.

How to interpret the estimate

An item that costs $60 and sells for $100 produces $40 profit, a 40% margin, and a 66.7% markup.

Change one assumption at a time to understand which input has the greatest effect. Use exact figures from a lender disclosure, statement, pay record, account terms, or business records whenever possible. Calculator output is rounded and may differ from institution-specific calculations.

How to use this calculator effectively

Define the accounting period and cost categories before entering numbers so the result can be reproduced and compared consistently.

Use this calculator to distinguish gross profit margin from markup and to test whether a price covers all relevant costs. Start with a clear cost definition. Product cost alone may be appropriate for gross margin, while contribution or net analysis may also include payment processing, shipping, returns, labor, advertising, overhead, interest, and taxes.

  1. Step 1: Unit cost or total cost. Use a value from a current statement, written quote, account record, or documented plan whenever possible.
  2. Step 2: Selling price or revenue. Use a value from a current statement, written quote, account record, or documented plan whenever possible.
  3. Step 3: Optional quantity. Use a value from a current statement, written quote, account record, or documented plan whenever possible.

What changes the result most

Practical decision guide

Label the result as gross, contribution, or net margin based on the costs included. Test the price after discounts and expected returns, not only the list price. Pair margin with unit volume and break-even analysis: a high percentage on very few sales may contribute less total profit than a lower percentage on a strong volume.

Questions to ask before relying on the result

Common mistakes to avoid

Limitations and how to verify the estimate

The calculator is an arithmetic model and does not validate accounting classification, inventory costing, taxes, revenue recognition, or market demand. Use consistent records and qualified accounting advice when needed.

Recheck the calculation when an input changes and compare the output with the applicable statement, disclosure, contract, plan document, or official source. Do not use a calculator result as a substitute for individualized financial, tax, legal, lending, investment, insurance, payroll, or accounting advice.

Save the date, inputs, and purpose of each scenario. That record makes later comparisons more reliable and helps explain why a result changed. When comparing alternatives, use the same measurement period and cost definitions; otherwise a seemingly better result may come from inconsistent assumptions rather than a genuine financial advantage.

Official references and further reading

Frequently asked questions

Why are margin and markup different?

They use different denominators: revenue for margin and cost for markup.

Does gross margin equal net margin?

No. Gross margin generally excludes operating expenses, interest, taxes, and other costs below gross profit.

Should payment-processing and shipping costs be included?

Include all variable costs relevant to the decision when evaluating contribution or product profitability.

Related calculators

Last technical review: June 26, 2026. Methodology is provided for transparency. This calculator is educational and does not provide financial, tax, legal, investment, lending, insurance, or accounting advice. Read the methodology and calculator disclaimer.