Excel Formula for Profit Margin Calculation
2026-03-18
Gross Profit Margin
Gross profit margin is (Revenue - Cost) / Revenue. If revenue is in A2 and cost is in B2:
=(A2-B2)/A2Net Profit Margin
Net profit margin includes all expenses. If total expenses are in C2:
=(A2-C2)/A2Markup Percentage
Markup is the percentage added to cost. Different from margin:
=(A2-B2)/B2Format as Percentage
Wrap any margin formula in TEXT to display as a clean percentage:
=TEXT((A2-B2)/A2, "0.0%")Generate formulas instantly
Describe what you need in plain English. Get the formula for Excel, Google Sheets, or Airtable.
Try FormulaWiz Free