"AC Milan and FC Barcelona have reached an agreement for the transfer of Ronaldinho to the Rossoneri," read a statement on the Milan website.
It was confirmed the Brazilian will leave Barcelona at 11.00 local time on Wednesday morning on the same flight as general manager Adriano Galliani.
Barcelona on their own website announced the financial details of the move, valued at £16m plus another £3m in bonuses based on whether Milan qualify for the Champions League.
Milan vice-president Adriano Galliani said last night: "Tomorrow Ronaldinho will undergo a medical and, if he passes, he will become a Milan player."