Decimals

How to Add, Subtract, Multiply, and Divide Decimals

Learn decimal place value and reliable methods for addition, subtraction, multiplication, and division, including exact fractions and repeating results. This guide explains the reasoning, not just the keystrokes.

Published · Updated · 6 min read

Decimal place value is the organizing idea

A decimal uses powers of ten. In 42.507, the 4 represents tens, the 2 ones, the 5 tenths, the 0 hundredths, and the 7 thousandths. A digit's value therefore depends on its position, not merely on the digit itself. Writing 3.2 as 3.20 or 3.200 does not change its value because the added places contain zero. Leading zeros are different: the zeros in 0.004 locate 4 in the thousandths place and cannot be discarded. This place-value view explains every written decimal algorithm and prevents the common mistake of aligning numbers by their last digit.

A terminating decimal has finitely many written places and represents an exact fraction with a power of ten as denominator. For example, 12.5 is exactly 125/10, or 25/2. A repeating decimal never ends, although its repeated pattern may be described exactly by a fraction. One third is 0.333… and exactly 1/3; the finite entry 0.333 is instead 333/1000. The NumUtility Decimal Calculator treats the digits you enter as exact base-ten data. It does not assume an ellipsis or secretly replace a rounded entry with the infinite value it resembles.

Adding and subtracting decimals

Align decimal points before adding or subtracting so digits with the same place value share a column. Add trailing zeros when they make that alignment visible. For 12.5 + 3.75, write 12.50 above 3.75. Hundredths combine with hundredths, tenths with tenths, and so on. Carrying follows the same base-ten rule as whole-number addition. For subtraction, borrow across place values when necessary; 5.00 − 0.68 becomes 4.32. Do not align the right edges of 12.5 and 3.75, because that would place tenths above hundredths.

Signs describe direction on the number line. Adding a negative can be rewritten as subtraction, while subtracting a negative becomes addition: 4.2 − (−1.3) = 5.5. If signs differ during addition, subtract absolute values and keep the sign of the value with greater absolute value. Zero is the additive identity, so x + 0 = x, and x − x = 0. These rules apply to decimals because decimals are numbers, not a separate arithmetic system. Preserve every entered digit through the calculation and round only if the problem supplies a measurement or display requirement.

Multiplication and decimal places

For decimal multiplication, first multiply as if both factors were whole numbers. Then count the total number of decimal places in the two factors and place that many digits to the right of the product's decimal point. This works because each factor can be written over a power of ten. Thus 3.2 × 0.075 means (32/10) × (75/1000) = 2400/10000 = 0.24. There are four input decimal places in total, so the unshortened product is 0.2400; trailing zeros may then be removed without changing the value.

The sign rule is independent of decimal placement: like signs give a positive product and unlike signs give a negative product. Multiplication by zero gives zero. Estimation is a useful placement check: 3.2 is near 3 and 0.075 is less than one tenth, so the result should be near 0.3 and certainly below 3. A misplaced result such as 24 fails that magnitude check. Estimation can expose a transcription error, but it does not replace the exact multiplication or justify discarding meaningful measurement precision.

Division, long division, and repeating results

Decimal division is easiest when the divisor is made a whole number. Multiply both dividend and divisor by the same power of ten; this preserves their quotient. For 7.5 ÷ 0.25, multiplying both by 100 gives 750 ÷ 25 = 30. In long division, continue by appending zeros to the dividend. A remainder of zero produces a terminating decimal. A remainder that repeats produces a repeating decimal pattern because only finitely many nonzero remainders are possible for a fixed divisor.

Division by zero is undefined. Moving decimal points cannot repair a zero divisor, and a calculator should report an error rather than infinity as an ordinary answer. Some fractions terminate because their reduced denominators contain only factors 2 and 5; others repeat. The Decimal Calculator retains the exact rational result and shows at most twelve decimal places followed by an ellipsis when the expansion continues. The ellipsis says the display is shortened. The adjacent exact-fraction field, not the visible digit string, preserves the complete value.

Three verified calculations

Input: 12.5 + 3.75. Rule: align decimal points and add equal place values. Steps: write 12.50 + 3.75; hundredths give 5, tenths give 12 tenths with a carry, and the completed sum is 16.25. Result: 16.25, exactly 65/4. Verification: subtract 3.75 from 16.25 to recover 12.5.

Input: 3.2 × 0.075. Rule: multiply integers, then restore the four combined decimal places. Steps: 32 × 75 = 2400 and 2400/10000 = 0.2400. Result: 0.24, exactly 6/25. Verification: 0.24 ÷ 0.075 = 3.2.

Input: 1 ÷ 3. Rule: divide while tracking remainders and preserve the exact fraction. Steps: each division step leaves remainder 1, so the digit 3 repeats. Result: the display is 0.333333333333… while the exact value is 1/3. Verification: multiplying the exact fraction by 3 gives 1; multiplying the finite decimal 0.333 by 3 gives 0.999, demonstrating that 0.333 is not exactly one third.

Exact arithmetic and computer displays

Many programming environments store ordinary numbers in binary floating-point form. Values such as 0.1 do not have finite binary expansions, so a direct software calculation can expose a tiny representation remainder. That background explains familiar displays such as 0.30000000000000004, but it does not make decimal arithmetic itself unreliable. NumUtility's decimal path parses up to forty entered digits into integers and powers of ten, performs BigInt rational arithmetic, reduces the result, and only then creates the decimal display. An entry containing more than forty total digits is outside this tool's accepted scope.

A display policy still matters. Terminating results are printed completely; nonterminating results stop after twelve decimal places and use an ellipsis rather than claiming that the shortened string is exact. If a context asks for two decimal places, calculate first and round once at the end. Do not add false precision to measured inputs, and do not treat a rounded output as an exact measurement. For an exact mathematical comparison, use the fraction supplied by the calculator or retain all stated source digits.

Using the Decimal Calculator responsibly

Enter two ordinary base-ten numerals, including an optional sign and decimal point, then choose addition, subtraction, multiplication, or division. Scientific notation, commas, repeating-bar notation, and expressions with several operations are not accepted in these fields. The tool returns both a decimal view and a reduced exact fraction. It handles positive values, negative values, and zero, but rejects division by zero. Use the Fraction Calculator when inputs are already fractions or when you need fraction operations and mixed-number output.

Before accepting a result, confirm the operation and copy every sign and decimal point correctly. Estimate the magnitude, inspect the exact fraction when the decimal ends in an ellipsis, and keep the unrounded value for further steps. For the conversion method behind finite entries, continue to How to Convert Decimals to Fractions; for arithmetic performed directly on numerators and denominators, use How to Calculate Fractions. Those pages answer different questions and should not be treated as interchangeable versions of this decimal-arithmetic guide.

Frequently asked questions

Why do decimal points need to line up for addition?

Alignment puts digits with equal place value in the same column, so tenths are combined with tenths and hundredths with hundredths.

Do trailing zeros change a decimal's value?

No. Appending zeros to the right of a decimal leaves its value unchanged, although the zeros may communicate measurement precision in context.

Why does the calculator show an ellipsis?

The exact fraction has a nonterminating decimal expansion, so the calculator displays twelve places and an ellipsis while preserving the complete value as a fraction.

Can the Decimal Calculator divide by zero?

No. Division by zero is undefined, and the tool reports an error.

Is 0.333 exactly equal to one third?

No. The finite decimal is 333/1000. The repeating decimal 0.333… is exactly 1/3.

Sources

References used to support definitions and interpretation in this guide.

  1. OpenStax Prealgebra 2e — Decimals
  2. MDN — JavaScript Number