Skip to main content
Check Digit Calculator
Government

South African ID Checksum Validator

Validate a South African ID checksum using Luhn. Compare the calculated check digit with the thirteenth digit of the supplied number.

Last updated:

Government & Identity Numbers

Verify identifier checksum consistency.

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

Initialising algorithm engine for South African ID Checksum Validator...

How South African ID Checksum Validator Works?

The South African ID Checksum Validator applies Luhn to the first 12 digits. It compares the result with digit 13 of the South African identity number.

  1. 1Confirm 13 digits: YYMMDD SSSS C A Z.
  2. 2Check that YYMMDD is a real date.
  3. 3Double every second digit from the right of the first 12 digits (positions 12, 10, 8…).
  4. 4Add all digits and compute (10 − (S mod 10)) mod 10.
  5. 5Compare the result with the 13th digit.

South African ID Checksum Validator Formula

The South African ID formula is Z = Luhn(d₁…d₁₂).

YYMMDD = date of birth
SSSS: 0000–4999 female, 5000–9999 male
C: 0 = SA citizen, 1 = permanent resident
Z = (10 − (LuhnSum(d₁…d₁₂) mod 10)) mod 10
  • A is digit 12, historically a race marker and now usually 8.
Worked example: 800101 5009 08?
Luhn sum = 33
Check = 7
ID = 800101 5009 087
Born 1 January 1980, male, SA citizen

South African ID Checksum Validator Conversion Table

The South African ID conversion table decodes sample IDs into birth date, gender, citizenship, and check digit.

ID numberBirth dateGenderCitizenshipCheck
800101500908701/01/80MaleCitizen7
950630012308730/06/95FemaleCitizen7
021225789118525/12/02MalePermanent resident5
770415498308415/04/77FemaleCitizen4

What is South African ID Checksum Validator?

A South African ID Checksum Validator is a tool that checks the Luhn check digit of a 13-digit South African identity number issued by the Department of Home Affairs.

The number encodes date of birth, gender, and citizenship status. A valid checksum combined with a real date filters out most typing errors.

What are the uses of South African ID Checksum Validator?

There are 3 main uses of the South African ID Checksum Validator, including FICA checks, payroll setup, and form validation.

  • FICA checks: Banks pre-validate IDs under the Financial Intelligence Centre Act.
  • Payroll setup: Employers check IDs for tax and UIF registration.
  • Form validation: Websites reject invalid IDs on entry.