Here is how an index works. Suppose a household's monthly basket is rent at $1,000, groceries at $400 and gasoline at $100, a total of $1,500. A year later rent is $1,030, groceries $448 and gasoline $112, a total of $1,590. The index moves from 100 to 1,590 ÷ 1,500 × 100 = 106, so inflation is 6%. Groceries and gasoline each rose 12%, yet the index rose 6%, because rent makes up two thirds of the basket and rose only 3%. The weights matter as much as the price changes.
Broad price increases come from three main sources. Demand-pull inflation appears when total spending grows faster than the economy's capacity to produce. Cost-push inflation comes from the supply side: an oil shock, a failed harvest, broken supply chains. Expectations can then keep either kind going, because firms and workers who expect prices to rise build that into the prices and wages they set. Telling the sources apart matters, since higher interest rates can cool demand but cannot produce more oil.
Two confusions are worth clearing up. Lower inflation does not mean lower prices. When inflation falls from 9% to 3%, prices are still rising, only more slowly, and the average price level comes down only under deflation. And the official rate is an average. A household that spends a larger share of its budget on food and fuel than the basket assumes had a personal inflation rate above the headline in 2022. Converting wages and interest rates into real terms is covered on the Real vs. Nominal page, and the link between inflation and jobs on the Inflation-Unemployment Tradeoff page.