Skip to content

Casting out nines

Casting out nines is any of three arithmetical procedures.

Version
v1 · 2026-09-28 · History
Domain-specific #
8357
Domain group
Formal Sciences
Origin domain
Mathematics
Subdomains
Arithmetic Verification, Elementary Number Theory → Mathematics

Core Idea

Casting out nines is treated here as the recurring arithmetic verification identity summarized by this source-grounded definition: Casting out nines is any of three arithmetical procedures. Casting out nines is any of three arithmetical procedures. Adding the decimal digits of a positive whole number, while optionally ignoring any 9s or digits which sum to 9 or a multiple of 9. The result of this procedure is a number which is smaller than the original whenever the original has more than one digit, leaves the same.

How would you explain it like I'm…

Number Fingerprints

Take a big number like 457 and add up its digits: 4 + 5 + 7 = 16, then 1 + 6 = 7. Keep going until only one digit is left. That little digit is a tiny 'fingerprint' of the big number, and it lets you double-check sums.

The Digit-Adding Check

Casting out nines is a trick where you add up the digits of a number to get a smaller number. The smaller number always has the same remainder as the big one when you divide by 9. If you keep adding digits until only one digit is left, you get the number's "digital root." You're allowed to cross out 9s, or digits that add up to 9, before adding, because they don't change the leftover. People use it to check arithmetic: if the digital roots of your work don't match up, you've made a mistake somewhere.

Digit-Sum Remainder Check

Casting out nines refers to a small family of arithmetic procedures built on digit sums. The first is adding the decimal digits of a positive whole number, optionally throwing away 9s or groups of digits that total 9. The result is smaller than the original (if it had more than one digit), has the same remainder after division by 9, and differs from the original by a multiple of 9 — that is where the name comes from: you are 'casting out' nines. Repeating the digit sum until one digit remains gives the digital root. Because remainders mod 9 survive addition and multiplication, comparing digital roots gives a fast consistency check on a calculation, though it cannot prove the answer right.

 

Casting out nines names any of three arithmetical procedures grounded in the fact that 10 ≡ 1 (mod 9), so a number and the sum of its decimal digits are congruent modulo 9. Procedure one sums the digits of a positive integer, optionally deleting 9s or digit subsets summing to a multiple of 9; the output is strictly smaller than a multi-digit input, has the same residue mod 9, and equals the input minus a multiple of 9. Procedure two iterates this until a single digit remains, the digital root. The name records the subtraction of multiples of 9. These residue-preserving reductions support arithmetic verification: the digital roots of the operands, combined by the same operation, must match the digital root of the result. A mismatch proves an error, but a match does not prove correctness, since errors that shift the result by a multiple of 9 (for example transposed digits) pass undetected.

Scope of Application

  • Digital roots. If the procedure described in the preceding paragraph is repeatedly applied to the result of each previous application, the eventual result will be a single-digit number from which all 9s, with.

  • Checking calculations by casting out nines. Examples in which casting-out-nines has been used to check addition, subtraction, multiplication, and division are given below.

  • DivisionHow it works. The method works because the original numbers are 'decimal' (base 10), the modulus is chosen to differ by 1, and casting out is equivalent to taking a digit sum.

  • Limitation to casting out nines. For example, the casting-out-nines method would not recognize the error in a calculation of 5 × 7 which produced any of the erroneous results 8, 17, 26, etc.

  • Limitation to casting out nines. In other words, the method only catches erroneous results whose digital root is one of the 8 digits that is different from that of the correct result.

Clarity

A clear use of Casting out nines names the carrier, the operative relation, and the conditions under which the source treats the identity as present. The minimal definition is Casting out nines is any of three arithmetical procedures. The strongest recognition evidence in the frozen account is: The exception occurs when the original number has a digital root of 9, whose digit sum is itself, and therefore will not be.

Manages Complexity

Casting out nines compresses multiple arithmetic verification details into a stable diagnostic relation. The source shows both the central mechanism—for an arbitrary number, 10^n dn + 10^{n-1} d{n-1} + \cdots + d0 , normally represented by the sequence of decimal digits, dnd{n-1} \dots d0 , the digit sum is dn + d{n-1} + \cdots + d0 .—and the practical consequence—now process the sum and also the excesses to get a final.

Abstract Reasoning

  1. Type the carrier. Identify the arithmetic verification entities to which the claim applies.
  2. State the relation. Use the source-grounded identity: Casting out nines is any of three arithmetical procedures.
  3. Check operation and conditions. Because numbers of the form 10^i -1 are always divisible by 9 (since 10^i -1 = 9\times\left(10^{i-1} + 10^{i-2} + \cdots + 1\right) ), replacing the original number by its digit sum has the effect of casting out.
  4. Demand recognition evidence.

Knowledge Transfer

Within the home domain. Knowledge about Casting out nines transfers literally when a new case preserves the same carrier type, relation, and recognition test. If the procedure described in the preceding paragraph is repeatedly applied to the result of each previous application, the eventual result will be a single-digit number from which all 9s, with the possible exception of one, have been "cast out". Examples.

Relationships to Other Abstractions

Local relationship map for Casting out ninesParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Casting out ninesDOMAINPrime abstraction: Verification — is a decomposition ofVerificationPRIME

Current abstraction Casting out nines Domain-specific

Parents (1) — more general patterns this builds on

  • Casting out nines is a decomposition of Verification Prime

    Casting out nines is an arithmetic verification procedure for detecting some calculation errors.

Hierarchy path (1) — routes to 1 parentless root

Neighborhood in Abstraction Space

Casting out nines sits in a moderately populated region (53rd percentile for distinctiveness): it has near-neighbors but no dense thicket of look-alikes.

Family — Algebraic Number Systems & Symmetry (8 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-10-08