Markup is profit divided by cost, and margin is profit divided by price. A part that costs $100 and sells for $130 has a 30% markup and a 23.1% margin. Margin is always the smaller number.