dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day! A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!

Tool to find the sum of all digits of a number. The digit sum of a number is often used in numerology and sometimes in math problems.

Answers to Questions

How to calculate the sum of digits in a number?

The only method is to calculate the sum total of all digits, as does dCode.

Example: 123 => 1+2+3 = 6

One should speak of the sum of the digits of a number (the expressions such as the sum of a digit, or the sum of a number are meaningless)

How to calculate a digital root?

The digital root is computed through recursive reduction (repeated sum) that consists in repeating the addition operation until the result has only one digit.

Example: 789 => 7+8+9 = 24 => 2+4 = 6

What is the difference between a number and a digit?

A number is made of digits, like a word is made of letters.

Example: There are only 10 digits: 0,1,2,3,4,5,6,7,8,9 (in base 10)

Example: There is an infinity of numbers

Numbers can have only one digit such as 1, 2 ou 3 (they are both numbers and digits)

Source code

dCode retains ownership of the source code of the script Sum of Digits online. Except explicit open source licence (indicated Creative Commons / free), any algorithm, applet, snippet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in any informatic langauge (PHP, Java, C#, Python, Javascript, Matlab, etc.) which dCode owns rights will not be given for free. To download the online Sum of Digits script for offline use on PC, iPhone or Android, ask for price quote on contact page !