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.

Your figures

Keep b non-zero so the quotient and remainder are defined

Example result — edit the figures to make it yours

3.7

Sum (rounded)

Computed from the inputs on this page with the formula below — change any figure and every result updates.

Difference (rounded)1.3000
Product (rounded)3.0000
Quotient (rounded)2.0800
Power a^b (rounded)3.0000
Remainder (rounded)0.1000

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

Each result = round(operation(a, b), d)

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

Quick reference — varying First decimal (a)
First decimal (a)Sum (rounded)Difference (rounded)Product (rounded)Quotient (rounded)Power a^b (rounded)Remainder (rounded)
1.52.70.31.81.251.630.3
2.53.71.332.0830.1
3.754.952.554.53.134.880.15
5.26.446.244.337.230.4
8.49.67.210.08712.860
12.613.811.415.1210.520.910.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.