how to calculate gross profit margin from cost?
The gross profit margin in dollars is calculated by subtracting the COGS from total sales revenue. To figure the gross margin percentage, divide the dollar result by total revenue. For example, if a company has $100,000 in revenue and its COGS is $40,000, its gross profit margin is ($100,000 - $40,000) = $60,000.