QUANTUM
COMPUTING ERA
Era
Logical Qubits
Era Clock
reveal 14 Apr 2027
Q-Day
 
Crowd
vote open
Q-Day guide

Home / Q-Day / Mosca's theorem

Mosca's theorem

Mosca's theorem is a three-number test for quantum risk. Add the years your data must stay secret to the years you need to migrate, and compare the total with the years until a quantum computer can break your encryption. If the total is larger, you are already late.

Updated 8 November 2026. Every figure links to its source below.

The three numbers

Michele Mosca, a quantum cryptography researcher at the University of Waterloo, set out the test in a 2015 paper. He wrote it as x + y > z, where each letter is a number of years.

If x + y is larger than z, some data will still need protection after the encryption protecting it has failed. Mosca's paper notes that x depends on the application, from zero years for data that only matters in real time to decades for health records, trade secrets and national security data.

Try it

Enter your own shelf life and migration time. The table tests them against several possible years for Q-Day, because nobody knows z.

Is this data exposed if Q-Day arrives in each year
If Q-Day is inYears left (z)Result

The scenarios are not forecasts. They span the range from just after the earliest case on our clock to a date beyond the government deadlines, so you can see how much margin you have in each.

A worked example

Suppose a hospital keeps patient records for 25 years and expects migration to take 6 years. That gives x + y = 31. A quantum computer would have to be at least 31 years away for the hospital to be safe. The experts in the Global Risk Institute's 2025 report gave better than even odds of a code-breaking machine within 15 years, so that is a poor bet. The records are already late to migrate, which is exactly the case harvest now, decrypt later targets.

Now take a card payment authorised today. The shelf life x is close to zero, because the data has no value once the transaction settles, so even a long migration passes the test. The same company can be safe on one system and late on another, which is why the test is run per data set and not per organisation.

Choosing z

This is the hard part. In the Global Risk Institute's 2025 report, 26 experts gave an average chance of 28 to 49 percent that a code-breaking machine exists within 10 years, and 51 to 70 percent within 15. The numbers sit well short of certainty in either direction. Mosca himself wrote in 2015 that he estimated a one-in-two chance of breaking RSA-2048 by 2031, which is a reminder that these estimates are personal judgements.

For long-lived data, plan against the early scenarios and not the average. The cost of finishing early is some wasted effort. The cost of finishing late is a breach that cannot be undone. The Q-Day overview lists the deadlines that governments have chosen.

Estimating y honestly

Migration time is usually longer than teams expect. NIST's October 2026 transition report notes that earlier cryptographic transitions took 10 to 20 years. Your own y includes finding where cryptography is used, waiting for suppliers, testing, and replacing hardware that cannot be updated. Our guide to post-quantum cryptography describes the standards you would move to.

Questions

Quick answers

What is Mosca's theorem?

It is a rule of thumb from Michele Mosca. Add the years your data must stay secret (x) to the years migration will take (y). If the total is larger than the years until a quantum computer can break your encryption (z), you are already late.

Is Mosca's theorem a mathematical theorem?

No. It is a planning inequality, written x + y > z, and it is called a theorem by convention. It gives no proof about quantum computers, only a way to structure the decision.

What should I use for z?

Nobody knows z, so test several values. Use the early scenarios for data that must last a long time. Our Q-Day overview sets the expert survey beside the government deadlines.

How do I estimate x and y?

Ask each data owner how long the data keeps its value, and ask each system owner how long a full migration would take, including suppliers. In practice y is often longer than teams expect.

Sources

Where these numbers come from

  1. Mosca, Cybersecurity in an era with quantum computers, will we be ready? (2015, IACR ePrint 2015/1075). Defines x, y and z and states the inequality
  2. Global Risk Institute, Quantum Threat Timeline Report 2025. Expert odds for z
  3. UK National Cyber Security Centre, PQC migration timelines. A public example of y, with milestones to 2035
  4. NIST, IR 8547, Transition to Post-Quantum Cryptography Standards (October 2026). Notes that earlier cryptographic transitions took 10 to 20 years
Keep reading

More on Q-Day