Calculate direct margin percentage, margin amount, and required price from revenue, direct costs, selling price per unit or job, and quantity.

Use revenue and direct costs for the same period.

Uses the direct costs you enter. Costs not included here still reduce profit.

Direct Margin Formula

The calculator uses one of three formulas depending on the mode you select.

Total or unit direct margin (%):

Direct Margin % = (Revenue - Direct Costs) / Revenue × 100

Required price for a target direct margin:

Price = Direct Cost / (1 - Target Margin % / 100)
  • Revenue — sales dollars for the period, unit, or job.
  • Direct Costs — costs directly traceable to the chosen unit, job, or cost object. Keep the same cost scope in all comparisons.
  • Target Margin % — the direct margin you want to achieve, entered as a percent.
  • Price — the selling price needed to hit that target.

This calculator subtracts the direct costs you enter; costs excluded from the inputs are not deducted. Direct costs are traceable to a cost object and are not necessarily variable. Gross margin uses cost of goods sold; contribution margin uses variable costs. Use the same time period and same unit basis on both sides of the equation.

Reference Tables

The ranges below are illustrative scenarios retained from the original article, not verified industry benchmarks or recommended targets. Actual results depend on which costs are included.

Industry Illustrative Margin Range
Grocery / food retail15% – 30%
General merchandise retail30% – 50%
Restaurants60% – 70%
Construction / trades20% – 35%
Manufacturing25% – 40%
Professional services50% – 70%
SaaS / software70% – 85%

How to read your result:

Direct Margin Reading
Below 0%Selling at a loss before any overhead is covered.
0% – 20%Between $0 and $0.20 per revenue dollar remains before excluded costs.
20% – 50%Between $0.20 and $0.50 per revenue dollar remains before excluded costs.
50%+More than $0.50 per revenue dollar remains before excluded costs; this does not establish net profitability.

Example and Common Questions

Example. A job sells for $120. Materials and direct labor are $75. Direct margin amount is $45. Direct margin percent is 45 / 120 = 37.5%. To raise that to a 50% target on the same $75 cost, the price would need to be 75 / (1 − 0.50) = $150.

Is direct margin the same as gross margin? No. Gross margin uses cost of goods sold, which can include allocated production overhead. This calculator uses the direct cost scope you enter. If those inputs are variable costs, the result is a contribution margin.

What counts as a direct cost? A cost directly traceable to a chosen product, job, or service. Direct materials and traceable labor are common examples. Direct and variable are different classifications; not every direct cost changes with each sale.

What about rent and salaries? Classify them according to the chosen cost object. Exclude unallocated overhead if it is outside your direct cost scope, and account for excluded costs separately when assessing profit.

Why does the target price formula divide by (1 − margin)? Because the margin is a percent of price, not cost. Dividing the cost by the leftover share of price (1 − margin) gives the price where costs sit at exactly that share.