How to Calculate Average Order Value Correctly
To calculate average order value, divide revenue by the number of orders over the same period: AOV = revenue ÷ orders. The arithmetic is never the problem. The problem is that “revenue” and “orders” can each be defined in several reasonable ways, and Shopify itself uses more than one of them. The AOV on your Shopify Home screen, the AOV in your analytics reports and the AOV in GA4 can all be correct and still disagree.
This guide covers the average order value formula, what belongs on each side of it, why the same store produces different AOVs, and which version to use for which decision. Every platform definition below is quoted from Shopify’s Help Center or Google’s own documentation.
The average order value formula
The formula has two inputs and one rule: both inputs must cover the same period and use the same basis every time you run it.
Average order value = revenue in the period ÷ orders in the period
Before you calculate anything, make four decisions and write them down, because every one of them changes the result:
| Decision | The options | What we recommend |
|---|---|---|
| Shipping and tax | Include them, or count product revenue only | Product revenue only. Shipping and tax are not merchandising. |
| Discounts | Before or after discounts | After. A discount is money you never received. |
| Returns | At the time of order, or net of later returns | Track both. They answer different questions. |
| Which orders count | Every order, or retail orders only | Exclude test, staff and wholesale orders from a retail AOV. |
Our average order value definition gives the short version. The rest of this guide explains why each decision matters.
Why one Shopify store has three different AOVs
Shopify does not use a single AOV definition across the admin. Three sources tell you three slightly different things.
Shopify analytics reports
Shopify’s analytics field reference defines average order value as the “average value of orders placed, excluding any post-order adjustments”, calculated as (gross sales − discounts) ÷ orders. Gross sales is product revenue before discounts and returns. So this AOV is product revenue after discounts, at the moment the order was placed. Shipping and tax are not included, and later returns or edits do not change it.
Shopify Home and the marketing reports
The AOV on Shopify Home, and in the first- and last-interaction marketing reports, is built differently. According to the Help Center, it is the average value of all orders excluding gift cards, divided by the number of orders that contained at least one product other than a gift card. The order value includes taxes, shipping and discounts, before returns.
Because it includes shipping and tax, this figure will normally be higher than the analytics-report AOV for the same days. Neither is wrong. They measure different things.
GA4 and your ad platforms
GA4 does not calculate AOV from your orders. It calculates it from whatever your tracking sends with each purchase event. Google’s developer documentation tells implementers to set the purchase value to the sum of price × quantity for the items, and not to include shipping or tax, which are sent as separate parameters. GA4’s purchase revenue metric then subtracts any refunds it is told about.
Whether your setup follows that guidance depends on how it was built. Two well-known gaps also apply. Shopify documents that pixel-based analytics such as GA4 and Meta only see the initial purchase, so anything added on a post-purchase upsell page is missing. And if a purchase event fires without a stable transaction_id, duplicates can inflate the count. If your numbers look off, our GA4 and Meta Pixel setup guide for Shopify covers the tracking side.

A worked example: one order, two Shopify AOVs
Take a single illustrative order. These figures are made up to show the arithmetic. They are not from any store we have worked on.
| Line | Amount | Analytics-report AOV | Shopify Home AOV |
|---|---|---|---|
| Products at full price | $80 | Included | Included |
| Discount code | −$10 | Subtracted | Subtracted |
| Shipping charged | $6 | Not included | Included |
| Tax | $14 | Not included | Included |
| Order value used | $70 | $90 |
Same order, same day, a $20 difference. Across a month of orders, a gap like that is easy to read as a change in customer behaviour when it is only a change in definition. It happens whenever one person reports from Home and another from the analytics reports.

Getting the order count right
The denominator gets less attention than revenue, but it moves AOV just as much. Before you trust the number, check what is being counted:
- Test and staff orders. Orders placed to test checkout or payments add to the count. Cancel or filter them out of any period you report on.
- Wholesale and B2B orders. One trade order can be worth dozens of retail orders. If both run through the same store, calculate retail AOV separately or it will jump every time a trade customer reorders.
- Gift cards. Shopify’s Home and marketing AOVs leave gift-card-only orders out of the count. If you calculate AOV yourself from an export, decide whether to do the same.
- Returns and exchanges. Shopify notes that returns generate order records. If you build AOV from a raw export, make sure you are counting customer orders and not every record.
Average or median: when the mean misleads
AOV is a mean, and a mean is pulled around by a few large orders. A store where most baskets hold one item but a handful of customers buy in bulk can report an AOV that very few real orders sit near. Set a free-shipping threshold just above that number and it is too high for the typical shopper.
The fix is simple. Export the order values for the period and calculate the median alongside the mean. If they are close, AOV describes a typical order well. If the mean sits well above the median, a minority of large orders is driving it. Report both, and use the median when you set thresholds.

Which AOV to use for which decision
There is no single correct AOV. There is a correct one for each question:
| The decision | Use this version | Why |
|---|---|---|
| Setting a free-shipping threshold | Median product subtotal after discounts | Shopify matches price-based shipping rates against the cart value after discounts and before tax |
| Ad budgets and break-even ROAS | The basis your ad platform reports on, checked against Shopify | Comparing a tax-inclusive AOV with a tax-exclusive ROAS overstates your margin |
| Tracking merchandising changes | Analytics-report AOV: (gross sales − discounts) ÷ orders | It isolates what customers put in the basket |
| Profit and lifetime value | Net of returns, segmented by new and returning customers | Returned revenue was never really earned |
The free-shipping row is where we see the most mistakes. A threshold calculated from a tax-and-shipping-inclusive AOV starts too high, because the checkout never compares it with tax or shipping. Our free-shipping threshold calculator works from your product-level figures. For the ad side, our guide to break-even ROAS shows how AOV and margin set the floor for profitable spend. And AOV is only one input to calculating customer lifetime value, which is the number that tells you what a customer is actually worth.
How to calculate average order value, step by step
- Pick the period. A calendar month is the usual choice. A week is too noisy for anything but a sanity check.
- Pick the basis and write it down. Product revenue after discounts is the most useful default. Note whether returns are netted out.
- Pull revenue and orders from the same source. Never divide revenue from one report by orders from another.
- Clean the order count. Remove test, staff and, for a retail figure, wholesale orders.
- Divide, then check the median. If the two are far apart, find out which orders are pulling the mean.
- Segment. Split by channel and by new versus returning customers. A blended AOV hides most of what matters.
For the division itself, our free average order value calculator does it and shows what a higher target is worth at your current order volume. Once the number is trustworthy, our guide on how to increase average order value without losing margin covers what to do with it.
FAQ
Does average order value include shipping and tax?
It depends on the source. Shopify’s analytics reports calculate AOV as (gross sales − discounts) ÷ orders, which excludes shipping and tax. Shopify Home and the marketing reports include them. For your own reporting, product revenue after discounts is the clearer basis.
Why is my Shopify Home AOV higher than my reports?
Shopify Home includes taxes and shipping in order value and is calculated before returns. The analytics-report AOV excludes shipping and tax. On the same orders, the Home figure will normally be higher.
Should I subtract refunds when I calculate AOV?
Keep two versions. AOV at the time of order shows what customers chose to buy and is the right measure for merchandising tests. AOV net of returns shows what you actually kept, and that is the one to use for profit and lifetime value.
The takeaway
Calculating average order value is one division. Making the number useful means agreeing what goes on each side of it, writing that down, and using the same basis every month. Pick a basis, clean the order count, check the median, and match the version to the decision. If your Shopify, GA4 and ad-platform figures disagree and you cannot see why, our free Shopify store audit includes a look at how your tracking is set up.