How to validate a SIN

How to validate a SIN

Velocity uses the Luhn Algorithm to validate Canadian SIN. If the SIN provide cannot be validated through this calculation, it is not valid.

If you are receiving a validation error that a SIN is invalid, you would need to confirm the correct SIN with your client.

 

How it works:

046 454 286 <--- A fictitious, but valid, SIN

121 212 121 <--- Multiply every second digit by 2

The result of the multiplication is: 0 8 6 8 5 8 2 16 6

The add all of the digits together (note that 16 is 1+6):

0 + 8 + 6 + 8 + 5 + 8 + 2 + 1+6 + 6 = 50

 

If the SIN is valid, this number will be evenly divisible by 10