Rounding calculator
Round a number to the place you need, anywhere from 20 decimal places to the nearest trillion. You also choose how ties and negative numbers are handled, which matters for money, accounting and code.
- Runs in your browser
- Free, no account needed
- Copy or download the result
Result
The short answer
To round a number, look at the digit just after the place you are keeping. In the common half away from zero method, 5 or more rounds up in size and anything less rounds down. Other modes handle exact halves and negative numbers differently, such as ties to even.
FormulaRounded value = nearest multiple of 10^(-places), with ties settled by the chosen mode
Worked exampleThe number 1234.5678 rounded to 2 decimal places is 1234.57, to 1 place is 1234.6, to the nearest 10 is 1230 and to the nearest 100 is 1200.
Example
1234.5678
- Rounded to
- 2 decimal places
- Rounding mode
- Nearest, ties away from zero
| Rounded to | Result |
|---|---|
| Nearest 100 | 1200 |
| Nearest 10 | 1230 |
| Whole number | 1235 |
| 1 decimal place | 1234.6 |
| 3 decimal places | 1234.568 |
How to use the rounding calculator
- Type one number in the box, such as 1234.5678.
- Set Decimal places from -12 to 20. Use 2 for cents, 0 for whole numbers, or -2 for the nearest hundred.
- Pick a Rounding mode, such as Nearest, ties away from zero.
- The result updates as you type, or press Run. Use Copy result or Download to keep it.
How it works
Rounding works on the digits you typed, not on floating point, so -2.675 to 2 places with ties away from zero gives -2.68.
Ties to even, also called banker's rounding, sends an exact half to the even digit. At 0 places, 2.5 becomes 2 and 3.5 becomes 4.
Toward zero cuts off extra digits. Down is floor and Up is ceiling, so -2.1 at 0 places rounds down to -3.
Negative decimal places round to the left of the point. 1234 at -2 places is 1200.
Results are padded to the exact number of places, so 3 at 2 places is 3.00. A table also shows the number at other common places, using the same mode. Up to 200 digits and an exponent from -1000 to 1000 are accepted.
Everything runs in your browser. Your input is not uploaded or stored. If you use Copy link, what you entered is placed in the link.
Questions and answers
How do you round to 2 decimal places?
Look at the third decimal digit. If it is 5 or more, raise the second digit by one, otherwise leave it. 3.14159 rounds to 3.14.
What is banker's rounding?
It rounds exact halves to the nearest even digit, so at 2 places 0.125 becomes 0.12 and 0.135 becomes 0.14. Over many values, it avoids nudging totals upward.
Why does -2.675 round to -2.67 in some software?
Many programs store 2.675 as a binary value slightly smaller than 2.675, so it rounds the wrong way. This tool rounds the exact decimal you typed.
How do I round to the nearest ten or hundred?
Use negative decimal places. -1 rounds to the nearest ten and -2 rounds to the nearest hundred.
Last updated November 1, 2026. Maintained by SnowRock. How our tools work
All 220 SnowRock tools