40.00% is the example result. COGS should describe the goods or services sold in the same period as revenue. Gross margin does not deduct all operating expenses.
Measure the revenue left after COGS (cost of goods sold). This helps you assess product economics before overhead, interest and tax.
Read product contribution before overhead
Use revenue and COGS from the same period. A 40% gross margin means 40 of each 100 in revenue remains after the cost of goods represented here. That remaining amount still has to support expenses outside COGS.
When to use this result
Compare a product group with its own earlier period before comparing it with a different business model. Changes in sales mix, supplier costs and discounts can explain the movement.
Check before you act
Do not subtract a cost inside COGS and then subtract it again as an operating expense. Keep your accounting treatment consistent.
Example with the supplied inputs
Revenue: 50000; COGS: 30000. Result: 40.00%. The values are illustrative.
Compare one changed input
Revenue changes from 50000 to 55000. The result becomes 45.45%. All other inputs remain fixed.
Calculation rule
Gross margin (%) = (revenue − cost of goods sold) ÷ revenue × 100.
Inputs and output
| Input | Example value | Entry convention |
|---|---|---|
| Revenue | 50000 | Use revenue on the currency and period basis shown by the formula. Keep gross amounts, net amounts and unit amounts distinct; the page does not fetch a price or exchange rate. |
| COGS | 30000 | Use the source quantity represented by cogs. Keep the counted population fixed and avoid mixing a unit value with a period total. |
Output: 40.00% is the example result. COGS should describe the goods or services sold in the same period as revenue. Gross margin does not deduct all operating expenses. Use the formula to distinguish a cash amount, count, percentage or ratio.
How to use the page
Collect the inputs
Gather Revenue, COGS. Use one period and the units shown in the form.
Run the calculation
Enter the values and select the action. The calculation rule above explains how the inputs produce the result.
Compare a scenario
Change Revenue on its own, keeping the other inputs fixed. Read both results before changing another assumption.
Worked example
With the example inputs listed above, the result is 40.00%.
Change Revenue from 50000 to 55000 while keeping every other value fixed. The result becomes 45.45%. This comparison isolates that input; it does not forecast how other variables will respond.
Check the stated formula, units and limits before using the result in a decision.
Keep the displayed formula, input units and model scope with the result. Corrections or questions can be sent through the request section on this page.
Content updated: October 11, 2026