Why WooCommerce Order Numbers Have Gaps (and How to Fix Them)

If you run a WooCommerce store, you may notice orders numbered #1842, #1848 and #1853 rather than #1842, #1843 and #1844. This is usually normal: WooCommerce’s internal IDs are unique, but they are not designed to form a consecutive customer-facing order sequence.

Why WooCommerce order numbers skip numbers

WooCommerce normally uses the order’s underlying ID as its order number. Depending on the site’s storage configuration and other activity, those IDs may not form a neat sequence. WooCommerce itself explains that its order IDs are not necessarily sequential (official troubleshooting documentation).

This is not generally evidence of lost orders. Before changing anything, distinguish between a missing displayed reference and a genuinely missing order in your admin.

Order ID versus order number: what is the difference?

Order ID is WooCommerce’s internal identifier. Extensions, payment providers, APIs and integrations may use it to identify an order. A customer-facing order number is the reference a customer or administrator sees in confirmation emails and the order list. A numbering extension can provide an orderly display reference without renumbering the underlying records.

This distinction matters if you connect WooCommerce to an ERP, accounting service, warehouse or fulfilment tool. Some integrations use the raw order ID rather than a custom displayed number. WooCommerce documents this distinction for its own sequential-numbering extension (WooCommerce extension documentation).

How to make WooCommerce order references sequential

  1. Back up and test first. Use a staging store with your current WooCommerce version and any payment, accounting and fulfilment integrations.
  2. Choose a numbering extension. Look for one that assigns a persistent sequential reference when each new order is created. Check that it supports High-Performance Order Storage (HPOS), your other plugins and your preferred prefix/format if needed.
  3. Make test orders. Create several orders using your normal checkout, then verify the displayed number in the order list, customer confirmation and relevant integrations.
  4. Check edge cases. Test cancellations, refunds, abandoned checkouts, simultaneous checkouts and any orders created through the API. Do not assume refunds or cancelled orders should reuse reference numbers.
  5. Go live only after reconciliation. Confirm with whoever handles bookkeeping and invoicing which number is the authoritative reference. If you require a legally gap-free invoice sequence, get accounting advice: order references and invoice numbers are not automatically interchangeable.

What about WooCommerce HPOS?

HPOS stores WooCommerce order information in dedicated tables. It changes how extensions should access orders, so compatibility should be tested rather than assumed. See the official WooCommerce HPOS developer documentation. Avoid plugins that directly alter internal order IDs or rely only on old WordPress post-table assumptions.

A free option: SequenceGuard

We built SequenceGuard for WooCommerce to give new orders a persistent sequential reference while leaving the underlying WooCommerce order ID intact. The Free version is available on WordPress.org; you can test it on staging without buying anything.

Before installing: check the plugin’s current compatibility information and test any ERP, shipping, invoice or payment integration that displays or transmits order numbers. If you have a workflow that needs different numbering behaviour, tell us what it is at Built by Ollie—practical reports from working stores help us improve the plugin.