A competitive market is one in which there are many buyers and sellers, none of whom can influence the price. Price is determined by the interaction of demand and supply. Allocative efficiency is "the socially optimum level of output". It occurs when resources are allocated in the way society values most: the output at which marginal social benefit equals marginal social cost (MSB = MSC). Marginal private benefit (MPB) is the extra benefit a consumer receives from consuming one more unit of a good, and is shown by the demand curve. Marginal private cost (MPC) is the extra cost a producer pays to produce one more unit, and is shown by the supply curve. A competitive market reaches equilibrium where demand equals supply, so MPB = MPC. This is allocatively efficient only if private benefits and costs are the same as social benefits and costs, so that MPB = MSB and MPC = MSC. This essay argues that competitive markets can achieve allocative efficiency, but not always. Externalities, the non-provision of public goods and asymmetric information all prevent it.
Figure 1 shows a competitive market with no externalities. The demand curve shows the marginal benefit consumers receive from each unit (D = MB). Because there are no external benefits, MPB = MSB. The supply curve shows the marginal cost of producing each unit (S = MC). Because there are no external costs, MPC = MSC. The market reaches equilibrium at E, where demand equals supply, at price Pₑ and quantity Qₑ. At Qₑ, the marginal benefit of the last unit equals its marginal cost, so MSB = MSC.
This is the optimal allocation of resources. If output were below Qₑ, demand would lie above supply, so MB > MC. Producing one more unit would add more to society's benefit than to its costs, so too few resources would be allocated to the good. If output were above Qₑ, supply would lie above demand, so MC > MB. The extra unit would cost society more than the benefit it provides, so too many resources would be allocated to it. Only at Qₑ is no further gain possible. Community surplus, the sum of consumer surplus (the area below demand and above Pₑ) and producer surplus (the area above supply and below Pₑ), is therefore maximised. The price mechanism achieves this automatically: consumers buy every unit they value at Pₑ or more, and firms produce every unit that costs Pₑ or less to make.
Some real markets come close to this result. The world market for wheat has many producers and buyers, a fairly standard product, and prices that are publicly quoted on commodity exchanges such as the Chicago Board of Trade. No single farmer can influence the price, and buyers and sellers are well informed about prices and quality grades. In such a market, demand and supply reflect the benefits and costs of the buyers and sellers themselves fairly closely, so the equilibrium output is close to the allocatively efficient level. Even here, however, the result holds only if there are no external effects. If fertiliser run-off from wheat farms pollutes rivers, for example, the market's supply curve understates the true cost to society. This shows that allocative efficiency depends on the conditions in each market, not just on competition.
Demerit goods are "goods or services considered to be harmful to people that would be over-provided by the market and so over-consumed." One important reason for this is that many demerit goods create negative externalities of consumption: "negative effects that are suffered by a third party when a good or service is consumed." Consumers make decisions based on their own MPB. The harm to third parties is an external cost that consumers do not take into account, so the benefit of consumption to society as a whole is lower than the benefit to the consumer: MSB < MPB.
Figure 2 shows price on the vertical axis and quantity on the horizontal axis, with a supply curve S = MPC = MSC and two downward-sloping curves: D = MPB, and MSB lying below it. The market equilibrium is where MPB = MPC, at quantity Qm. The social optimum is where MSB = MSC, at the lower quantity Qopt. The triangle between MPC and MSB from Qopt to Qm is shaded as the welfare loss.
In Figure 2, the competitive market produces Qm, where MPB = MPC. At Qm, however, MSC > MSB, so the last units consumed cost society more than the benefit they provide. The market over-allocates resources to the demerit good. Output is above the socially optimal level, Qopt, a welfare loss results and allocative efficiency is not achieved. Demerit goods may also be over-consumed because consumers are not fully aware of how harmful the good is to themselves, which pushes demand even further above the socially optimal level.
Cigarettes are the clearest real-world example. The World Health Organization estimates that tobacco kills more than 8 million people a year, including about 1.3 million non-smokers who are exposed to second-hand smoke. These non-smokers are third parties who bear the costs of others' consumption, and smokers do not take these costs into account. This shows that even in a market with many sellers of tobacco, the competitive outcome is not allocatively efficient. Too many cigarettes are consumed compared with the social optimum.
Merit goods are "goods or services considered to be beneficial for people that would be under-provided by the market and so under-consumed." Many merit goods create positive externalities of consumption, which are "the beneficial effects that are enjoyed by a third party when a good or service is consumed." These are external benefits rather than external costs. Consumers decide how much to buy based on their own MPB and do not take into account the benefits to others, so the benefit to society is greater than the benefit to the consumer: MSB > MPB.
Figure 3 shows price on the vertical axis and quantity on the horizontal axis, with a supply curve S = MPC = MSC and two downward-sloping curves: D = MPB, and MSB lying above it. The market equilibrium is where MPB = MPC, at quantity Qm. The social optimum is where MSB = MSC, at the higher quantity Qopt. The triangle between MSB and MPC from Qm to Qopt is shaded as the welfare loss.
In Figure 3, the competitive market produces Qm, where MPB = MPC. At Qm, however, MSB > MSC, so producing more units would add more benefit to society than they cost. The market under-allocates resources to the merit good. Output is below the socially optimal level, Qopt, a welfare loss results and allocative efficiency is not achieved. Merit goods may also be under-consumed because consumers on low incomes cannot afford them, or because consumers are unaware of their benefits.
Vaccination is a strong example. A person who is vaccinated against measles benefits themselves, but also protects others, because they cannot pass the disease on. Measles spreads very easily, so about 95% of the population must be vaccinated to give this protection to everyone. Individuals do not take this external benefit into account, so if vaccination is left to individual choice, too few people may be vaccinated. In Samoa, measles vaccination coverage fell to around 31% in 2018. In the 2019 outbreak that followed, 83 people died, most of them young children. This shows how far consumption of a merit good can fall below the social optimum when its external benefits are ignored.
Public goods are "goods or services which would not be provided at all by the market". They have two characteristics. They are non-rivalrous: one person's consumption does not reduce the amount available to others. They are also non-excludable: "it is impossible to prevent a person, or persons, from consuming a good or service." Non-excludability causes the free rider problem. Because people cannot be prevented from using the good, they have an incentive to use it without paying for it. A profit-maximising firm cannot charge a price that covers its costs, so it has no incentive to produce the good. As a result, a competitive market allocates no resources, or far too few, to public goods, even though society values them highly. MSB is far greater than MSC at the market output, so allocative efficiency is not achieved. Non-rivalry adds a further problem: because an extra user costs nothing, excluding anyone from using the good would itself be inefficient, even if it were possible.
Flood defences, national defence and lighthouses are examples. The Thames Barrier, which protects London from flooding, protects every property behind it whether or not its owner pays, and protecting one household does not reduce the protection given to others. No private firm could sell this protection to individual households, so it was built and is run by the government. However, the line between public and private goods is not always clear. Ronald Coase showed that many lighthouses in Britain were historically privately built and financed through fees charged to ships at nearby ports, which made the lighthouse service partly excludable. This suggests that markets can sometimes find ways to supply goods that look like public goods, although such cases are exceptions rather than the rule.
Even a market with many buyers and sellers may fail to achieve allocative efficiency if one side knows more than the other. Asymmetric information occurs "where one party in an economic transaction has access to more or better information than the other party." It can cause adverse selection, which arises before a transaction. In the market for used cars, sellers know whether their car is reliable or a poor-quality "lemon", but buyers cannot easily tell. Buyers are therefore willing to pay only a price that reflects the average quality of cars on the market. Owners of good cars find this price too low and withdraw from the market, so the average quality of cars for sale falls, and buyers' willingness to pay falls further. Mutually beneficial trades in good cars do not take place, so too few good cars are traded and MSB > MSC for them. Asymmetric information can also cause moral hazard, which arises after a transaction. For example, people who are insured may take less care to avoid losses, because the insurer bears most of the cost. Insurers then raise premiums or restrict cover, so less insurance is bought than is socially optimal. In both cases, resources are misallocated and allocative efficiency is not achieved.
These problems can be reduced, but not removed. Used-car dealers offer warranties, and buyers can pay for independent inspections or vehicle-history reports. Many US states have "lemon laws" that protect buyers of faulty vehicles. Insurers use excess payments (deductibles) so that policyholders still bear part of the cost of their own carelessness. The fact that firms, buyers and governments spend resources on these measures shows that information problems are a real and common source of inefficiency in competitive markets.
In conclusion, the view that allocative efficiency is always achieved in competitive markets is too strong. In theory, a competitive market reaches equilibrium where MPB = MPC. Where there are no externalities and buyers and sellers are well informed, this is also where MSB = MSC, so community surplus is maximised. Markets such as the world wheat market come close to this. However, allocative efficiency depends on private benefits and costs being equal to social benefits and costs. This does not hold for demerit goods such as cigarettes, which are over-consumed. It does not hold for merit goods such as vaccinations, which are under-consumed. Public goods such as flood defences are not provided at all because of the free rider problem, and asymmetric information prevents efficient trade in markets such as used cars and insurance. Some of these problems can be reduced by private responses, such as warranties or port fees for lighthouses, but most require government intervention. Competition is therefore necessary for allocative efficiency, but not sufficient. Allocative efficiency is achieved only in competitive markets with no externalities, no public-good characteristics and good information, and these conditions are uncommon in the real world.