CKKS explained in plain terms means understanding the encryption scheme that lets a computer add and multiply numbers it cannot read, a homomorphic scheme built for real-number maths. The central question is why anyone would compute on encrypted data when decrypting first is so much easier, and the answer is privacy: CKKS lets a cloud analyse sensitive numbers without ever seeing them, so the data stays secret even while it is being used.
CKKS is a fully homomorphic encryption scheme for approximate arithmetic, named for Cheon, Kim, Kim and Song, who published it at ASIACRYPT 2017. It encodes vectors of real numbers as polynomials and supports addition and multiplication on ciphertexts, which means the result decrypts to an answer that is close to the true value, and because the error is controlled, the approximation is good enough for machine learning.
This article explains what CKKS is, how it works, and where it runs in the real world.
Key takeaways
- CKKS computes on encrypted real numbers.
- Cheon, Kim, Kim and Song published it in 2017.
- Results are approximate, with controlled error.
- Rescaling keeps numbers small after multiplication.
- It is the standard choice for encrypted machine learning.
What CKKS is
CKKS is a lattice-based encryption scheme that turns real numbers into ciphertexts that still support arithmetic, and that arithmetic is what makes it unusual among encryption schemes. Each ciphertext carries a vector of numbers packed into slots, which means thousands of values can be processed at once, and because the operations mirror the plaintext maths, the cloud can run a model without learning the inputs.
Its signature feature is approximate arithmetic. Most homomorphic schemes demand exact integers, but CKKS accepts from the start that the answer will be approximate, which means the noise in the ciphertext is treated as rounding rather than as damage, and because the error is bounded, the result is as accurate as floating-point maths already is.
The scheme was a reaction to exact-only encryption. Earlier homomorphic schemes worked on integers and needed bootstrapping to rescale, so Cheon and his colleagues asked whether real numbers could be handled directly, because machine learning is already approximate, and that practicality is what made CKKS worth building.
It became one of the best-known homomorphic schemes in the world, and it is named in every discussion of the field. The paper appeared at ASIACRYPT 2017, a faster residue-number-system variant called RNS-CKKS followed in 2018, libraries like Microsoft SEAL and OpenFHE ship it, and it is still the first example engineers meet when they learn that encryption can compute, which means the scheme survives as a tool even though it is less than a decade old.
Our guide to ML-KEM explains the lattice maths CKKS shares with post-quantum cryptography, and our guide to AES encryption explains the symmetric cipher it is often compared with.
How CKKS works
Everything starts with encoding, which packs numbers into a polynomial. CKKS takes a vector of real numbers, maps it through the canonical embedding to a polynomial, and scales it by a large factor, which means the values become integers the scheme can encrypt, and because the scale is known, decoding divides it back out.
Each step begins with encryption, which hides the polynomial. CKKS encrypts the scaled polynomial as a Ring-LWE ciphertext, which means the numbers are hidden under lattice noise, and because the noise is small next to the scale, the values survive the hiding.
The addition is what makes the design work as a whole. CKKS adds two ciphertexts by adding their polynomials, which means the decrypted sum is the sum of the plaintexts, and because addition barely grows the noise, many additions cost almost nothing.
Multiplication spreads the effect further. CKKS multiplies ciphertexts and then rescales, dividing by the scaling factor to keep the numbers small, which means a product stays the same size as its inputs, and because rescaling is cheap, CKKS avoids the bootstrapping other schemes need after every multiply.
The slot rotation is what turns the scheme into a vector machine. CKKS can rotate the packed slots, shifting every value one place, which means a dot product can be computed inside one ciphertext, and because the rotation is a homomorphic operation, no decryption is needed to rearrange the data.
The result comes from decryption and decoding, read out as approximate numbers. CKKS decrypts the ciphertext, reverses the embedding and divides by the scale, which means the result is close to the true answer whatever the computation, and that closeness is exactly what machine learning needs from encrypted inference.

