As with consumer prices, the index benefited from easing energy costs, particularly as oil fell due to the brief pause in tensions between the U.S. and Iran.

The consumer price index in June was expected to increase 3.8% from a year ago.

Gas prices dropped in response to negotiations between the U.S. and Iran.