Federal Service Desk KB0037033; DLA CAGE FAQ; IRS Publication 1635; Census Bureau.
The four numbers side by side
A SAM.gov registration carries four kinds of numbers from four different sources, and mixing them up is behind many failed checks. The short version: the UEI and the CAGE code identify your entity to the federal government, the EIN identifies it to the IRS, and NAICS codes describe what it does. Every cell below comes from the sources in the sections that follow; "Not listed" means they do not say.
| UEI | CAGE code | EIN | NAICS code | |
|---|---|---|---|---|
| Issued by | SAM.gov (GSA) | DLA's CAGE Program Office (NCAGE: NATO bureaus or NSPA) | The IRS | Not issued to you: you pick codes from the Census Bureau's list |
| Format | 12 characters, letters and numbers | 5 characters, letters and numbers | 9 digits, XX-XXXXXXX | 2 to 6 digits (sector to national industry) |
| Identifies | The entity | The entity at one physical address | The entity's tax accounts | An industry, not an entity |
| How many | One per entity | One per entity per physical address (NCAGE: one per entity) | One per business entity, the IRS says | As many as fit what you sell |
| How you get it | Entity validation in SAM.gov | Assigned through the SAM registration, or requested at cage.dla.mil | IRS online application, or Form SS-4 | Chosen in SAM's assertions section |
| Expires | Does not expire | 5 years after registration or last update, unless updated | Cannot be cancelled; can be deactivated | Not listed |
| Shown in public SAM search | Yes | Yes (CAGE/NCAGE) | No | Yes |
| Name it is checked against | Legal business name and address, at validation | Secretary of State filing (legal name, suffix, good standing) | IRS taxpayer name and name control | Not a name check |
UEI: the SAM.gov entity ID
“A Unique Entity ID (UEI) is a 12-character (alpha-numeric) code used in SAM and other federal government systems as a way to identify a unique entity.” “UEIs are issued by SAM.gov” (KB0037033), and only after validation: “you cannot obtain a Unique Entity ID (UEI) without going through entity validation” (KB0051214). It lasts: “The Unique Entity ID does not expire.” A lapsed registration keeps its UEI.
The UEI is the number a contracting officer uses to find you in SAM.gov. You can get one without a full registration, for example as a subrecipient, but then you “cannot apply directly for federal awards”. See UEI number and UEI only versus full registration.
CAGE code: the entity at a place
“A CAGE code is a five-character alpha-numeric identifier assigned to entities located IN the United States and its territories.” It comes from DLA, not GSA, and it is tied to a site: the FAR says it identifies an entity “by unique location” (FAR 52.204-16(a)). DoD's guidance: “CAGE codes are assigned per legal entity at individual physical addresses”. So one entity has one UEI but can have several CAGE codes. Entities outside the U.S. get the same kind of code from NATO, an NCAGE code, and NATO allows “one active NCAGE code” per entity.
A U.S. entity gets its CAGE code during the SAM registration; it does not apply separately. The code expires five years after registration or the last update unless updated (DLA CAGE FAQ). See CAGE code, CAGE code lookup and NCAGE code.
EIN: the IRS tax number
The EIN is the IRS's number. “An Employer Identification Number (EIN) is a nine-digit number that IRS assigns in the following format: XX-XXXXXXX.” (IRS Publication 1635). The IRS describes it as “a federal tax ID number for businesses, tax-exempt organizations and other entities”, and it is a kind of TIN: “An Employer Identification Number (EIN) is also known as a federal tax identification number, and is used to identify a business entity.”
It costs nothing at the source. The IRS says “You never have to pay a fee for an EIN.” Its online tool is on the IRS's Get an EIN page. A business should have just one: “A business entity should have only one EIN.” It does not lapse like a SAM registration: “If you no longer need your EIN, we can't cancel it, but we can deactivate it.” And a name or address change does not need a new one: “You don't need a new EIN to change your business name, address or responsible party.”
In SAM.gov, the EIN goes in the core data as the TIN, and the IRS checks it. “The TIN can be an Employer Identification Number (EIN) or Social Security Number (SSN).” (KB0016540). State, local and tribal governments “will only have the option to select EIN as the TIN type” (KB0016318). The EIN is never public in SAM.gov: the public search excludes “your tax identification number (TIN), financial information, and email addresses.” If you need proof of your EIN, the IRS lists three ways, including to “Request Letter 147C, EIN Previously Assigned.” tincompliance.com's EIN guide and Letter 147C page cover the IRS side.
NAICS: the industry code
A NAICS code is not an ID for your company at all. The Census Bureau: “The North American Industry Classification System (NAICS) is the standard used by Federal statistical agencies in classifying business establishments for the purpose of collecting, analyzing, and publishing statistical data related to the U.S. business economy.” The codes run from a two-digit sector to a six-digit national industry: “Sector: 2-digit code” through “National Industry: 6-digit code”. The FAR explains who maintains them: “NAICS codes are updated by the Office of Management and Budget through its Economic Classification Policy Committee every five years.” (FAR 19.102(a)(2)).
You choose your own codes. SBA: “A business will generally have a primary NAICS code, but it can also have multiple NAICS codes if it sells multiple products and services.” In SAM.gov they go in the assertions section, and GSA's checklist points to the Census list: “Go to https://www.census.gov/naics/ to lookup NAICS codes for your organization”. Assertions are only part of an All Awards registration.
NAICS codes matter because size standards hang on them. “SBA assigns a size standard to each NAICS code.” Your size status in SAM.gov is read against the codes you list: for SBA certifications other than 8(a), a business “must qualify as small under the size standard corresponding to any NAICS code listed in its SAM profile” (13 CFR 121.404(d)). SAM does not recompute that on its own: registrants “must update their SAM registration in order to have their small business status updated” after a size standards change. Each solicitation, in turn, carries one code: contracting officers “shall assign one NAICS code and corresponding size standard to all solicitations, contracts, and task and delivery orders” (FAR 19.102(b)(1)), with an exception for some multiple-award contracts.
The two name checks
Two different agencies check two different names in the same registration, and both must pass before SAM.gov shows Active. The IRS checks the taxpayer name with the TIN: the TIN and name “must match exactly to the TIN and taxpayer name used on your most recent IRS document” (KB0016540). GSA warns that “The ‘Taxpayer name’ might not be the same name as your Legal Business Name that you provided when validating your entity.”
DLA checks the legal business name against the state. Its advice is to make sure the name “matches what is on file with the Secretary of State (SOS)”, in good standing and with its suffix. And DLA does not take the IRS's word for a legal name: “DLA will not accept Internal Review Service (IRS) documentation or validation, as the IRS does not require the use of the legal business name.”
Federal Service Desk KB0016540 and KB0016318; DLA CAGE Trending Topics; DFARS PGI 204.1870-2(c)(3).
In practice, a business whose IRS name and state name differ (a dropped "LLC", an old name the IRS still holds) can pass one check and fail the other. Fix the IRS record with the IRS, and the state record with the state, before you submit. A new or changed EIN or taxpayer name needs time: “It takes 5 weeks for the IRS to fully process a new or updated TIN or taxpayer name.” Our pages on the SAM TIN mismatch and legal name and address changes go through each fix, and tincompliance.com explains IRS name control.
Which number goes where
| Where | Number asked for | Rule |
|---|---|---|
| An offer, when SAM registration is required | UEI on the cover page, after the annotation "Unique Entity Identifier"; CAGE code with the word "CAGE" before it | FAR 52.204-7(b)(2); FAR 52.204-16(b) |
| An offer without a SAM registration (FAR overhaul model text) | UEI on the cover page, TIN, CAGE code, and the owners' CAGE codes | 52.204-90 (deviation) |
| Owners of the offeror | The owner's CAGE code and legal name | FAR 4.1802(b) |
| SAM.gov core data | TIN (EIN or SSN), checked by the IRS | KB0016540 |
| SAM.gov assertions | NAICS codes and size metrics | GSA entity checklist (Nov. 2024) |
| A solicitation | One NAICS code and its size standard | FAR 19.102(b)(1) |
| SAM.gov registration status lookup | UEI or CAGE code | GSA entity checklist (Nov. 2024) |
Under the FAR overhaul's model provision for offerors without an active registration, the offeror enters “the annotation ‘Unique Entity Identifier’ followed by the UEI” on the cover page and provides its TIN, which “may be either a Social Security Number or an Employer Identification Number”. During performance, the overhaul's clause asks for notice of a change to either federal ID: “A change in the UEI does not necessarily require a novation.” (52.204-91(d)). These are model deviation texts that agencies adopt one by one; the codified FAR remains in force where they have not.
Two more: the EFT indicator and the old DUNS
Some entities see four extra characters after the UEI. DLA: “The EFT is an alpha-numeric four-character set that follows a twelve-character alpha-numeric UEI code.” It marks an additional bank account record for the same entity, and DoD's guidance gives each such record its own CAGE code: “each EFT indicator record is assigned a separate CAGE code to assist in correct processing of payments”.
Older guides still mention the DUNS Number. It is gone from SAM.gov: “The Office of Management and Budget (OMB) directed federal agencies to complete their system transitions to the Unique Entity ID no later than April 4, 2022.”, and “The Unique Entity ID has replaced the DUNS Number.” (KB0045975, KB0055138). Where an older form or contract still asks for a DUNS Number, the UEI is the number that replaced it.
Questions people ask
Is the UEI the same as my EIN?
No. The UEI is a 12-character code “issued by SAM.gov”; the EIN is the IRS's nine-digit tax number. SAM.gov collects the EIN as your TIN, checks it with the IRS and never shows it publicly.
Is a CAGE code the same as a UEI?
No. The UEI identifies the entity; a CAGE code identifies the entity at one physical address, and DLA, not GSA, assigns it. One entity can have one UEI and several CAGE codes.
Do I need all four to register in SAM.gov?
A U.S. entity needs a TIN (usually an EIN) for the IRS check; the UEI comes from entity validation and the CAGE code from DLA during processing. NAICS codes are needed for an All Awards registration's assertions. A foreign entity needs an NCAGE code first and, in GSA's stated case, no TIN.
Does a new EIN mean a new UEI?
The sources do not say a new EIN changes the UEI. They do say a new or changed TIN must wait: “It takes 5 weeks for the IRS to fully process a new or updated TIN or taxpayer name.” (KB0016540).
Which of these numbers is public?
The UEI, the CAGE or NCAGE code and NAICS codes show in SAM.gov's public search; the TIN does not (KB0017554). CAGE records are public at DLA's CAGE Search & Inquiry.
Sources
- Federal Service Desk articles KB0037033, KB0051214, KB0016540, KB0016318, KB0017554 and the DUNS to UEI articles (KB0045975, KB0055138); GSA, entity registration checklist (Nov. 2024) and SAM.gov's entity registration page
- DLA, About | FAQs page and Trending Topics; FAR 52.204-16, FAR 4.1802 and FAR 19.102 (FAC 2026-01); DFARS PGI 204.18
- NATO Support and Procurement Agency, NCAGE Code Request Tool
- IRS, Employer identification number, Taxpayer identification numbers, Get an employer identification number and Publication 1635 (Rev. 2-2014)
- U.S. Census Bureau, Understanding NAICS; SBA, Get started with contracting and Table of size standards; 13 CFR 121.404
- Acquisition.gov, FAR overhaul, part 52 model deviation text