December 2, 202611 min read

How to calculate average order value (with examples)

To calculate average order value (AOV), divide your revenue for a period by the number of orders in that period. The formula fits on one line. Deciding which revenue goes in the top half takes longer, and so does working out why your store platform, analytics tool, and email platform each show a different number for the same month.

AOV measures revenue per order, which makes it one of the first numbers an ecommerce team reports and one of the easiest to get wrong. This guide is for the ecommerce and digital leaders who report it and the analysts who pull it. It works through both problems with one example store, and the short version fits in four points:

  • The denominator is orders, so customers, sessions, and items stay out of it.

  • Pick one revenue definition and keep it: gross product sales, product revenue after discounts, checkout total, or revenue kept after returns.

  • Your platform, analytics tool, and email platform won't match unless they use the same revenue and the same order rules.

  • When you blend segments, weight each AOV by its order count. Read the mean next to the median.

The AOV formula, with a worked example

AOV = revenue ÷ number of orders, both measured over the same period.

Every number in this post comes from Example Store, a fictional shop, so you can follow the arithmetic and swap in your own figures. In one month Example Store took 500 orders. Product sales before discounts came to $42,500, discounts to $3,500, shipping charged to customers to $2,500, tax collected to $3,120, and refunds for product returns to $4,000. Product revenue after discounts is $39,000, so AOV is $39,000 ÷ 500 = $78.00. The next section runs the same store four ways, and the four answers differ.

The calculation takes four steps:

  1. Pick a time frame, such as a month or a quarter.

  2. Decide what counts as revenue, and write the choice down.

  3. Count valid orders, applying the same rule to canceled and test orders every time.

  4. Divide revenue by orders.

How to calculate AOV in Excel or Google Sheets

Put your revenue total in cell B2 and your order count in cell B3, then type =B2/B3 in any other cell. A dashboard or CSV export from your store can supply both totals. If you have a column of per-order values instead, say C2 through C501 for 500 orders, =AVERAGE(C2:C501) returns the mean and =MEDIAN(C2:C501) returns the median. Both functions work the same way in Excel and Google Sheets. Calculate both, because the worked examples below show how far apart they can land.

Which revenue to use in the AOV formula

The $78.00 baseline is one of several defensible answers. Many explanations of AOV say "revenue" and don't define it, but revenue can mean at least four things, and on Example Store's 500 orders they produce four different AOVs.

Example Store, one month, 500 orders. All figures are illustrative.

Version

Revenue used

Example Store (500 orders)

Use it for

Gross product sales

Product sales before discounts

$42,500 ÷ 500 = $85.00

Matching tools that report gross sales

Product revenue after discounts

Gross minus discounts; no shipping, tax, or returns

$39,000 ÷ 500 = $78.00

Merchandising and free shipping threshold decisions

Checkout total

Product revenue plus shipping and tax

$44,620 ÷ 500 = $89.24

Tying out to order totals in your payment processor

Kept revenue

Product revenue after discounts and after returns

$35,000 ÷ 500 = $70.00

What you actually keep from sales

The four versions sit $19.24 apart, from $70.00 to $89.24, on the same 500 orders. The right-hand column is our recommendation and not an industry rule: we'd use product revenue after discounts for merchandising and free shipping threshold decisions, and kept revenue once you want to know what you actually keep from sales. Profit needs costs too, which AOV leaves out.

Settle the order count too. If a fully returned order drops out of the 500, decide that before you calculate and apply the same rule every period. Keep the period, channels, and currency the same each time you compare, or your trend line will show changes in your method more than changes in your shoppers.

Why your AOV doesn't match across Shopify, GA4, and other tools

Your tools make these choices for you, which is why the same month can produce a different AOV in each one. Pull AOV for the same month from your store platform, your analytics tool, and your email platform, and you'll often get three numbers. Three things usually cause the gap: each tool counts a different revenue, each treats returns and cancellations differently, and each has its own rules for what counts as an order.

What each tool's own documentation says. Check your own setup before you rely on it.

Tool

Revenue it counts

How it handles returns

Source

Shopify

Gross sales minus discounts, before post-order adjustments

Excluded. Edits, exchanges, and returns made after the order was created don't change it

Shopify Help Center, sales reports

GA4

Average purchase revenue; Google's definition doesn't spell out how it's calculated

Google defines purchase revenue as net of refunds; the average metric's definition doesn't mention them

Google Analytics Help, dimensions and metrics

Klaviyo

Whatever revenue and order data your store integration sends; Klaviyo recommends using your ecommerce platform's own values

For Shopify stores, only fully refunded orders count in the Refunded Order metric; partial refunds can cause differences

Klaviyo Help Center

Whichever tool you use, report one number and state its definition next to it, for example: "AOV of $78.00, product revenue after discounts, returns excluded."

How Shopify defines AOV

