# EIN vs SSN vs ITIN Format: Telling Nine Digits Apart

- Canonical: https://schematax.com/blog/ein-vs-ssn-vs-itin-format
- Author: Schema Tax (https://schematax.com)
- Published: 2026-05-09T14:54:44.000Z
- Updated: 2026-05-09T14:54:44.000Z

The EIN vs SSN vs ITIN format difference comes down to dashes and leading digits. An EIN is written XX-XXXXXXX with one dash. An SSN and an ITIN are both XXX-XX-XXXX with two dashes, but an ITIN always starts with 9 and an SSN never does. Without dashes, you need the form box to decide.

## EIN vs SSN vs ITIN format, side by side

EIN vs SSN vs ITIN format is easiest to compare in one table. All three are nine-digit taxpayer identification numbers (TINs), and so is the adoption taxpayer identification number (ATIN). They differ in where the dashes go, which digit comes first, and which digits sit in the fourth and fifth positions.

| | EIN | SSN | ITIN | ATIN |
| --- | --- | --- | --- | --- |
| Issued by | IRS | Social Security Administration | IRS | IRS |
| Printed layout | XX-XXXXXXX | XXX-XX-XXXX | 9XX-XX-XXXX | 9XX-93-XXXX |
| Dashes | One, after digit 2 | Two, after digits 3 and 5 | Two | Two |
| First digit | Any digit on the IRS prefix list, 9 included | 0 to 8 | Always 9 | Always 9 |
| Fourth and fifth digits | No special meaning | Not 00 | In the IRS ITIN ranges | Always 93 |
| Who holds it | Businesses, estates, trusts and other entities | People | Certain people who cannot get an SSN | A child in a pending adoption |
| Example (fictional) | 20-XXXXXXX | XXX-XX-1234 | 9XX-7X-XXXX | 9XX-93-XXXX |

The sources behind the table are the IRS page on [taxpayer identification numbers](https://www.irs.gov/tin/taxpayer-identification-numbers-tin), which names the issuer of each type and says the ITIN begins with 9; the [IRS General Instructions for Certain Information Returns](https://www.irs.gov/instructions/i1099gi), which give the dash layouts; and the IRS manual section on [pending US adoptions, IRM 3.13.40](https://www.irs.gov/irm/part3/irm_03-013-040), which fixes the ATIN's 93.

The table summarizes; each type has a fuller rule set. The [full EIN prefix list](/blog/ein-format-validation#which-ein-prefixes-does-the-irs-issue) shows which first two digits the IRS issues. The [full SSN invalid ranges](/blog/ssn-format-validation#which-ssn-area-numbers-are-never-issued) explain why no SSN starts with 9. The [ITIN ranges](/blog/valid-itin#the-itin-middle-digit-ranges) list the fourth and fifth digits that mark an ITIN.

### Classifying an unlabeled number, step by step

1. Count the digits. Anything other than nine is not a TIN of these types.
2. Look for dashes. One dash after the second digit means EIN. Two dashes, after the third and fifth digits, means the SSN family.
3. If there are no dashes, use the form box label to decide. Do not guess from the digits.
4. In the SSN family, check the first digit. Not 9 means SSN.
5. If the first digit is 9, check the fourth and fifth digits. 93 means ATIN. A value in the ITIN ranges means ITIN. Anything else is not a TIN a taxpayer should have on a form.
6. Run the type's own rules on the result.

### A worked example with three fictional numbers

Suppose a bookkeeper receives three 1099s for one client and types the TINs into a sheet. All values here are fictional, with X standing for any digit.

The first is 4X-XXXXXXX. It has one dash after the second digit, so step 2 routes it to EIN. The prefix check comes next, and the 40s prefixes from 40 to 48 are on the IRS list, so it passes format.

The second is 9XX-8X-XXXX, with an 8 in the fourth position. Two dashes put it in the SSN family. The leading 9 rules out an SSN. The fourth and fifth digits fall between 80 and 88, which is inside an ITIN range, so it routes to ITIN. If those digits had been 89, step 5 would mark it as a number that does not belong on the form.

The third is a bare string of nine digits starting with 9, typed without dashes. Step 3 applies: the digits alone cannot settle it, because it could be an EIN with a 90s prefix or an ITIN. The bookkeeper checks the paper form. The number sits in the payer TIN box, and the payer is a company, so it is recorded as an EIN and the prefix check runs on that basis.

## Can the dashes alone tell an EIN from an SSN?

The dashes alone can tell an EIN from an SSN when they survive. One dash after the second digit is EIN layout, and two dashes after the third and fifth are SSN layout. The problem is that dashes are formatting, and data pipelines strip them all the time.

On paper, the dashes are reliable. The information-return instructions say SSNs, ITINs and ATINs have "nine digits separated by two hyphens (000-00-0000)" and EINs have "nine digits separated by only one hyphen (00-0000000)." They also tell filers to put the hyphens in the correct places on paper forms.

After extraction, they are not. A CSV export, a database column, a payroll system or a copy-paste can all keep the nine digits and drop the dashes. Once that happens, 20-XXXXXXX and 20X-XX-XXXX look the same. You cannot recover the type from the digits alone: many EIN prefixes are also possible SSN area numbers, and EIN prefixes in the 90s overlap with the leading 9 of ITINs.

Three habits avoid the problem:

- Keep the type next to the number. Store a field such as `tin_type` with values like EIN, SSN, ITIN or ATIN, taken from the form box.
- Store digits only, and add the dashes back on display based on the stored type.
- When the dashes are present in the source, read the type from them once, then trust the stored type afterward.

## What makes a valid taxpayer identification number?

A valid taxpayer identification number is one the right agency issued to that person or entity, in the type the form calls for. Format is only the first test. The TIN family has four common members for tax forms: SSN, EIN, ITIN and ATIN, plus the PTIN that paid preparers use.

What each type is and who issues it is covered in the post on [which TIN type a tax ID is](/blog/tax-id-validation#which-tin-type-is-this-tax-id). In short, individuals use an SSN, ITIN or ATIN, entities use an EIN, and the IRS page on taxpayer identification numbers says paid preparers must use a valid Preparer Tax Identification Number (PTIN) on returns they prepare.

A valid TIN number in the full sense therefore needs three things: the right format, the right type for the box, and a record at the issuing agency that matches the name. Format checks cover the first two. They cannot cover the third, and they have no checksum to fall back on, as the post on [check digits versus format validation for TINs](/blog/check-digit-vs-format-validation-for-tins) explains. Payers who need the third check can use the IRS service described in the post on [IRS TIN validation](/blog/irs-tin-validation).

## Which ID belongs in which box on a W-2 or 1099?

On a W-2 or 1099, the payer or employer TIN and the recipient or employee TIN sit in separate boxes, and each box expects certain types. The payer side is usually an EIN. The recipient side is usually an SSN, with ITINs, ATINs and EINs allowed on 1099s depending on who was paid.

On the W-2, box b holds the employer's EIN and box a the employee's SSN. The W-2 instructions show the EIN as XX-XXXXXXX and the SSN as XXX-XX-XXXX. They list entering the employee's SSN in place of the EIN as a common error, and say an employer's EIN may not be truncated on any form.

On a 1099, the payer TIN is usually an EIN, but not always. The information-return instructions say the filer's TIN, including a sole proprietor's, is the EIN, but that sole proprietors "who are not otherwise required to have EINs should use their SSNs." A payer TIN in SSN layout on a 1099-NEC is therefore not an error by itself. The same instructions also let a sole proprietor recipient's TIN be either the owner's SSN or the business EIN, and say the IRS prefers the SSN.

The recipient TIN on a 1099 follows the recipient. An individual's 1099 shows an SSN, ITIN or ATIN, and a corporation's or partnership's shows an EIN. On copies the recipient receives, the number may be masked to the last four digits, such as XXX-XX-1234. The instructions allow that truncation on payee statements, but not on the payer's own TIN and not on forms filed with the IRS.

| Box | Expected type | Also allowed | Masked on recipient copy? |
| --- | --- | --- | --- |
| W-2 box a, employee | SSN | None | Allowed |
| W-2 box b, employer | EIN | None | Never |
| 1099 payer TIN | EIN | SSN for a sole proprietor | Never |
| 1099 recipient TIN | SSN | ITIN, ATIN, EIN | Allowed |

Schema Tax keeps payer and recipient TINs in separate named fields on each form it reads, so a 1099-NEC's two numbers land in their own columns in the export. The [list of supported forms](/#forms) shows which ones it covers, and the [1099 forms guides](/blog/category/1099-forms) explain the rest of each form.

## The ATIN and other nine-digit ID edge cases

The ATIN and a few other nine-digit IDs are the edge cases a TIN classifier gets wrong. An adoption taxpayer identification number (ATIN) shares the ITIN's leading 9. An IRS number used inside the agency shares the same layout. And without dashes, some numbers fit two patterns at once.

**ATINs.** IRM 3.13.40 says an ATIN "begins with the number 9, and the fourth and fifth digits are always 93," shown as 9nn-93-nnnn. The IRS [ATIN page](https://www.irs.gov/individuals/adoption-taxpayer-identification-number) calls it a temporary number for a child in a domestic adoption whose SSN the adopting parents cannot get yet, applied for on Form W-7A. It says the IRS deactivates it once it is notified of the child's SSN, or automatically after two years if the adopting parents do not notify it. A classifier that treats every 9-leading number as an ITIN will mislabel ATINs, and an ITIN validator will reject them. Check for 93 first.

**IRS numbers.** The IRS manual section on the [ITIN Real-Time System, IRM 3.21.263](https://www.irs.gov/irm/part3/irm_03-021-263r) describes the Internal Revenue Service Number (IRSN), which is in the same format as an SSN or ITIN, always begins with 9, and has an IRS campus code in the fourth and fifth digits. The same manual reserves 89 and 93 for programs other than ITINs. A 9-leading number outside the ITIN ranges and not 93 may be one of these. It does not belong in a payee TIN box.

**PTINs.** A PTIN is not nine digits. IRS [Publication 5378](https://www.irs.gov/pub/irs-pdf/p5378.pdf) says it "must start with the letter P, followed by eight digits," with no hyphen. Reject anything with a P in a TIN field rather than stripping the letter.

**Numbers that fit two patterns.** Without dashes, a nine-digit string starting with 9 could be an EIN with a 90s prefix or an ITIN. A string starting with 2 could be an EIN with prefix 20 to 27 or an SSN with an area in the 200s. Only the form box or a stored type resolves these. Record the type when you first read the number, while the box label is still in front of you.
