About the Gross Margin Calculator
Gross margin percentage and gross profit from revenue and cost of goods sold (COGS).
Also known as: gross profit margin, gm calculator, gross margin percentage.
How to use this calculator
- Enter revenue, cost of goods sold.
- The result updates instantly as you type — press Calculate (or Enter) at any time.
- Review the breakdown shown under the main result.
- Use Copy result or Share to save the answer or send a link with your inputs.
Formula
Gross margin = (revenue − COGS) ÷ revenue
Worked example
Using the values pre-filled in the calculator above:
- Revenue = 500,000
- Cost of goods sold = 310,000
the calculator returns:
- Gross margin: 38%
- Gross profit: 190,000