Short answer

Headline CPI includes food and energy. Core CPI excludes those categories. Comparing the two can show whether volatile categories are contributing to a particular inflation reading.

Compare the same time window first

A year-over-year headline number and a month-over-month core number answer different questions. Read the release's labels for period and seasonal adjustment. Use the tables for categories such as shelter, energy or food when investigating the source of the difference. A stock's exposure depends on its costs, customers and the interest-rate assumptions already reflected in price.

Worked example or comparison
Basis Evidence or calculation
Worked example or comparison Hypothetical report: headline CPI is up 0.4% month over month and core CPI 0.2% month over month. The 0.2 percentage-point gap warrants a category check and is not a direct measure of an energy contribution.

Frequently asked question

Does the government leave food and energy out of its headline CPI?

Headline CPI includes both. The core series is a separate analytical measure.

Source

Primary reference · bls.gov

Related guide

How can I interpret inflation and job releases without confusing data from different time periods?