DNI Letter Calculator - Calculate your DNI letter online

This DNI letter calculator allows you to get the DNI letter instantly. Just enter the 8 numbers of your DNI and we will show you the corresponding letter according to the official algorithm. Ideal for finding the DNI letter or verifying if the letter is correct.

How to calculate the DNI letter?

To calculate the DNI letter, a specific mathematical process is followed:

  1. Take the DNI number (8 digits)
  2. Divide it by 23
  3. Get the remainder of the division
  4. Look up the corresponding letter in the official table

Formula to calculate the DNI letter

The formula to calculate the DNI letter is:

Letter = TABLE[dni_number MOD 23]

Where MOD is the mathematical operation that obtains the remainder of the division.

Official DNI letter table

This table shows which letter corresponds to each remainder:

Remainder Letter Frequency
0TMedium
1RHigh
2WLow
3AVery high
4GMedium
5MHigh
6YLow
7FMedium
8PHigh
9DVery high
10XLow
11BHigh
12NMedium
13JMedium
14ZLow
15SHigh
16QLow
17VMedium
18HMedium
19LHigh
20CHigh
21KLow
22EHigh

Frequently asked questions about the DNI letter

What does the DNI letter mean?

The DNI letter is a control digit that allows verifying if the number is correct and detecting transcription errors. It is not random, but mathematically calculated.

Why does my DNI have that specific letter?

The letter is assigned according to the remainder of dividing your DNI number by 23. Each possible remainder (0-22) has a specific assigned letter.

Can I choose my DNI letter?

No, the letter is mathematically determined by the DNI numbers. It is not possible to choose or modify it.

More information about the DNI

If you want to know more about the DNI and its letter, you can check: