The share of revenue remaining after the cost of goods sold has been deducted.
If revenue is $100 and the cost of goods sold is $60, gross profit is $40 and gross margin is 40%. Other operating costs have not yet been deducted.
Reference: SEC: financial statements.