Skip to main content

CAGE Code vs. UEI: What's the Difference?

Federal contractors now deal with two main identifiers: the CAGE code and the UEI (Unique Entity Identifier). Both live in SAM.gov, but they serve different purposes and come from different systems. Here's everything you need to know about how they work together.

The CAGE Code: DLA's Supplier Identifier

The CAGE code is a 5-character DLA-assigned identifier that has been used since the 1950s. It lives in DLA's Federal Logistics Information System (FLIS) and is used across DoD supply chain, contracting, and payment systems. CAGE codes are used by NATO allies (as NCAGE codes) and appear on federal contracts, invoices, DD-250 forms, and vendor records. CAGE codes do not expire — they persist even if SAM registration lapses.

The UEI: SAM.gov's Entity Identifier

The UEI (Unique Entity Identifier) is a 12-character alphanumeric code assigned by SAM.gov when you register your entity. It replaced the DUNS number (Dun & Bradstreet) in April 2022. The UEI is the primary identifier in SAM.gov's entity management system and is used for grant awards, contract awards, and USASpending.gov reporting. Unlike CAGE codes, UEIs are tied to your SAM.gov entity profile.

When Each Is Used

ContextCAGE CodeUEI
Federal contractsYes (required)Yes (required)
DoD supply chain / DLAYes (primary)Secondary
Federal grantsSometimesYes (required)
NATO/Allied procurementYes (NCAGE)No
USASpending.govLinkedYes (primary)

Do You Need Both?

In practice, yes — when you register in SAM.gov, you get both automatically. SAM.gov assigns your UEI when you start registration. DLA assigns your CAGE code when the registration is validated. For most contractors, you never have to think about managing them separately — SAM.gov links them.

Decode Any CAGE Code Instantly

Enter any 5-character CAGE code to see the company name, SAM status, and certifications.

Frequently Asked Questions

Did the UEI replace the CAGE code?

No. The UEI replaced the DUNS number — not the CAGE code. CAGE codes continue to be used alongside UEIs in DoD and DLA systems.

Can I look up a company by UEI?

Yes — on SAM.gov. You can also look up by CAGE code, legal name, or UEI. FedAtlas.com lets you search by company name to find full contract history.

What happened to DUNS numbers?

DUNS numbers were phased out in April 2022. Existing DUNS numbers were mapped to new UEIs, and the transition was mandatory for all SAM.gov registrants.

See Contract History

FedAtlas.com

Full federal award data by company, CAGE code, agency, and NAICS.

Visit FedAtlas