How to plan an ecommerce ad budget: working backwards from target CPA
Plan your ad budget from your product's margin and your sales target, not from a guess. A step-by-step method for the test, scale and buffer parts of your budget.
Read the postROAS (return on ad spend) shows how much revenue each dollar spent on ads brings in. The formula: ROAS = revenue from ads ÷ ad spend. If you spend $1,000 and make $4,000 in sales, your ROAS is 4. A good ROAS differs for every business; to know whether you're profitable, you need your break-even ROAS (1 ÷ gross margin).
ROAS is one of the most discussed metrics in performance marketing, and one of the most misread. This article covers the formula, worked examples, how to find your own threshold, and what separates ROAS from ROI and CPA.
ROAS stands for return on ad spend: it compares the revenue an ad generates with the amount spent on that ad. Put simply, it answers the question "for every $1 I put into ads, how much in sales came back?"
ROAS is a revenue metric, not a profit metric. It is calculated before product cost, shipping, payment fees and returns are subtracted. So a high ROAS on its own doesn't mean you're profitable.
You calculate ROAS by dividing revenue from ads by ad spend. The formula is:
ROAS = revenue from ads ÷ ad spend
Step by step:
Example 1: Last week you spent $2,500 on Instagram ads and made $7,500 in ad-driven sales. ROAS = 7,500 ÷ 2,500 = 3. Every $1 of ad spend brought in $3 of revenue.
Example 2: You spent $4,000 on a campaign and made $6,000 in sales. ROAS = 6,000 ÷ 4,000 = 1.5.
ROAS is sometimes written as a percentage: a ROAS of 3 is the same as 300%.
To calculate ROAS, purchases and order values must be reported to the ad platform. This is usually done with the Meta Pixel installed on your site and the server-side Conversions API. Meta's Meta Pixel and Conversions API help pages describe both tools, and we cover setup step by step in our Meta Pixel and Conversions API guide.
If the purchase event doesn't send a value (amount and currency), the platform can see the number of sales but not the revenue, so ROAS can't be calculated. Reading an unmeasured ROAS as "0" is wrong: zero means there were no sales; without measurement, the correct answer is "unknown". In 14ads reports, too, ROAS is shown as "—" rather than "0x" when revenue isn't tracked.
Break-even ROAS is the ROAS at which an ad neither makes nor loses money, and it is calculated as 1 ÷ gross margin. Gross margin is the profit left after subtracting product cost and sale-related variable costs (shipping, payment fees, packaging, expected returns) from the selling price, divided by the selling price.
Break-even ROAS = 1 ÷ gross margin
Example: Your product sells for $50. Product cost is $20, shipping $4, payment fees $1.50, and packaging plus a returns allowance $4.50. Total variable costs are $30. Gross profit is $20, so gross margin is 20 ÷ 50 = 40%.
Break-even ROAS = 1 ÷ 0.40 = 2.5.
What does that mean?
The same ROAS of 2 is very profitable for a digital product with a 70% margin and a serious loss for an electronics product with a 30% margin. That's why comparing your ROAS with someone else's is misleading.
A good ROAS is one above your break-even ROAS that leaves the profit you're aiming for; there's no universal "good ROAS" number. You should derive your target ROAS from your own figures.
To set a target ROAS:
In this example, a ROAS of 3.33 or more is your target; between 2.5 and 3.33 means "profitable but below target", and below 2.5 means "losing money".
Maximizing ROAS doesn't always maximize profit. A very high ROAS target can push your ads toward a small audience already ready to buy, which shrinks sales volume. Sometimes a lower ROAS that is still above break-even, with far more sales, leaves more total profit. And a ROAS that looks low on the first order can be profitable over time if customers come back to buy again.
ROAS divides revenue by ad spend, ROI divides net profit by total investment, and CPA divides ad spend by the number of conversions. All three look at the same campaign from different angles.
One campaign, three views (example): You spent $300 on ads, made 20 sales and $1,000 in total revenue. Product, shipping and fee costs for those sales total $600.
A ROAS of 3.33 sounds strong, but the net return is only 11%. Which metric you watch depends on the decision you're making: ROAS and CPA for day-to-day campaign management, ROI for the overall profitability of the business.
To convert a target ROAS into a target CPA, divide your average order value by the target ROAS: target CPA = average order value ÷ target ROAS. This is handy if you're used to tracking cost per sale in your ads dashboard.
Example: If your average order value is $50 and your target ROAS is 3.33, target CPA = 50 ÷ 3.33 ≈ $15. As long as you get a sale for under $15, you're above your target ROAS. The same logic applies at break-even: 50 ÷ 2.5 = $20 is the most you can pay in ads for one sale in this example.
These two thresholds make budget decisions easier: if CPA is under $15, you can consider scaling; between $15 and $20, work on the creative and the page; above $20, pause the spend and find the cause. We cover planning a budget around these thresholds in our ecommerce ad budget planning guide.
To improve ROAS, you need either more revenue from the same spend or the same revenue from less spend. In practice, the most effective levers are:
When reading ROAS, watch the attribution window, measurement gaps and the period you choose; the same campaign can show a different ROAS under different settings.
A ROAS of 2 means every $1 spent on ads brought in $2 in revenue. Whether that is a profit or a loss depends on your costs: if your gross margin is below 50%, you lose money at a ROAS of 2, and if it is above 50%, you make money.
There is no single good ROAS that applies to everyone. First calculate your break-even ROAS: 1 ÷ gross margin. Above that number your ads are profitable, below it they lose money, and you set your target ROAS by adding the profit you want on top of break-even.
ROAS only divides ad revenue by ad spend; it ignores product cost, shipping and other expenses. ROI measures the net profit generated by the total investment. That's why ROAS can look high while ROI is negative.
ROAS is usually written as a ratio (e.g. 3 or 3x), but some tools show it as a percentage; a ROAS of 3 and 300% mean the same thing. When comparing numbers, make sure both are written the same way.
To calculate ROAS, purchase events and order values have to be reported to the ad platform. If your site has no pixel or server-side integration, or the purchase event doesn't send a value, the platform can't know the revenue and can't calculate ROAS.