Validate RFC (Mexico): tax ID checker with check digit
Check an RFC from Mexico for an individual (13 characters) or a company (12): structure, date, homoclave and check digit, with the reason for any error.
How to validate an RFC in Mexico: structure and check digit
In Mexico, the SAT's RFC has 13 characters for an individual (4 letters, YYMMDD date, 3-character homoclave) and 12 for a company (3 letters). The last character is a check digit: weight the values of the first 12 characters from 13 down to 2, take the remainder of the sum divided by 11, then 11 minus that remainder (0 if the remainder is zero, A if it equals 10).
What the tool checks
- Length: 13 characters (individual) or 12 (company), ignoring spaces and hyphens.
- Initial letters, including Ñ and & (company names such as “A&B”).
- A real YYMMDD date, in the 20th or 21st century.
- Homoclave: two letters or digits, then the check digit (0-9 or A).
- The generic RFCs XAXX010101000 (general public) and XEXX010101000 (foreign residents) are recognised separately: they are invoicing conventions, not computed RFCs.
Example: SAT970701NN3
The SAT's own RFC belongs to a company, so a space is added in front to reach 12 positions. Dictionary: digits 0-9, A = 10 to N = 23, & = 24, O = 25 to Z = 36, space = 37, Ñ = 38. Sum: 37×13 + 29×12 (S) + 10×11 (A) + 30×10 (T) + 9×9 + 7×8 + 0×7 + 7×6 + 0×5 + 1×4 + 23×3 (N) + 23×2 (N) = 1,537. 1,537 mod 11 = 8, so the check digit is 11 − 8 = 3: SAT970701NN3 is valid, SAT970701NN4 is not.
Limits
The SAT does not publish how the first two homoclave characters are derived, so the tool generates no RFC and cannot say whether an RFC is registered or active; use the SAT's RFC validation service for that. Offensive-word substitutions are not checked. For a CURP, use the dedicated validator: the CURP identifies the person, the RFC the taxpayer.
Sources and dates: SAT, filling guide for the global CFDI, version 4.0 (generic RFC XAXX010101000 for the general public). The check-digit algorithm is not published in an official text consulted; it was tested on real RFCs printed on CFDI invoices, including the SAT's own (checked on 15/10/2026).
Frequently Asked Questions
How many characters does an RFC have?
13 for an individual (4 letters, 6 date digits, 3-character homoclave) and 12 for a company, which has only 3 letters. A 10-character RFC lacks the homoclave and is incomplete for invoicing.
What is the last character of an RFC for?
It is a check digit (0 to 9 or A) computed from the previous 12 characters with a weighted sum modulo 11. A typo in any letter or digit almost always makes it inconsistent.
Can I calculate my homoclave online?
Not reliably: the SAT does not publish how the first two homoclave characters are derived. Only the final check digit can be recomputed. Your full RFC appears on the Constancia de Situación Fiscal issued by the SAT.
What does the RFC XAXX010101000 mean?
It is the generic RFC for the general public, used on a global invoice or when the customer has no RFC. XEXX010101000 plays the same role for a foreign resident not registered in the RFC.
Is this tool really free?
Yes, all tools on Kristools are 100% free and accessible without registration.
Is my data protected?
Yes. All processing is performed directly and securely inside your browser. No personal data is sent to our servers.