How to calculate ROAS for Shopify, and check Meta's number

ROAS is the revenue credited to your ads divided by what the ads cost. Ad revenue of $4,000 on $1,000 of spend is a ROAS of 4, also written 4:1 or 400%. The division is the easy part. The ad platform decides which revenue counts, so check its figure against your store's.

Cosmic AI cover for the topic Judging ads by margin: dots above and below one dashed line, lavender on dark purple.

Anyone can divide two numbers. The trouble with ROAS is that you only control one of them. You know what you spent. The revenue on top of the fraction is handed to you by the company that sold you the ads.

This is written for the owner or growth lead of a Shopify store who signs off on ad spend and gets a ROAS figure from a platform dashboard or an agency report. It shows how to calculate the figure, why Meta's version and Shopify's differ, and how to test a reported number against your own store data.

The ROAS formula: credited revenue ÷ ad cost

ROAS = revenue credited to the ads ÷ cost of the ads

$4,000 ÷ $1,000 = 4

A ROAS of 4 means four dollars of credited revenue for each dollar spent. The same result gets written as 4, 4:1, 4x or 400%, depending on the tool.

One formula that circulates under the ROAS name is a different metric. Revenue minus cost, divided by cost, is return on investment. On the numbers above it gives 3, where ROAS gives 4. If two reports disagree by exactly 1, this is usually why.

Calculate ROAS in three steps, and expect step 3 to move the number

  1. Fix the dates. Spend and revenue must cover the same period.
  2. Total the ad cost. Media spend is the minimum. Decide once whether agency fees and creative costs go in, and keep it that way.
  3. Choose whose revenue goes on top: the ad platform's count or the store's. This step moves the result more than any other. On the example brand below it is the difference between 2.96 and 4.11.

Then divide.

The ad platform decides which revenue counts

Inside an ad account, the platform fills in the revenue. Google Ads calls its version conversion value per cost and says it is total conversion value divided by the total cost of all ad interactions. The conversion value is what Google's tracking recorded. Meta's help center describes its own attribution system for crediting actions to ads.

The credit depends on rules, and the rules are settings. Google's page on attribution models explains that a model decides how much credit each ad interaction gets. Shopify's marketing reports offer five models of their own, from last click to linear. Change the model and the same orders produce a different ROAS without a single extra sale.

So a platform's ROAS is a claim: this much revenue happened because of our ads. It may be a fair claim. It is still made by the party that benefits from it, and it is worth a second opinion from your own store data.

Why Meta Ads ROAS is higher than what Shopify shows

Meta and Shopify look at the same store and keep different books, so a gap between their figures is expected before anyone makes a mistake. Three rules differ.

  • The window. Meta's help center says a purchase is credited to an ad if it happened within a certain number of days after someone viewed or clicked the ad, and that the numbers follow the attribution setting on each ad set by default. A view with no click can earn credit.
  • The rule for sharing credit. Shopify's marketing report opens on last non-direct click, which gives 100% of the credit for an order to the last channel the customer interacted with, leaving out direct visits. For example, a shopper who saw an Instagram ad and later bought through an email click can be Meta's in Meta's books and the email's in Shopify's.
  • The sum. Shopify's own "Any click" model gives full credit to each channel a customer clicked, and its page says the model "allocates more credit than orders you've received". Once credit can be claimed twice, the total can pass what the store sold.

Tracking also loses orders before any attribution rule applies. In an example 90 days, a reconcile check counts 500,987 orders in the store, 493,470 Placed Order events in Klaviyo and 465,913 purchases in GA4. That is 1.5% and 7.0% fewer than the store. These are example figures, not customer results, but they show that tools reading the same orders do not return the same count.

To find your own gap, use the same dates and time zone in both tools, write down each ad set's attribution setting, and view Shopify's report on last click and then Any click. The spread between the two is a rough range. Then run check 1 below.

One ad budget, four scores: 2.96, 4.11, 1.82 and 0.82

The figures in this table are example figures from an example store, not customer results. The example store is far larger than most, so read the shares and ratios, not the totals. They cover the last 30 days of the data. Meta is the only channel with ad spend, and the brand's costs are set at 42% product cost, $7.50 shipping an order and card fees of 2.9% plus $0.30. The spend is $4,044,339 in every row.

ScoreWhat goes on topResult per ad dollar
Platform ROASPurchase value Meta credits to its ads$2.96
Store revenue per ad dollar (MER)All net revenue, $16,610,912$4.11
Contribution margin before ads per ad dollar$7,376,779$1.82
Contribution margin after ads per ad dollar$3,332,440$0.82

The first two rows are reported figures. The last two are my own division.

Read down the column. Meta says each dollar brought back $2.96. The store took $4.11 for each ad dollar, counting every order from every source. After product, shipping and card fees, $1.82 of that was left. Pay back the ad dollar and $0.82 remains.

None of the four is the wrong one. They answer different questions, and only the last two know what an order costs to fulfil. MER vs ROAS goes further into why the first two rows differ.

Two checks that show whether a platform's ROAS holds up

Check 1: how much of the store is being claimed

Multiply the platform's ROAS by its spend to get the revenue it claims, then divide by the store's revenue for the same dates.

Meta's claim     = 2.96 x 4,044,339  = about $11.97 million
Share of store   = 11.97 ÷ 16.61     = 72%

That is my arithmetic on the same example figures. In the same 30 days Klaviyo credited its flows with 22.69% of net revenue. Together the two tools claim about 95% of the store, which leaves 5% for search, direct visits, email campaigns and every customer who simply came back.

