Structure of 9-digit CRA Business Numbers and 15-character accounts
Every federally registered Canadian business receives a unique 9-digit Business Number (BN) from the Canada Revenue Agency, which then acts as the root for one or more 15-character program accounts. As defined in the Canada Revenue Agency Business Number and Program Account Guide, a full account combines the 9-digit BN, a 2-letter program code, and a 4-digit reference serial.
Once you have verified a Canadian supplier’s or your own RT0001 identifier, you can issue compliant Canadian GST/HST invoices with verified supplier numbers using the matching invoice preset. Checking the structure first prevents typos on vendor onboarding forms and tax filings.
| CRA program code | Account type | Example 15-character format | Typical usage |
|---|---|---|---|
RT |
GST/HST | 123456782RT0001 |
Goods and Services Tax / Harmonized Sales Tax |
RC |
Corporate income tax | 123456782RC0001 |
T2 corporate tax filings |
RP |
Payroll deductions | 123456782RP0001 |
Employee source deductions and T4s |
RM |
Import-export | 123456782RM0001 |
CBSA customs and commercial imports |
RR |
Registered charity | 123456782RR0001 |
Official donation receipts and T3010 |
RZ |
Information returns | 123456782RZ0001 |
T5 investment or partnership returns |
RD / RE / RG / RN / SL / ZA / ZB |
Excise, luxury, digital, lumber | 123456782RD0001 |
Specialized federal excise and tax programs |
How does the Luhn Modulo-10 check digit validate a Business Number?
The 9th digit of a CRA Business Number is a Luhn Modulo-10 check digit computed across the first 8 digits, allowing instant offline detection of single-digit typos and adjacent transpositions. Any 9-digit string whose weighted digit sum is not divisible by 10 fails immediately before any program code is checked.
Step-by-step Luhn Modulo-10 math on the 9-digit root
Moving from right to left across the 9-digit BN, the Luhn algorithm doubles every second digit, subtracts 9 from any doubled value over 9, and sums all nine values. If the final total ends in 0, the root passes; for example, 123456782 passes while 123456789 fails.
According to the Canada Revenue Agency Business Registration Guide, the CRA assigns the 9-digit BN once per legal entity across federal tax programs. If you also onboard US vendors, you can compare format rules with the US Employer Identification Number format checker, which checks IRS campus prefixes since EINs lack a check digit.
Why all-zero roots and 0000 reference serials fail validation
All-zero roots (000000000) satisfy naive Modulo-10 arithmetic (0 % 10 === 0) unless explicitly blocked, so this validator rejects 000000000 outright. Likewise, valid 4-digit CRA reference serials run from 0001 through 9999, meaning 0000 is always flagged as invalid.
Unrecognized two-letter program codes also fail validation even if the 9-digit Luhn root is valid. Checking against the 13 active CRA program codes catches common transcription mistakes where a vendor mixes up RT (GST/HST) with RC (corporate tax) or RP (payroll).
Offline format validation versus live CRA GST/HST Registry checks
Passing a Luhn Modulo-10 check proves only that a number is mathematically well-formed, not that a business is actively registered to collect GST or HST. Knowing when to run a live registry lookup protects your Input Tax Credit (ITC) claims during an audit.
Confirming active registration for Input Tax Credits
To claim Input Tax Credits on supplier invoices, businesses must verify that the supplier’s RT account was active on the transaction date via the CRA GST/HST Registry Confirmation Service. Offline validation is ideal for cleaning vendor spreadsheets before performing live registry lookups on the passing rows.
Comparing federal RT accounts with Revenu Québec QST numbers
Quebec businesses generally hold both a 15-character federal CRA GST/HST account (9 digits + RT + 0001) and a separate 16-character Revenu Québec QST number (10 digits + TQ + 0001). Because QST numbers follow a distinct provincial format and registry, they will fail this federal CRA validator.
For teams managing international supplier tax IDs across Europe as well as North America, you can validate French 14-digit SIRET and 9-digit SIREN numbers offline using the same batch-check workflow.
Batch checking 1,000 accounts, CSV exports, and compliance scope
Accounts payable teams can paste up to 1,000 Business Numbers or 15-character program accounts at once without uploading supplier lists to a remote API. Exported spreadsheets preserve leading zeros and guard against formula injection.
Filtering Passed/Failed rows and exporting UTF-8 BOM spreadsheets
Use the All, Passed, and Failed filter tabs to isolate malformed vendor IDs, then export CSV (with a \uFEFF UTF-8 BOM and spreadsheetText() sanitization) or Excel (.xlsx). If you also verify Asia-Pacific suppliers, try the 13-digit New Zealand Business Number checker for GS1-compliant NZBN validation.
Tip: Strip spaces and hyphens or leave them in place when pasting, because the checker normalizes formatting automatically and outputs both
NormalizedandFormattedcolumns (such as12345 6782or123456782 RT0001) in the CSV export.
Local browser execution and non-tax-advice boundaries
All Luhn calculations and spreadsheet exports run inside your browser tab in 0 KB of server storage and 0 bytes uploaded over the network. When invoicing across Canadian provinces, review the CRA GST/HST Provincial Rate Schedule for current 5% GST and 13% to 15% provincial HST rates, and retain supporting supplier records for 6 years as generally required for CRA audits.
Informational scope notice: CRA program codes, provincial tax rates, and ITC documentation rules checked as of November 2026 are subject to statutory updates. This validator is an operational format-checking utility and does not constitute certified Canadian tax or legal advice.