The cost for the machine alone is about 3000 million Euro.
The total project cost breaks down roughly as follows:

The experimental collaborations are individual entities, funded independently from CERN. CERN is a member of each experiment, and contributes to the material budget of CMS and LHCb at the 20% level, 16% for ALICE and 14% for ATLAS. TOTEM is a much smaller experiment, with a total material cost of about 6.5 million CHF, of which CERN provides 30% of the budget.