pequalsnp
P vs NP: Unsolved. Checked 26 Nov 2026. See the status

The P vs NP problem, explained

The P vs NP problem asks whether every problem whose solution can be checked quickly can also be solved quickly. "Quickly" has a precise meaning, polynomial time, and P and NP are the classes of problems that can be solved and checked in polynomial time. Nobody has proved the answer either way: P vs NP is open, and it is one of the Clay Mathematics Institute's Millennium Prize Problems, worth $1 million.

The question in one sentence

If a solution can be checked quickly, can it also be found quickly?

Take a map of 50 cities and the roads between them, and ask whether there is a round trip that visits every city exactly once. If someone hands you a route, checking it takes moments: confirm each city appears once and each leg is a real road. Finding such a route is another matter. Trying every ordering means checking about 3 × 10^62 distinct round trips, and while cleverer methods exist, no known algorithm solves the general problem in polynomial time.

P vs NP asks whether that gap between checking and finding is real, or whether we just haven't found the right algorithm yet.

What "quickly" means: polynomial time

Complexity theory measures running time as a function of the input size, written n. An algorithm runs in polynomial time if its number of steps is at most some constant times n^k, for a fixed exponent k. Alan Cobham and Jack Edmonds proposed polynomial time as the formal notion of "efficient" in the 1960s, and Edmonds called such algorithms "good algorithms."

The difference from exponential time is dramatic:

Input size n n^2 steps n^3 steps 2^n steps
10 100 1,000 1,024
100 10,000 1,000,000 about 1.3 × 10^30
1,000 1,000,000 1,000,000,000 about 1.1 × 10^301

Polynomial does not automatically mean practical. As Stephen Cook points out in the official Clay description, a program needing n^100 steps could never finish even for n = 10. Cook's more careful claim is that a natural problem has a feasible algorithm exactly when it has a polynomial-time one, and in practice that usually holds.

P and NP, defined plainly

Both classes are about decision problems: questions with a yes or no answer, such as "Is there a round trip through all 50 cities?"

  • P is the class of decision problems that some algorithm can solve in polynomial time. Examples include shortest paths in a network, minimum spanning trees, bipartite matching and linear programming.
  • NP is the class of decision problems where every "yes" answer comes with a certificate (a proposed solution) that can be checked in polynomial time. The city tour is in NP: the route itself is the certificate.

NP stands for nondeterministic polynomial time. The name comes from an imaginary machine that can guess a certificate and then check it in polynomial time. It does not mean "non-polynomial."

Every problem in P is also in NP, because if you can solve a problem quickly you can check an answer by solving it. So the real question is whether P equals NP, or whether NP contains problems that are easy to check but hard to solve. See the 3D picture of P and NP on the status page.

Some problems in NP are as hard as anything in NP. These are the NP-complete problems, and if any one of them has a polynomial-time algorithm, then P = NP. Cook showed in 1971 that Boolean satisfiability, the SAT problem, is NP-complete, and Leonid Levin found a similar result independently. In 1972 Richard Karp showed that 21 natural problems were NP-complete and introduced the notation P and NP. The difference between NP-complete and NP-hard is worth knowing before reading claims about either.

Why most experts expect P ≠ NP

Bill Gasarch has polled researchers three times. The share answering P ≠ NP went from 61% in 2002 to 83% in 2012 and 88% in the 2019 poll (109 of 124 respondents). Among the respondents Gasarch classified as experts, people known to have thought seriously about the problem, it was 99%.

A poll is not evidence about mathematics, but the reasons behind the belief are worth knowing:

  • Decades of failed searches. Cook notes that a huge number of programmers and engineers, with strong industrial motivation, have tried to find efficient algorithms for NP-complete problems without success.
  • Cryptanalysts have tried too. Breaking cryptographic schemes that assume P ≠ NP would be enormously valuable, and that effort has not produced a general algorithm either.
  • Checking feels easier than finding. Recognizing a good proof, design or melody seems easier than producing one. P = NP would mean that intuition is wrong in a precise sense.

What would change if P = NP

The answer depends heavily on what kind of proof appears.

A fast, practical algorithm for an NP-complete problem would have the biggest impact. Cook writes that internet security depends on assumptions like the difficulty of factoring integers, and that if P = NP these assumptions are false; an algorithm solving 3-SAT in n^2 steps could factor 200-digit numbers in minutes. Hard scheduling, routing and design problems that industry approximates today could be solved exactly. Mathematics would change too: since formal proofs can be checked in polynomial time, a computer could find a proof of any theorem that has a proof of reasonable length.

