British media reported that the Spanish club will pay about 268 million dollars for Coutinho, making it the third most expensive transfer in football history.
"Barcelona and Liverpool have reached an agreement for the transfer of Philippe Coutinho," the La Liga leaders said in a statement.
"The player will sign a contract for the rest of the season and five more and will have a release clause of 400 million euros.
Liverpool confirmed the deal.