A valid ITIN has nine digits in the same 3-2-4 layout as a Social Security number, begins with 9, and has fourth and fifth digits in one of the ranges the IRS assigns to ITINs: 50 to 65, 70 to 88, 90 to 92 or 94 to 99. A correct format still cannot show whether the ITIN has expired.
What makes an ITIN look different from an SSN?
An individual taxpayer identification number (ITIN) is a tax processing number the IRS issues to certain people who need a US taxpayer identification number but cannot get a Social Security number. What sets an ITIN apart from an SSN on paper is its first digit: every ITIN begins with 9.
The IRS page on taxpayer identification numbers describes the ITIN as a nine-digit number that begins with 9 and is formatted like an SSN. The IRS manual section on the ITIN Real-Time System, IRM 3.21.263, says the same thing: the ITIN "will be in the format of an SSN and begin with the number 9."
The layout is otherwise identical. The IRS General Instructions for Certain Information Returns group SSNs, ITINs and ATINs together as nine digits separated by two hyphens. So the hyphens tell you a number belongs to the individual family, and the leading 9 tells you it is an IRS-issued number rather than an SSN.
The SSA never issues SSNs with an area number in the 900 series, which the post on SSN area numbers that are never issued covers. That is why the leading 9 is a clean dividing line.
The ITIN middle-digit ranges
The ITIN middle digits are the fourth and fifth digits of the number. IRM 3.21.263 lists four ranges for them: 50 to 65, 70 to 88, 90 to 92 and 94 to 99. It adds that 89 and 93 "are NOT used as fourth and fifth numbers for ITINs but are reserved for other programs."
| Fourth and fifth digits | ITIN? | Note from IRM 3.21.263 and related IRS sources |
|---|---|---|
| 00 to 49 | No | Outside the ITIN ranges |
| 50 to 65 | Yes | ITIN range |
| 66 to 69 | No | Outside the ITIN ranges |
| 70 to 88 | Yes | ITIN range |
| 89 | No | Reserved for other programs |
| 90 to 92 | Yes | ITIN range |
| 93 | No | Reserved for other programs; the ATIN uses 93 |
| 94 to 99 | Yes | ITIN range |
The 93 row matters most, because an adoption taxpayer identification number (ATIN) also starts with 9 and always uses 93 in those positions. The ATIN and other nine-digit ID edge cases give the IRS source and explain where those numbers turn up.
Is a correctly formatted ITIN still valid if it has expired?
A correctly formatted ITIN can still be expired, and format validation cannot tell. Expiry depends on how the number has been used on returns, which only the IRS records show. IRM 3.21.263 says ITINs not used on at least one US federal tax return in the last three tax years expire on December 31 of the third consecutive year.
The IRS phased in expiry for older ITINs by middle digits. IRS Notice 2016-48 says "ITINs that contain the middle digits of 78 or 79 will no longer be in effect beginning January 1, 2017," with other middle digits to follow in later guidance. That schedule is about status, not format: 78 and 79 still sit inside the valid 70 to 88 range.
Renewal does not change the number. The IRS ITIN page says to renew "if it expired and you need to file a U.S. income tax return." A format check should therefore accept an ITIN with middle digits 78 or 79. Whether a given ITIN is current is a question for the holder or the IRS.
ITIN validation in a spreadsheet or script
ITIN validation in a script comes down to one regular expression that tests the leading 9, the nine-digit length, the optional hyphens, and the four middle-digit ranges:
^9[0-9]{2}-?(5[0-9]|6[0-5]|7[0-9]|8[0-8]|9[0-2]|9[4-9])-?[0-9]{4}$
The alternation spells out the ranges: 50 to 59 and 60 to 65, 70 to 79 and 80 to 88, 90 to 92, and 94 to 99. Here is how it treats example values. The passing rows use N for any digit so that no real ITIN appears here.
| Example value (fictional) | Result | Rule it tests |
|---|---|---|
| 9NN-7N-NNNN | Pass | Leading 9, middle digits 70 to 79 |
| 9NN-5N-NNNN | Pass | Leading 9, middle digits 50 to 59 |
| 912-40-1234 | Fail | Middle digits 40 are outside every ITIN range |
| 9XX-93-XXXX | Fail | Middle digits 93: ATIN, not ITIN |
| 000-70-1234 | Fail | Does not start with 9 |
| 912-70-123 | Fail | Only eight digits |
In a spreadsheet, test a hyphenated value in A2 with:
=AND(LEN(A2)=11, LEFT(A2,1)="9", MID(A2,4,1)="-", MID(A2,7,1)="-",
OR(AND(--MID(A2,5,2)>=50, --MID(A2,5,2)<=65),
AND(--MID(A2,5,2)>=70, --MID(A2,5,2)<=88),
AND(--MID(A2,5,2)>=90, --MID(A2,5,2)<=92),
--MID(A2,5,2)>=94))
Add a digit check like the one in the EIN format validation formula if your data may contain letters. A number can pass both checks and still carry no check digit to catch a typo; the post on check digits versus format validation explains why.
ITIN validation mistakes: rejecting a 9 as an invalid SSN
ITIN validation mistakes often start with SSN rules applied to every 3-2-4 number. Those rules reject any area number in the 900 series, so every ITIN fails. When the form allows an ITIN, a leading 9 should route the number to ITIN rules instead of an error.
Information returns allow it. The information-return instructions say the TIN for individual recipients "is the SSN, ITIN, or ATIN." A 1099-INT or 1099-NEC sent to an ITIN holder carries the ITIN in the recipient TIN box, and a validator that flags it is wrong.
The W-2 is the exception. The IRS General Instructions for Forms W-2 and W-3 say: "Do not accept an IRS individual taxpayer identification number (ITIN) in place of an SSN for employee identification or for Form W-2 reporting." An ITIN in W-2 box a passes ITIN format rules but is still worth flagging.
The fix is a routing step: check the first digit, then the form and box, then apply the matching rule set. When Schema Tax reads a form, it tests each TIN against its pattern and puts a mismatch in front of a person for review rather than dropping it. For the forms that carry ITINs in loan and rental files, see the income verification guides.