Toolvito

Works on this device

Marketing Margin Calculator

See how much of your revenue is left after the cost of the goods, the other variable costs and the marketing. Find how many units pay for a marketing budget, and the ROAS and CPA at which your ads break even.

Enter your values

What is left of the revenue after the cost of the goods, the other variable costs and the marketing.

Your values

Sales in the period, without sales tax. In your own currency, with at most 2 decimal places.

What the goods or services that were sold cost you. In your own currency, with at most 2 decimal places.

Optional. Costs that grow with the sales, such as delivery, payment fees and returns. In your own currency, with at most 2 decimal places.

Advertising and other marketing in the same period. In your own currency, with at most 2 decimal places.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Calculate.

How to use this calculator

  1. Choose what you want to work out, for example Margin after marketing cost.
  2. Enter the amounts for one period, such as one month or one campaign, in your own currency.
  3. Choose Calculate. The result shows each margin as an amount and as a percent of the revenue, with the working.
  4. For the ads, choose Break-even ROAS and CPA from a margin, or the other way round, Margin needed to break even at a ROAS or a CPA.

The formulas

  • Gross profit = revenue − cost of the goods sold. Gross margin = gross profit ÷ revenue × 100.
  • Contribution before marketing = revenue − cost of the goods sold − other variable costs (delivery, payment fees, returns). Contribution margin = contribution ÷ revenue × 100.
  • Margin after marketing = contribution before marketing − marketing cost. As a percent: ÷ revenue × 100.
  • Contribution for each unit = price − variable cost of one unit. Units that cover the marketing = marketing cost ÷ contribution for each unit, rounded up.
  • Break-even ROAS = 1 ÷ margin (as a fraction). Break-even ACoS = margin. Break-even CPA = revenue for each order × margin.
  • Target ROAS = 1 ÷ (margin − profit to keep). Target CPA = revenue for each order × (margin − profit to keep).
  • Margin needed for a ROAS = 1 ÷ ROAS. Margin needed for a CPA = CPA ÷ revenue for each order.

Worked example

Revenue 50,000.00, cost of the goods 22,000.00, other variable costs 4,000.00, marketing 9,000.00. Gross profit = 28,000.00 (56.00%). Contribution before marketing = 24,000.00 (48.00%). Margin after marketing = 24,000.00 − 9,000.00 = 15,000.00, which is 30.00% of the revenue. Marketing is 18.00% of the revenue.

One unit sells for 40.00 and costs 22.00, so it leaves 18.00 (45.00%). A marketing cost of 9,000.00 is covered by 9,000.00 ÷ 18.00 = 500 units. At 1,200 units the margin after marketing is 1,200 × 18.00 − 9,000.00 = 12,600.00.

With a margin before ad cost of 35% and 80.00 revenue for each order, the break-even ROAS is 1 ÷ 0.35 = 2.86 and the break-even CPA is 80.00 × 0.35 = 28.00. To keep 10% of the revenue as profit, the target ROAS is 1 ÷ 0.25 = 4.00 and the target CPA 20.00.

Related calculators

Limits you should know

  • The amounts are your own. This tool holds no benchmark margins or costs, and the numbers the page starts with are examples only.
  • Fixed costs other than marketing, such as rent and salaries, are not part of these margins.
  • The ROAS and CPA formulas count the ad cost only. If your marketing cost has other parts, such as agency fees, add them to the ad cost.
  • Money totals are rounded to the cent. The result is arithmetic on your numbers; it is not business or financial advice.

Related tools