Validation of Medicare numbers

The Medicare card number comprises:

  • 8 digits
  • a check-digit (1 digit)
  • an issue number (1 digit)

Medicare card number check-digit calculation

The check-digit is the remainder of –

((digit 1) +
(digit 2 * 3) +
(digit 3 * 7) +
(digit 4 * 9) +
(digit 5) +
(digit 6 * 3) +
(digit 7 * 7) +
(digit 8 * 9)) / 10

Where digit 1 is the highest place value digit of the Medicare card number and digit 8 is the lowest place value digit of the Medicare card number.

As an example, for a Medicare card number of ‘2123 45670 1’, digit 1 is 2 and digit 0 is 7.

In addition, the first digit of the Medicare card number should be in the range 2 to 6.