ThisCalculator

Math

Decimal Calculator: Add, Subtract, Multiply and Divide

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

Decimal Calculator: Add, Subtract, Multiply and Divide

A decimal calculator adds, subtracts, multiplies, or divides decimal numbers and shows the result to a chosen number of places. Enter the values in the calculator below; it returns a sum, difference, product, quotient, and a rounded result for each operation.

Formula

The calculator applies the four basic arithmetic operations to the two inputs:

  • Sum: a + b
  • Difference: a − b
  • Product: a × b
  • Quotient: a ÷ b

Here, a is the first decimal number, b is the second decimal number, and p is the requested number of decimal places. The inputs and answers have no fixed physical unit; if the values represent measurements or money, the result inherits the relevant unit or meaning. The displayed answers are rounded to two decimal places, as set in the calculator specification. The decimal-places input lets you state a preferred precision, but it does not change those fixed display settings.

Worked Example

Using the calculator’s default values, a = 12.5, b = 3.2, and p = 2:

  1. Add: 12.5 + 3.2 = 15.7, displayed as 15.70.
  2. Subtract: 12.5 − 3.2 = 9.3, displayed as 9.30.
  3. Multiply: 12.5 × 3.2 = 40, displayed as 40.00.
  4. Divide: 12.5 ÷ 3.2 = 3.90625, rounded to two decimal places as 3.91.

For the quotient, the third decimal digit is 6, so the hundredths digit rounds up. Extra zeros in the other displayed answers show the selected number of decimal places; they do not change the values.

How Decimal Arithmetic Works

A decimal is a way to write a number using powers of ten. The first digit to the right of the decimal point represents tenths, the next represents hundredths, and the next represents thousandths. For example, 4.275 means 4 + 2/10 + 7/100 + 5/1000.

Addition and subtraction are easiest when decimal points line up. Multiplication can be done as if the numbers were whole numbers, then the decimal point is placed according to the total number of decimal digits in the factors. Division can be simplified by moving the decimal point in both numbers the same number of places until the divisor is a whole number. A calculator performs these operations internally, but knowing the methods makes it easier to check an answer.

Decimal notation is used for everyday quantities such as lengths, weights, prices, and measurements. It is not the same as a percentage: 0.25 is the decimal form of 25%, while 25 is a number one hundred times as large as 0.25.

When to Use a Decimal Calculator

Use decimal arithmetic when quantities include fractional parts or when a result needs a clear, consistent precision. Examples include combining measurements, finding the difference between two readings, multiplying a quantity by a decimal factor, or dividing a total into equal portions. The arithmetic itself does not determine whether a unit conversion, tax, fee, or other real-world rule should be applied; those require the relevant information separately.

Choose the operation that matches the question:

  • Use addition to combine amounts, such as 2.75 + 1.40.
  • Use subtraction to find a difference, such as 8.2 − 3.65.
  • Use multiplication to scale a number, such as 4.5 × 1.2.
  • Use division to split a quantity or compare one number with another, such as 7.5 ÷ 2.5.

Make sure the operation reflects the situation. For example, dividing a total by the number of equal portions gives the amount per portion; dividing by a different quantity may answer a different question.

Rounding, Precision, and Common Mistakes

Rounding shortens a displayed answer; it does not make the underlying calculation more precise. A result of 3.90625 rounded to two decimal places is 3.91. If later calculations need more accuracy, keep the unrounded value until the final step, then round once. Rounding intermediate answers repeatedly can accumulate small differences.

Common errors include misplacing a decimal point, entering a percentage as a whole number, and mixing units. For instance, 25% should be entered as 0.25 when it is used as a multiplier. Likewise, adding 2.5 metres to 40 centimetres requires converting them to the same unit first: 40 centimetres is 0.4 metres, so the total is 2.9 metres.

Division by zero is undefined. If the second input is zero, there is no finite quotient, so a calculator cannot return an ordinary numerical answer. Also check whether the requested result should be rounded, reported as a fraction, or expressed in a particular unit; a numeric display alone cannot determine the appropriate convention.

What the Calculator Can and Cannot Tell You

This calculator provides the four basic operations on two decimal inputs. It does not automatically convert units, apply measurement tolerances, determine significant figures, or decide how a result should be formatted for a particular subject. If a question requires several steps, carry out each operation in the correct order and retain sufficient precision between steps.

In some computing systems, decimal-looking inputs may be stored using binary floating-point values. Certain decimal fractions, such as 0.1, cannot be represented exactly in binary, so software may show a tiny internal difference. This is a representation issue, not a different arithmetic rule. For ordinary displayed calculations, rounding controls what is shown; applications requiring exact decimal bookkeeping may use decimal arithmetic specifically.

Frequently Asked Questions

How do I add decimals?
Line up the decimal points, add the digits by place value, and keep the decimal point in the same column. For example, 1.25 + 0.6 = 1.85.

How do I multiply decimals?
Multiply the numbers as whole numbers, then count the decimal places in both factors combined and place the decimal point accordingly. For example, 1.2 × 0.3 = 0.36.

How do I divide decimals?
If the divisor has a decimal point, move it right until it is a whole number and move the decimal point in the dividend by the same number of places. Then divide as usual. Never divide by zero.

What does rounding to two decimal places mean?
It means keeping two digits after the decimal point. Look at the next digit: if it is 5 or greater, increase the last retained digit by one; otherwise, leave it unchanged.

Why does 0.1 + 0.2 sometimes display more than 0.3?
Some software represents decimal inputs with binary floating-point numbers, which cannot store certain decimal fractions exactly. A small displayed difference can result; appropriate rounding or decimal arithmetic can address it.

Related

Formula used
in a | First decimal | - | 12.5 | 0
in b | Second decimal | - | 3.2 | 0
in p | Decimal places | - | 2 | 0
out sum | Sum | - | a + b | 2
out difference | Difference | - | a - b | 2
out product | Product | - | a * b | 2
out quotient | Quotient | - | a / b | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.