How markets and economies work Lesson 1 of 7
Economics · Foundations
Supply and demand: how markets set prices, with real egg prices
How supply and demand set a price, the difference between a shift and a movement along a curve, and what US egg and gasoline prices did in 2022–2026.
On this page
Every price you see, from a dozen eggs to a share of stock, comes out of the same tug of war. Buyers want more of a thing when it is cheap. Sellers offer more of it when it is dear. The price settles where the two sides agree on a quantity. When something shifts one side, the price moves until they agree again.
That simple idea explains most of the price swings that make headlines. In this lesson you will learn how demand and supply curves work, why "demand rose" and "the quantity demanded rose" mean different things, how to find an equilibrium, and how to read a real supply shock. The case study is the US egg market, where the average price of a dozen grade A large eggs went from $1.40 in 2019 to $6.23 in March 2025 and back to $2.32 in October 2026, according to the Bureau of Labor Statistics.
What supply and demand are
Demand is the whole schedule of how much buyers would purchase at each possible price, over a given period, with everything else held fixed. Drawn on a chart with price on the vertical axis and quantity on the horizontal, it slopes down. Two reasons: when a good gets cheaper, people substitute it for other things, and the same income stretches further.
Supply is the schedule of how much sellers would offer at each price. It slopes up, because a higher price makes it worth running older equipment, paying overtime or bringing in producers whose costs are higher.
The equilibrium is the price at which the quantity buyers want equals the quantity sellers offer. At any higher price, sellers bring more than buyers take: a surplus, and unsold stock pushes the price down. At any lower price, buyers want more than is offered: a shortage, and empty shelves, waiting lists or bidding push it up. Nobody has to coordinate this; the gap itself moves the price.
Movement along a curve versus a shift
This is the distinction most explanations blur, and it matters for reading the news.
- A change in the good's own price moves you along the demand curve. Economists call that a change in the quantity demanded.
- A change in anything else that affects buyers, such as income, the price of a substitute, population or tastes, shifts the whole curve. That is a change in demand.
The same holds for supply. A higher egg price moving farmers up their supply curve is a change in quantity supplied. A disease that kills hens shifts the supply curve itself.
So "egg prices rose, so people bought fewer eggs" describes a movement along the demand curve, caused by a shift in supply. Demand, the curve, did not need to change at all.
Worked example: finding the equilibrium
Take a stylised market with straight-line curves (the numbers are invented for clean arithmetic):
The four basic cases
| What changes | Price | Quantity |
|---|---|---|
| Demand rises (shifts out) | Up | Up |
| Demand falls (shifts in) | Down | Down |
| Supply rises (shifts out) | Down | Up |
| Supply falls (shifts in) | Up | Down |
When both curves move at once, one of the two outcomes is unclear. If supply falls and demand rises together, the price certainly rises, but the quantity can go either way.
A real supply shock: eggs, 2022–2026
Highly pathogenic avian influenza (HPAI) returned to US commercial flocks on February 8, 2022. Infected flocks are destroyed to stop the spread, so each outbreak in a large laying house removes millions of hens at once. The USDA Economic Research Service reported that more than 29 million egg layers had been lost by May 2, 2022, against a table-egg flock of about 305 million on April 1. By March 25, 2025, according to a Congressional Research Service summary of USDA APHIS data, 168 million birds had been affected since 2022, and table-egg layers made up about 75% of the losses.
A hen takes months to replace: a pullet has to be hatched and raised before it starts laying. So supply could not bounce back quickly, and in the short run the supply curve shifted sharply to the left.
What the BLS average price shows:
| Month | Eggs, per dozen | What was happening |
|---|---|---|
| 2019 average | $1.40 | Before the outbreaks |
| January 2023 | $4.82 | First peak after the 2022 losses |
| August 2023 | $2.04 | Flocks rebuilt, price back near its old range |
| March 2025 | $6.23 | Highest in the series after the 2024–25 wave |
| October 2026 | $2.32 | Supply recovered |
Three lessons sit in that table.
- A supply shock raises price and lowers quantity at once. CRS, using USDA data, reports that the average number of table-egg-laying hens in 2024 was 5.3% lower than in 2021. Fewer hens meant fewer eggs, and people bought fewer because they cost more: a movement up the demand curve, not a collapse in the desire for eggs.
- The price moved far more than the quantity. Eggs have few close substitutes in cooking and baking, so buyers cut back only a little even when the price tripled. When demand is that unresponsive, a small fall in supply needs a large rise in price to ration what is left.
- High prices carry their own cure. They paid farmers to restock and drew in imports and substitutes. As supply recovered, the same curves pushed the price back down, and by October 2026 it was within about a dollar of its pre-outbreak level.
Gasoline: the same mechanism, faster
The lower panel shows the same pattern in a market where supply and demand both moved. The average price of a gallon of regular reached $5.06 in June 2022, the high of the BLS series, after crude oil prices jumped when Russia invaded Ukraine, while demand was still recovering from the 2020 lockdowns. When crude fell back, so did the pump price: $3.36 by December 2022. The crude-oil side of that story is in Oil prices and the economy: WTI, Brent, gasoline and inflation.
Pitfalls when reading prices
- "Demand fell" may be the wrong story. Fewer eggs sold at a higher price is what a supply cut looks like. Before blaming buyers, ask which curve moved.
- One price, many markets. The BLS average is a retail price across US cities. Wholesale prices, individual stores and regions can move at different times and by different amounts.
- Short run versus long run. Supply curves are steeper in the short run, when capacity is fixed, and flatter once producers can add hens, wells or factories. The same shock does more damage in month one than in year two.
- Prices are not the whole cost. Shortages also show up as empty shelves, purchase limits and lower quality. Where prices are capped, these become the main way a market rations.
- The model holds other things equal; the world does not. In 2022 general inflation was also running near 9% a year (see Inflation: what it is, how it’s measured and what it does to money), so part of every price rise came from rising costs across the economy, not from one market's curves.
Supply and demand compared with related ideas
| Idea | Question it answers | Lesson |
|---|---|---|
| Supply and demand | Where does the price settle? | This page |
| Price elasticity | How far does quantity react to price? | Price elasticity of demand: formula, midpoint method and gasoline |
| Opportunity cost | What do you give up by choosing one option? | Opportunity cost: the price of the choice you did not make |
| Inflation | Are prices rising across the board? | Inflation: what it is, how it’s measured and what it does to money |
| The CPI | How is the average price level measured? | The CPI report: how BLS builds it and how to read it |
The distinction in the last two rows matters. Supply and demand explain relative prices: why eggs got dearer compared with bread. A general rise in all prices is inflation, a monetary and economy-wide story. The CPI blends both: eggs are one of hundreds of items in it.
How Finabase does it
Finabase does not carry retail food prices; the egg and gasoline charts on this page are ours, drawn from public BLS series. What the app does show is supply and demand at work in traded markets:
- The futures page lists commodity futures, where producers and buyers set prices for oil, gasoline, grains, livestock and metals months ahead. The RBOB gasoline future and the WTI crude oil future have their own symbol pages and charts.
- Company pages show how a supply shock reaches a business. The page for Cal-Maine Foods (CALM), a large US egg producer, has its price chart, financials and news, so you can see how the market valued an egg producer through the outbreaks.
- The Economy news topic collects articles on shortages, harvests and price spikes as they happen.
A stock or futures price is itself set by supply and demand: orders to buy and orders to sell meeting at a price. The same logic that cleared the egg market clears an order book every second.
Frequently asked questions
What is the law of supply and demand?
It says that the price of a good moves toward the level where the quantity buyers want equals the quantity sellers offer. A shortage pushes the price up and a surplus pushes it down until the two match.
What is the difference between demand and quantity demanded?
Demand is the whole curve; quantity demanded is one point on it. A change in the good's own price changes the quantity demanded. A change in income, tastes or the price of a substitute changes demand itself, shifting the curve.
Why did egg prices go up so much in 2023 and 2025?
Mainly because avian flu forced the destruction of tens of millions of laying hens, a sharp fall in supply. Because people keep buying eggs even when they are expensive, the price had to rise a lot to bring purchases down to the smaller supply. The BLS average peaked at $4.82 in January 2023 and $6.23 in March 2025.
Do supply and demand set stock prices too?
Yes. A share price is where buy and sell orders meet. What shifts the curves is different: news about earnings, interest rates and risk appetite moves how many shares people want to hold at each price.
Summary
Demand slopes down, supply slopes up, and the price settles where they cross. A change in the good's own price moves along a curve; anything else shifts it. A supply shock, such as the avian flu outbreaks that culled tens of millions of US laying hens from 2022, shifts supply left, so the price rises and the quantity falls. Because buyers barely cut their egg purchases, the BLS average price went from $1.40 a dozen in 2019 to $4.82 in January 2023 and $6.23 in March 2025, and fell back to $2.32 by October 2026 as flocks were rebuilt. How big a price move a shock causes depends on how sensitive buyers and sellers are, which is the next lesson: Price elasticity of demand: formula, midpoint method and gasoline.
Check your understanding
4 questions on this lesson. Each answer comes with the reason, and nothing is scored.
A news report says: "Egg prices doubled and shoppers bought fewer eggs, so demand for eggs collapsed." What is the better reading?
- Correct: lower purchases mean lower demand
- Supply fell; buyers moved along an unchanged demand curve to a smaller quantity at a higher price
- Demand rose, which is why the price doubled
Show the answer
B. Supply fell; buyers moved along an unchanged demand curve to a smaller quantity at a higher price A higher price with a smaller quantity is the signature of a supply cut. Buyers responding to price is a change in quantity demanded, a movement along the curve, not a shift of demand.
A new study says coffee is healthy, and at the same time a frost cuts the Brazilian harvest. What can you say for sure about the coffee market?
- The price rises; the quantity sold could go either way
- The quantity sold rises; the price could go either way
- Both price and quantity rise
Show the answer
A. The price rises; the quantity sold could go either way Demand shifting out and supply shifting in both push the price up. On quantity they pull in opposite directions, so the result depends on which shift is larger.
In a market with demand P = 10 − 0.5Q and supply P = 1 + 0.25Q, a $3 per-unit cost rise shifts supply to P = 4 + 0.25Q. Why does the price rise by only $2?
- Because sellers are forced by law to absorb a third of the cost
- Because some buyers drop out at the higher price, so sellers cannot pass on the whole cost
- Because the demand curve shifts down by $1
Show the answer
B. Because some buyers drop out at the higher price, so sellers cannot pass on the whole cost The new equilibrium is at a smaller quantity (8 instead of 12). Sellers earn $6 but pay $3 more per unit, so they bear part of the shock. The split depends on how steep each curve is.
Why did egg prices fall back to about $2.32 a dozen by October 2026 after peaking at $6.23 in March 2025?
- Consumers boycotted eggs permanently
- High prices paid farmers to restock, so supply shifted back out as flocks recovered
- The government fixed the retail price of eggs
Show the answer
B. High prices paid farmers to restock, so supply shifted back out as flocks recovered High prices are a signal and an incentive. Once replacement hens started laying, supply recovered and the same demand curve met a larger supply at a lower price.
Exercise
One task to do in Finabase. Nothing is graded or saved.
Open the five-year chart of the RBOB gasoline future, the wholesale price of US gasoline. Find the 2022 peak and note the month. Then find where the price stood by the end of 2022. The lesson’s pump price peaked at $5.06 a gallon in June 2022, after crude oil jumped on Russia’s invasion of Ukraine, and was down to $3.36 by December. Does the wholesale chart show the same rise and fall? Which curve moved: supply or demand?
Open the RBOB gasoline chartWhat you should find
The future peaks around mid-2022 and gives back much of the rise by the end of the year, the same shape as the pump price, which follows with a lag. That is a supply shift: dearer crude raised the cost of making gasoline, so the price rose while drivers cut back only a little. When crude fell, supply shifted back and so did the price.
Sources and further reading
- BLS — Average price: eggs, grade A, large, per dozen, US city average (FRED series APU0000708111), downloaded 2026-11-18
- BLS — Average price: gasoline, unleaded regular, per gallon, US city average (FRED series APU000074714), downloaded 2026-11-18
- USDA Economic Research Service — Recent avian flu outbreak reduces U.S. egg-laying flock (Chart of Note, May 13, 2022), retrieved 2026-11-18
- Congressional Research Service — U.S. Egg Production and Retail Prices, In Focus IF12949 (updated April 14, 2025), retrieved 2026-11-18
- USDA APHIS — Confirmations of highly pathogenic avian influenza in commercial and backyard flocks, retrieved 2026-11-18
