ROAS Calculator Widget
Add a ROAS calculator to your website. Advertisers enter the revenue their ads produced and what they spent, and with their gross margin see whether the campaign actually made money - not just how big the ROAS number is.
Live preview
Exactly what your visitors will seeUnder the widget on your page: Powered by A2Z Tools
Embed code
<iframe src="https://a2z.tools/embed/w/roas-calculator" title="ROAS Calculator by A2Z Tools" width="100%" height="590" style="border:0;width:100%" loading="lazy" allow="clipboard-write"></iframe>
A plain iframe. Works everywhere, including site builders that strip scripts. Adjust height if your content needs more room.
<div data-a2z-widget="roas-calculator" data-height="590"></div> <script async src="https://a2z.tools/embed.js"></script>
Adds a small script (what it does) that sizes the widget to fit its content, loads it lazily and keeps it isolated from your page's CSS.
Works with
How it works
ROAS is attributed revenue divided by ad spend, shown both as a multiple (4.17x) and a percentage (417%). On its own it says nothing about profit, so the widget, using the same engine as the A2Z ROAS Calculator, asks for an optional gross margin. From that it derives the break-even ROAS - the multiple at which the gross profit on ad-driven sales exactly pays for the ads - the profit left after ad spend, and a clear above or below break-even verdict.
Calculation method
- R = revenue attributed to the ads, S = ad spend, m = gross margin as a fraction (40% = 0.4)
- ROAS = R / S, shown to 2 decimals as a multiple and to 1 decimal as a percentage (x100)
- Break-even ROAS = 1 / m
- Profit after ad spend = R x m - S (money rounded to 2 decimals for display only)
- Return on ad spend (profit) = (R x m - S) / S
Worked examples
Profitable campaign at a 40% margin
Inputs: Revenue from ads 12,500; ad spend 3,000; gross margin 40%
Result: ROAS 4.17x (416.7%); break-even ROAS 2.5x; profit after ad spend 2,000.00; return on ad spend 66.7%
12,500 x 0.4 = 5,000 of gross profit, minus 3,000 of ads leaves 2,000, so the ads more than pay for themselves.
A 3x ROAS that loses money
Inputs: Revenue from ads 9,000; ad spend 3,000; gross margin 25%
Result: ROAS 3x (300%); break-even ROAS 4x; profit after ad spend -750.00; return on ad spend -25%
At a 25% margin the 9,000 of sales leave only 2,250 of gross profit, less than the 3,000 spent - a ROAS that looks healthy is below break-even.
Limitations
- Revenue is only as good as the attribution behind it: a 7-day-click window and a 28-day-click window, or last-click versus data-driven attribution, can give the same campaign very different ROAS. Use the same setting for revenue and spend.
- View-through conversions, returns, refunds and cancelled orders are not removed; enter revenue net of them if your ad platform counts them.
- Gross margin here is one blended figure. If products with very different margins sell through the ads, the break-even ROAS is an average and some products can still lose money.
- Agency fees, creative production and tool subscriptions are not part of ad spend unless you add them to it.
Where publishers use it
- PPC and paid-social agency blogs explaining campaign reporting to clients
- Ecommerce guides on setting a target ROAS in Google Ads or Meta Ads
- Marketing course pages on unit economics
- Founders' newsletters on when to scale ad spend
Questions
What is a good ROAS?
One above your break-even ROAS. At a 40% gross margin you need at least 2.5x just to cover the ads; at a 20% margin you need 5x. A universal 'good' number does not exist.
Is ROAS the same as ROI?
No. ROAS compares revenue with ad spend. ROI compares profit with cost. The widget shows both once you enter a margin.
Which revenue should I enter?
The revenue attributed to the ads for the same period and attribution setting as the spend - for example from your ad platform or analytics.
Why do Meta and Google report different ROAS for the same sales?
Each platform credits conversions using its own attribution window and model, and both may claim the same order. Summing platform-reported revenue therefore overstates the total; compare against orders in your store or analytics.
What is blended ROAS, or MER?
Total store revenue divided by total marketing spend across every channel, whatever the platforms claim. It sidesteps double-counted attribution and is a useful cross-check: if each platform reports 4x but blended revenue over spend is 2x, the platforms are overlapping.
How does a target ROAS in Google Ads relate to this number?
Google Ads expresses target ROAS as a percentage, so a 250% target is the 2.5x multiple here. Setting the target at or above your break-even ROAS keeps the bidding aimed at profitable conversion value.
Is campaign data sent anywhere?
No. The figures are calculated in the visitor's browser only.
Sources
- About Target ROAS bidding - Google Ads Help . Defines ROAS as conversion value per unit of ad spend: a 500% target means 5 of revenue for every 1 spent.
- Average cost-per-click (Avg. CPC): Definition - Google Ads Help . Ad spend in Google Ads reports is the total cost of clicks, the S used here.
Cite or recommend this tool
If you reference this tool in an article, course or documentation, these formats are ready to copy. They are optional - nothing is added to your site unless you paste it.
A2Z Tools ROAS Calculator https://a2z.tools/roas-calculator
<a href="https://a2z.tools/roas-calculator">A2Z Tools ROAS Calculator</a>
[A2Z Tools ROAS Calculator](https://a2z.tools/roas-calculator)
ROAS Calculator by A2Z Tools - https://a2z.tools/roas-calculator
Related widgets
-
Cost per click plus CTR, CPM, conversion rate and CPA from one campaign's totals.
-
Solve CPM, campaign cost or impressions from the other two.
-
Conversion rate from visitors and conversions, with an optional A/B comparison and z-test.
-
Profit, gross margin and markup from cost and price - or the price for a target margin.
-
Social media engagement rate by followers and by reach, for one post or several.
-
Tag a URL with UTM campaign parameters, keeping its query and #fragment, then copy it.