How to use the calculator
Enter revenue for the item, service, order or period you want to check. Enter the cost of goods sold for the same scope.
Use up to two decimal places with a dot separator and no commas or currency symbols. Revenue must be greater than zero. COGS may be zero or higher than revenue.
Choose the display currency if needed. Valid entries update the result instantly. Open Details to see the COGS share and formula trace.
Formula and method
Subtract direct costs from revenue to find gross profit.
- Gross profit
- money
- Revenue
- money
- Cost of goods sold
- money
Gross margin compares gross profit with revenue. COGS share equals C divided by R, times 100.
- Gross margin
- percent
- Revenue
- money
- Cost of goods sold
- money
Calculations retain exact decimal-input arithmetic. Money and percentages use half-up rounding to two decimal places for display. The decimal ratio in Details is rounded to at most two decimal places for display; repeating ratios remain exact internally.
Gross margin example
Understanding the result
A 40% gross margin means 40% of revenue remains after direct costs, before operating expenses, interest, taxes and other costs. Equal revenue and COGS gives zero gross profit and margin. COGS above revenue produces negative results.
Margin divides profit by revenue. Markup divides profit by cost. Revenue of $1,000 and COGS of $600 gives 40% gross margin and 66.67% markup. These percentages answer different questions.
Assumptions and limitations
This calculator uses your numbers. It does not decide which expenses belong in COGS, apply taxes, fetch accounting records, convert currencies or compare results with industry benchmarks. All amounts must use the same currency and scope.
Gross margin covers direct costs only. Net profit margin usually includes broader expenses. This calculator does not determine total business profitability or provide accounting classifications.
FAQs
Gross margin is the percentage of revenue left after subtracting cost of goods sold. It focuses on direct production or acquisition costs, before other expenses.
Subtract COGS from revenue to get gross profit. Divide gross profit by revenue and multiply by 100.
Gross margin compares profit with revenue. Markup compares profit with cost. Revenue of $1,000 and cost of $600 gives a 40% gross margin and a 66.67% markup.
Yes. If COGS is greater than revenue, gross profit and gross margin are negative.
No. It changes the currency label and formatting only. Enter all amounts in the same currency.
No. Net profit margin usually accounts for more expenses than COGS, such as operating expenses, interest and taxes. This calculator covers gross margin only.
Review and sources
- Updated
Sources
- Gross margin calculator — Xero
- Margin Calculator — CalculatorSoup
- Margin Calculator — Calculator.net
- Gross Margin Calculator — Omni Calculator