Calculate profit margin percentage from cost and selling price (revenue).
Profit margin measures how much of each dollar of revenue is kept as profit.
Profit = Revenue - Cost
Profit Margin (%) = (Profit / Revenue) x 100
Markup (%) = (Profit / Cost) x 100
For example, if cost is $30 and revenue is $50: Profit = $20, Margin = 40%, Markup = 66.67%.
Note: Margin and markup are different. Margin is profit as a percentage of revenue. Markup is profit as a percentage of cost.