Gross margin is the difference between total sales revenue and total cost of goods sold (also called total cost of sales). This can also be expressed on a per unit basis, as the difference between unit selling price and unit cost of goods sold. Gross margin can be expressed in dollar or percentage terms.