PLAIN QUANTUM
Search

What is Mosca's inequality?

  • Level: Beginner
  • 3 min read
  • Quick answer
The short answer

Mosca's inequality helps you decide when to start preparing for quantum-safe cryptography. It compares how long information must stay confidential (X), how long migration will take (Y), and an assumed time until a capable quantum computer could break today's public-key cryptography (Z). If X + Y exceeds Z, migration may be too slow to protect some information for its full required lifetime. That does not automatically mean data recorded today is exposed. For that, compare X with Z, and ask whether the data was protected with cryptography a quantum computer could break.

The three numbers

  • X: how long the data must stay confidential, from now. For a bank, mortgage files and identity records can mean decades.
  • Y: how long it will take to move the systems protecting that data to post-quantum cryptography, including suppliers and testing.
  • Z: how long until a quantum computer can break today's public-key cryptography. Nobody knows this number.

If X + Y exceeds Z, the migration may be too slow to protect information for its full required confidentiality lifetime during the transition. Data already recorded today raises a separate question: could it still be sensitive when a capable quantum computer arrives? For that, compare X with Z, assuming the recorded information uses quantum-vulnerable protection. Neither comparison predicts when such a computer will exist.

Z = 15 (assumed) Short-lived dataX 3Y 47 years: done before Z Long-lived dataX 10Y 818 years: runs past Z X: how long it must stay secret Y: how long migration takes Z = 15 (assumed) Short-lived dataX 3Y 47 years: done before Z Long-lived dataX 10Y 818 years: runs past Z X: how long it must staysecret Y: how long migration takes
When the X and Y bars together extend beyond the Z line, migration may finish too late to protect some information for its full required confidentiality lifetime. This does not by itself mean that data recorded today will still be sensitive when a capable quantum computer arrives.
Data recorded today, under today's protection Z = 15 (assumed) X: 10 years X: 20 years at risk Data recorded today, under today's protection Z = 15 (assumed) X: 10 years X: 20 years at risk
The second comparison. Migrating now protects new data, not data already recorded. For data that has already been recorded, migration time no longer matters: only X against Z. The same 10-year data that runs past Z in the chart above, because migration is slow, is not at risk from what has been recorded today, under these assumed numbers.

Why you don't need to know Z

The rule's strength is that it doesn't need a forecast. Instead of guessing Z, you ask whether X + Y could run past the earliest credible estimate. For long-lived data and slow migrations, the answer is often yes even under cautious assumptions, which is the case for starting now. The reason the danger is real today is harvest now, decrypt later: data recorded today can be decrypted once the machine exists.

What about signatures?

The inequality is about confidentiality. Signatures can't be harvested in the same way, because forgery is only possible once a capable machine exists. For them, the question is simpler: will replacing the signing and checking systems (Y) take longer than the time until that machine exists (Z)? Because card networks, terminals and certificate chains change slowly, Y is often long.

Try your own numbers

The Mosca calculator runs the test against three timeline scenarios at once, and the banking guide uses it to decide what to fix first.

Common confusions

  • "It predicts when quantum computers will arrive." No. Z is an input you test, not something the rule tells you.
  • "It only matters once Z is known." No. Its point is that you can act without knowing Z.
  • "X is how long we keep the data." Not quite. It's how long the data must stay secret, which can be longer or shorter than the retention period.

Where this comes up

Sources and further reading

Tags show the kind of source (how sources are chosen and checked). Checked against these sources on 20 October 2026.

  1. Peer-reviewed paperCybersecurity in an era with quantum computers: will we be ready?Michele Mosca, IEEE Security & Privacy, 2018
  2. Government guidanceNIST IR 8547: Transition to Post-Quantum Cryptography StandardsNIST, 2026

Written by Muhammad Atif · Reviewed 20 October 2026 · Report a correction