Skip to main content
Check Digit Calculator
Government

Swedish Personal Number Validator

Validate a Swedish personnummer checksum using Luhn. Review the birth-date and serial payload and compare its final check digit.

Last updated:

Government & Identity Numbers

Verify personal identifier checksums.

Length: 10 chars
Calculated Check Character / Checksum
--Ready
Complete Validated Sequence:
--
Arithmetic Steps & Mathematical Specification

Initialising algorithm engine for Swedish Personal Number Validator...

How Swedish Personal Number Validator Works?

The Swedish Personal Number Validator applies Luhn to the 9 digits YYMMDDNNN. It compares that result with digit 10 of the personnummer.

  1. 1Convert the 12-digit form (YYYYMMDD-NNNC) to 10 digits by dropping the century.
  2. 2Multiply the first 9 digits by 2, 1, 2, 1, 2, 1, 2, 1, 2.
  3. 3Add the digits of each product.
  4. 4Compute (10 − (S mod 10)) mod 10.
  5. 5Compare the result with the last digit.

Swedish Personal Number Validator Formula

The personnummer formula is C = (10 − (Σ digitsum(dᵢ·wᵢ) mod 10)) mod 10, with wᵢ = 2, 1, 2… from the left.

S = Σ digitsum(dᵢ × wᵢ),  w = 2,1,2,1,2,1,2,1,2
C = (10 − (S mod 10)) mod 10   (SWEDISH PERSONAL NUMBER VALIDATOR)
  • NNN is the birth number; the 3rd digit is odd for men and even for women.
Worked example: 811218-987?
Luhn sum = 44
Check = 6
Personnummer = 811218-9876

Swedish Personal Number Validator Conversion Table

The personnummer conversion table lists sample birth dates and birth numbers with their check digit.

Date partBirth numberCheckPersonnummerGender
8112189876811218-9876Male
6408233234640823-3234Male
9001012344900101-2344Female
1212121212121212-1212Male
8507099805850709-9805Female

Samordningsnummer (co-ordination numbers) add 60 to the day and use the same check digit rule.

What is Swedish Personal Number Validator?

A Swedish Personal Number Validator is a tool that verifies the Luhn check digit of a Swedish personnummer issued by the Swedish Tax Agency (Skatteverket).

People aged 100 or more use + instead of - as the separator in the 10-digit form.

What are the uses of Swedish Personal Number Validator?

There are 3 main uses of the Swedish Personal Number Validator, including BankID sign-up, healthcare records, and payroll.

  • BankID and sign-up flows: Swedish services validate the number before identity checks.
  • Healthcare records: Regions check personnummer in patient systems.
  • Payroll: Employers validate employee numbers for tax reporting.