The margin calculator is a free tool for computing the gross margin (in percentage), markup, and gross profit based on the cost and selling price of a product.
Gross Margin (%) = ( (Revenue - Cost) / Revenue ) × 100
Gross Profit ($) = Revenue - Cost
Markup (%) = (Revenue - Cost) / Cost