Skip to content

Rounding Calculator

Round to the nearest thousand, whole number, cent, decimal place or significant figure, with six rounding rules.

Your details

Typed digits are kept exactly (no floating-point error): 1.005 really is 1.005.

Results update as you type

Rounded value

1,234.57

Rounding error (rounded − original)
+0.0022
Nearest value below
1,234.56
Nearest value above
1,234.57

Step-by-step solution
  1. Precision: round to a multiple of 0.01
  2. 1,234.5678 lies between 1,234.56 and 1,234.57
  3. Halfway point: 1,234.565
  4. The number is above the halfway point, so it is closer to the upper value
  5. Half up: ties go away from zero
  6. Result: 1,234.57

Rounding replaces a number with a simpler one that is close to it: 1234.56781234.5678 becomes 1,234.57 to the nearest hundredth, 1,235 to the nearest whole number and 1,000 to the nearest thousand. This calculator rounds to any place value, to the nearest cent, to n decimal places, to n significant figures or to the nearest multiple of any step (0.05, 0.25, 500…), and shows the two candidates and the halfway point so you can see why the answer is what it is.

It also lets you choose the rounding rule. School rounding (half up) is the default, but banking, statistics and computing often use half even ("banker’s rounding"), and invoices or engineering margins sometimes require always rounding up or down. All six common rules are available.

Unlike many online tools and spreadsheets, the arithmetic here is done on the decimal digits you type, not on binary floating-point numbers. That is why 1.0051.005 rounds correctly to 1.01 at two decimals, whereas many programs return 1.00 because 1.005 is stored internally as 1.00499999…

How to use this calculator

  1. Type the number. You can paste long values: up to 60 digits are kept exactly.
  2. Choose the precision: a place value (thousand to thousandth), nearest cent, n decimal places, n significant figures or a multiple.
  3. If needed, enter n or the multiple.
  4. Pick the rounding rule (half up unless you have a reason to change it).
  5. Read the rounded value, the rounding error and the two nearest candidates; the steps explain the decision.

The formula

Rounding to a step ss (for example s=0.01s = 0.01 for hundredths, s=1000s = 1000 for thousands) means choosing one of the two multiples of ss that surround xx:

L=s⌊xs⌋,U=s⌈xs⌉,midpoint =L+s2L = s\left\lfloor \frac{x}{s} \right\rfloor, \qquad U = s\left\lceil \frac{x}{s} \right\rceil, \qquad \text{midpoint } = L + \frac{s}{2}
Rule Below midpoint Exactly halfway Above midpoint
Half up LL away from zero UU
Half even LL the even multiple UU
Half down LL toward zero UU
Ceiling UU UU UU
Floor LL LL LL
Truncate toward zero toward zero toward zero

These correspond to the rounding-direction attributes of IEEE 754 (roundTiesToAway, roundTiesToEven, roundTowardPositive, roundTowardNegative, roundTowardZero). For n significant figures, the step is s=10 e−n+1s = 10^{\,e - n + 1}, where ee is the position of the first nonzero digit (e=⌊log⁡10∣x∣⌋e = \lfloor \log_{10}|x| \rfloor).

Worked example

  • 1234.56781234.5678 to the nearest hundredth: the candidates are 1,234.56 and 1,234.57; the discarded part 0.0078 is more than half of 0.01, so the answer is 1,234.57. To the nearest hundred: 1,200; to the nearest thousand: 1,000.
  • 1.0051.005 to the nearest cent, half up: exactly halfway between 1.00 and 1.01, so 1.01.
  • Ties under different rules: 2.5→32.5 \to 3 (half up) but 2.5→22.5 \to 2 and 3.5→43.5 \to 4 (half even); −2.5→−3-2.5 \to -3 (half up goes away from zero).
  • 0.0045670.004567 to 2 significant figures: 0.0046; 9.9969.996 to 3 significant figures: 10.0 (the extra digit appears in front).
  • 12.3712.37 to the nearest 0.05 (cash rounding): 12.35.
  • Always up: 7.01→87.01 \to 8; always down: −7.01→−8-7.01 \to -8; truncate: −7.99→−7-7.99 \to -7.

Rounding to the nearest thousand, hundred, hundredth or cent

Precision Look at the digit… 48,276.349 becomes
Nearest thousand in the hundreds place (2) 48,000
Nearest hundred in the tens place (7) 48,300
Nearest whole number in the tenths place (3) 48,276
Nearest hundredth in the thousandths place (9) 48,276.35
Nearest cent in the third decimal (9) 48,276.35

Rounding to the nearest cent is rounding to the nearest hundredth applied to money: always keep exactly two decimals (3.50, not 3.5). Prices, taxes and interest are usually rounded only at the final step: rounding each line of an invoice and then adding can differ by a cent or two from rounding the total, which is why some tax rules specify whether to round per line or per invoice.

Why half even exists

With half up, every exact tie moves away from zero, so when many values ending in 5 are rounded and added, the total drifts upward. Half even sends half of the ties up and half down (2.5 → 2, 3.5 → 4), which cancels that bias. It is the default in IEEE 754 binary arithmetic, in many statistical packages and in Python’s round(), and ISO 80000-1 recommends choosing the even multiple when two are equally near. For one-off school or everyday rounding, half up remains the expected rule.

Frequently asked questions

How do you round to two decimal places?

Look at the third decimal. If it is 5 or more, add one to the second decimal; otherwise leave it. Then drop everything after the second decimal. So 3.14159 → 3.14 and 2.675 → 2.68 (half up). Choose "Nearest hundredth" or "n decimal places" with n = 2.

Why does my spreadsheet round 1.005 to 1.00?

Many programs store numbers in binary, where 1.005 cannot be represented exactly and is held as 1.00499999999999989… That value is below the halfway point, so it rounds down. This calculator works on the decimal digits you type, so 1.005 is exactly halfway and rounds to 1.01 with the half-up rule.

What are significant figures?

They are the digits that carry meaning, counted from the first nonzero digit: 0.004567 has four, and to two significant figures it is 0.0046. Leading zeros never count; trailing zeros after a decimal point do (2.50 has three significant figures).

How do negative numbers round?

Half up, half down and half even are symmetric: −2.5 rounds to −3 with half up, just as 2.5 rounds to 3. Floor and ceiling are not symmetric: the floor of −7.01 is −8, its ceiling is −7. Truncation simply drops the digits, which moves toward zero.

What does rounding to the nearest 0.05 mean?

The result must be a multiple of 0.05, so it ends in .x0 or .x5. It is used for cash rounding where 1- and 2-cent coins are withdrawn (12.37 → 12.35, 12.38 → 12.40). Choose "Nearest multiple of…" and type 0.05, or any other step such as 0.25 or 500.

Sources

Last updated:

More Math calculators

People also use