Secure multi-party computation explained in plain terms starts with a puzzle. Imagine three rival companies want to know their average salary, but none of them will reveal its own figures to the others. The central question is how they can compute a shared answer when nobody will show their working, and the answer is cryptography that splits each secret into pieces, so the calculation happens on the pieces and no single party ever sees another’s input.
Secure multi-party computation, usually shortened to MPC, is a family of techniques that lets several parties jointly compute a function over their private inputs while keeping those inputs private. Each party learns only the final result, and nothing else, even though the computation genuinely used everybody’s data.
The idea is older than the name suggests, dating to the early 1980s, but it spent decades as a research curiosity before faster networks and better protocols made it practical. This article explains how MPC works, where it is used, and what still limits it.
Key takeaways
- MPC lets several parties compute a shared answer without revealing their inputs.
- Secrets are split into shares, so no single party ever holds a complete input.
- Each party learns only the final result, and nothing about the other inputs.
- Protocols vary in speed, trust assumptions, and tolerance for cheating parties.
- MPC suits auctions, benchmarking, and joint analysis between rivals or regulators.
What secure multi-party computation is
The classic statement of the problem comes from Andrew Yao’s millionaires’ problem of 1982: two millionaires want to know who is richer, without either revealing their wealth to the other. It sounds like a parlour trick, but it captures a real need, because businesses, hospitals, and governments constantly want to learn from each other’s data while keeping that data private.
MPC solves it by splitting each input into shares and distributing them. A single share looks random and reveals nothing on its own, but the shares can be combined through arithmetic to produce the answer. The computation is done on the shares, not on the secrets, so no party ever holds another party’s data in a readable form.
The security guarantee is usually described in terms of honest and malicious parties. Some protocols assume everyone follows the rules but peeks at whatever they see, while stronger ones stay safe even when some parties actively cheat, lie about their inputs, or try to learn more than the result. The stronger the guarantee, the slower the protocol, and choosing between them is the first real decision in any MPC project.
How secret sharing works
Secret sharing is the foundation of most MPC systems, and the simplest version is easy to picture. To share a number among three parties, you pick two random numbers, give one to each of the first two parties, and give the third party the value that makes all three add up to the secret. Any two shares together look random, but all three reconstruct the number exactly.
Addition on shared numbers is free: each party simply adds its own shares together, and the result is a sharing of the sum. Multiplication is harder, because multiplying shares does not give a sharing of the product, and the parties must exchange extra messages, using precomputed material, to do it safely. This is why MPC programs are usually described as circuits of additions and multiplications, and why the number of multiplications decides the cost.
There is also a threshold flavour of sharing, in which any group of a certain size can reconstruct the secret, but a smaller group learns nothing. That version underpins shared custody of keys, where three of five trustees must cooperate to sign, and no two can act alone. It is the same mathematics, turned to a different job.
The main approaches to MPC
Several families of protocols exist, and each fits a different situation. Secret-sharing protocols, such as SPDZ, are fast when the parties are honest and the network is quick, and they handle arithmetic well, which suits statistics and machine learning. Garbled circuits, from Yao’s original work, are better for comparisons and branching logic, such as auctions, where the answer depends on which input is larger.
Homomorphic encryption is a close cousin, letting one party compute on encrypted data without decrypting it, and it suits the case where one party holds the data and another holds the question. Our guide to homomorphic encryption explains that approach in detail, and the two techniques are often combined in real systems.
Trusted hardware offers a shortcut: run the computation inside a secure enclave that none of the parties can inspect, and let the hardware guarantee privacy. It is far faster than pure cryptography, but it shifts the trust onto the chip maker, which is a trade many regulated industries are unwilling to make for their most sensitive data.
The honest truth is that most production MPC today is a hybrid. A system might use secret sharing for the heavy arithmetic, garbled circuits for the comparisons, and a public ledger to record that the computation happened fairly, picking the best tool for each step rather than forcing one protocol to do everything. Our guide to Merkle trees explains the structure such a ledger uses to prove nothing was altered.

