Cobra Effect: How a Rat Bounty Ended Up Breeding Rats

October 3, 2026 Updated: October 20, 2026 · By Taylor Yang · #mental models #decision-making

In 1902, Hanoi paid for every rat tail. People cut tails off live rats and let them breed. Here is how the cobra effect works, and how to test a reward.

A three-step flow: reward a proxy, behavior adapts, and the original problem increases.

In April 1902, brown rats had overrun the new sewers under Hanoi’s French Quarter, and plague was spreading through the region. When sewer workers refused to keep hunting them, colonial officials offered a bounty: a few cents for every rat tail delivered to the police station.

Days of 7,000 to 14,000 dead rats became common. Then officials began seeing rats with no tails. People were cutting off the tails and releasing the rats to breed. Some were farming rats, and smugglers brought in more from across the region (Michael Vann interview, 2020).

The cobra effect happens when an incentive meant to reduce a problem ends up rewarding behavior that makes the problem worse. It usually starts when people are paid for a countable stand-in, like a tail or a closed ticket, that they can produce more cheaply than the real result.

Michael Vann, the historian who found the Hanoi records in colonial archives, has argued that the idea deserves a new name: the rat effect. The cobra story behind the usual name is much harder to verify.

The bounty paid for tails, and tails were cheaper than dead rats

Officials wanted fewer plague-carrying rats. They paid for tails. Those two things overlap only if every tail comes from a rat that stays dead, and nothing in the rule enforced that.

What officials wantedWhat the bounty paid forCheapest way to qualify
Hanoi, 1902Fewer rats in the cityOne tail at the police stationCut the tail off and release the rat

Once the cheapest route existed, the loop fed itself:

bounty paid per tail
        |
        v
cheapest route: cut tail, release rat
        |
        v
released rats breed ---> more rats to catch
        ^                        |
        |                        |
        +------------------------+
   tail counts rise, and so does the problem

On the worst day, more than 20,000 rats were reported killed. Even so, the counts were shaky. Vann notes that figures from that era, from the city’s population to the daily tally of dead rats, were “really a best guess.” The tally measured bounty claims. It said little about how many rats were left. That gap between what gets counted and what matters is Goodhart’s law, and the Hanoi bounty went one step further by making the problem itself grow.

So where does the cobra come from?

The famous cobra story is harder to verify than the rats

The familiar story concerns a bounty for dead cobras in colonial India. People bred cobras to collect it. When the bounty ended, they released the snakes, and the problem grew.

Treat this as a widely repeated teaching anecdote, not verified colonial history. No one has produced the records that Hanoi’s archives supply: dates, officials, counts. The mechanism is plausible, but repetition is not evidence.

A policy argument should stand on evidence about the actual program under discussion. Quoting the snake story cannot prove that a current policy will fail.

A real study makes the broader point without relying on the snake story. When Israeli daycare centers introduced a fine for late pickup, late pickups increased (Gneezy and Rustichini, “A Fine Is a Price”). Parents appear to have treated the fine as a price for extra time.

Cobra Effect: Cobra story diagram
Cobra Effect: Cobra story diagram

The same loop shows up in ordinary incentives

Intended outcomeRewarded proxyPossible adaptationWhat to check
Fewer software defectsReports closedManufacture easy reports or close too earlyReopened defects and user-visible failures
Customers receive lasting helpTickets handled per hourEnd conversations before resolutionRepeat contact and unresolved issues
Fewer preventable incidentsLow recorded incident countDiscourage reportingReporting access and independent observations
More meaningful learningCompleted activitiesChoose easy tasks and skip difficult practiceDemonstrated understanding in a new task
Cobra Effect: Examples diagram
Cobra Effect: Examples diagram

These rows describe risks, not proven outcomes. The incident row shows the line between the two ideas. If recorded incidents fall while real danger stays the same, the metric is distorted. It becomes a cobra effect only if the incentive increases danger, for example by hiding information people need to prevent the next accident.

Five questions to ask before you pay for a result

  1. Write the outcome in plain language. “Fewer rats alive in Hanoi” is clearer than “rat control.”
  2. Name what is paid for. Specify the unit, who records it, and when the reward is earned. Hanoi paid per tail, at the police station, with no check on the rest of the rat.
  3. Find the cheapest qualifying action. Think about splitting, reclassifying, hiding problems, picking easy cases, and importing units from elsewhere. Hanoi got the import route too.
  4. Check whether that action damages the outcome. Draw the steps in between. A released rat that breeds is a direct path to more rats.
  5. Choose an independent check and a stopping rule. Decide what evidence would make you change or end the policy. Tailless rats in the street should have been that signal.
Cobra Effect: Incentive audit diagram
Cobra Effect: Incentive audit diagram

Question 3 is the one most people skip. Ask it as the most cynical participant would. Second-order thinking helps trace what that person does next.

When fear of the cobra effect does harm

For the wider view of how institutions reward behavior, read why absurd systems make sense once you follow the incentives.

Questions people ask about the cobra effect

Did the cobra effect really happen?

The Indian cobra version is not well documented. The Hanoi rat bounty of 1902 is documented in colonial archives and studied by historians.

Is the cobra effect the same as an unintended consequence?

It is one kind. Unintended consequences have many causes. A cobra effect specifically involves an incentive response that makes the original problem worse.

How can you spot it early?

Watch for a reward count that climbs while independent signs of the problem stay flat or worsen. In Hanoi, the warning sign was walking around the streets without a tail.

Find the cheapest route to your own reward

Before you launch a bonus, a bounty, a quota, or even a personal reward system, spend five minutes on this card:

What I want to happen: ___
What I am actually paying for or counting: ___
Cheapest way to earn it without the goal: ___
Would that make the original problem worse? yes / no / unsure
A check that does not depend on the count: ___

To stress-test it further, ask an AI to play the most cynical person your incentive applies to and list every shortcut. The Save Effort prompt community collects self-check prompts for this kind of review.