Gross margin is the difference between revenue and the direct cost of the goods or services sold. It is expressed in value or as a percentage of revenue (margin rate). It measures profitability before overhead, such as salaries or rent.
Example
Gross margin rate = (revenue - cost of sales) / revenue