Comparing MPC with other privacy techniques
MPC is one of several ways to learn from data without exposing it, and each has a different balance of privacy and practicality. Differential privacy protects individuals by adding noise to answers, which suits public statistics but not exact calculations. Federated learning trains models without centralising data, but it can leak information through the model updates themselves.
The table below compares the leading approaches.
| Aspect | Multi-party computation | Homomorphic encryption | Differential privacy | Federated learning |
|---|---|---|---|---|
| Answers are exact | Yes | Yes | No, noise is added | Approximately |
| Inputs stay private | Yes, by design | Yes, encrypted | Yes, statistically | Mostly, with caveats |
| Speed | Moderate, network-heavy | Slow for complex work | Fast | Moderate |
| Best for | Joint calculation | Outsourced computing | Public statistics | Training on device data |
The practical result is that MPC is the right choice when several parties must compute an exact answer together and none of them trusts the others with raw data. When the answer can be approximate, or only one party holds the data, the simpler techniques usually win.
Where MPC is used
Auctions were one of the first real deployments. In 2008, Danish sugar beet farmers used MPC to run a double auction for production contracts, so that no farmer could learn another’s bid, and the market cleared fairly. It remains the textbook example of MPC in production, because an auction is exactly a joint computation over private inputs.
Finance uses MPC for benchmarking and risk analysis. Banks that would never share their loan books can still compute industry averages, detect fraud patterns across institutions, and run stress tests together, which regulators increasingly expect. Custody of cryptocurrency keys is another large use: the private key is split across servers, so no single breach can steal the funds.
Healthcare uses MPC for research across hospitals that cannot legally share patient records. Several hospitals can jointly train a model or compute survival statistics without any patient data leaving its home hospital, which satisfies privacy law while still letting researchers learn from the combined population.
Advertising and identity are newer frontiers. Browsers and ad platforms are exploring MPC to measure campaign results without building a shared database of who saw what, and governments are testing it for privacy-preserving tax and census analysis. Our guide to zero trust explains the wider shift towards systems that assume no party is fully trusted, which is the worldview MPC was built for.
What still limits MPC
Performance is the first limit. MPC protocols exchange many messages, and the cost grows with the number of parties and the complexity of the calculation. A computation that takes seconds on plain data can take minutes or hours under MPC, and the gap is worst when the parties are far apart on a slow network.
Complexity is the second. Writing an MPC program is not like writing ordinary software: the developer must think in circuits, manage shares, and understand the trust assumptions of the protocol, and the tooling is still young compared with ordinary programming languages. A bug in an MPC program can silently leak data, which is worse than a crash.
Trust assumptions are the third. Some protocols are only safe if a majority of parties are honest, and some need an honest setup phase, where shared randomness is generated before the real computation. If those assumptions fail, the guarantees fail with them, so choosing a protocol means auditing its assumptions against the real behaviour of the parties involved.
None of these limits is fatal, and all of them are shrinking as the field matures. The honest view is that MPC has moved from impossible to expensive, and is now moving from expensive to practical, one deployment at a time.
Secure multi-party computation checklist
- Define exactly what each party may learn, which should be only the final result.
- Choose a protocol whose trust assumptions match how the parties really behave.
- Keep the computation simple; every multiplication adds network cost.
- Use threshold sharing for key custody, so no single party can act alone.
- Test with malicious parties in mind, not just honest ones.
- Measure performance on a realistic network before promising a deadline.
- Combine MPC with other tools where a hybrid is faster and just as safe.
- Record the computation transparently so parties can verify it happened fairly.
- Start with a narrow pilot, such as one benchmark, before wider deployment.
Frequently asked questions
What is secure multi-party computation?
It is a set of cryptographic techniques that lets several parties compute a shared answer from their private inputs, so each party learns only the result and nothing about the others’ data.
How is MPC different from encryption?
Encryption protects data while it is stored or sent, but it must be decrypted before use. MPC keeps data private while it is being computed on, which is a stronger and harder guarantee.
Do the parties need to trust each other?
Not with their data, which is the point. They must agree on the computation and the protocol, but the cryptography ensures that no party can learn another’s input, even if it tries.
Is MPC fast enough for real use?
For many jobs, yes. Simple statistics, auctions, and key custody already run in production, though heavy machine learning under MPC is still slow and usually needs a hybrid design.
What is secret sharing?
It is the technique of splitting a secret into pieces that look random alone but reconstruct the secret together, so the computation can run on the pieces without ever exposing the whole.
Where is MPC used today?
In auctions, financial benchmarking, joint fraud detection, medical research across hospitals, and cryptocurrency custody, where several parties must cooperate without trusting each other with raw data.
The bottom line
Secure multi-party computation explained in one line is this: compute together, reveal nothing, and let the cryptography carry the trust.
It is slower and harder than plain computation, but it answers a question that nothing else can: how do rivals learn from each other without handing over their secrets.
This article is general information about how secure multi-party computation works, not advice about choosing a privacy technique for a particular project.







