When Gov. Andrew M. Cuomo revealed to great fanfare last week that a deal on a new labor contract had been reached with New York City’s subway and bus workers, officials did not reveal how much it would cost.

Nor did they explain how the Metropolitan Transportation Authority would pay for the yearly raises that are promised by the contract — though Mr. Cuomo promised that fares would not increase.

Now, according to a newly released document, the deal has a price tag: $525 million over the next four years.

And in the document, the transportation authority also revealed how it planned to pay for the contract. The agency would redirect some money that had been budgeted for a pension fund for Long Island Rail Road workers, and money intended for a trust for health care costs for retirees of the transportation authority.