Digit Product Calculator

Multiply a number’s digits and see the product along with how many digits it has.

Result

72
3

How it is calculated

Enter a whole number. The tool reads the digits exactly as you typed them and multiplies them together: product = d₁ × d₂ × … × dₙ. It reports two results, the digit product and the number of digits. Any 0 digit makes the whole product 0. The sign is ignored, so -429 is treated as 429; leading zeros are dropped (007 is one digit), and the number 0 has one digit and a product of 0. Because the digit string is used directly, long numbers such as 20-digit IDs are handled exactly. A number with a fractional part, such as 4.29, shows no result, and so does a number whose product would exceed 9,007,199,254,740,992 (for example seventeen 9s), since larger products cannot be printed exactly.

Worked example

For 429, the digits are 4, 2 and 9. Multiply them: 4 × 2 = 8, then 8 × 9 = 72. The tool also reports a digit count of 3. Now take 1050 instead: it has four digits, and because one of them is 0 the product is 0. A single zero is enough to wipe out the result, however large the other digits are.

Try this example →

Common mistakes

  • Confusing digit product with digit sum. For 429 the sum is 15 but the product is 72.
  • Forgetting that a 0 anywhere in the number gives a product of 0, which says nothing about the other digits.
  • Typing a decimal such as 4.29 and expecting the digits after the point to count. The tool only accepts whole numbers, so a fractional value gives no result.
  • Expecting a result for a long number made of large digits. Seventeen 9s would give a product above 9 quadrillion, so no result is shown, while a long number containing a 0 simply gives 0.
  • Counting leading zeros. A value typed as 007 is the number 7: one digit, product 7.

About this calculator

The digit product of a whole number is what you get by multiplying every one of its individual digits together — for example, the digit product of 429 is 4 × 2 × 9 = 72. Unlike digit sum, digit product has a distinctive quirk: if any digit in the number is 0, the entire product collapses to zero, which makes it useful for spotting numbers that contain a zero digit at a glance.

This operation shows up in recreational and competitive mathematics — puzzles that ask you to find the smallest or largest number with a given digit product, or repeated-digit-product sequences (multiplicative persistence, popularized by mathematician Neil Sloane, asks how many times you must multiply a number's digits together before reaching a single digit). Programming courses also use digit product as a classic beginner exercise for practicing loops, modulo arithmetic and digit extraction.

This calculator multiplies all the digits of the whole number you enter and also reports how many digits it has.

Was this helpful?

You can pick up to 3 reactions.

Comments (0)

  • Be the first to comment.

Popular calculators

All Calculators