The Value of a Counterexample and How to Hunt for One
Learn why one well-chosen example can sink a general claim, where to search for it and how to repair the statement afterward.
Key takeaways
- One case that meets every hypothesis and violates the conclusion disproves a universal statement.
- Good places to search include zero, negative numbers, fractions, equal values, degenerate shapes and very large inputs.
- Dropping one hypothesis at a time and looking for a failure shows what each hypothesis contributes.
- After a counterexample, repair the claim by finding the weakest extra condition that excludes the failure.
A counterexample is a single case showing that a general statement is false. If someone claims that every prime number is odd, you need only say "2". No amount of agreeing examples can outweigh it, because the claim was about every case.
Counterexamples do far more than win arguments. They show which hypotheses a theorem really needs, they stop you from wasting weeks on proving something false, and they often point to the true statement hiding nearby.
What counts
Most claims have the form "for every x, if P(x) then Q(x)". A counterexample is an x for which P(x) is true and Q(x) is false. Both halves matter.
Consider "if n is a multiple of 4, then n is even". The number 7 is no counterexample, since it is not a multiple of 4. The claim says nothing about it.
Claims of existence work differently. "There is a number whose square is 2" cannot be refuted by exhibiting numbers whose square is something else. To disprove it within, say, the rational numbers, you need a proof covering all of them. Knowing how to flip "for all" into "there exists" is the key, and negating statements correctly walks through it.
A gallery of small refutations
Each of these claims sounds reasonable. Each falls to a simple case.
| Claim | Counterexample | Why it fails |
|---|---|---|
| n² ≥ n for every real n | n = 0.5 | 0.25 is less than 0.5 |
| If ab = ac, then b = c | a = 0, b = 1, c = 2 | Cannot cancel zero |
| If a² > b², then a > b | a = −3, b = 2 | 9 > 4 but −3 < 2 |
| √(a + b) = √a + √b | a = 9, b = 16 | 5 is not 7 |
| Irrational times irrational is irrational | √2 × √2 | The product is 2 |
| If n is prime, so is 2ⁿ − 1 | n = 11 | 2047 = 23 × 89 |
Notice how modest most of these are. The tools are zero, a fraction, a negative number and a number multiplied by itself. Only the last needs patience, since n = 2, 3, 5 and 7 all give primes.
Where to look
Searching at random is slow. Aim at the places where general claims most often break.
Also vary the type of object. A statement tested only on positive whole numbers may fail for fractions. One tested only on triangles with all angles acute may fail for an obtuse one. A rule that numbers obey may fail for matrices.
The last is worth seeing. For numbers, ab = ba always. For 2 by 2 matrices, write each as its two rows.
A = [0 1; 0 0] B = [0 0; 1 0]
AB = [1 0; 0 0]
BA = [0 0; 0 1] so AB ≠ BA The same A also satisfies A² = zero matrix although A is not zero, which defeats another rule borrowed from ordinary numbers.
Building an example to order
Sometimes you cannot stumble on a counterexample and have to construct it. Work backward from what it needs to do.
Claim: of two data sets, the one with the larger mean also has the larger median. To break it, you want one set whose mean is pulled up by a single large value while its middle value stays low.
set 1: 1, 1, 10 mean = 4 median = 1
set 2: 3, 3, 3 mean = 3 median = 3
set 1 has the larger mean and the smaller median A geometric claim: two triangles that share two side lengths and one angle not between those sides must be congruent. Take angle A = 30°, with the side opposite it of length 5 and a second side of length 8. The law of sines gives sin B = 8 × 0.5 / 5 = 0.8. Two angles between 0° and 180° have this sine, about 53.1° and about 126.9°, and each leaves room for a third angle. So there are two different triangles with the same data, and the claim is false.
In both cases the construction began with a diagnosis: which feature of the situation does the claim wrongly assume to be fixed?
Let the failed proof guide you
A powerful method is to try proving the claim and watch where you get stuck. The step you cannot justify tells you what a counterexample must do.
Claim: if n divides the product ab, then n divides a or n divides b. A proof would like to say that n has to go wholly into one factor. Why should it? If n can be split into pieces, one piece could divide a and the other b. So choose a composite n.
n = 6, a = 2, b = 3
6 divides 2 × 3 = 6
6 does not divide 2, and 6 does not divide 3 The failed step also reveals the repair. When n is prime, it cannot be split, and the statement becomes true. This is a basic property of primes, central to unique factorization.
Testing hypotheses one at a time
Take a theorem you believe and delete a condition. Then look for a failure.
The extreme value theorem says that a continuous function on a closed, bounded interval reaches a largest value. Remove "closed": the function f(x) = x on the interval 0 < x < 1 gets arbitrarily near 1 and never reaches it. Remove "bounded": f(x) = x on all x ≥ 0 grows forever. Remove "continuous": define f(x) = x for 0 ≤ x < 1 and f(1) = 0, and again no largest value exists.
Three examples, and now you know why the theorem lists three conditions. Memorizing the statement becomes much easier.
Famous counterexamples that changed mathematics
It was once natural to expect that a continuous curve must have a tangent at most points. In 1872 Karl Weierstrass presented a function that is continuous everywhere and differentiable nowhere. It forced analysts to rely on precise definitions where pictures had seemed enough.
Euler conjectured that no pair of mutually orthogonal Latin squares, a kind of paired grid design, exists for sizes such as 6 or 10 that leave remainder 2 on division by 4. Size 6 is indeed impossible. Around 1959 and 1960, R. C. Bose, S. S. Shrikhande and E. T. Parker showed that such pairs do exist for size 10 and for all larger sizes in that family.
Some false claims resist for a very long time, because their smallest counterexamples are huge. Patterns that break late collects several.
Repairing a broken claim
A counterexample is the start of the next question. You have three broad options.
- Add a hypothesis that excludes the bad case, as in requiring n to be prime above.
- Weaken the conclusion, for instance replacing "a > b" with "|a| > |b|" in the claim about squares.
- Rethink a definition, if the offending object is not what you meant to talk about.
The third needs care. Redefining terms only to dodge every exception can drain a theorem of content. The philosopher Imre Lakatos examined this tug of war in his book Proofs and Refutations, using Euler's formula V − E + F = 2 for polyhedra. A cube with a smaller cube-shaped cavity inside has 16 vertices, 24 edges and 12 faces, giving 4. Whether that object should count as a polyhedron is exactly the kind of question that sharpens a definition.
Counterexamples when learning
Students and teachers can use the same tool to clear up misconceptions. A rule such as "multiplying makes numbers bigger" works for whole numbers above 1 and fails for 8 × 0.5 = 4. "The larger denominator means the larger fraction" fails for 1/5 against 1/2. "Doubling the sides of a square doubles its area" fails the moment you draw it, since four copies of the small square fit inside the large one.
A good classroom habit is to sort claims into "always true", "sometimes true" and "never true". A claim in the middle group needs two examples, one on each side, and then invites the better question of exactly when it holds. This asks learners to produce evidence instead of reciting a rule.
Meeting a counterexample to your own belief is not a failure. It marks the precise edge of an idea you had stretched too far, and the corrected version is usually easier to remember than the original.
A practical search plan
- Write the claim with all its quantifiers and hypotheses.
- Test the tiniest cases, including zero and any boundary.
- Try one example of each different type of input.
- Attempt a proof and note the weakest step.
- Build an object designed to defeat that step.
- If a computer is available, search systematically over small inputs.
- Verify the candidate carefully: all hypotheses true, conclusion false.
Step 7 matters more than people expect. Many supposed counterexamples quietly violate a hypothesis. For the logic of presenting one, see disproof by counterexample. And if an honest, wide search turns up nothing, that is useful information too: it is time to put real effort into a proof, while staying alert to the possibility that the example you need is stranger than any you have tried.