Skip to main content
Guides

What Is a Rolling 30-Day Purchase Limit? Rolling Windows vs Calendar Months Explained

Jahangir AlamNovember 22, 2026Facts checked November 22, 20267 min read

A rolling 30-day purchase limit caps how much one customer can buy within the last 30 days, counted back from today. Every purchase counts for 30 days and then drops out. There's no reset date: the allowance comes back purchase by purchase, as each one ages out of the window.

Short version: a monthly limit asks "how much this month?". A rolling limit asks "how much in the last 30 days?". The second has no 1st of the month to wait for, and no month boundary to buy across.

What does a rolling 30-day limit mean?

Picture a window 30 days wide that moves forward one day at a time. On any given day, the store looks back over that window and adds up what the customer bought: units, orders, spend or weight, depending on the limit. If the new order would take the total over the cap, it's refused.

The window is "rolling" because it never starts or stops on a fixed date. Tomorrow it covers a slightly different 30 days than today, so the oldest day drops out and today joins. The same idea is called a sliding window or a trailing window elsewhere, for example in rate limiting or in "trailing 30-day" sales figures.

Rolling windows are common wherever a limit has to be fair over time rather than tidy on a calendar. One well-known example is in US law: the Combat Methamphetamine Epidemic Act limits pseudoephedrine purchases to 9 grams per customer within a 30-day period, regardless of the calendar month.

Rolling 30 days vs calendar month

Rolling 30 daysCalendar month
ResetsNever all at once; each purchase drops out 30 days after itFor everyone on the 1st
Buy on the 31st, again on the 1stBlockedAllowed
Gap between allowancesAt least 30 daysAnything from 1 day to almost 2 months
Rush on the 1stNoOften
Easy to explain"One every 30 days""One per customer each month"
FitsFair shares, scarce stock, allocationsCalendar restocks, monthly allowances

Neither one is better in general. A calendar month is easier to say on a product page and lines up with monthly restocks. A rolling window is harder to game and spreads demand out.

A worked example

Take a limit of 1 bag per customer, and a customer who buys on these days:

PurchaseCalendar month (1 per month)Rolling 30 days (1 per 30 days)
March 31Allowed (first in March)Allowed
April 1Allowed (first in April)Blocked: March 31 still counts
April 15Blocked: April's allowance usedBlocked: March 31 still counts
April 30BlockedBlocked: March 31 counts through today
May 1Allowed (first in May)Allowed: March 31 has dropped out

The calendar limit let the customer buy two bags in two days, then nothing for a month. The rolling limit kept them a month apart. (The day an allowance comes back depends on how a system counts days; the example uses OrderRules' counting, explained below.)

With a higher cap the window works the same way, it just holds more. With 3 units per 30 days, a customer who buys 2 on March 1 and 1 on March 10 has used the allowance. On April 1, the March 1 purchase drops out and 2 units come back. On April 10, the March 10 one drops out too.

When does a purchase stop counting?

That depends on how a system counts days, so check it before you write the rule on your product page. Two details matter:

  1. Whose day counts. Almost always the store's timezone, not the customer's.
  2. Whether the order day itself is day 0 or day 1. This decides whether the allowance comes back on day 30 or day 31.

In OrderRules, an order counts on the day it's placed and on the 30 days after it, in your store's timezone, and stops counting at midnight after that. An order placed on March 3 counts through April 2 and stops counting on April 3.

What a rolling limit can count

A rolling window works for any kind of limit, not just units:

  • Units: "2 of this product every 30 days."
  • Orders: "1 order every 30 days," whatever is in it.
  • Spend: "$500 every 30 days" on a collection.
  • Weight: "40 lb every 30 days," for flat-rate shipping caps or fair shares of a harvest.

It can apply to one product, a collection, or the whole store. The narrower the scope, the less it gets in the way of everything else a customer buys.

Why stores use rolling limits

  • Scarce products. Seasonal sweets, rice, a popular sauce, a monthly coffee release: everyone gets a turn, and nobody buys two allowances across a month boundary.
  • Allocations and fair shares. When supply is fixed, a rolling cap spreads it across customers and across the month.
  • No rush on the 1st. Monthly resets send everyone back on the same day. A rolling window spreads repeat purchases out.
  • Harder to game. There's no reset date to wait for, so there's no trick to it.

The trade-off is the message. "One per customer each month" is instantly clear; "one every 30 days" needs a line more. Put it on the product page, so nobody finds out at checkout.

What a rolling limit can't do on its own

A rolling purchase limit counts customer accounts. It can't tell that two accounts belong to one person, or that two people share an address. And it only works if the store knows who the customer is, so it needs customers to log in. For very scarce releases, check shipping addresses on orders before you ship.

How to set a rolling 30-day limit on Shopify

Shopify can't do it on its own. Its quantity rules cap what's in a single cart, not what a customer bought before, so a customer can simply order again tomorrow. You need an app that remembers past orders and checks them at checkout.

In OrderRules:

  1. In Customer Limits, tick Enable per-customer limits.
  2. Add a rule: choose the Limit Type (Total Quantity (units), Number of Orders, Total Spend or Total Weight), the Scope (Storewide, Specific Product or Specific Collection), the Max Count, and Period Rolling 30 days.
  3. Check the wording in Settings β†’ Customer Limit Messages. One template covers every rule. For a rolling rule, word it without the period, for example You've already bought the most allowed for {product}: {value} per customer.
  4. Test it with a logged-in test customer: buy up to the limit, then try once more.

Checkout counts the cart plus the customer's past orders, including Shop Pay and other express checkouts. While customer limits are on, guest checkout is blocked across the store, and customers see your log-in message.

Two things to know before you switch it on:

  • It starts empty. The first time you add a rolling rule, only orders placed from then on are in the window. Set it up before a release, not after.
  • 30 days is the only rolling window. For other spans, use a calendar period: Per Week or Per Year.

Cancelling an order in full gives the allowance back; a refund on its own doesn't. POS orders aren't blocked, but they count toward the customer's limit. Per-customer limits are on the Pro plan.

Frequently asked questions

It's a cap on how much one customer can buy within the last 30 days, counted back from today. Each purchase counts for 30 days and then drops out, so the allowance comes back purchase by purchase instead of on a fixed reset date.

A monthly limit resets for everyone on the 1st, so a customer can use a full allowance on the 31st and another on the 1st. A rolling limit has no reset date: whatever was bought in the last 30 days counts, so buying on the 31st and again on the 1st is blocked.

Thirty days after it. In OrderRules, an order counts on the day it's placed and on the 30 days after it, in your store's timezone, and stops counting at midnight after that. An order placed on March 3 counts through April 2.

Close, but not the same. One per rolling 30 days means at least 30 days between purchases. One per calendar month allows two purchases a day apart, on the 31st and the 1st, and can also mean waiting nearly two months if a customer buys on the 1st and misses the next month.

To share scarce stock fairly. A rolling window removes the rush on the 1st and the double purchase across a month boundary, so popular products, allocations and fair-share items spread out more evenly.

Not with Shopify alone. Shopify's own quantity rules cap a single cart, not what a customer bought before. With OrderRules, add a customer limit with the period Rolling 30 days. It counts the cart plus the customer's past orders and blocks checkout over the limit. It's on the Pro plan.

Comparing apps?

See how OrderRules stacks up against every other Shopify app in this category.

Ready to take control of your orders?

Try OrderRules Free