Comparing CKKS with other homomorphic schemes
CKKS is one of several homomorphic schemes, and each was built with a different emphasis. BFV is the exact-integer scheme built for precise maths, BGV is the leveled scheme built for deep circuits, and CKKS is the one built for approximate real numbers, while each approach trades something for something else.
The table below sets out the main contrasts between the leading approaches.
| Aspect | CKKS | BFV | BGV |
|---|---|---|---|
| Plaintext | Real numbers | Exact integers | Exact integers |
| Result | Approximate | Exact | Exact |
| Rescaling | Built in | Needs bootstrapping | Needs bootstrapping |
| Packing | Many slots | Many slots | Many slots |
| Best for | Machine learning | Exact counting | Deep circuits |
The practical result is that CKKS is the right choice for machine learning, BFV suits exact counting, and BGV fits deep circuits instead.
Where CKKS is used
Machine learning uses it for private inference. A hospital can send encrypted patient data to a cloud model, because the model runs without seeing the numbers, and that privacy is the reason CKKS earns its keep in medical code.
Analytics uses it inside privacy-preserving statistics. Firms compute averages and regressions over encrypted records, because the raw data must never leave its owner, and that rule is the reason the design was built for real analysis.
Finance uses it to score encrypted applications. A lender can run a risk model on encrypted income data, because the applicant’s figures stay hidden, and that secrecy is the reason CKKS appears in finance far beyond its research origins.
Benchmarking uses it as the approximate reference. Engineers still quote CKKS when they discuss how homomorphic encryption should behave on real numbers, because it is the clearest example of approximation as a feature, and that number shapes how new schemes are measured.
Teaching uses it as the rescaling example. Courses introduce CKKS when they explain that noise can be rounding, because it is the clearest case of a weakness becoming a design, and a student who understands CKKS understands why exactness is not always the goal.
Strengths and limits
The greatest strength of CKKS is that it fits the maths machine learning already uses. A scheme that accepts approximation matches models that are approximate anyway, and that strength is real, measured in the deployments themselves and confirmed by the libraries that ship it.
It is also a strength that rescaling is built in. A scheme that manages its own noise after multiplication stays fast without bootstrapping, and that speed is worth more than cleverness in a field where a scheme that stops to refresh is a scheme nobody runs.
The limits are real, though, and the biggest is the error itself. CKKS can never give an exact answer, which means it must never be used where a single wrong bit matters, and a system that needs exact integers must use BFV or BGV instead.
CKKS checklist
- Use CKKS for approximate real maths, never for exact integers.
- Remember Cheon, Kim, Kim and Song published it in 2017.
- Note rescaling keeps products small after multiplication.
- Compare it with BFV to see two kinds of precision.
- Study the slots, which is what packs many values at once.
- Check the error budget, since deep circuits lose precision.
- Keep exact work behind exact schemes.
- Read the ASIACRYPT paper to see how the scheme was built.
- Choose CKKS when encrypted machine learning needs real numbers.
Frequently asked questions
What is CKKS in simple terms?
It is an encryption scheme that lets a computer add and multiply encrypted real numbers, returning answers that are close to the true values.
Who created CKKS?
Jung Hee Cheon, Andrey Kim, Miran Kim and Yongsoo Song, who published it at ASIACRYPT 2017.
How is CKKS different from BFV?
Both are homomorphic, but CKKS works on approximate real numbers with built-in rescaling, while BFV works on exact integers.
Is CKKS still secure?
It is based on Ring-LWE and widely studied, but its standard security notion may not cover cases where decryption results are shared.
Where is CKKS used?
In private machine learning, in encrypted analytics, in finance, and in teaching about homomorphic encryption.
When should I use CKKS?
When you need to compute on encrypted real numbers, when approximation is acceptable, or when you study homomorphic encryption.
The bottom line
CKKS explained in one line is this: maths on numbers you cannot see, a 2017 scheme that turned encryption noise into rounding and taught the field that an approximate answer can be the right one.
It is proof that accepting error beats fighting it, and the reason it still matters is that every encrypted computation designed since has been judged partly by the lesson CKKS taught.
This article is general information about how CKKS works, not advice about choosing encryption for a particular device or system.







