Canadian · Validation

Ontario health card number validator.

Check the format and check digit of an Ontario (OHIP) health card number, and see what the version code letters on the card are. Format and checksum only: it cannot look up a person or confirm coverage.

How it checks out: an Ontario health card number is 10 digits. The 10th is a MOD 10 check digit: double the 1st, 3rd, 5th, 7th and 9th digits (adding the digits of any two-digit product), add everything up, and subtract the units digit of the total from 10. The 1–2 letter version code printed after the number is not part of the checksum.

Source: Ontario Ministry of Health, Interface to Health Care Systems Technical Specifications v6.2, s4.14Verified 29 September 2026

Advertisement

Inputs

10 digits, optionally followed by a 1- or 2-letter version code. Spaces and dashes are ignored.

Result

Enter a health card number and press Check.

How the Ontario health card number check digit is calculated

An Ontario health card number (the number OHIP claims are billed against) is 10 digits, printed 1234-567-890. The Ministry of Health tells billing systems to verify it with its MOD 10 check digit routine before submitting a claim, to cut rejected claims.

  1. Take the first 9 digits and double the 1st, 3rd, 5th, 7th and 9th. If a product is 10 or more, add its two digits (so 18 becomes 1 + 8 = 9).
  2. Add those results to the untouched 2nd, 4th, 6th and 8th digits.
  3. Subtract the units digit of the total from 10 (a units digit of 0 gives 0). The answer must equal the 10th digit.

Worked example

From the Ministry spec: 987654321 → 9, 8, 5 (7 doubled is 14, 1 + 4), 6, 1 (5 doubled is 10, 1 + 0), 4, 6, 2, 2, which total 43. The units digit is 3, and 10 − 3 = 7, so 9876543217 is valid. This is the same as a standard Luhn check over all 10 digits. Change the last digit and the check fails: 9876543210 needs a 7, not a 0, so it is rejected, and so is 9876543211.

The version code

The one or two letters after the number are the card's version code, which changes when a new card is issued for the same number. Per the spec it is 1 or 2 letters, required on health-card claims, and it is not part of the checksum. This tool accepts it and shows it, but cannot tell whether it is the current version.

A second worked example, and what the check catches

Take the first nine digits 246813579. The 1st, 3rd, 5th, 7th and 9th digits are 2, 6, 1, 5 and 9. Doubled they are 4, 12, 2, 10 and 18, and adding the digits of the two-digit ones gives 4, 3, 2, 1 and 9. The untouched 2nd, 4th, 6th and 8th digits are 4, 8, 3 and 7. The total is 4 + 4 + 3 + 8 + 2 + 3 + 1 + 7 + 9 = 41. The units digit is 1, and 10 − 1 = 9, so the full number is 2468135799. Typed with any other last digit it fails.

What the check can and cannot catch, tested on that number: changing any one digit to any other digit (90 possible changes) always fails the check, and swapping two neighbouring digits fails too, with one exception. A 0 and a 9 side by side that are swapped give the same total, so that slip passes. In short, a pass means the number is well formed and has probably been typed correctly. It does not mean the number was issued to anyone, and a failure usually means a typing slip, not a fake card.

Sources

Common mix-ups

  1. Ontario Ministry of Health: Health Card Validation Reference Manual (Oct 2024)

Checked against these sources on .

Frequently asked questions

Can I look up my Ontario health card number online?

Not here: this tool only checks whether a number you type is correctly formed. Your number is printed on the front of your card. ServiceOntario can help if you have lost your card.

What is the version code on an Ontario health card?

The one or two letters after the 10-digit number. It changes when a new card is issued for the same number, and it is not part of the check digit.

Does a valid check digit mean the health card is active?

No. A valid check digit means the 10 digits are consistent. It does not show whether the card is issued, current or covered; this tool cannot verify that.

How many digits is an Ontario health card number?

Ten, usually printed 1234-567-890. The 10th digit is a MOD 10 check digit calculated from the first nine.

Format and checksum only — not a coverage check

This tool checks the number's arithmetic entirely in your browser. It cannot confirm that a card was ever issued, belongs to anyone, or gives current OHIP coverage; only Ontario's Health Card Validation service or a service provider can do that. Nothing you type is transmitted, stored, or logged.

Advertisement
Advertisement