Margin measures profit as a share of selling price, while markup measures profit as a share of cost. This Margin and Markup Calculator starts with a positive cost and a target gross margin, then finds the selling price, profit per sale and equivalent markup.
The percentages differ because their denominators differ. University of Maine Cooperative Extension: basic pricing strategies explains that distinction in its retail pricing section. This form sets a price from a margin target; it does not calculate a target from demand or decide what customers will pay.