Consumer prices, harmonised to make them comparable with inflation data from other European Union countries, rose by 2.1% in April, up from 2.0% in March. A Reuters forecast had pointed to an April reading of 2.0%.
On the month, inflation rose 0.5%, the data showed.
Mexican annual inflation ticked up to 3.84% from a rate of 3.74% in the second half of January, but undershot the consensus forecast of a Reuters poll for a reading of 3.88%.
A breakdown of the data published by the agency known as INEGI showed that fuels and certain fruits and vegetables helped to push up prices in early February.
The average forecast for IPCA consumer price inflation at the end of this year rose to 3.8% from 3.6%, according to the latest weekly 'FOCUS' survey of over 100 economists.
The average inflation forecast over the next 12 months rose to 3.8% from 3.7%. The central bank's end-2022 goal is 3.50%.