When oil prices spike, almost everything gets more expensive to make and move, so prices rise across the economy while production slows down. You feel it first at the pump, then in grocery bills, plane tickets, and delivery fees, because fuel is buried in the cost of nearly every product. Businesses facing higher costs make less and hire less, so the economy can shrink while prices climb. Economists call that combination stagflation, and it is one of the hardest problems for policymakers to fix.
When oil prices spike, almost everything gets more expensive to make and move, so prices rise across the economy while production slows down.
Start with an economy running at its normal pace. Total spending, called aggregate demand, meets what businesses are willing to produce at each price level, called short-run aggregate supply. Where those two lines cross sets the average price of things and how much the country makes in a year. Factories are busy, fuel costs about what people expect, and no line has moved.
Now try it yourself: shift the curves in a graded FRQ drill, or open this graph in the free sandbox.
Economists broadly agree that an oil spike raises costs across the economy and produces stagflation, rising prices and a shrinking economy at once. What they genuinely argue about is how a central bank should answer it: whether to look past a shock that may fade on its own, or raise interest rates anyway so people do not start expecting high prices to stick around.
More questions like this on the What If hub, or go deeper with the AP graph walkthroughs.