There is no simple answer to the question of whether subcontractors need a CAGE code or not. It is dependent on the individual contract between the subcontractor, prime contractor, and the federal government. For individual cases, consult with the agent of the government entity contracting the project to learn more about the requirements for your subcontracting job.