Home · Everyday · Arithmetic · Decimal Calculator
Decimal Calculator
Run the core operations on two decimal numbers at once, with every result rounded to the number of places you choose.
What this calculator does
Run the core operations on two decimal numbers at once, with every result rounded to the number of places you choose. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.
The formula and method
This calculator applies addition, subtraction, multiplication, division, exponentiation, and the mathematical remainder to two decimal inputs, then rounds every result to d decimal places using round-half-up. Rounding is applied after the full-precision calculation, so 2.5 ÷ 1.2 is first evaluated as 2.08333… and only then shown as 2.08 for d = 2.
The divisor b must not be zero, since both the quotient and the remainder are undefined there. Remember that rounding hides information: two different exact results can display identically at small d, and chained calculations should keep extra places until the final step to avoid rounding error building up.
Worked example
With the example inputs this page opens with (first decimal (a) 2.5, second decimal (b) 1.2, decimal places (d) 2), the result is 3.7000 — sum (rounded). Computed from the inputs on this page with the formula below — change any figure and every result updates.
Quick reference
| First decimal (a) | Sum (rounded) | Difference (rounded) | Product (rounded) | Quotient (rounded) | Power a^b (rounded) | Remainder (rounded) |
|---|---|---|---|---|---|---|
| 1.5 | 2.7 | 0.3 | 1.8 | 1.25 | 1.63 | 0.3 |
| 2.5 | 3.7 | 1.3 | 3 | 2.08 | 3 | 0.1 |
| 3.75 | 4.95 | 2.55 | 4.5 | 3.13 | 4.88 | 0.15 |
| 5.2 | 6.4 | 4 | 6.24 | 4.33 | 7.23 | 0.4 |
| 8.4 | 9.6 | 7.2 | 10.08 | 7 | 12.86 | 0 |
| 12.6 | 13.8 | 11.4 | 15.12 | 10.5 | 20.91 | 0.6 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
Why does 2.5 × 1.2 show as 3 and not 3.00?
The exact product is 3.0; trailing zeros after the decimal point carry no value, so the display trims them even though the result was rounded to 2 places.
How does the Decimal Calculator work?
Run the core operations on two decimal numbers at once, with every result rounded to the number of places you choose. Decimal a · Decimal b · Decimal places d → Rounded sum. 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 Decimal Calculator need?
Decimal a · Decimal b · Decimal places d → Rounded sum. 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 Decimal 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.