> ## 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.

# Returning Customer CM4 per Order

> Returning Customer CM4 per Order is repeat-order margin after all ad spend and per-order fees, divided by returning customer orders. Recurring costs excluded.

> [!TIP]
>
> RC CM4 per Order is what an average repeat order leaves after product, fulfillment, payment, all ad spend, and every per-order fee you've configured. It doesn't include recurring expenses or variable costs, so treat it as unit economics, not a share of overhead.

## Formula

> [!NOTE]
>
> **RC CM4 per Order** = ( RC CM2 − RC Marketing order fees − **Total Ad Spend** − RC Agency Fees order fees − RC Opex order fees − RC Other order fees ) ÷ [**Returning Customer Orders**](https://docs.upstackdata.com/reference/metrics/orders/counts/orders.md)

### Formula Components

| Metric | Definition |
| - | - |
| [**RC CM2**](https://docs.upstackdata.com/reference/metrics/orders/contribution-margin/returning-customer-cm2.md) | Repeat-order margin after COGS, fulfillment, and payment fees |
| **RC order fees** (Marketing, Agency Fees, Opex, Other) | Order fees in those categories, on repeat orders only |
| [**Ad Spend**](https://docs.upstackdata.com/reference/metrics/advertising/blended/blended-spend.md) | Total spend across connected ad platforms, not split by customer type |
| [**Returning Customer Orders**](https://docs.upstackdata.com/reference/metrics/orders/counts/orders.md) | Number of returning customer orders in the range |

| Metadata | |
| - | - |
| **Type** | Currency |
| **Data Source** | [Shopify](https://docs.upstackdata.com/sources/catalog/shopify.md), [Cost Settings](https://docs.upstackdata.com/analytics/cost-settings.md), ad platforms |
| **Aggregation** | Average |

***

## Example

750 repeat orders in a month:

| Component | Total | Per returning customer order |
| - | - | - |
| RC CM2 | \$58,000 | \$77.33 |
| RC marketing order fees | −\$1,500 | −\$2.00 |
| Ad spend | −\$25,000 | −\$33.33 |
| RC agency order fees | −\$1,200 | −\$1.60 |
| RC opex order fee (support, \$0.60) | −\$450 | −\$0.60 |
| **RC CM4 per Order** | **\$29,850** | **\$39.80** |

***

## How It Works

The numerator uses costs stored on returning customer orders plus your **total** ad spend. [NC CM4 per Order](https://docs.upstackdata.com/reference/metrics/orders/contribution-margin/new-customer-cm4-per-order.md) subtracts the same full ad spend, so neither segment gets a lighter share of it.

Recurring expenses and Variable costs are not subtracted. They only reach the dollar [RC CM4](https://docs.upstackdata.com/reference/metrics/orders/contribution-margin/returning-customer-cm4.md), which carries the returning customer share of them. So RC CM4 per Order is usually higher than RC CM4 ÷ returning customer orders.

***

## When to Use

| Scenario | Action |
| - | - |
| LTV calculations | RC CM4 per Order × expected repeat orders = repeat-order margin over a lifetime |
| Comparing segments | Benchmark against NC CM4 per Order |
| Retention investment | Set loyalty program budget against RC CM4 per Order |
| Profitability analysis | Track profit per repeat order after per-order costs and ads |

***

## Related Metrics

| Metric | Relationship |
| - | - |
| [RC CM4](https://docs.upstackdata.com/reference/metrics/orders/contribution-margin/returning-customer-cm4.md) | Dollar version, including the returning customer share of recurring costs |
| [RC CM3 per Order](https://docs.upstackdata.com/reference/metrics/orders/contribution-margin/returning-customer-cm3-per-order.md) | Before agency, opex, and other order fees |
| [NC CM4 per Order](https://docs.upstackdata.com/reference/metrics/orders/contribution-margin/new-customer-cm4-per-order.md) | Same calculation for first orders |
| [LTV](https://docs.upstackdata.com/reference/metrics/orders/ltv) | Total customer lifetime value |

[See all Contribution Margin metrics →](https://docs.upstackdata.com/reference/metrics/orders/contribution-margin)


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