Supply and demand: how prices are set, from onions to rents
Why onion prices can double in a few weeks while rents creep up for years. How buyers and sellers together set a price, worked out from a simple table; what shifts supply and demand; why small shortages cause big price jumps for things people can't do without; and what happened when India banned onion exports in 2023.
Facts reviewed Oct 2026
Nobody decides the price of onions in India. Millions of farmers, traders and households do, together, through a market.
Supply and demand is the model that explains how. It’s the most useful single tool in economics for understanding prices: vegetables, rents, shares and currencies.
Demand: what buyers want at each price
Demand is how much buyers want to buy at each possible price. Drawn on a chart, it’s a line that slopes downwards:
- when onions get cheaper, households buy a little more and restaurants use more;
- when they get dearer, people cut back or switch to something else.
Things other than the price shift the whole line:
- Incomes: richer households buy more of most things.
- Prices of related goods: substitutes (used instead, like tomato puree for tomatoes) and complements (used together, like petrol and cars).
- Tastes, population and expectations: if people expect prices to rise, they buy more now.
Supply: what sellers offer at each price
Supply is how much sellers offer at each price. Its line slopes upwards. Higher prices make it worth farmers’ while to plant more, store more, or bring stock to market. They also tempt in higher-cost producers.
Supply shifts with:
- the cost of inputs such as seeds, fuel and labour;
- technology;
- the number of sellers;
- government policy;
- and, for crops, the weather.
Where they meet: the market price
The market settles at the price where the amount buyers want equals the amount sellers offer. Economists call it the equilibrium price.
Worked example. Here’s a made-up wholesale market for tomatoes, in tonnes a day:
| Price (₹ a kg) | Buyers want | Sellers offer | What happens |
|---|---|---|---|
| ₹20 | 120 | 60 | Shortage of 60. Buyers compete; the price rises. |
| ₹30 | 100 | 100 | Balanced. This is the market price. |
| ₹40 | 80 | 140 | Surplus of 60. Unsold stock; sellers cut prices. |
- At ₹20, buyers want twice what sellers offer. Traders who can’t get enough offer more, so the price climbs.
- At ₹40, tomatoes pile up unsold. Sellers cut prices to clear them.
- At ₹30, the two match: 100 tonnes change hands. Nobody is left wanting to buy or sell at that price.
No one has to plan this. The price does the work. It tells buyers that something is scarce, and tells sellers there’s money to be made.
At ₹50 a kg, buyers want 70 tonnes of onions a day but sellers offer 110. What will tend to happen?
There's a surplus of 40 tonnes. Sellers with unsold stock cut their prices, which encourages buyers and discourages sellers until the amounts match.
Why onion prices jump
Now suppose unseasonal rain damages the crop. Supply falls. The price rises until enough buyers cut back.
How much it rises depends on how strongly buyers and sellers react to price. Economists call this reaction elasticity. (The next lesson covers it in detail.)
For a staple like onions:
- households barely cut their buying when the price rises;
- farmers can’t grow more until the next season.
Both reactions are weak. A handy rule of thumb:
% price rise ≈ % fall in supply ÷ (buyers’ reaction + sellers’ reaction)
Worked example. Supply falls 10%. Buyers’ reaction is 0.3; sellers’ is 0.2.
- Add the reactions: 0.3 + 0.2 = 0.5.
- Divide: 10% ÷ 0.5 = 20% price rise by the rule of thumb.
- Exact figure (from the calculator below): about 23%.
So a 10% shortage pushes the price up about twice as much. A 25% crop failure can push it up by three-quarters or more. That’s why vegetable prices swing wildly, while factory-made goods, whose supply can respond, move gently.
Assumes the reactions stay the same at every price. With the defaults, a 10% supply cut raises the price about 23% (20% by the rule of thumb) and cuts the amount bought by about 6%. Set buyers' reaction to 1.5, as for a product with easy substitutes, and the same shock moves the price only a few per cent.
Supply of a good falls 10%. In which market will the price rise the most?
When neither buyers nor sellers can react much, the price must move a lot to bring demand down to the smaller supply. Substitutes, extra production or delayed buying all soften the jump.
When both lines move
In real markets, both often move at once. Take gold jewellery in the festival season:
- Demand rises, because of weddings and festivals.
- At the same time, a weaker rupee makes imported gold dearer, which cuts supply at each rupee price.
Both push the price up. What happens to the amount sold depends on which shift is bigger.
A useful habit with any price headline: ask what moved demand, then what moved supply. The direction of the price usually follows.
When governments step in
Sharp food price rises are politically sensitive, so governments often act.
A real case: India’s onion export ban. After a weak harvest, India banned onion exports in December 2023. It lifted the ban in May 2024, but set a minimum export price of $550 a tonne.
- For consumers: more onions stayed at home, so prices cooled.
- For farmers: they lost export sales just when their own harvest was smaller, so their income fell.
- For trade: India’s reputation as a reliable supplier suffered, and buyers abroad turned to other countries.
Price controls follow their own logic:
- A price ceiling below the market price, such as controlled rents, causes shortages. More people want the good than sellers offer, so it’s handed out by queues, connections, or worse quality.
- A price floor above the market price, such as minimum support prices for some crops, causes surpluses, which the government must buy and store.
Rents: slow supply, steady demand
City rents follow the same model, on a slower clock.
- Demand for homes in cities like Bengaluru or Pune rises with jobs and incomes.
- Supply responds slowly: land is limited, and building takes years.
So rents in booming cities rise steadily for long periods, most of all where building is hardest. The lasting cure is more supply: more land released, taller buildings allowed, faster approvals.
Going further: prices in financial markets. Shares, bonds and currencies follow supply and demand too, with one big difference: expectations. A rise in an onion’s price makes people buy fewer onions. But a rise in a share’s price can make some people want more of it, if they expect it to keep rising. That’s how bubbles form. And the supply of a company’s shares is almost fixed in the short run. So changes in demand move the price a lot, just like onions after a bad harvest. Behavioural Finance’s lesson on herding covers how this goes wrong.
Common mistakes
- Confusing a movement along a line with a shift of the line. A price change moves you along demand; a change in incomes shifts the whole line.
- Assuming high prices mean greedy sellers. Usually they signal a shortage.
- Forgetting both sides. Ask what moved demand and what moved supply.
- Expecting price controls to be free. Ceilings cause shortages; floors cause surpluses.
- Expecting quick fixes for slow supply. Housing and harvests take time to respond.
Practice 1: A bad harvest cuts tomato supply by 20%. Buyers' reaction is 0.25 and sellers' is 0.15. Roughly how much does the price rise?
- Add the reactions: 0.25 + 0.15 = 0.4.
- Rule of thumb: 20% ÷ 0.4 = 50%.
- Exact: even more, about 75%. Enter 20, 0.25 and 0.15 in the calculator to check.
The rule of thumb understates big shocks.
Practice 2: In a city, new offices bring thousands of jobs, and the government also speeds up building approvals. What happens to rents in the short run and the long run?
- Short run: demand rises fast, but new homes take years to build. Rents rise.
- Long run: faster approvals mean more homes get built. Supply catches up, and rent rises slow down or even reverse.
How much depends on which effect is bigger, and how fast building really speeds up.
Key takeaways
- Demand slopes down; supply slopes up. The price settles where they meet.
- Incomes, related prices, tastes and expectations shift demand. Costs, technology, weather and policy shift supply.
- A supply shock moves the price by roughly the shock ÷ (buyers’ reaction + sellers’ reaction), so staples swing the hardest.
- Price ceilings cause shortages; price floors cause surpluses. India’s 2023–24 onion export ban helped consumers but hurt farmers.
- Rents rise for years where demand grows and supply is slow to follow.
Go deeper
- OpenStax: Principles of Economics, chapter 3: demand and supply.
- Department of Consumer Affairs: Price Monitoring Cell, with daily retail prices of essential foods across Indian cities.