The cost buffer accounts for variation in project task cost. You should estimate it using methods similar to sizing the Project time Buffer, but consider all tasks in the project as cost does sum for all tasks in the project. The cost buffer requires a variational element and a bias element.
(Stevens Institute of Technolgy NASA Strategic Multi-Project Resource Management “CC-Lite” page)