An impractical algorithm would change far less. A polynomial-time algorithm with an enormous exponent or constant would settle the question on paper while leaving everyday computing as it is. Cook cites the Robertson–Seymour graph theorems, which give polynomial-time algorithms with constants so large they are not usable.

A non-constructive proof could show that a polynomial-time algorithm exists without telling anyone what it is. Again, the practical effect could be small until someone finds the algorithm.

A proof that P ≠ NP would confirm what most people already assume, but it would not by itself make cryptography safe. P vs NP is about worst-case inputs. Cook notes that even if P ≠ NP, NP problems might still be easy on most inputs, and that could make cryptography impossible anyway.

Why it is so hard to prove

To prove P ≠ NP you have to show that no algorithm, including every algorithm nobody has thought of yet, solves an NP-complete problem in polynomial time. Researchers have also proved that whole families of techniques cannot do the job. These results are known as barriers.

Relativization (1975)

Theodore Baker, John Gill and Robert Solovay showed that there is an "oracle" (a black box that answers some fixed question instantly) relative to which P = NP, and another relative to which P ≠ NP. Proof methods that work the same way with any oracle attached, such as diagonalization and simulation, therefore cannot settle the question.

Natural proofs (1994, published 1997)

A second line of attack tries to prove that NP problems need large Boolean circuits. Alexander Razborov and Steven Rudich showed that the known circuit lower-bound arguments share a property they called "natural," and that natural proofs cannot prove the needed lower bounds if strong pseudorandom generators exist. Such generators can be built if, for example, factoring integers is hard. They received the 2007 Gödel Prize for this work.

Algebrization (2008)

Some results, such as IP = PSPACE, get around relativization by turning logic into algebra. Scott Aaronson and Avi Wigderson showed that these techniques "algebrize," and that algebrizing techniques cannot resolve P vs NP either.

None of these barriers says the problem cannot be solved. They tell researchers what a successful proof must avoid.

The Clay Millennium Prize

The Clay Mathematics Institute announced seven Millennium Prize Problems on May 24, 2000, in Paris, with $1 million for each. Only one, the Poincaré conjecture, is officially solved; after 2026 claims, Clay now lists Navier-Stokes and the Riemann hypothesis as active (see the Millennium Prize problems status). Clay lists P vs NP as unsolved, and a correct proof in either direction would answer it. Claimed proofs appear regularly; none has been accepted. You can follow the current status of P vs NP on the status page.

Questions

Has the P vs NP problem been solved?

No. As of November 2026 nobody has a proof that P = NP or that P ≠ NP, and the Clay Mathematics Institute still lists it as unsolved.

What does NP stand for?

Nondeterministic polynomial time. It does not mean "non-polynomial": every problem in P is also in NP.

What happens if P = NP?

It depends on the proof. A fast, practical algorithm for an NP-complete problem would break much of today's cryptography and make many hard optimization problems easy, but a non-constructive proof, or an algorithm that runs in something like n^100 steps, could change very little in practice.

Do most experts think P equals NP?

No. In Bill Gasarch's 2019 poll, 88% of respondents said P ≠ NP, and among the respondents he counted as experts the figure was 99%. That is opinion, not proof.

Is there a prize for solving P vs NP?

Yes. It is one of the Clay Mathematics Institute's seven Millennium Prize Problems, each worth $1 million.

Sources

  1. Clay Mathematics Institute, P vs NP (problem page)
  2. Clay Mathematics Institute, The Millennium Prize Problems
  3. Stephen Cook, The P versus NP Problem (official Clay problem description)
  4. William Gasarch, The Third P =? NP Poll, SIGACT News 50(1), 2019
  5. Stephen Cook, The complexity of theorem-proving procedures (STOC 1971)
  6. Baker, Gill, Solovay, Relativizations of the P =? NP Question, SIAM J. Computing 4(4), 1975
  7. Razborov and Rudich, Natural Proofs, J. Computer and System Sciences 55, 1997
  8. Aaronson and Wigderson, Algebrization: A New Barrier in Complexity Theory (ECCC TR08-005, STOC 2008)
  9. Wikipedia, Natural proof (2007 Gödel Prize)
  10. Wikipedia, NP (complexity)
  11. Wikipedia, P versus NP problem

Get one email the day P vs NP changes status.

Get the alert