How this calculation works
Gross profit = revenue minus cost. Profit margin = gross profit divided by revenue. Markup = gross profit divided by cost.
Margin and markup are not the same. Margin looks at profit as a share of selling price; markup looks at profit as a share of cost.