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:
- Take the DNI number (8 digits)
- Divide it by 23
- Get the remainder of the division
- 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 |
---|---|---|
0 | T | Medium |
1 | R | High |
2 | W | Low |
3 | A | Very high |
4 | G | Medium |
5 | M | High |
6 | Y | Low |
7 | F | Medium |
8 | P | High |
9 | D | Very high |
10 | X | Low |
11 | B | High |
12 | N | Medium |
13 | J | Medium |
14 | Z | Low |
15 | S | High |
16 | Q | Low |
17 | V | Medium |
18 | H | Medium |
19 | L | High |
20 | C | High |
21 | K | Low |
22 | E | High |
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:
- What is a DNI? - For Spanish citizens
- DNI History - Evolution of the document
- Meaning of the letters - Complete table