Compare gross profit margin before and after a change in the cost of each unit sold. Enter the net revenue per unit, the previous and revised unit costs, and the quantity sold. The calculator reports the new gross margin, the earlier margin, the revised gross profit and the dollar change between the two scenarios.
Use one common net selling amount and unit count to isolate the cost difference. A change in price, sales volume or mix will affect gross profit separately. The page applies the entered costs to the same units sold and does not classify which expenses belong in cost of sales for your accounting records.
Calculate gross profit before expressing it as a margin
Subtract cost per unit from net revenue per unit. This gives gross profit for one unit under the supplied definitions. Multiply by units sold to get gross profit for the compared quantity. For the margin, divide the per-unit profit by net revenue per unit, then multiply by one hundred.
The margin is a proportion of sales. A markup calculation divides profit by cost instead. Using the same profit with a different denominator produces a different percentage. The value in this calculator is the portion of the entered sale amount left after the entered unit cost.
The dollar change compares the new cost with the old cost across all of the entered units. When the new cost is higher and sales terms are unchanged, the change is negative. Where cost exceeds net revenue, gross profit and gross margin can also be negative.
Worked example selling 650 units
Consider an item with $48 in net sales per unit. The prior cost is $29 and the revised cost is $32.50. Under the prior cost, gross profit per unit is $19, so the original margin is 19 divided by 48, or about 39.58%.
The revised gross profit per unit is $15.50. Divide by $48 to get about 32.29% gross margin. Multiply $15.50 by 650 units to get $10,075 in revised gross profit. The original gross profit at the same quantity was $12,350, so the calculator shows a decrease of $2,275.
One way to verify the dollar result is to take the price out of the difference. The unit cost rose by $3.50. At the same quantity, 650 times $3.50 is $2,275 of additional cost. Net revenue did not change in the example, so gross profit falls by the same amount.
Use consistent cost and revenue definitions
Use the net revenue amount that belongs to a sale in your reporting basis. For example, a discount or a known credit can change revenue per sold unit. If the revised scenario includes a higher price or different discounts, calculate it separately rather than assuming the one entered price represents both cases.
Cost per sold unit is separate from the cost of all inventory purchased. If you sold 650 units and bought more than that, the model multiplies only by the units sold. A product line with several different costs may require weighted quantities, depending on how your records measure cost. Use a consistent basis in both versions.
Gross profit does not measure all operating expenses in a business. The figure here follows the entered unit economics. Costs such as general administration or financing can affect the eventual income calculation without being part of the unit cost used for this model. Check which amounts your financial statements place above and below gross profit.
If unit cost varies among products, a company-wide gross margin needs total sales and total associated costs rather than an unweighted average of separate product margins. Use this tool for a comparable set of units, then aggregate the relevant cash values to build a broader view.
When keeping a sensitivity table, save the initial selling price, unit count and both costs next to the margin. That makes the dollar change reproducible and avoids interpreting a higher or lower percentage without seeing how much sales activity the result represents.
If you repeat the calculation for another supplier quote, hold the quantity and net revenue steady first. That makes the differences attributable to the competing costs.
Frequently asked questions
Can the new margin be negative?
It is negative when the revised unit cost exceeds the net revenue per unit. The result describes the gross loss under those entered figures.
Does selling more units change the margin?
When net revenue and cost per unit stay fixed, the percentage stays the same. The amount of gross profit rises or falls with the number of units sold.
What if the two unit costs are the same?
The margin and profit in both scenarios match. The detailed dollar change is zero.
Why can't I enter a selling amount of zero?
Margin divides gross profit by net revenue. Percentage margin is not defined on that basis if the revenue denominator is zero.