He is believed to have wanted to leave Sri Lanka before stepping down in order to avoid the possibility of arrest under a new administration.
The cost of food, fuel and other basic supplies has soared for Sri Lankans.
In the capital Colombo, delighted demonstrators greeted news of the president's departure with dancing.