Rounding Calculator
Round to any place value or number of decimals with the rule you need
Round numbers to tens, hundreds, whole numbers or any number of decimal places using half up, half to even, half down, ceiling, floor or truncation, with exact decimal arithmetic.
Fractions & DecimalsUpdated October 21, 2026Checked against 8 reference values
Examples
Rounded to hundredths (2 decimals)
2.35
Rounded up
- Half to even
- 2.34
- Half down
- 2.34
- Always up
- 2.35
- Always down
- 2.34
- Toward zero
- 2.34
- Away from zero
- 2.35
What this calculator does
Enter a number, choose the place to round to, from thousands down to four decimal places, and pick a rounding rule. The calculator gives the rounded result and, for comparison, what every other common rule would produce. It works with exact decimal arithmetic rather than the binary floating-point numbers used by most software, so a value like 2.345 rounds the way it does on paper. A number line shows the two neighbors at the chosen place and which one the number rounds to.
How rounding works
Look at the first digit after the place you keep: below 5 round down, above 5 round up, exactly 5 follows the rule you choose
To round 2.345 to two decimal places, keep 2.34 and look at the next digit, 5. With half up, the usual school rule, the result is 2.35. Rounding to tens, hundreds or thousands works the same way, replacing the dropped digits with zeros: 1,234.5 to the nearest hundred is 1200.
Rounding rules compared
| Rule | 2.5 | 3.5 | -2.5 | 2.45 | -1.7 |
|---|---|---|---|---|---|
| Half up (away from zero), school rounding | 3 | 4 | -3 | 2.5 | -2 |
| Half to even (banker’s rounding) | 2 | 4 | -2 | 2.4 | -2 |
| Half down (toward zero) | 2 | 3 | -2 | 2.4 | -2 |
| Always up (ceiling) | 3 | 4 | -2 | 2.5 | -1 |
| Always down (floor) | 2 | 3 | -3 | 2.4 | -2 |
| Toward zero (truncate) | 2 | 3 | -2 | 2.4 | -1 |
| Away from zero | 3 | 4 | -3 | 2.5 | -2 |
Whole-number rounding, except 2.45, which is rounded to one decimal place.
Why banker's rounding exists
Always rounding halves up nudges totals upward when many numbers are rounded, because exactly half is always pushed the same way. Rounding half to even sends half the ties up and half down, which removes that bias on average. It is the default in the IEEE 754 standard for computer arithmetic and is described in ISO 80000-1 and NIST guidance on rounding numbers, and it is common in accounting, statistics and science. With it, 2.5 becomes 2 and 3.5 becomes 4.
Why spreadsheets and code sometimes disagree
Most programming languages and spreadsheets store numbers in binary, where many decimals cannot be represented exactly. The number 2.345, for example, is stored as slightly less than 2.345, so rounding it to two places in some languages gives 2.34 rather than 2.35. This calculator treats your input as an exact decimal string, so ties are recognized correctly. For money, many systems store amounts as whole cents for the same reason.
Always up, always down and truncation
- Ceiling (always up) moves toward positive infinity: useful when you must have enough, such as buying whole boxes of tiles.
- Floor (always down) moves toward negative infinity, so −2.1 becomes -3.
- Truncation simply drops digits, moving toward zero, so −2.9 becomes -2.
- Away from zero rounds any remainder outward, so both 2.1 and −2.1 grow in size.
Rounding money and prices
Currency amounts are usually rounded to cents with half up, but rules vary. Some tax authorities specify how to round sales tax per item or per invoice, and countries that have withdrawn their smallest coins round cash totals to the nearest 5 cents. When adding many rounded amounts, round only the final total where you can, because rounding each line first can make the total differ by a few cents.
Decimal places or significant figures?
Decimal places count digits after the decimal point; significant figures count meaningful digits from the first nonzero one, which suits measurements of very different sizes. Rounding 0.004567 to two decimal places gives 0.00, while rounding to two significant figures gives 0.0046. For significant figures, use the sig figs calculator, and for very large or small numbers the scientific notation calculator.
Rounding Calculator: common questions
How do I round to two decimal places?
Keep two digits after the decimal point and look at the third. If it is 5 or more, increase the second digit by one; otherwise leave it. So 3.14159 becomes 3.14 and 2.678 becomes 2.68.
What is banker's rounding?
Rounding half to even: when a number is exactly halfway, it goes to the nearest even digit, so 2.5 becomes 2 and 3.5 becomes 4. It avoids an upward bias when many numbers are rounded.
Does 0.5 round up or down?
With the usual school rule it rounds up, to 1. With banker's rounding it rounds to 0, the even neighbor. Choose the rule your teacher, standard or software expects.
Why does my spreadsheet round 2.345 to 2.34?
Binary floating-point cannot store 2.345 exactly; the stored value is slightly smaller. This calculator uses exact decimals, so it gives 2.35 with half up.
How do I round to the nearest hundred?
Choose Hundreds. The calculator looks at the tens digit: 50 or more rounds up, less rounds down, so 1,249 becomes 1,200 and 1,250 becomes 1,300 with half up.
Sources
- NIST SP 811 (2008), Appendix B.7: Rounding numbers
- IEEE 754-2019, Standard for Floating-Point Arithmetic (rounding-direction attributes)
- ISO 80000-1:2022, Annex B (rounding of numbers)
Related calculators
- Significant Figures CalculatorCount significant figures in any number with the digits highlighted and the rules explained, round to any number of significant figures, and add, subtract, multiply or divide measurements with the correct sig fig rules.
- Scientific Notation CalculatorConvert any number to scientific, E and engineering notation with the SI prefix and full standard form, round to significant figures, and multiply, divide, add or subtract numbers in scientific notation with the steps shown.
- Fraction CalculatorAdd, subtract, multiply and divide fractions and mixed numbers and get the exact answer in lowest terms, with the mixed number, exact decimal, fraction bars, every step, a missing-fraction solver and a list mode.
- Compare Fractions CalculatorCompare two or more fractions, mixed numbers or decimals, see which is larger, and order a list from least to greatest using a common denominator and cross-multiplication.
- Long Multiplication CalculatorMultiply whole numbers or decimals with the standard long multiplication method, showing each partial product, the carries and the final sum.