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.

Your figures

Example result — edit the figures to make it yours

10

Sum of digits

Product of digits24

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

Digit sum = thousands + hundreds + tens + ones digits

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

Quick reference — varying number n
Number nSum of digits
61714
987.224
123410
1542.513
185115
246820

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.