Definition
Markup is profit as a percentage of cost; margin is profit as a percentage of the selling price.
An item bought for $1.00 and sold for $1.25 has a 25% markup but only a 20% margin. Mixing the two up leads to pricing that earns less than planned.