How this calculation works
The zero in 5,042 holds the hundreds place. Moving the 4 one place left would make its contribution 400.
n = sum of each digit × its place valueA worked example
In 5,042 the 5 contributes 5,000, the 4 contributes 40, and the 2 contributes 2.
Good to know
Zero terms are omitted from the expansion.
Reference: OpenStax Prealgebra (opens in a new tab) ↗
Read each digit with its place
Write 5,042 as four digits aligned with thousands, hundreds, tens and ones. The first digit contributes 5 × 1,000 = 5,000. The zero contributes 0 × 100, the 4 contributes 4 × 10 = 40, and the final 2 contributes 2 × 1 = 2. Adding these contributions reconstructs 5,042.
The displayed expansion omits the zero contribution, leaving 5,000 + 40 + 2. Omitting that term from the sum is safe because adding zero has no effect. Removing the zero from the original numeral would instead produce 542 and move the 5 into the hundreds column.
Explain carrying and digit sums
In base ten, ten units in any column can be exchanged for one unit in the column to its left. This is the reason for carrying in addition. Adding eight ones to the two ones in 5,042 gives ten ones, which become one ten and zero ones, producing 5,050.
The Digit sum calculator adds 5 + 0 + 4 + 2 to obtain 11. The expanded form adds weighted digit contributions to obtain 5,042. Keeping those two operations distinct helps when checking written arithmetic. This tool accepts whole numbers, so decimal places such as tenths and hundredths require a separate expansion.
A few questions, answered
How is the number zero expanded?
Zero has no nonzero place contributions. Its expansion is shown as 0.
Do commas change the calculation?
Grouping marks help people read a numeral. The positions of the digits determine place value. Enter the whole number using the input format accepted by the field.