PLAIN QUANTUM
Search
Free tool

Mosca's inequality calculator

  • By Muhammad Atif
  • Reviewed 20 October 2026

Mosca's inequality is the simplest test for when to start post-quantum migration: moving the systems that protect your data to post-quantum cryptography. It compares three numbers: how long your data must stay secret (X), how long it will take to migrate the systems protecting it (Y), and how long until a quantum computer could break today's public-key cryptography, the kind used to set up encryption keys and to create digital signatures (Z). If X plus Y is larger than Z, your migration may finish too late to protect some information for its full confidentiality lifetime under that timeline. Whether data already recorded today could still be sensitive when such a machine arrives is a separate question: compare X with Z.

Nobody knows Z. So this calculator doesn't ask you to guess one number. It asks for three hypothetical timelines and shows what each would mean. X and Y are assumptions too: the estimates you enter, or the examples you accept by leaving them in place. Mosca's inequality is a planning heuristic, not a probability model: it can't predict when a cryptographically relevant quantum computer will exist, or tell you how likely one is within Z years. Treat the results as a way to test assumptions, not a forecast.

Your data and systems

The values already filled in (X = 10 years, Y = 6 years) are illustrative examples, not an assessment of your organisation. Replace them with your own estimates.

years
Examples:
years
Include inventory, supplier and partner readiness, testing and rollout, not just the technical change. Whole years only; fractions are rounded down.
Timeline scenarios for Z (your assumptions)

Z is the assumed number of years from now until a cryptographically relevant quantum computer could threaten the public-key cryptography in scope. These are your assumptions, not probability-weighted forecasts; the defaults are placeholders to edit, not estimates. The results list them from earliest to latest, whichever box you use.

The results update as you type. Until you replace the example values, they show an illustrative scenario, not your organisation's position.

Nothing you enter is stored or sent anywhere; the calculation runs in your browser.

How to read the result

  • Migration too slow under this scenario means your assumed confidentiality lifetime and migration lead time together exceed your assumed time to a cryptographically relevant quantum computer. Information protected with vulnerable public-key cryptography during the migration window could still need to stay secret when that machine arrives, if an attacker has recorded it and can exploit that cryptography. That applies to information protected from the finish-by year onwards; if the finish-by year has already passed, it includes information protected today. It's a planning signal, not a prediction that a specific system or dataset will be compromised.
  • X alone exceeds Z is an extra line shown when your confidentiality lifetime is longer than your assumed time to that machine. Then data already protected with vulnerable public-key cryptography today could also still need to stay secret when it arrives, if it was recorded. The calculator can't tell you whether any particular data was recorded.
  • If X or Y is 0, the result adds a note. With X = 0, nothing protected before the assumed machine arrives still needs to stay secret then: a "Migration too slow" result means only that vulnerable public-key cryptography would still be in use when it arrives. With Y = 0, the migration itself takes no time, so the warning is about information already protected and possibly captured before now, which migrating can't undo.
  • On the edge means X plus Y equals Z exactly: no margin at all.
  • Margin means the scenario leaves time to spare, but only if your X and Y estimates hold.

How the numbers work

All three numbers count years from the same starting point: this year, taken from your device's clock. The test is whether X + Y is greater than Z.

  • Finish-by year = this year + Z − X. New protection needs to be in place by then, so that data protected from that point stays secret until the assumed quantum computer arrives.
  • Start-by year = this year + Z − X − Y: the finish-by year minus your migration lead time. If it's in the past, the scenario says you should already have started.

Both assume X is the remaining confidentiality lifetime of data you protect from now on, and that migration must be complete before that lifetime overlaps the assumed threat. A start-by year can be in the past even when the assumed quantum computer is years away; that's the point of the test.

If even your later scenario suggests migration may finish too late, the conclusion holds for every timeline up to that scenario, so you don't need to choose between them. It still rests on your X and Y estimates, says nothing about timelines later than the ones you entered, and isn't a prediction of when a cryptographically relevant quantum computer will exist.

What the calculator doesn't tell you

  • It covers confidentiality. It models the risk that data encrypted today could be decrypted later. Digital signatures are a different problem: a capable quantum computer could undermine vulnerable signature schemes, while replacing signing keys, certificates, verification software and trust relationships may take years. Assess those with a separate inventory and migration plan.
  • Z is not known. Published resource estimates, such as the 2025 and 2026 estimates for 2048-bit RSA, describe what a machine would need under stated assumptions. They don't say when one will exist.
  • X and Y are estimates too. Retention rules give a floor for X. Y is usually longer than a first guess, because suppliers and partners have to move as well.
  • It isn't a risk assessment. It's a way to start one. The banking guide's prioritisation chapter shows how to apply the test item by item.

Sources and further reading

Tags show the kind of source (how sources are chosen and checked). Spotted an error? Report a correction.

  1. Peer-reviewed paperCybersecurity in an era with quantum computers: will we be ready?Michele Mosca, IEEE Security & Privacy, 2018
  2. PreprintHow to factor 2048 bit RSA integers with less than a million noisy qubitsCraig Gidney, 2025
  3. Government guidanceNIST IR 8547: Transition to Post-Quantum Cryptography StandardsNIST, 2026