How ABN Validation Works
The Australian Business Number uses a weighted mod-89 checksum with a twist — you subtract 1 from the first digit first. Here's exactly how it works.
What is an ABN?
An Australian Business Number (ABN) is an 11-digit identifier issued by the Australian Business Register (ABR) to businesses and organisations. It appears on invoices, tax documents, and contracts. While public, it is often surrounded by other sensitive data (bank details, names, addresses), so detecting it accurately matters for redaction and de-identification.
The Validation Algorithm
ABN validation uses a weighted checksum modulo 89. The quirk: before applying the weights, you subtract 1 from the first digit. Then each digit is multiplied by a fixed weight, the products are summed, and the result must be divisible by 89. This catches typos and random 11-digit numbers.
Step-by-Step Example
Let's validate the ABN 51 824 753 556. First, subtract 1 from the leading digit: 5 → 4, giving the working digits 4 1 8 2 4 7 5 3 5 5 6:
| Position | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Digit (−1 on first) | 4 | 1 | 8 | 2 | 4 | 7 | 5 | 3 | 5 | 5 | 6 |
| Weight | x10 | x1 | x3 | x5 | x7 | x9 | x11 | x13 | x15 | x17 | x19 |
| Product | 40 | 1 | 24 | 10 | 28 | 63 | 55 | 39 | 75 | 85 | 114 |
Sum: 40 + 1 + 24 + 10 + 28 + 63 + 55 + 39 + 75 + 85 + 114 = 534
Check: 534 ÷ 89 = 6 remainder 0 → Valid ABN
Why This Matters for PII Detection
Without the mod-89 checksum, any 11-digit number could be flagged as an ABN — phone numbers with area codes, account numbers, reference IDs. The checksum collapses the false positive rate.
The Weights
How WorkLens Uses This
WorkLens applies the mod-89 checksum as Layer 10 (Validators) in its 15-layer detection pipeline. When a regex pattern matches an 11-digit number, the validator subtracts 1 from the first digit, applies the weights, and checks divisibility by 89. If it passes, confidence is boosted to 0.95+. If it fails, the detection is suppressed — preventing false positives from phone numbers, account numbers, and random digit sequences.
The same checksum-before-flagging approach is used for TFN (mod-11 weighted checksum), Medicare (prefix + check digit), and credit cards (the Luhn algorithm). Validation runs entirely on your machine — no number ever leaves the browser.
Try it on your own data
Drop a CSV or XLSX file — WorkLens detects and validates PII in seconds. No signup required.
Start ScanningSign up for early access to:
Diagrams on this page are original to WorkLens. You may embed them with attribution: link back to theworklens.com.