The check digit lets anyone detect a mistyped or fabricated VIN. It is defined in the US federal standard 49 CFR 565 and used by ISO 3779, and it is mandatory on North-American vehicles. Tesla follows it for cars sold in North America; vehicles built in Shanghai or Berlin for other markets sometimes do not match, so a mismatch there is not proof of a fake.

The algorithm

  1. Transliterate each letter to a number: A=1, B=2, C=3, D=4, E=5, F=6, G=7, H=8, J=1, K=2, L=3, M=4, N=5, P=7, R=9, S=2, T=3, U=4, V=5, W=6, X=7, Y=8, Z=9. Digits keep their value.
  2. Multiply each value by the weight of its position: 8 7 6 5 4 3 2 10 0 9 8 7 6 5 4 3 2. Position 9 (the check digit itself) has weight 0.
  3. Add all the products.
  4. Divide by 11. The remainder is the check digit; a remainder of 10 is written as X.
The four steps of the VIN check-digit calculation with the numbers for the example VIN
The whole calculation on one picture.

Worked example

Take the illustrative VIN 5YJ3E1EA2KF317000:

Pos1234567891011121314151617
Char5YJ3E1EA2KF317000
Value58135151–26317000
Weight876543210098765432
Product405661520310100184821635000

The products add up to 288. 288 ÷ 11 = 26 remainder 2, so the check digit must be 2 – exactly what the ninth character of that VIN is.

What if the check digit does not match?

  • Most likely a typo. Re-read the VIN from the windshield or door jamb. The classic confusions are 0/O, 1/I, 5/S, 8/B and 2/Z. TeslaVin tests every single-character change and suggests the corrections that produce a valid Tesla VIN.
  • A non-North-American build. The check digit is not legally required elsewhere, so some Shanghai and Berlin VINs do not satisfy the formula.
  • A fake or altered VIN. If the digit fails on a car that was sold in the US or Canada, treat it as a red flag and verify the VIN physically and through official records.

Why the weights?

The weights are chosen so that the most common mistakes – a single wrong character, or two neighbouring characters swapped – change the sum and are caught. It is not a security feature: anyone who knows the formula can compute a valid check digit for an invented VIN, which is why a valid digit alone never proves a car is genuine.

Check yours: open any result in the TeslaVin decoder and expand “How the check digit is calculated” to see this table for your VIN.

Sources & further reading