The Lithuanian Asmens Kodas: Structure and Check Digit
How the Lithuanian personal code encodes century, sex and birth date, how its two-stage mod 11 check digit works and where the code is used.

The Lithuanian Asmens Kodas: Structure and Check Digit
Every person registered in Lithuania has a personal code, asmens kodas, printed on identity documents and used across public and private services. Its structure is the same as Estonia's, including the two-stage check digit. The Lithuania Personal Code Validator checks codes in bulk; this guide explains them.
The structure
An asmens kodas has eleven digits: G YYMMDD NNN K.
- G: century and sex.
- 1 male, 2 female: born 1800-1899
- 3 male, 4 female: born 1900-1999
- 5 male, 6 female: born 2000-2099
- YYMMDD: date of birth.
- NNN: serial number for people born on the same day.
- K: check digit.
The check digit
- Multiply the first ten digits by 1, 2, 3, 4, 5, 6, 7, 8, 9, 1 and add the products.
- Divide by 11; if the remainder is less than 10, it is the check digit.
- If it is 10, use the weights 3, 4, 5, 6, 7, 8, 9, 1, 2, 3; if the remainder is 10 again, the check digit is 0.
For 3870318174, the check digit is 5: 38703181745 belongs to a man born on 18 March 1987.
Where the code is used
- Identity cards and passports.
- The State Social Insurance Fund Board (Sodra), which records contributions and pays benefits.
- The State Tax Inspectorate.
- Healthcare and e-prescriptions.
- Banks and electronic identification.
Employers register new employees with Sodra using the personal code, so a typo delays the employee's social insurance record.
Foreigners
Foreign nationals with residence permits receive a personal code in the same format, issued by the Residents' Register.
Future reform
Lithuania has discussed moving to personal codes without personal data, as Latvia did in 2017. For now, the current format remains in use, and validators should support it.
Company codes
Companies have a nine-digit legal entity code, and VAT-registered businesses use LT plus a VAT code. These are different numbers and are not checked by this tool.
Privacy
The personal code reveals date of birth and sex. Lithuanian law limits its processing to cases provided by law, such as employment and healthcare. Avoid collecting it for marketing or loyalty schemes, and protect stored lists. The validator runs locally in your browser.
Common errors
- Wrong century digit, especially for people born after 2000 (5 or 6).
- Swapped date digits.
- Letters such as O instead of zero from scanned documents.
A second example
49001011238 is valid: a woman born on 1 January 1990.
Using the validator
Paste codes one per line. Each line shows the date of birth, sex and serial, or the reason for failure with the expected check digit. Export as CSV.
Validating both Baltic codes together
Companies operating in both Lithuania and Estonia can use one validation function for both countries' personal codes, since the format and check method are identical. Latvia is different and needs its own rules, especially for new codes starting with 32.
Developer checklist
- Accept 11 digits only.
- Check that the first digit is 1 to 6.
- Validate the date with the century from the first digit.
- Apply the two-stage check digit.
- Store the code as text and limit access.
Codes on documents
On Lithuanian identity cards the personal code appears on the front, under the name, and on passports in the personal data page. When copying it, check every digit: the most common mistakes are in the serial part, where there is no date logic to catch them, so only the check digit reveals the error.
Limits
A valid code does not prove that it was issued. The Residents' Register is the authority. This guide is general information.



