The cleanest way to measure the time between a customer’s first and second purchase is to take every customer who has ordered at least twice, calculate the number of days between their first order date and their second order date, and then look at the median of those gaps — not the average. The median tells you the day by which half your repeat buyers have come back. That single number is what you build your post-purchase timing around. If your median gap is 34 days, an offer that lands on day 3 is too early and an offer on day 90 is too late. This article is only about how to calculate that number correctly and read it honestly. What you then do with it — the timing of the second-purchase offer itself — is a separate decision I’ll point you to at the end.
The number you actually want, defined
There are three related figures people mix up, so let’s separate them.
- Time to second purchase — days between order 1 and order 2, measured only across customers who reached order 2. This is the one this article is about.
- First-to-second purchase rate — the share of first-time buyers who ever place a second order. Different metric, covered in what a healthy first-to-second purchase rate looks like.
- Average order gap — the spacing across all repeat orders, order 2 to 3, 3 to 4, and so on. Useful for replenishment, but it blurs the first gap, which behaves differently from every gap after it.
Keep the first one clean. Only customers with two or more orders count, because a first-time buyer who hasn’t returned yet has no gap to measure — including them as a zero or a giant number wrecks the figure.
Why the average lies and the median doesn’t
Say you pull the gap for a hundred repeat customers. Most come back somewhere between three and eight weeks. But a handful ordered again eleven months later — they’d forgotten you, then a birthday reminder or a random need brought them back.
Those few long tails drag the average way up. You could end up with an “average time to second purchase” of 70 days when three-quarters of your repeat buyers actually returned inside 40. Build your email timing on 70 and you’re mailing people two weeks after they’d already have bought.
The median ignores the outliers. It’s the middle value: line every gap up from shortest to longest and take the one in the center. For post-purchase timing, the median is the honest anchor. I’d also glance at the 25th and 75th percentile — the days by which a quarter and three-quarters of repeat buyers have returned — because that spread tells you how tight or loose your reorder window is.
🥇 Get more revenue from the traffic you already have.
Where the loss hides when you skip this
Most stores never measure the gap at all. They pick a post-purchase send time by gut — “let’s follow up after a week” — and never check it against how their customers actually behave.
Here’s the quiet cost. Imagine a store selling premium dog food. The bag lasts about five weeks for a medium dog. If that store sends its “ready for another order?” email on day 7, it’s talking to a customer whose cupboard is still full — the message gets ignored, and by the time the bag runs low on day 33, no reminder arrives. The reorder that should have been automatic drifts, and some of those customers wander to whatever ad catches them first when they run out.
The gap between “when we email” and “when they’re ready” is pure leaked revenue. You can’t close it until you’ve measured where the ready moment actually falls. And it varies enormously by what you sell — a coffee subscriber and a mattress buyer live on completely different clocks, which is why how product type changes the timing of the second-purchase offer is worth reading alongside this.
How to calculate it, step by step
You don’t need a data team. You need an export.
- Pull an orders export with, at minimum, customer ID (or email), order date, and order sequence. Most platforms let you export all orders as a CSV.
- Keep only customers with two or more orders. Sort by customer, then by date. Everyone with a single order gets set aside for the rate metric, not this one.
- For each customer, find order 1 and order 2 dates. Subtract the first date from the second. That’s their gap in days.
- List all those gaps in one column and take the median. In a spreadsheet that’s
=MEDIAN(range). While you’re there, grab=PERCENTILE(range,0.25)and=PERCENTILE(range,0.75)for the spread. - Sanity-check the extremes. A gap of 0 days usually means two orders on the same day (often a correction or a split shipment) — decide whether to merge or drop those. A gap of 400+ days is a genuine returner; keep it in the data but know the median already protects you from it.
That’s the whole job. Fifteen minutes with one export.
Read it by cohort, not as one blob
One store-wide median is a fine start, but the useful insight comes from cutting it.
Break the gap down by first product or first category. In a lot of stores the entry product quietly predicts the reorder clock: someone whose first buy was a consumable comes back on a tight, predictable cycle, while someone whose first buy was a one-off gadget may take months or never return in that category. If your data shows that split, you’ve found something you can act on — different first products deserve different follow-up timing.
Also watch the gap over time. Pull it for customers who first bought this quarter versus a year ago. If the recent cohort’s gap is stretching, something changed — a price rise, a stock problem, a weaker post-purchase follow-up — and the number is warning you early.
A simple worked example (illustrative)
Say you export and find these first-to-second gaps, in days, for ten repeat customers: 12, 19, 21, 26, 28, 31, 33, 40, 58, 240.
- The average is 50.8 days — dragged up almost entirely by that lone 240.
- The median is 29.5 days — the midpoint between the 5th and 6th values.
Twenty-nine days is the truth you’d plan around; fifty-one is a mirage. This is a made-up set to show the mechanic — run it on your own orders and the shape will differ, but the lesson holds: let the median lead. (Illustrative figures.)
Which metrics to track alongside it
The gap on its own is a timing input. Pair it with two or three others so it stays honest:
- Median first-to-second gap — your reorder-timing anchor, refreshed quarterly.
- 25th/75th percentile spread — how wide your reorder window is; a tight spread means a sharp send window, a wide one means a longer nurture.
- First-to-second purchase rate — whether people are returning at all, which no timing fix can rescue on its own.
- Gap by first product — where your follow-up timing needs to differ.
If the gap looks fine but the rate is falling, timing isn’t your problem — retention is, and that’s the diagnosis in what to change when repeat purchase rate drops after the first order.
How Omnisend makes this measurable and usable
You can get the median from a spreadsheet, and I’d start there — it costs nothing and forces you to look at your own raw data. Where a tool earns its place is turning that number into timing that fires on its own.
In Omnisend, customer lifecycle and purchase data sit on the profile, so once you know your median gap you can set a post-purchase automation to wait the right number of days before the next message rather than a guessed one. Its segmentation also lets you split customers by first product or category, which is exactly the cut that makes the gap actionable. I use it in my own stores for this after testing it against Klaviyo; the reason I stayed was the everyday self-service — building a segment and adjusting a delay didn’t need a specialist. Omnisend is an affiliate partner of Shopimation, and I recommend it from daily use. It won’t measure the gap for you out of the box, though; you still pull the number first, then let the tool act on it.
Your next step
Export your orders this week and calculate one figure: the median days between first and second purchase. Write it on a sticky note. Then take that number into the timing decision — how soon should you ask a first-time buyer to purchase again — and, when you’re ready to make it fire automatically, into a second-purchase automation every growing store should build.
