Home · Math · Algebra · Digit Sum Calculator
Digit Sum Calculator
Sum (and product) of the decimal digits of a whole number of up to four digits.
What this calculator does
Sum (and product) of the decimal digits of a whole number of up to four digits. Every figure on this page is computed from the formula or definition stated below, with no hidden rounding steps, and the method notes name the exact convention where more than one exists.
The formula and method
The number is split into its four decimal places by division and remainders; leading places of shorter numbers contribute 0. Enter a whole number from 0 to 9999.
Worked example
With the example inputs this page opens with (number n 1234), the result is 10 — sum of digits. Change any figure and the result updates with the same formula.
Quick reference
| Number n | Sum of digits |
|---|---|
| 617 | 14 |
| 987.2 | 24 |
| 1234 | 10 |
| 1542.5 | 13 |
| 1851 | 15 |
| 2468 | 20 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
How does the Digit Sum Calculator work?
Sum (and product) of the decimal digits of a whole number of up to four digits. Number n (up to 4 digits) → Digit sum, digit product. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the Digit Sum Calculator need?
Number n (up to 4 digits) → Digit sum, digit product. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.
Is the Digit Sum Calculator free to use?
Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.