Cross Sum Calculator

Quersumme, iterated and alternating cross sums, 7-11-13 block test and ISBN/Luhn checks.

  1. Enter valuesUse your own inputs or an example
  2. CalculateApply your selected settings
  3. View resultExplore the answer and explanation

Enter a number

Enter your values below to get started.

Examples:
Spaces, dots and hyphens are ignored.
Cross sum type
Used by the Weighted type only.
Check digit
Repeats from the left, e.g. 2, 7, 6, 5, 4, 3, 2.
Reset restores the default values.

Tips for this calculator

The plain cross sum tests 3 and 9; the alternating cross sum tests 11; the 3-digit block sum tests 7, 11 and 13 together.

The alternating cross sum starts with + on the units digit, the rightmost digit.

For a check digit, pick Compute check digit and enter the code without its last digit.

An ISBN-10 may end in X, which stands for 10.

A cross sum calculator adds the digits of a number in 5 ways: plain, iterated, alternating, in 3-digit blocks and with weights. The cross sum, or Quersumme in German, of 918,273 is 30. Enter a number to get the cross sum, test divisibility by 3, 7, 9, 11 and 13, or validate an ISBN-10, ISBN-13, EAN-13 or Luhn check digit.

What is a Cross Sum?

A cross sum is the sum of all digits of a whole number. The cross sum of 918,273 is 9 + 1 + 8 + 2 + 7 + 3 = 30. The term translates the German Quersumme, used in German, Austrian and Swiss school mathematics, and means the same as the English "digit sum".

Q(n)=∑i=0k−1diQ(n) = \sum_{i=0}^{k-1} d_i
Qalt(n)=∑i=0k−1(−1)i diQ_{alt}(n) = \sum_{i=0}^{k-1} (-1)^{i}\, d_i

German textbooks name 3 related values: the iterierte Quersumme (iterated cross sum, repeated until 1 digit remains), the alternierende Quersumme (alternating cross sum, signs + and − from the right) and the gewichtete Quersumme (weighted cross sum). Outside number theory, "Cross Sums" is the name under which Dell Magazines published the Kakuro puzzle.

InteractivePlain or alternating: flip the signs on each digit

How Does the Cross Sum Calculator Work?

The cross sum calculator strips separators from your input, reads each digit, applies the sign or weight of the chosen cross sum type and adds the results. The iterated type repeats the addition until 1 digit is left, which takes 3 rounds for 99,999,999,999 (99 → 18 → 9).

InteractiveIterated cross sum: each round shrinks the number
  1. Read the digits

    Hyphens, spaces and dots are dropped, so 0-306-40615-2 becomes 0306406152.

  2. Apply signs or weights

    +1 for every digit (plain), +1/−1 from the right (alternating), ±block (3-digit blocks) or a weight list (ISBN, EAN, Luhn).

  3. Add and reduce

    The total is reduced mod 9, 11, 7, 13 or 10 to give a divisibility verdict or a check digit.

  4. Show the working

    Steps, a signed digit table and a bar chart of every term.

Cross Sum Formula

The cross sum formula is Q(n) = d0 + d1 + … + dk−1, and every cross sum rule comes from reducing the place values 10i modulo a divisor. 10i ≡ 1 (mod 9), 10i ≡ (−1)i (mod 11) and 1,000 ≡ −1 (mod 1,001).

Plain Cross Sum (Divisibility by 3 and 9)

n≡Q(n)(mod9)n \equiv Q(n) \pmod 9

Alternating Cross Sum (Divisibility by 11)

n≡d0−d1+d2−d3+⋯(mod11)n \equiv d_0 - d_1 + d_2 - d_3 + \cdots \pmod{11}

Alternating Cross Sum of 3-Digit Blocks (7, 11, 13)

n≡B0−B1+B2−⋯(mod1001)n \equiv B_0 - B_1 + B_2 - \cdots \pmod{1001}
1001=7⋅11⋅131001 = 7 \cdot 11 \cdot 13

Weighted Cross Sum

Qw(n)=∑iwi di(modm)Q_w(n) = \sum_{i} w_i\, d_i \pmod m
InteractiveWhy each rule works: place values reduced mod 9, 11, 7 or 13

Types of Cross Sums

There are 5 types of cross sums: the plain cross sum, the iterated cross sum, the alternating cross sum, the alternating cross sum of 3-digit blocks and the weighted cross sum. Each type tests a different divisor or catches a different typing error.

Interactive5 cross sums of one number

Plain cross sum (Quersumme)

Q(918,273) = 30. Tests divisibility by 3 and 9.

Iterated cross sum

Repeat until 1 digit: 99,999,999,999 → 99 → 18 → 9. Equals the digital root.

Alternating cross sum

Signs + − + … from the right: 918,082 → 2 − 8 + 0 − 8 + 1 − 9 = −22. Tests 11.

