Rounding Calculator
Decimal places, sig figs or any multiple — every rounding mode side by side.
Rounded
This is the last answer worked out. Fix the input above to update it.
Every rounding mode
| Mode | Result | What it does | Used by |
|---|
Rounded numbers
Sum of the rounded numbers
| Mode | Sum | Change |
|---|
About the Rounding Calculator
Round a number — or a whole list — to N decimal places, N significant figures or the nearest multiple of any step: 10, 100, 0.05, 0.25 or 1/8. Every common rounding mode is shown side by side, with what it does and where it is used: half away from zero (the school rule), half up, half down, half to even (banker’s rounding), half toward zero, ceiling, floor, truncate and away from zero. The modes only disagree on ties and in the direction they push, and the explanation says which case your number is.
The arithmetic is exact decimal arithmetic, so 2.675 is exactly 2.675. In ordinary binary floating point it is stored as 2.67499999…, which is why Python’s round(2.675, 2) gives 2.67. For a list, the tool also adds up the rounded values in each mode, so you can see how much the rounding shifts the total.
How to use it
- Type a number, or a list with one number per line or separated by spaces or commas (1.25, 2.35 or 1.25,2.35 — a comma between digits such as 1,250 groups thousands).
- Choose Decimal places, Significant figures or Nearest multiple, and set the number of places, figures or the step.
- Choose the rounding mode for the main answer and the list. For a single number, the table shows every mode.
- Copy the results, or download them as a CSV file.
Examples
2.345 to 2 decimal places
2.35 (half away from zero) or 2.34 (half to even)
2.345 is exactly halfway between 2.34 and 2.35, so the tie-breaking rule decides.
−2.5 to a whole number
−3 (half away from zero), −2 (half up and half to even)
1499.5 to 3 significant figures
1500 = 1.50 × 10³
Scientific notation shows that the first zero is significant.
3.62
3.60
3.62 lies between 3.60 and 3.65 and is nearer to 3.60.
2.718
2.75 = 2 3/4
Common uses
- Rounding prices, measurements or survey results consistently, and choosing the rule a standard or teacher asks for.
- Checking how Excel, JavaScript or Python will round a value.
- Rounding inch measurements to the nearest 1/8 or 1/16, or minutes to the nearest 15.
- Seeing how much rounding every item in a list changes the total.
The rounding modes
- Half away from zero: ties go away from zero — 2.5 → 3, −2.5 → −3. This is the rule usually taught at school, and Excel’s ROUND follows it.
- Half up: ties go toward +∞ — 2.5 → 3, −2.5 → −2. JavaScript’s Math.round works this way (MDN).
- Half down: ties go toward −∞ — 2.5 → 2, −2.5 → −3.
- Half to even (banker’s rounding): ties go to the even neighbour — 2.5 → 2, 3.5 → 4, −2.5 → −2. Python’s round() uses it (Python docs).
- Half toward zero: 2.5 → 2, −2.5 → −2.
- Ceiling, floor, truncate and away from zero always move one way, tie or not: ceiling 2.1 → 3, floor −2.1 → −3, truncate −2.9 → −2, away from zero 2.1 → 3. Excel’s ROUNDUP rounds away from zero and ROUNDDOWN toward zero.
The names are not used consistently: Java’s RoundingMode and Python’s decimal module call half away from zero “half up”.
Why half to even?
Rounding every tie up pushes totals and averages up a little. Half to even sends half of the ties up and half down, so on average there is no bias. It is the default rounding of IEEE 754 binary floating point (roundTiesToEven, IEEE 754-2019 §4.3) and the rule for measurement data in ASTM E29 and in NIST’s guide to the SI, SP 811, appendix B.7. The list mode shows the effect: 1.25 + 2.35 + 3.45 + 4.55 = 11.6, but rounding each to one place half away from zero gives a total of 11.8, while half to even gives 11.6.
Round once, from the original value
Rounding in stages can give a different result from rounding once. 9.46 to one decimal place is 9.5, and 9.5 to a whole number (half to even) is 10 — but 9.46 rounded straight to a whole number is 9. Keep full precision while you calculate and round only the final answer.
Significant figures and multiples
Significant figures are counted from the first non-zero digit: 0.004567 to 2 significant figures is 0.0046. When a rounded whole number ends in zeros, the zeros may or may not be significant — 1499.5 to 3 figures is 1500 — so the calculator also writes it as 1.50 × 10³ (and 150. with a decimal point when the last zero counts). For a multiple, any positive step works, including fractions: 1/8 or 1/16 for inches, 0.25 for quarters, 15 for minutes.
Limitations
- Up to 1,000 numbers at a time, each with up to 100 digits. Decimal places can be from −20 (round to the left of the point) to 100; up to 100 significant figures.
- A step that is not a terminating decimal, such as 1/3, gives fractions (10 1/3) with their decimal expansion.
- The table lists where a mode is used only where that is documented; software can also offer other options, so check the documentation of the program you use.
Privacy
Everything happens in your browser. What you enter or open here is not uploaded or stored by MySmartCoPilot.
Frequently asked questions
How do I round to 2 decimal places?
Look at the third decimal place: if it is more than 5 (or 5 followed by other digits), round the second place up; if it is less than 5, leave it. 3.14159 → 3.14 and 2.6789 → 2.68. If the dropped part is exactly 5, as in 2.345, the tie rule decides: half away from zero gives 2.35, half to even gives 2.34.
What is banker’s rounding?
Another name for rounding half to even: a value exactly halfway is rounded to the neighbour whose last digit is even, so 2.5 → 2, 3.5 → 4 and 0.125 → 0.12. It avoids the upward bias of always rounding ties up. Despite the name, it is hard to find evidence that banks ever used it as a standard.
Why does Excel round 2.5 to 3 but Python round(2.5) gives 2?
They use different tie rules. Excel’s ROUND rounds ties away from zero; Python’s round() rounds ties to even. Python’s documentation also warns that round(2.675, 2) gives 2.67, because the float closest to 2.675 is slightly smaller than 2.675 — this calculator uses exact decimals and gives 2.68.
Is −2.5 rounded to −3 or −2?
It depends on the mode. Half away from zero gives −3; half up (toward +∞) and half to even give −2. For negative numbers “round up” is ambiguous, so the table shows every mode.
How do I round to the nearest 5, 0.05 or 1/8?
Choose Nearest multiple and type the step. The calculator divides by the step, rounds to a whole number and multiplies back: 3.62 ÷ 0.05 = 72.4 → 72 → 3.60. A fraction step such as 1/8 gives the result as a decimal and as a mixed number (2.75 = 2 3/4).