Gross Profit Margin = (Net Sales - Cost of Goods Sold) ÷ Net Sales. Example. A company makes $4,000 selling goods that cost $3,000 to produce. Its gross profit margin is 4000−30004000=14{\displaystyle {\frac {4000-3000}{4000}}={\frac {1}{4}}}, or 25%.