On a month-on-month basis, CPI came in slightly higher at 0.3% in June from 0.2% previously.
On average, prices increased by 0.3% between May and June this year, StatsSA said.
The food and non-alcoholic beverages index increased by 0.1% between May and June. The annual rate was the same as the corresponding rate of 8.8% in May.
StatsSA said the housing and utilities index increased by 0.9% between May and June. This was mainly due to a 1.5% increase in actual rentals for housing and a 1.3% increase in owners' equivalent rent.
The annual rate increased by 5.8% in June from 5.7% in May.
The household contents services index increased by 1.2 percent, mainly due to a 2.3% increase in domestic workers' wages, according to StatsSA.
The annual rate increased to four percent in June from 3.7% in May.
The transport index decreased by 0.1% between May and June. This was mainly due to a decrease in the petrol price.
The annual rate decreased to 8.6% in June from 8.9% in May.