How to Generate Invoice Numbers That Stay Sequential
· 5 min read
You send invoice 27, then next month you send 27 again because you forgot which number you were on. Now your accountant has two documents with the same reference and a client who paid the wrong one. That is the whole problem with invoice numbering: it only breaks when you least want it to, and it always breaks quietly.
The fix is boring and it works. Pick a starting number, pick a format, and increment by one every single time. No skipping, no restarting, no clever schemes tied to the client. Below is exactly how to set that up so it holds for years.
Pick a starting number you will not regret
Start with a plain integer. 1 works. So does 1000. There is no legal requirement to begin at any particular number in most places, and the higher-number-looks-established argument is mostly vanity. What matters is that the number increases by exactly one each time you issue an invoice.
If you have any reason to hide how few invoices you have sent, start at 1001 instead of 1. That is the only real decision here. Do not start at a random number like 4728, because a sequence that begins somewhere odd invites questions during a review. If you want the reasoning behind formats that hold up to scrutiny, invoice number formats that survive an audit covers what a reviewer actually looks for.
Choose a format and freeze it
A good format has a fixed structure and one part that increments. The rest is optional decoration. Here are three that work:
| Format | Example | What increments |
|---|---|---|
| Plain | 1042 | The whole number |
| Prefixed | INV-1042 | The digits after the prefix |
| Year plus counter | 2024-0042 | The counter, reset yearly |
Pad the counter with leading zeros so the numbers sort correctly. INV-0042 and INV-0420 line up in a folder; INV-42 and INV-420 do not. Four digits gives you room to ten thousand invoices before the width changes, which is enough for most businesses to never touch it.
Whatever you pick, freeze it. Do not switch from INV-1042 to 2024-INV-1043 halfway through the year. A format change mid-sequence is the most common way people end up with a gap they cannot explain later. If you want to reason through structure before you commit, invoicing numbering best practices walks through the tradeoffs.
About the year-reset format
The year prefix (2024-0001) is popular because it groups invoices by tax year at a glance. The catch is the January reset. When the clock rolls over, your counter goes back to 0001, and you have to remember to do that without breaking the padding. It is fine, but it is one more thing to get wrong. A single running counter that never resets is simpler and just as valid.
Never skip and never reuse a number
Two rules keep the sequence clean, and both are absolute.
First, never skip a number. If you delete a draft that was going to be invoice 44, do not leave a hole and jump to 45. Reuse 44 for the next real invoice. A gap in the sequence looks like a missing or hidden invoice to anyone reviewing your books, and you will spend an afternoon proving it was nothing.
Second, never reuse a number for a different invoice. If you need to change an invoice you already sent, do not issue a second document with the same number. Correct it with a new version or a credit note, depending on what changed. The difference between those two is explained in the practical difference between versions and amendments, and it matters because a reused number is what makes a client pay the wrong figure.
Do not encode the client into the number
It is tempting to build the client into the reference, like ACME-001 and BETA-001. Resist it. The moment you run per-client counters, you lose the one thing sequential numbering gives you: a single ordered list of everything you have ever billed. You also end up with two invoices numbered 001, which is exactly the collision you were trying to avoid.
Keep the client name in the client field, not the invoice number. One global sequence for the whole business. If a client's accounts payable team needs their own reference, that is what the purchase order field is for, not your invoice number.
Let the increment happen automatically
The reliable way to keep a sequence intact is to stop tracking it by hand. When you set your format once and each new invoice picks up the next number on its own, the two failure modes above (skipping and reusing) simply cannot happen. JupiterInvoice does this: you configure a number format that increments forever and every invoice you create follows it without you counting.
If you just need a number for a one-off invoice right now, the invoice number generator gives you a correctly formatted starting value you can carry forward. And when you are ready to send something real, you can create an invoice with the format already applied, generate a private link, and share it with your client. The recipient can add their own PO number without touching your sequence, because that edit is tracked as an amendment, not a new invoice.
Set your starting number, pick one format, and let it count up on its own. That single decision, made once, is the whole system.