Works on this device
Rounding Calculator
Round a number and see why the answer is what it is. The page shows the two neighbours the number lies between, which one is nearer, and what the chosen rule does with a tie. It works on the digits you type, so long numbers and numbers such as 2.675 come out right.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose the button below them.
Your result
How it was worked out
How to use this calculator
- Choose how you want to round: to decimal places or to tens, hundreds and thousands, to significant figures, or to a multiple such as 5 or 0.25.
- Type the number. You can type a decimal, a whole number or a fraction such as 7/8.
- Choose the rounding rule. If you are not sure, keep half up. It is the rule taught in school.
- Choose Round. The page shows the rounded number, the two neighbours, and the result under every rule.
The rounding rules
To round a number, find the two neighbours it lies between. For two decimal places the neighbours of 2.675 are 2.67 and 2.68. A rule then picks one of them.
- Half up: go to the nearer neighbour. A number exactly halfway goes away from zero. 2.5 gives 3 and −2.5 gives −3.
- Half down: go to the nearer neighbour. A number exactly halfway goes toward zero. 2.5 gives 2.
- Half to even (banker's rounding): go to the nearer neighbour. A number exactly halfway goes to the neighbour with an even last digit. 2.5 gives 2 and 3.5 gives 4.
- Half to odd: like half to even, but a tie goes to the odd last digit. 2.5 gives 3 and 3.5 gives 3.
- Up: always go away from zero. 2.1 gives 3 and −2.1 gives −3.
- Down: always go toward zero, which cuts off the extra digits. 2.9 gives 2 and −2.9 gives −2.
- Ceiling: always go to the larger neighbour. 2.1 gives 3 and −2.1 gives −2.
- Floor: always go to the smaller neighbour. 2.9 gives 2 and −2.1 gives −3.
Why other tools can give a different answer
- They may use another rule for ties. ROUND in Excel sends a tie away from zero, as half up does here. round() in Python and Math.Round in .NET send a tie to the even neighbour. Math.round in JavaScript sends a tie to the larger neighbour, so −2.5 gives −2.
- They may store the number in binary floating point. 2.675 cannot be stored exactly and is held as a number a little below it, so some programs round it to 2.67. This page keeps the decimal digits you type and gives 2.68 with half up.
Worked examples
3.14159 to two decimal places: the neighbours are 3.14 and 3.15. The number is 0.00159 above 3.14 and 0.00841 below 3.15, so the answer is 3.14.
2.665 to two decimal places is a tie between 2.66 and 2.67. Half up gives 2.67. Half to even gives 2.66, because 6 is even.
56291.8 to the nearest thousand is 56000.
137 to the nearest 5: the neighbours are 135 and 140. 137 is 2 above 135 and 3 below 140, so the answer is 135.
0.0045678 to three significant figures is 0.00457, which is 4.57 × 10^-3.
Estimate 487 + 312 by rounding to the nearest hundred: 500 + 300 = 800. The exact answer is 799.
Limits you should know
- A number can have at most 60 digits. Results are exact for the digits you type.
- Decimal places go from 0 to 12, and whole-number places go up to the nearest billion. For other steps use the option for a multiple.
- For a tie on a multiple, "even" and "odd" mean an even or an odd number of steps.
- The estimate option rounds each number with the half up rule. An estimate is a quick check, not the answer.
- This page rounds plain numbers. It does not round clock times, apply a currency's cash rounding law, or round a measurement to its uncertainty.