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
- Unit cost or total cost
- Selling price or revenue
- Optional quantity
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.
- Step 1: Unit cost or total cost. Use a value from a current statement, written quote, account record, or documented plan whenever possible.
- Step 2: Selling price or revenue. Use a value from a current statement, written quote, account record, or documented plan whenever possible.
- 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
- Selling price and discounts: promotions, refunds, and channel commissions reduce realized revenue.
- Cost basis: direct materials, labor, freight, transaction fees, and variable fulfillment costs determine contribution per sale.
- Sales mix: a business can have products with different margins, so a simple average may not represent the overall company.
- Fixed overhead: a healthy gross margin does not guarantee net profit when rent, payroll, software, insurance, and financing are high.
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
- Which input is documented and which one is only an assumption?
- How does the result change under a more conservative rate, cost, payment, or time horizon?
- What cash-flow, risk, tax, legal, or contractual factor is not represented by the formula?
Common mistakes to avoid
- Using markup and margin as interchangeable percentages.
- Calculating profit from list price while customers commonly receive discounts.
- Leaving payment fees, shipping, returns, or variable labor out of product cost.
- Calling gross margin net profit before overhead, interest, and taxes.
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
- U.S. Small Business Administration: Manage your finances — Small-business guidance on financial records, cash flow, and business planning.
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.