Formula
Campaign cost = Campaign spend + Creative, landing page and agency costs. Revenue = Funded deals × Revenue per funded deal. Gross profit = Revenue × Gross margin on that revenue.
ROI (on gross profit) = (Gross profit − Campaign cost) ÷ Campaign cost. Net profit = Gross profit − Campaign cost.
ROAS = Revenue ÷ Campaign spend (media only, the way ad platforms report it). Cost per lead = Campaign cost ÷ Leads generated. Cost per funded deal = Campaign cost ÷ Funded deals.
Payback period = (Campaign cost ÷ Gross profit) × Months over which revenue arrives, the time until cumulative gross profit equals the cost.
Worked examples
Example 1: a search campaign that funded 19 deals (tool defaults)
Inputs: $25,000 media spend, $4,000 of creative, landing page and agency costs, 410 leads, 19 funded deals, $4,100 revenue per funded deal, 70% gross margin, revenue arriving over 2 months. Campaign cost: $25,000 + $4,000 = $29,000. Revenue: 19 × $4,100 = $77,900. Gross profit: $77,900 × 0.70 = $54,530. ROI: ($54,530 − $29,000) ÷ $29,000 = 0.880, or 88%. ROAS: $77,900 ÷ $25,000 = 3.12x. Net profit: $54,530 − $29,000 = $25,530. Cost per lead: $29,000 ÷ 410 = $70.73. Cost per funded deal: $29,000 ÷ 19 = $1,526. Payback: ($29,000 ÷ $54,530) × 2 = 0.532 × 2 = 1.06, shown as 1.1 months. The campaign returned 88 cents of gross profit per dollar of cost and recovered its cost in about five weeks; it should be repeated and scaled in steps while cost per funded deal is watched.
Example 2: a social campaign with a thin margin
Inputs: $10,000 spend, $2,000 production, 150 leads, 5 funded deals, $3,000 per deal, 30% gross margin, revenue over 1 month. Cost: $12,000. Revenue: 5 × $3,000 = $15,000. Gross profit: $15,000 × 0.30 = $4,500. ROI: ($4,500 − $12,000) ÷ $12,000 = −0.625, or −63%. ROAS: $15,000 ÷ $10,000 = 1.5x. Net profit: −$7,500. Cost per lead: $80.00. Cost per funded deal: $2,400. Payback: ($12,000 ÷ $4,500) × 1 = 2.7 months, which here means the campaign would need to be run with the same results for almost three months of revenue to recover one month of cost, which is another way of saying it does not pay back. The ad platform would report 1.5x ROAS as a positive return; the marketing ROI calculator shows a loss of $7,500.
Example 3: 3x ROAS and still a loss
Inputs: $20,000 spend, no production cost, 300 leads, 15 funded deals, $4,000 per deal, 30% gross margin, revenue over 2 months. Cost: $20,000. Revenue: 15 × $4,000 = $60,000. Gross profit: $60,000 × 0.30 = $18,000. ROI: ($18,000 − $20,000) ÷ $20,000 = −10%. ROAS: $60,000 ÷ $20,000 = 3x. Net profit: −$2,000. Cost per lead: $66.67. Cost per funded deal: $1,333. Payback: ($20,000 ÷ $18,000) × 2 = 2.2 months. This is the case the tool's note warns about: a 3x ROAS is only profitable when gross margin exceeds one third, because the campaign has to earn its cost back out of margin, not revenue. At 70% margin the same campaign would return 110% ROI.