Markup vs margin
Markup is calculated on cost (retail = cost × (1 + markup%)); margin is calculated on the selling price (cost = retail × (1 − margin%)). The same percentage means different things in each direction — a 50% markup is not the same as a 50% margin.