Profit = selling price − cost
Margin % = profit ÷ selling price × 100
Markup % = profit ÷ cost × 100
The denominators differ: margin divides by what the customer pays, markup divides by what you spent. Markup is always higher than margin on the same numbers (except at 0).