what is the formula to work out profit margin?
The formula for gross margin percentage is as follows: gross_margin = 100 * profit / revenue (when expressed as a percentage). The profit equation is: profit = revenue - costs , so an alternative margin formula is: margin = 100 * (revenue - costs) / revenue .