Decimal Calculator

Quick answer

The decimal calculator adds, subtracts, multiplies and divides decimal numbers, and also raises them to powers, takes roots and logarithms.

Result
5.1
Rounded to 2 decimal places
5.1

Decimals are fractions with denominators that are powers of ten. Arithmetic with them follows the same rules as whole numbers; the only extra care is placing the decimal point: aligning points when adding and counting decimal places when multiplying.

How to use the Decimal Calculator

  1. Operation
  2. a
  3. b

Results update as you type, and everything is calculated in your browser.

How it works

The calculator works in double precision and shows up to 15 significant digits, enough to see the exact result of everyday decimal sums. Floating-point values such as 0.1 + 0.2 are rounded for display.

Inputs explained

Field What to enter
Operation Choose one: Addition (a + b), Subtraction (a − b), Multiplication (a × b), Division (a ÷ b) …
a A number
b A number

Example values

How the main result changes when a changes and everything else stays at the example values above:

a Result
6.38 2.55
9.56 3.825
12.75 5.1
15.94 6.375
19.13 7.65
25.5 10.2

Formula

a + b, a − b, a × b, a ÷ b, aᵇ, ᵇ√a, log_a b

Worked example

Inputs: Operation: Multiplication (a × b); a: 12.75; b: 0.4.
Results: Result = 5.1; Rounded to 2 decimal places = 5.1.

Key terms

Decimal place
A digit position after the decimal point.

Frequently asked questions

How do I multiply decimals?

Multiply as whole numbers and put as many decimal places in the answer as the two numbers have together: 1.2 × 0.3 = 0.36.

How do I divide by a decimal?

Multiply both numbers by a power of ten to make the divisor whole: 6 ÷ 0.4 = 60 ÷ 4 = 15.

Why does 0.1 + 0.2 sometimes show 0.30000000000000004?

Computers store decimals in binary; this calculator rounds the display to hide that.

What does log_a b mean?

The power you raise a to in order to get b.

Sources

  1. OpenStax: Prealgebra 2e
  2. OpenStax: Contemporary Mathematics

Cite this calculator

Speedy Calculator. (2026). Decimal Calculator. Speedy Calculator. https://speedycalculator.com/calculators/math/decimal/