Cart abandonment rate
Cart abandonment rate is the share of shopping carts that never become an order. It shows how much demand you lose between "add to cart" and payment, where fixes are often quick.
- Used in
- E-commerce
- Retail
Formula
- Carts created
- Sessions or users who added at least one item to the cart.
- Orders completed
- Of those, the ones that finished payment.
Try it with your numbers
Change any value and the result updates. Nothing you type leaves your browser.
Worked example
In a week, shoppers create 4,000 carts and complete 1,200 orders. Abandonment = (4,000 − 1,200) ÷ 4,000 = 70%.
How to read it
Break it down by step (cart, shipping, payment) and by device. A jump at one step, such as shipping costs shown late or a payment method missing on mobile, is usually where the money is.
How to calculate cart abandonment rate in SQL, Power BI and Excel
Copy, rename the tables and columns to match yours, and run. The SQL is written for PostgreSQL and works with small changes in BigQuery, Snowflake or SQL Server.
-- Weekly cart abandonment from site events
WITH carts AS (
SELECT date_trunc('week', event_time)::date AS week, session_id
FROM events WHERE event_name = 'add_to_cart'
GROUP BY 1, 2
), orders AS (
SELECT DISTINCT session_id FROM events WHERE event_name = 'purchase'
)
SELECT week,
COUNT(*) AS carts,
COUNT(o.session_id) AS orders,
ROUND(100.0 * (COUNT(*) - COUNT(o.session_id)) / COUNT(*), 1) AS abandonment_pct
FROM carts c
LEFT JOIN orders o USING (session_id)
GROUP BY week
ORDER BY week;Cart Abandonment % =
VAR Carts = CALCULATE ( DISTINCTCOUNT ( Events[SessionID] ), Events[EventName] = "add_to_cart" )
VAR Orders = CALCULATE ( DISTINCTCOUNT ( Events[SessionID] ), Events[EventName] = "purchase" )
RETURN
DIVIDE ( Carts - Orders, Carts )=(B2-B3)/B2Excel: B2 = carts created, B3 = orders completed from those carts.
Common mistakes
- Counting by session when people often return later to buy. Check a user-level version too.
- Comparing with benchmarks measured on a different step (cart vs checkout start).
- Treating all abandonment as lost: some shoppers use the cart as a wish list.
Questions people ask
What is a normal cart abandonment rate?
Most published studies put average online cart abandonment around 70%, varying by sector and device. Measure your own trend and the drop at each checkout step.
What is the difference between cart and checkout abandonment?
Cart abandonment starts counting at "add to cart". Checkout abandonment only counts people who started checkout, so it is lower and closer to payment problems.
Want cart abandonment rate measured the same way everywhere?
We define it with your team, build it into your data and dashboards, and keep it right. See Product & funnel analytics, or start with a two-week Data Health Check.