HomeArticlesSociety & Economics

The Tragedy of the Commons: Modelling a Shared Resource

Garrett Hardin's famous parable turned into a dynamical system: a logistically regrowing resource, a mix of cooperators and free-riders, and the harvest rate that decides collapse or sustainability.

mysimulator teamUpdated June 2026≈ 8 min read▶ Open the simulation

Hardin's pasture

In a 1968 essay in the journal Science, ecologist Garrett Hardin gave the modern name to an ancient problem: a shared pasture, open to any herder who wants to graze cattle on it. Each herder gains the full benefit of adding one more animal, but the cost of the pasture becoming a little more overgrazed is shared among every herder who uses it. Since the private gain to any individual outweighs their own small share of the collective cost, Hardin argued that each herder is individually incentivized to keep adding animals — right up until the pasture is stripped bare and everyone, including the herder who "won" the most, loses.

live demo · a shared resource pool under harvesting pressure● LIVE

Turning the parable into equations

The parable becomes a testable model once the resource's own regrowth is written down explicitly. A common choice is logistic growth: the resource replenishes fastest at intermediate stock levels, and levels off as it approaches a carrying capacity K, exactly the pattern real fish, timber and grazing-land populations tend to follow:

dR/dt = r * R * (1 - R/K)  -  H

R = current resource stock
r = intrinsic regrowth rate
K = carrying capacity (max sustainable stock)
H = total harvest rate, summed across every user

At H = r*K/4, regrowth is at its fastest possible rate —
this is the "maximum sustainable yield": the highest harvest
the resource can absorb forever without shrinking.

Push the total harvest rate H above that maximum sustainable yield, even briefly, and the resource stock R starts a decline that regrowth cannot reverse — the classic collapse trajectory. Below it, the resource can, in principle, support indefinite harvesting forever.

Cooperators and free-riders

The interesting dynamics appear once the population of harvesters is split into two strategies. Cooperators voluntarily cap their own harvest at a sustainable share; free-riders harvest as much as they can regardless of the resource's condition. As long as free-riders remain a small minority, cooperators' restraint can keep the total harvest below the sustainable threshold and the resource survives — but every free-rider captures a larger individual payoff than a neighbouring cooperator, so imitation-based strategy updating (copying whichever strategy is currently paying off better) tends to reward defection and erode cooperation over time, exactly the incentive structure Hardin described, now made explicit and quantifiable.

Ostrom's rebuttal

Hardin's original essay treated the tragedy as close to inevitable without either privatising the resource or imposing external government regulation. Political economist Elinor Ostrom spent decades documenting real commons — Swiss alpine pastures, Japanese village forests, Spanish irrigation systems — that communities have managed sustainably for centuries through their own locally crafted institutions: clearly defined boundaries of who may use the resource, graduated sanctions for overuse, and low-cost conflict-resolution mechanisms. Her work, recognised with the 2009 Nobel Memorial Prize in Economic Sciences, showed that the tragedy is a real risk under open, unregulated access — not an unavoidable law of shared resources in general.

The harvest quota as a policy lever

In the model, the single most direct intervention is a hard cap on total harvest, set at or below the maximum sustainable yield — the resource-management equivalent of a fishing quota or a grazing permit system. It does not require changing anyone's underlying strategy or motivation; it simply enforces, by external constraint, the outcome that voluntary cooperation alone might fail to sustain once free-riders are present in large enough numbers.

Frequently asked questions

Is the tragedy of the commons inevitable for any shared resource?

No. Economist Elinor Ostrom, who won the Nobel Memorial Prize in Economic Sciences in 2009 largely for this work, documented many real-world commons — irrigation systems, fisheries, forests — that communities have sustainably managed for generations through locally developed rules, monitoring and social sanctions, without any external regulator or full privatisation.

What is the maximum sustainable yield in this model?

It is the highest harvest rate a logistically regrowing resource can sustain indefinitely without shrinking over time. Because logistic regrowth is fastest at intermediate population levels, the maximum sustainable yield occurs at roughly half the resource's carrying capacity — harvesting faster than that pushes the resource below the point where regrowth can keep pace, leading to decline or collapse.

Why do free-riders cause a worse outcome than pure self-interest alone would suggest?

Because a free-rider captures the full benefit of extra harvesting while the cost — a depleted shared resource — is spread across every user, including cooperators who limited their own take. That mismatch between individual benefit and shared cost is the whole mechanism of the tragedy: it rewards defection even when everyone would be better off if everyone cooperated.

Try it live

Everything above runs in your browser — open Tragedy of the Commons and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Tragedy of the Commons simulation

What did you find?

Add reproduction steps (optional)