Explained4 min read

    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.

    Published May 2026 by WorkLens

    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.

    ABN Validation Flowchart
    YesNoYesNoReceive an 11-digit numbere.g. 51 824 753 556Strip spaces & punctuation→ 51824753556Is it 11 digits?Not an ABNWrong lengthSubtract 1 from the first digit5 → 4Multiply each digit by weightWeights: 10, 1, 3, 5, 7, 9, 11, 13, 15, 17, 19Sum all productse.g. 4×10 + 1×1 + 8×3 + ...Is the sum divisible by 89?sum % 89 === 0Valid ABNChecksum passedInvalid ABNChecksum failed

    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:

    Position1234567891011
    Digit (−1 on first)41824753556
    Weightx10x1x3x5x7x9x11x13x15x17x19
    Product4012410286355397585114

    Sum: 40 + 1 + 24 + 10 + 28 + 63 + 55 + 39 + 75 + 85 + 114 = 534

    Check: 534 ÷ 89 = 6 remainder 0Valid 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.

    Detection With vs Without Checksum
    Feature
    Regex Only
    Regex + Checksum
    Detects valid ABNs
    Rejects 11-digit phone numbers
    Rejects account / reference IDs
    False positive rate
    ~30%
    <2%
    Confidence level
    0.70
    0.95+

    The Weights

    ABN Digit Weights
    ×10
    Position 1
    after −1
    ×1
    Position 2
    Multiply by 1
    ×3
    Position 3
    Multiply by 3
    ×5
    Position 4
    Multiply by 5
    ×7
    Position 5
    Multiply by 7
    ×9
    Position 6
    Multiply by 9
    ×11
    Position 7
    Multiply by 11
    ×13
    Position 8
    Multiply by 13
    ×15
    Position 9
    Multiply by 15
    ×17
    Position 10
    Multiply by 17
    ×19
    Position 11
    Multiply by 19
    Important: A valid checksum confirms the number follows the correct mathematical pattern — it does not confirm the ABN is registered or active. The public ABN Lookup register is the authority for that. WorkLens validates the format, not the registration, and never transmits the number anywhere.

    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 Scanning

    Sign up for early access to:

    Deterministic morphingRealistic & token modesFormat-preserving encryption (FF1)Reversible with device keyCompliance packs

    Diagrams on this page are original to WorkLens. You may embed them with attribution: link back to theworklens.com.