User Info Generator

SIN Validation Information

April 14th, 2016

Validate and learn how the validation works for the Canadian Social Insurance Number.

SIN Attributes

About the SIN number?

The Social Insurance Number (SIN) number originally created by the government of Canada to track and administer CPP, which was later taken over by the Canadian Revenue Agency (CRA) as a way to track an individuals reporting of taxes.

In the numbers

The first digit of a SIN usually identifies the province in which it was registered, as listed below. However, the government has found it necessary in the past to supply certain regions with SIN numbers assigned to other regions.

  • 1Atlantic Provinces (Nova Scotia, New Brunswick, Prince Edward Island, and Newfoundland and Labrador this may also cover overseas residents).
  • 2-3Qu├ębec
  • 4-5Ontario (#4 includes overseas forces)
  • 6Prairie Provinces (Manitoba, Saskatchewan, and Alberta), Northwest Territories, and Nunavut
  • 7Pacific Region (British Columbia and Yukon)
  • 8Not used
  • 9Temporary resident
  • 0Not used (Canada Revenue may assign fictitious SIN numbers beginning with zero to taxpayers who do not have SINs)

Luhn's Proof

Interactive example of how we did the validation above using Luhn formula.

As an example since you have not tried to validate a SIN Number yet we will use 087727814 as the test number to demonstrate how to use Luhn's formula.

0
0
0
8
16 (1+6)
7
7
7
7
7
14 (1+4)
5
2
2
2
7
14 (1+4)
5
8
8
8
1
2
2
x
x
= 36

The check digit (x) is obtained by computing the sum of digits then computing 9 times that value modulo 10 (so that is: (36 * 9 mod 10)).

In summary:

  1. Compute the sum of the digits (36).
  2. Multiply by 9 (324).
  3. Take the last digit (4).
  4. The result is your check digit.

Testimonials

"Incredible, usually for testing we have to obfuscate live user data, but with your data I was able to create a 1,000 users in only a few minutes."

Russ McEwan, Denver, CO

"Thanks this is exactly what I was looking for when I needed a lot of users created as test data."

Timothy Hardy, Chicago, IL

"So glad I stumbled on this site. Now I would not be able to do my job without these helpful generators. Thanks."

S. Rosario, Maryland