3-digit block cross sum

Blocks of 3 from the right with alternating signs: 12|345|678|901 → 556. Tests 7, 11 and 13.

Weighted cross sum

Each digit times a weight: ISBN-10 (10…1, mod 11), EAN-13 (1, 3, mod 10), Luhn (1, 2, mod 10).

How to Calculate a Cross Sum by Hand

To calculate a cross sum by hand, add the digits from left to right; for the alternating cross sum, start at the units digit and switch between + and −. Here are both for 61,589:

  1. Plain: 6 + 1 + 5 + 8 + 9 = 29, so 61,589 is not divisible by 3 or 9.
  2. Iterated: 29 → 2 + 9 = 11 → 1 + 1 = 2.
  3. Alternating from the right: 9 − 8 + 5 − 1 + 6 = 11.
  4. 11 is divisible by 11, so 61,589 is divisible by 11: 61,589 = 11 × 5,599.
InteractiveStep through 3 cross sums by hand

    Alternating Cross Sum and the Divisibility Rules for 7, 11 and 13

    A number is divisible by 11 exactly when its alternating cross sum is divisible by 11, and divisible by 7, 11 or 13 exactly when its alternating 3-digit block sum is. 918,082 has an alternating cross sum of −22 = 11 × (−2), so 918,082 = 11 × 83,462.

    The block rule rests on 1,001 = 7 × 11 × 13 and 1,000 ≡ −1 (mod 1,001). Split the number into groups of 3 from the right, as with thousands separators, and alternate the signs: 12,345,678,901 gives 901 − 678 + 345 − 12 = 556. 556 leaves remainders 3, 6 and 10 when divided by 7, 11 and 13, and 12,345,678,901 leaves the same 3 remainders.

    • Divisor 11: alternating cross sum of single digits.
    • Divisors 7 and 13: alternating cross sum of 3-digit blocks.
    • Divisors 37 and 27: plain cross sum of 3-digit blocks (999 = 27 × 37).
    InteractiveSplit into 3-digit blocks and test 7, 11 and 13

    Weighted Cross Sums and Check Digits

    A weighted cross sum multiplies each digit by a fixed weight before adding, and check digit systems choose the last digit so the weighted sum is a multiple of 10 or 11. There are 3 widely used systems:

    • ISBN-10 (International Standard Book Number): weights 10, 9, …, 1 and modulus 11; the check digit can be X (10). 0-306-40615-2 has weighted sum 132 = 11 × 12.
    • EAN-13 (European Article Number) and ISBN-13: weights 1 and 3 alternating, modulus 10. 978-0-306-40615-7 has weighted sum 100.
    • Luhn algorithm: patented by IBM engineer Hans Peter Luhn in 1960; doubles every second digit from the right and subtracts 9 from results above 9, modulus 10. Credit card numbers and IMEI (International Mobile Equipment Identity) numbers use the Luhn algorithm; 79927398713 is valid.
    InteractiveBuild a check digit from a weighted cross sum

    Common Mistakes with Cross Sums

    • Starting the alternating sum on the left: for an even number of digits, the sign of every term flips; the remainder test still works for 0, but other remainders come out negated.
    • Treating a negative alternating sum as "not divisible": −22 is a multiple of 11, so the number is divisible by 11.
    • Using the plain cross sum for 11: 209 = 11 × 19 has a plain cross sum of 11 by chance, but 308 = 11 × 28 has a cross sum of 11 and 319 = 11 × 29 has 13.
    • Forgetting the ISBN-10 X: X stands for 10 in the last position only.
    • Doubling the wrong digits in Luhn: doubling starts with the second digit from the right, never the check digit.
    InteractiveTrue or false: cross sums
    1. The cross sum of 918,273 is 30.

    2. A plain cross sum of 30 means the number is divisible by 9.

    3. An alternating cross sum of −22 means the number is divisible by 11.

    4. The 3-digit block sum tests 7, 11 and 13, since 7 × 11 × 13 = 1,001.

    5. A plain cross sum check digit catches swapped neighbouring digits.

    Score: 0 / 5

    How to Use the Cross Sum Calculator

    Enter the number, pick 1 of the 5 cross sum types and press Calculate. For a check digit, pick Weighted, choose ISBN-10, EAN-13 or Luhn, and choose whether to validate a full code or compute the missing digit.

    InteractiveLoad a ready-made cross sum

    Each button fills the calculator and runs it.

    1. Enter the number

      Paste a number or a code such as 978-0-306-40615-7; separators are ignored.

    2. Pick the type

      Cross sum, Iterated, Alternating, 3-digit blocks, or Weighted / check digit.

    3. Set the scheme

      Weighted only: ISBN-10, EAN-13 / ISBN-13, Luhn, or your own weights such as 2, 7, 6, 5, 4, 3, 2.

    4. Read the result

      The answer card gives the sum and the verdict; the tabs show steps, a signed table and a chart.

    Real-Life Uses of Cross Sums

    Cross sums catch typing errors in codes, speed up divisibility tests and check hand arithmetic. There are 5 common uses:

    • Book and product codes: every ISBN and EAN barcode ends in a check digit from a weighted cross sum.
    • Payment cards: card readers run the Luhn algorithm before contacting the bank, rejecting every single-digit typo.
    • Bank accounts: German bank account numbers carry Prüfziffer check digits from weighted cross sums, and IBAN (International Bank Account Number) uses mod 97.
    • School arithmetic: German schools teach the Quersumme rule for 3 and 9 in grades 5 and 6.
    • Puzzles: Kakuro (Cross Sums) grids ask for digit combinations with a given sum.
    InteractiveWhich cross sum catches the most typos?

    Cross Sum Examples

    Each row uses a different cross sum type.

    Cross Sum Examples
    NumberTypeResultMeaningCalculator
    918,273Plain30Divisible by 3, not 9
    99,999,999,999Iterated999 → 18 → 9
    918,082Alternating−22Divisible by 11
    61,589Alternating11Divisible by 11
    12,345,678,9013-digit blocks556Not divisible by 7, 11 or 13
    0-306-40615-2ISBN-10132Valid (132 = 11 × 12)
    4006381333931EAN-1390Valid (multiple of 10)

    Popular Cross Sum Problems

    Try each one, then reveal the answer or solve it in the calculator.

    1. Find the cross sum (Quersumme) of 918,273.

      Show answer30
    2. Find the iterated cross sum of 99,999,999,999.

      Show answer9 (99 → 18 → 9)
    3. Use the alternating cross sum to test whether 918,082 is divisible by 11.

      Show answer−22, so yes: 918,082 = 11 × 83,462
    4. Find the ISBN-10 check digit for 0-306-40615-?.

      Show answer2
    5. Is 79927398710 a valid Luhn number? If not, which last digit is correct?

      Show answerNo (sum 67); the correct check digit is 3
    6. Is 12,345,678,901 divisible by 7, 11 or 13?

      Show answerNo: block sum 556, remainders 3, 6 and 10

    Explore More Sum Calculators

    Discover 67 free sum calculators across different categories. Find the right calculator for your needs.

    Browse All 67 Calculators
    Questions and answers

    Frequently Asked Questions

    What is a cross sum calculator?

    A cross sum calculator is an online tool that adds the digits of a number and returns the plain, iterated, alternating, 3-digit block or weighted cross sum. The calculator tests divisibility by 3, 7, 9, 11 and 13 and validates ISBN, EAN and Luhn check digits.

    What does Quersumme mean?

    Quersumme is the German word for cross sum: the sum of the digits of a number. The Quersumme of 2,026 is 2 + 0 + 2 + 6 = 10.

    Is a cross sum the same as a digit sum?

    Yes, the plain cross sum and the digit sum are the same value. "Cross sum" is the direct translation of Quersumme, and "digit sum" is the usual English term.

    How do you calculate the alternating cross sum?

    Start at the units digit with +, then alternate − and + moving left. For 61,589: 9 − 8 + 5 − 1 + 6 = 11.

    Can the cross sum test divisibility by 7?

    No, the plain cross sum cannot test 7. The alternating cross sum of 3-digit blocks can, since 7 divides 1,001.

    What is the iterated cross sum?

    The iterated cross sum repeats the cross sum until 1 digit remains, giving the digital root. For 99,999,999,999 the chain is 99 → 18 → 9.

    How is the ISBN-10 check digit calculated?

    Multiply the first 9 digits by 10, 9, …, 2, add the products, and choose the check digit that makes the total a multiple of 11; a check value of 10 is written X. For 0-306-40615, the products add up to 130, and 11 − (130 mod 11) = 2.

    Does the Luhn algorithm use a cross sum?

    Yes, the Luhn algorithm is a weighted cross sum with weights 1 and 2 from the right; doubled digits above 9 are replaced by their own cross sum (subtract 9). A valid number has a total divisible by 10.

    Why is the alternating cross sum sometimes negative?

    The alternating cross sum is negative when the digits with a minus sign are larger. A negative result still works: the number is divisible by 11 when the result is a multiple of 11, such as −22.

    Conclusion

    A cross sum adds the digits of a number, and its 4 variants (iterated, alternating, 3-digit block and weighted) test divisibility by 3, 7, 9, 11 and 13 or protect codes with a check digit. The cross sum calculator returns all 5 types with steps, a signed digit table and a chart.

    Not sure which cross sum fits your task? Answer 3 questions below.

    InteractiveWhich cross sum should you use?