The Shopify Help Center defines average order value as gross sales minus discounts, divided by the number of orders. Post-order adjustments (edits, exchanges, and returns made after the order was created) are left out, and so are shipping and tax. Shopify's gross sales count pending, canceled, and unpaid orders and leave out test and deleted ones, which is one example of an order-counting rule you'd need to match.

On Example Store the Shopify calculation lines up with the product-revenue-after-discounts version: ($42,500 − $3,500) ÷ 500 = $78.00. You can find Shopify's reports under Analytics, then Reports in your admin. If your own calculation lands above or below Shopify's, check which revenue you divided and whether returns came out.

How Klaviyo and GA4 handle returns

Klaviyo's Help Center says returns and cancellations can cause differences between its reports and your ecommerce reports, and it recommends calculating AOV from your ecommerce platform's revenue and order values. For Shopify stores, its Refunded Order metric tracks only fully refunded orders, so partial refunds can cause differences too.

In GA4, Google's documentation defines purchase revenue as net of refunds, while the entry for average purchase revenue is a single line that doesn't say how it divides. Confirm what your property is dividing before you put its number next to a store report.

Worked examples: one store, several AOVs

Even with the definition settled, one store's AOV moves with the period you pick, with a single large order, and with returns.

Time period. Example Store's October brought 500 orders and $39,000 in product revenue after discounts, an AOV of $78.00. November, a Black Friday and Cyber Monday month, brought 900 orders and $58,500, an AOV of $65.00. Revenue rose and AOV fell. Blend the two months and you get 1,400 orders and $97,500, an AOV of $69.64, which describes neither month. This is one fictional store, so it says nothing about how Black Friday moves AOV in general.

A large order. Take ten orders: nine at $50 and one at $500. The total is $950, so the mean is $95 and the median is $50. One order moved the mean by $45, and nine of the ten orders were $50. Report the median next to the mean whenever order sizes are uneven. Our guide to increasing AOV goes further on what AOV hides.

Returns. Go back to the kept-revenue row. The same month is $78.00 or $70.00 depending on whether the $4,000 in returns comes out of revenue, so decide which you're reporting before the quarter starts.

How to segment AOV

So far Example Store has been one pool of orders. Splitting AOV into segments shows what's underneath the blended number: new and returning customers, channel, device, product category, and whether the shopper had a conversation with your team or an AI assistant before buying. Run each cut on your own data. Which segments run high and which run low varies from store to store, and another store's pattern is only a guess about yours.

When you blend segments, weight each one by its order count. Example Store's new customers placed 300 orders totaling $21,000, an AOV of $70.00. Returning customers placed 200 orders totaling $18,000, an AOV of $90.00. The blended AOV is $39,000 ÷ 500 = $78.00. Averaging the two segment AOVs gives $80.00, which overstates the blend because the higher-spending returning customers placed fewer of the orders.

Conversation-assisted orders deserve a cut of their own if shoppers can chat with you before they buy. Tag each order by whether the shopper talked with a team member or an AI assistant first, join your conversation records to your orders on order ID or customer ID in whatever tool you use, and compare AOV for the two groups. Read the result as an association. Shoppers who start a conversation may differ from shoppers who don't, so the gap can't tell you the conversation caused it.

Try Gladly AI right here

Curious how an AI shopping assistant handles a buying conversation?

Ask Gladly AI how it helps shoppers decide and check out in the same conversation.

How AOV relates to conversion rate, RPV, and CLV

Segments show what's inside the average. What moving it does to revenue depends on conversion, because AOV is one of three inputs: revenue = sessions × conversion rate × AOV. Example Store had 25,000 sessions at a 2% conversion rate, which is 500 orders, and 500 orders at $78.00 is $39,000. Revenue per visitor (RPV) equals conversion rate × AOV, so 0.02 × $78.00 = $1.56, and $39,000 ÷ 25,000 gives the same $1.56. Use the same denominator, sessions or visitors, in every number you compare. Our guide to the ecommerce conversion rate covers the other half of that product.

A higher AOV can still cost you revenue. Raise Example Store's AOV to $90.00 while conversion slips to 1.6%, and RPV falls to 0.016 × $90.00 = $1.44, below the $1.56 it started at. The average order got bigger and revenue went down.

AOV also feeds customer lifetime value (CLV). The standard formula in our customer lifetime value glossary multiplies average purchase value, purchase frequency, and customer lifespan, so AOV is the first of three inputs. The CLV guide covers the levers for the other two.

How to read your AOV once you have it

Once you have a number you trust, compare this month's AOV with the same month last year, since seasonality can swamp a month-over-month comparison. Then compare AOV with your free shipping threshold.

For what a good AOV looks like and how to move yours, read our guide to increasing average order value.

Gladly logo against green background

Gladly Editorial

Gladly Editorial covers customer experience, AI, and agentic commerce for CX and ecommerce leaders. Our posts draw on Gladly's product team, customer conversations, and more than a decade of building service for brands like Crate & Barrel, Ulta Beauty, and Tumi.

Frequently asked questions