# CKKS -- Rescaling

DevFeed: [CKKS -- Rescaling](<https://devfeed.tech/articles/ckks-rescaling-129642.md>)

Original publisher: [Read original article](<https://www.jeremykun.com/2026/11/11/ckks-rescaling/>)

Published: 2026-11-11T23:27:00Z

Content type: tutorial

Language: en

Sources: [Jeremy Kun](<https://devfeed.tech/sources/jeremy-kun.md>)

Topics: [homomorphic encryption](<https://devfeed.tech/topics/homomorphic-encryption.md>), [Error Propagation](<https://devfeed.tech/topics/error-propagation.md>), [Cryptography](<https://devfeed.tech/topics/cryptography.md>), [Encryption](<https://devfeed.tech/topics/encryption.md>), [primes](<https://devfeed.tech/topics/primes.md>)

Tags: [64-bit](<https://devfeed.tech/tags/64-bit.md>), [acceleration](<https://devfeed.tech/tags/acceleration.md>), [algorithms](<https://devfeed.tech/tags/algorithms.md>), [analysis](<https://devfeed.tech/tags/analysis.md>), [arithmetic](<https://devfeed.tech/tags/arithmetic.md>), [array](<https://devfeed.tech/tags/array.md>), [bits](<https://devfeed.tech/tags/bits.md>), [bootstrapping](<https://devfeed.tech/tags/bootstrapping.md>), [budget](<https://devfeed.tech/tags/budget.md>), [canonical](<https://devfeed.tech/tags/canonical.md>), [ckks](<https://devfeed.tech/tags/ckks.md>), [ckks-tutorial](<https://devfeed.tech/tags/ckks-tutorial.md>), [code](<https://devfeed.tech/tags/code.md>), [cryptography](<https://devfeed.tech/tags/cryptography.md>), [delta](<https://devfeed.tech/tags/delta.md>), [encryption](<https://devfeed.tech/tags/encryption.md>), [homomorphic-encryption](<https://devfeed.tech/tags/homomorphic-encryption.md>), [key](<https://devfeed.tech/tags/key.md>), [mathematics](<https://devfeed.tech/tags/mathematics.md>), [programming](<https://devfeed.tech/tags/programming.md>), [python](<https://devfeed.tech/tags/python.md>), [scale](<https://devfeed.tech/tags/scale.md>), [scaling](<https://devfeed.tech/tags/scaling.md>), [switching](<https://devfeed.tech/tags/switching.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

## AI overview

Rescaling in CKKS reduces a multiplied ciphertext's scale from Δ² to Δ and manages its noise by dividing rounded ciphertext coefficients by a factor close to Δ while reducing the modulus from Q to Q′. This requires Q to be divisible by the rescaling factor in the mathematical formulation; direct multiplication by Δ⁻¹ in the original ring can fail or make noise too large. Rounding introduces new error, while rescaling reduces prior multiplication and relinearization errors. In the code example, Q/Q′ is used instead of exactly Δ, so the tracked scale is approximate and decoding incurs a small additional error. Each multiplication and rescaling also consumes modulus budget. The article explains that representing a large modulus as a product of prime limbs in an RNS representation makes operations parallelizable; rescaling then drops a limb, and remaining limbs define a ciphertext's level.

## Source excerpt

Table of Contents This is part of a tutorial series on the CKKS homomorphic encryption scheme. In the last article, we described the key switching and relinearization algorithms. Relinearization allowed us to restore the natural "two tuple" ciphertext structure after a homomorphic multiplication, but we did not address two more problems produced by multiplication. The first is that, because CKKS uses fixed-point arithmetic on its underlying plaintexts, multiplication produces a ciphertext encoded with a squared scaling factor $\Delta^2$ relative to the operands which have scale $\Delta$.