Markup is not profit margin
Markup uses cost as the base, while margin uses selling price.
Markup base
Markup percentage is measured against cost.
Margin base
Margin percentage is measured against selling price.
Do not substitute
The same percentage number produces different selling prices under the two definitions.