Margin math per row
Each row you enter yields gross profit (revenue minus cost of goods sold) and gross margin (gross profit divided by revenue). When a row includes variable costs, the tool also reports contribution margin (revenue minus variable costs, divided by revenue). The batch total is the sum of gross profits divided by the sum of revenues - a weighted result, not an average of the row percentages.