If you’re new to federal contracting, the first identifier you’ll need isn’t a contract number — it’s a Unique Entity ID (UEI). It’s also the source of one of the most common “wait, what is this?” moments for new entrants, because the government changed how it works in 2022 and a lot of older guidance still says “DUNS.”
What the UEI is
The Unique Entity ID (SAM) is a 12-character alphanumeric identifier the federal government assigns to your organization to track it across systems — registrations, contracts, sub-awards, and grants. It’s the government’s answer to “which legal entity is this,” and you need one to do essentially anything in the federal marketplace.
What it replaced, and why
Until April 4, 2022, that role was played by the DUNS Number — a nine-digit ID issued by the private company Dun & Bradstreet. The government moved off DUNS to a government-owned identifier generated in SAM.gov, so the ID is no longer tied to a third-party commercial product. If you had a DUNS Number before the switch, your entity was assigned a UEI automatically; you don’t carry the DUNS forward.
So when an article, a form, or an old SOP references a “DUNS Number,” read it as UEI — the concept is the same, the issuer and format changed.
How to get one
The UEI is free and issued in SAM.gov. There are two paths:
- “Get a UEI only.” If you only need the identifier (common for sub-recipients or some grant scenarios), SAM.gov lets you request just the UEI without completing a full registration.
- Full entity registration. If you intend to bid and hold prime contracts, you need a complete active SAM.gov registration, which issues the UEI as part of the process.
Either way you’ll authenticate through Login.gov and go through entity validation (below).
The entity-validation gotcha
Before SAM.gov assigns your UEI, it runs entity validation — confirming your legal business name and physical address against a records provider. This is where people stall: the name and address you enter must match your official business records (your state registration / formation documents) exactly. A trailing “LLC,” an abbreviated street, or an address that doesn’t match your incorporation record can bounce the validation and require a documentation review. If you get stuck here, see SAM.gov entity validation troubleshooting.
UEI vs. CAGE code
Don’t confuse the two:
- UEI — your primary entity ID, assigned in SAM.gov.
- CAGE code — the Commercial and Government Entity code, a separate 5-character code assigned (for U.S. entities) by the Defense Logistics Agency during SAM registration. You’ll often have both; they are not interchangeable.
Keeping it active
The UEI itself is stable, but your registration expires every 12 months and must be renewed to stay eligible to receive awards — a lapse quietly knocks you out of contention. See the SAM.gov renewal guide, and if you’re just starting out, the how to win your first federal contract playbook puts the UEI in context.
Where PursuitAI fits
PursuitAI validates a live UEI at sign-up — it checks that the number resolves to an active federal registration rather than just matching a format — and auto-fills your company profile (legal name, address, NAICS, registration details) from your SAM.gov record, so you start with a real entity instead of a blank form. From there your NAICS codes drive fit scoring against live opportunities.