The formula for calculating gross margin is: Gross Margin (%) = [(Revenue - Cost of Goods Sold) / Revenue] * 100 For example, if your business generates $100,000 in revenue and the COGS is $60,000, the gross margin would be: Gross Margin (%) = [($100,000 - $60,000) / $100,000] * 100 = 40%