There is no pass mark for this check. It is a smell test. When the claims from all your tools add up to more than the store sold, some orders are being counted more than once. When they add up to nearly all of it on a store where 72.85% of orders are repeat orders, as here, ask how many of those customers needed an ad. Klaviyo attributed revenue covers the email side of the same question.

Check 2: is it above break-even

A ROAS of 2.96 means little until it sits next to the ROAS at which an order pays for its own ad, which is 2.25 on the example brand.

Break-even ROAS = 1 ÷ contribution margin before ads
                = 1 ÷ 0.444 = 2.25

On the example store's figures, Meta's 2.96 clears 2.25, so on Meta's own count the ads pay for themselves with room left. The store-level 4.11 clears it by more. Break-even ROAS builds that 2.25 one order at a time.

If a platform's figure passes both checks, it has earned some trust. Proof that the sales were extra takes a holdout test, where a group of people is kept from seeing the ads and the difference is measured.

How to check whether your agency is overstating ROAS

A high figure is not proof that an agency is overstating, and a low one is not proof of care. What you can do is test the figure against numbers the agency does not supply.

  1. Ask for the definition: the attribution setting, the dates, and whether spend is media only or includes fees and creative. Each choice moves ROAS with no change in sales.
  2. Rebuild it. Divide purchase value from the ad account export by spend from the same export. A different result means a different definition.
  3. Ask whether a holdout test exists. Without one, the figure is a claim about orders, not a measure of extra ones.

Then test the figure against your store in four lines:

claimed revenue = reported ROAS x ad spend
share of store  = claimed revenue ÷ store net revenue, same dates
break-even ROAS = 1 ÷ contribution margin before ads
headroom        = reported ROAS - break-even ROAS

On the example brand's last 30 days, that is 2.96 x 4,044,339 = about $11.97 million, a 72% share of the store's $16.61 million, against a break-even of 2.25 and a headroom of 0.71.

On your own store, cosmic reconcile compares totals against an independent source record where one is available, and cosmic metrics show contribution_margin prints the one query behind the margin figure and what it assumes.

What is a good ROAS? One that clears your own break-even

A good ROAS is one that sits above your break-even by the margin you need to keep. That is the whole rule, and it is why published benchmarks are little help. A ROAS of 3 is healthy for a brand whose contribution margin before ads is 50%, since break-even is 2. It loses money at a 30% margin, where break-even is 3.33.

Work out your own line first. The contribution margin calculator gives you the margin, and one division gives you the break-even.

Five mistakes that move ROAS without moving profit

  • Comparing ROAS across platforms as if the units matched. Each platform counts by its own rules.
  • Changing the attribution setting between reports. Last month's number and this month's are then two different measurements.
  • Putting tax or shipping charged to the customer into revenue on one report and leaving it out of another.
  • Reading a higher ROAS as more profit. Cutting spend back to the best audiences can raise ROAS while total margin falls.
  • Stopping at ROAS. It ends at revenue. On the example brand a 2.96 ROAS sat beside $0.82 left per ad dollar after product, shipping, fees and the ads themselves. POAS puts profit on top of the same fraction.

Cosmic AI recomputes the bottom rows from your own costs

Cosmic AI is a free, open-source CLI and a Mac app that check supported figures against their source. Hosted Cosmic Cloud is on the waitlist. With your costs set, it computes contribution margin, so the bottom rows of the table above do not have to be worked by hand. It checks supported figures against their source before showing a number and answers "not enough data" when the data cannot support one. Every connection starts at read only. Once you raise it, agents in the Mac app act on their own inside the limits you set, and any kind of action you mark for review waits for you. The product page shows it, and marketing efficiency ratio covers the store-level ratio in full.

Frequently asked questions

Is a 1.5 ROAS good?

Only if your contribution margin before ads is above 66.7%, because break-even ROAS is 1 divided by that margin and 1 divided by 1.5 is 0.667. At any margin below that, each order loses money once the ad is paid for.

How to calculate ROI on marketing spend?

Subtract marketing cost from the profit the marketing produced, then divide by marketing cost. Use contribution margin for profit, not revenue. A campaign that cost $1,000 and produced $1,800 of contribution margin has an ROI of 80%. ROAS on the same campaign would use revenue and look far higher.

What is CTR and its formula?

CTR is click-through rate: clicks divided by impressions, multiplied by 100. An ad shown 10,000 times and clicked 150 times has a CTR of 1.5%. It measures whether people respond to the ad. It says nothing about revenue, which is what ROAS measures.

Why is my Meta Ads ROAS higher than Shopify shows?

Meta credits a purchase to an ad when it follows a view or click within the attribution window set on the ad set. Shopify's marketing report defaults to last non-direct click, which gives the whole order to one channel. Different credit rules applied to the same orders give different totals.

Is my agency overstating ROAS?

You can test it without assuming bad faith. Rebuild the figure from the ad account export, multiply it by spend, divide by Shopify revenue for the same dates, and compare it with your break-even ROAS. A claim near 100% of store revenue needs an explanation.

Check what went into your margin.

See the Cosmic command that shows the contribution margin calculation and its assumptions.

Cosmic AI is one desktop app where a lead agent and its specialists do the marketing work for a Shopify store. Each figure is checked against its source, and agents act on their own inside limits you set.

Book a callSee the margin command

Get Jake's AI newsletter

Three short emails a week with the AI news that matters for running or building a business. Every item links to its source.

I'll try to point you to something useful for it in your first email. No passwords or keys.

You will get Jake's newsletter and occasional Cosmic AI news. Unsubscribe in one click from any email. Privacy