> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upstackdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# MER (Marketing Efficiency Ratio): Formula and Examples

> MER is total ad spend divided by total order revenue. See how Upstack calculates MER from Meta, Google and TikTok ad spend, and how MER relates to ROAS.

> [!TIP]
>
> MER is the share of your store's revenue that goes back into ads. Upstack divides all spend from your connected Meta, Google and TikTok ad accounts by Total Revenue from your Shopify orders over the same dates. Lower is better.

## Formula

> [!NOTE]
>
> **MER** = ( [**Total Ad Spend**](https://docs.upstackdata.com/reference/metrics/advertising/blended/blended-spend.md) ÷ [**Total Revenue**](https://docs.upstackdata.com/reference/metrics/orders/revenue/total-revenue.md) ) × 100

### Formula Components

| Metric | Definition |
| - | - |
| [**Total Ad Spend**](https://docs.upstackdata.com/reference/metrics/advertising/blended/blended-spend.md) | Spend synced from every connected Meta Ads, Google Ads and TikTok Ads account, dated by the day it was spent |
| [**Total Revenue**](https://docs.upstackdata.com/reference/metrics/orders/revenue/total-revenue.md) | The order total at checkout (products after discounts, plus shipping and tax), dated by order creation, before refunds |

| Metadata | |
| - | - |
| **Type** | Percentage |
| **Data Source** | [Shopify](https://docs.upstackdata.com/sources/catalog/shopify.md), [Meta Ads](https://docs.upstackdata.com/sources/catalog/meta-ads/how-to-connect-meta-ads-to-upstack-data.md), [Google Ads](https://docs.upstackdata.com/sources/catalog/google-ads/how-to-connect-google-ads-to-upstack-data.md), [TikTok Ads](https://docs.upstackdata.com/sources/catalog/tiktok-ads/how-to-connect-tiktok-ads-to-upstack-data.md) |
| **Aggregation** | Ratio of period totals |

***

## How Upstack calculates MER

**Spend and revenue are matched by date, not by attribution.** For each day, Upstack takes that day's ad spend and that day's Shopify orders. No attribution model is involved, so an order counts toward MER whether it came from an ad, an email or a direct visit.

**Period totals are a ratio of sums.** For a month, Upstack divides the month's total spend by the month's total revenue. It doesn't average 30 daily MERs, which would let one low-revenue day distort the result.

**Your Reporting settings decide which orders count.** **Count pending orders as revenue**, **Count voided orders as revenue** and **Exclusion Filters** under **Settings → Reporting** all change Total Revenue, and with it MER.

**Only synced ad spend is in the numerator.** Agency fees, influencer payments and other costs you enter in [Cost Settings](https://docs.upstackdata.com/analytics/cost-settings.md) aren't part of MER, even when they're marketing costs.

***

## Example

A skincare brand spends **\$48,000** across Meta (\$31,200), Google (\$12,600) and TikTok (\$4,200) in April, and books **\$214,600** in Total Revenue. Spend was front-loaded for a launch in week 1:

| Week | Ad Spend | Total Revenue | Weekly MER |
| - | - | - | - |
| Week 1 | \$15,000 | \$45,000 | 33.33% |
| Week 2 | \$11,000 | \$56,600 | 19.43% |
| Week 3 | \$12,000 | \$58,000 | 20.69% |
| Week 4 | \$10,000 | \$55,000 | 18.18% |
| **April** | **\$48,000** | **\$214,600** | **22.37%** |

Upstack reports **22.37%** for April (\$48,000 ÷ \$214,600). Averaging the four weekly values would give 22.91%, because it weights the expensive launch week the same as the cheaper weeks that followed.

***

## How to interpret MER

* **Your margin sets the ceiling, not a benchmark.** If you keep 40 cents of each revenue dollar after product, shipping and payment costs, spending more than about 40% of revenue on ads loses money before fixed costs. [CM2 ROAS](https://docs.upstackdata.com/reference/metrics/orders/performance/cm2-roas.md) does this math with the costs you've configured.
* **A rising MER has two causes.** Spend grew faster than revenue, or revenue fell while spend held. Check [New Customer MER](https://docs.upstackdata.com/reference/metrics/orders/performance/new-customer-total-mer.md) and [Returning Customer MER](https://docs.upstackdata.com/reference/metrics/orders/performance/returning-customer-total-mer.md). Both use the same total spend, so a drop in repeat revenue pushes MER up even when acquisition is healthy.
* **Shipping and tax inflate the denominator.** For stores that collect a lot of either, [MER (Net Sales)](https://docs.upstackdata.com/reference/metrics/orders/performance/net-mer.md) is closer to product economics.
* **Use a week or longer.** Spend lands on the day an ad runs while the purchase may come days later, so daily MER is noisy.

***

## Why MER differs from ad platform ROAS

An ad platform's ROAS divides the conversion value that platform claims by that platform's spend. MER divides all store revenue by all platforms' spend. A platform can report a strong ROAS while MER worsens, for example when two platforms claim the same order. MER can't double-count an order, because each Shopify order appears once.

MER also won't match a Shopify report that subtracts returns. Total Revenue uses the order total at checkout, before refunds.

***

## FAQ

> [accordion] What's the difference between MER and ROAS?
>
> They use the same two numbers, flipped. Upstack's [ROAS](https://docs.upstackdata.com/reference/metrics/orders/performance/roas.md) is Total Revenue ÷ Total Ad Spend, so an MER of 25% is a ROAS of 4.0x. MER reads as a cost share of revenue, which makes it easier to compare with margin percentages.

> [accordion] What is a good MER?
>
> It depends on your margins. Work out the share of revenue you keep after variable costs. Your MER has to stay below it for ads to pay for themselves, and further below it to cover fixed costs.

> [accordion] Does MER include email, SMS or agency costs?
>
> No. The numerator is spend synced from connected Meta Ads, Google Ads and TikTok Ads accounts. Other marketing costs go in Cost Settings and reduce CM3 or CM4, depending on their category.

> [accordion] Why does MER change when I only edited my order settings?
>
> Total Revenue follows **Settings → Reporting**. Excluding pending or voided orders, or adding an exclusion filter, shrinks the denominator and raises MER.

***

## Related Metrics

| Metric | Relationship |
| - | - |
| [MER (Gross Sales)](https://docs.upstackdata.com/reference/metrics/orders/performance/gross-mer.md) | Same spend over line-item sales before discounts and refunds |
| [MER (Net Sales)](https://docs.upstackdata.com/reference/metrics/orders/performance/net-mer.md) | Same spend over sales after discounts and refunds |
| [New Customer MER](https://docs.upstackdata.com/reference/metrics/orders/performance/new-customer-total-mer.md) | Same spend over first-order revenue |
| [Returning Customer MER](https://docs.upstackdata.com/reference/metrics/orders/performance/returning-customer-total-mer.md) | Same spend over repeat-order revenue |
| [ROAS](https://docs.upstackdata.com/reference/metrics/orders/performance/roas.md) | Total Revenue ÷ Total Ad Spend |
| [CM2 ROAS](https://docs.upstackdata.com/reference/metrics/orders/performance/cm2-roas.md) | Margin after variable costs per ad dollar |

[See all Performance metrics →](https://docs.upstackdata.com/reference/metrics/orders/performance)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.