COGS (Cost of Goods Sold) are the direct costs associated with producing or purchasing goods that were sold in a given period. Includes materials, direct labour and production costs — but not selling or administrative expenses.
Gross margin = (Revenue − COGS) ÷ Revenue × 100%
Revenue: $100,000 · COGS: $60,000
Gross margin = (100,000 − 60,000) ÷ 100,000 = 40%
Calculate it yourself
Use the margin calculator.