60% gross margin
- Revenue
- $100,000.00
- Cost of goods sold
- $40,000.00
Gross margin60%
arithmetic identity
Open this exampleGross margin after direct costs only. The line that matters is what counts as COGS: put overhead in it and you are computing operating margin under a different name.
Also called: gross profit calculator, gross margin percentage.
60% gross margin. $60,000.00 of gross profit on $100,000 of revenue.
Revenue minus the cost of goods sold, over revenue. COGS is direct cost. Materials, the labour that touched the product, payment processing. Rent, salaries and marketing sit below the line, which is why gross margin is higher than every margin beneath it.
gross_margin = (revenue - cogs) / revenue * 100Each of these is asserted on every build. If a change to the engine ever moved one of these answers, the build would fail before the page could print it.
Gross margin60%
arithmetic identity
Open this exampleGross margin-20%
boundary: selling below cost is a real state, not an error
Open this exampleGross margin0%
degenerate case: guarded division
Open this example