Gross margin calculator
Gross margin is revenue minus cost of goods sold, divided by revenue. Revenue of 250,000 against COGS of 150,000 gives 100,000 gross profit and a 40% gross margin. Operating costs come out after this line.
How to calculate gross margin
What belongs in cost of goods sold is the judgement call that makes gross margin comparable or useless. Direct materials and the labour that touches the product belong there; rent, salaries of people who do not make the product, and marketing do not. Inbound freight is usually included and outbound is usually not. The important thing is consistency: a margin that improves because you reclassified freight is not an improvement, and it will be the first thing a lender or acquirer checks.
Questions
Revenue minus cost of goods sold, expressed as a percentage of revenue. It is the money left to cover everything else.