Short answer

Mosca’s inequality says that if the years your data must stay confidential, plus the years you need to migrate, are greater than the years until quantum computers can break your encryption, you already have a problem. Apply it to each type of data and its retention period, and you know which data to protect first.

Why the question comes up now #

Most organisations now ask not whether they must migrate, but when to start. The honest answer depends on a date nobody can predict. Michele Mosca, of the University of Waterloo, proposed in 2015 a way to answer the question without that date.

Three numbers decide whether your data is at risk #

The inequality uses three spans of time:

The three values in Mosca’s inequality
Symbol Meaning Example
X How many years the data must stay confidential after it is created Patient records kept for 20 years: X = 20
Y How many years your organisation needs to migrate the systems protecting that data Inventory, testing and rollout: Y = 5
Z How many years from now until a quantum computer can break the public-key cryptography in use Not known; you choose a cautious estimate

The rule is:

X+Y>Z

If it holds, you have a problem today. Mosca’s reasoning is that data protected by vulnerable encryption now can be recorded now and broken later, so the question is whether it will still matter when that happens.

Z is the one value nobody knows, so the useful exercise is to test several scenarios. The figures below are illustrative, not predictions:

Three scenarios for Z, with X + Y = 25 years
Scenario for Z X + Y = 25 years Result
Z = 10 years 25 > 10 Problem already: act now
Z = 20 years 25 > 20 Problem already: act now
Z = 30 years 25 < 30 Within the margin, but Z is uncertain: plan to migrate anyway

A small change in Z can move data from “safe for now” to “exposed today”. The inequality also tells you when to act, not which algorithm to use. It measures the time you have left, and whether that time is enough.

How to use it on your retention periods #

  1. List your data types and their retention periods (X). Use the longest period during which the data remains sensitive, not only the legal minimum. Health records, contracts, research and personal data with long retention are the usual cases.
  2. Estimate the migration time (Y) for each system that protects them. Include the inventory of keys and certificates, vendor dependencies, testing and the rollout. Be realistic: Y is often the largest and least known value.
  3. Choose a cautious value for Z, based on the most credible estimates you can cite, and write it down with the date you chose it. A common reference is the Global Risk Institute’s yearly expert survey: in its 2025 report, published in March 2026, a quantum computer able to break today’s public-key cryptography is “quite possible” within 10 years (28 to 49%) and “likely” within 15 years (51 to 70%).
  4. Add X and Y for each data type, and compare with Z. Rank the results. The data with the largest X + Y, or the one already over Z, goes first.
  5. Review the sum regularly. New estimates for Z, a new retention rule or a slower migration can change the answer.

Do not wait for X + Y to exceed Z before you start. Migration takes time, so the margin is the time you have left to act.

What it means for your organisation #

  1. Write down retention periods per data category. This gives you X for each type of data.
  2. Estimate migration time per system. This gives you Y, and shows which systems are slowest to change.
  3. Record your Z assumption and its date. A written assumption can be reviewed; an unstated one cannot.
  4. Start with the data where X + Y is largest. These are the flows to protect first.

Sources #

  1. Michele Mosca, Cybersecurity in an era with quantum computers: will we be ready?, 5 November 2015.
  2. Michele Mosca and Marco Piani, Global Risk Institute and evolutionQ, Quantum Threat Timeline Report 2025, 9 March 2026.

AI tools assisted with the research, drafting and fact-checking of this article. The author wrote and approved the final text, and a second reviewer checked every source against the original.