What is a Rounding Calculator?
A rounding calculator replaces a number with the nearest value on a coarser grid: the nearest tenth, hundredth or whole number, a set number of significant figures, or the nearest multiple of 10, 100, 0.25 or any other step. Look at the digit just after the last one you keep: if it is 5 or greater, round up; if it is 4 or less, round down. So 4.736 is 4.7 to the nearest tenth and 4.74 to the nearest hundredth. At an exact tie the rounding rule decides: half up takes 2.675 to 2.68, half down to 2.67.
What the Rounding Calculator does
Type a number, choose what to round to and pick a rule. The calculator shows the rounded value, the two neighbouring candidates the number lies between, how far it is from each and which rule made the decision. A table lists the result under all six rules side by side, which makes ties and negative numbers easy to check.
The arithmetic is done on the decimal digits you type, not on binary floating-point approximations. That matters for ties. Most programming languages store 1.005 as 1.00499999999999989…, so they round it to 1.00, while the correct half-up answer, and the one given here, is 1.01.
How to use the Rounding Calculator
- Type the number into Number to round. Long decimals, negative numbers, fractions such as 22/7 and scientific notation such as 1.5e-7 are all accepted.
- Under Round to, choose decimal places, significant figures or nearest multiple. For the nearest tenth pick 1 decimal place, for the nearest hundredth 2, and for the nearest whole number 0. For the nearest 10, 100, 1,000, half or quarter, pick nearest multiple.
- Pick a Rounding rule. Leave it on half up for everyday and school rounding.
- Read the rounded value and the two neighbours. The message below them says whether the number was a tie and which rule decided.
- Check the table to see what each of the other rules would have given.
Rounding formula
Every kind of rounding is the same operation: move the number to a nearby multiple of a rounding unit u.
| Symbol | Meaning |
|---|---|
| x | the number being rounded |
| u | the rounding unit: 0.01 for two decimal places, 100 for the nearest hundred, 0.25 for the nearest quarter |
| ⌊ ⌋ | round down to a whole number (floor) |
| d, s | the number of decimal places or significant figures to keep |
| e | the power of ten of the first significant digit of x |
A “nearest” rule picks whichever neighbour is closer and uses its tie rule only when x is exactly halfway. In this calculator half up sends ties away from zero (2.5 → 3 and −2.5 → −3), half even sends them to the even neighbour, and half down sends them toward zero. The directed rules ignore distance: ceiling always takes the upper neighbour, floor the lower one, and truncation the one closer to zero.
Worked example
Worked example: 2.675 to two decimal places
Problem. Round 2.675 to 2 decimal places, first with the half-up rule and then with each of the other rules.
- 01Two decimal places means the rounding unit is 0.01. Split the digits after the hundredths place: 2.67 | 5.
- 02The neighbours are the multiples of 0.01 on either side: 2.67 below and 2.68 above.
- 03The halfway point is (2.67 + 2.68) ÷ 2 = 2.675. The number equals it exactly, so this is a tie: 0.005 from each neighbour.
- 04Half up sends a tie away from zero: 2.68. Half even also gives 2.68, because 8 is even and 7 is not.
- 05Half down sends the tie toward zero: 2.67. Ceiling gives 2.68; floor and truncation give 2.67.
Answer. 2.675 rounds to 2.68 under half up, half even and ceiling, and to 2.67 under half down, floor and truncation. Software that stores numbers in binary often returns 2.67 for the half-up case, because its stored value is slightly below 2.675.
How to round to a place value: tenths, hundredths, tens and hundreds
Rounding by hand takes three steps. Find the rounding digit, the last digit you will keep. Look at the digit immediately to its right. If that digit is 5 or greater, add one to the rounding digit; if it is 4 or less, leave the rounding digit as it is. Then drop every digit after the rounding digit, or, to the left of the decimal point, replace them with zeros.
The table runs one number through each place value. The digit that decides is the one straight after the place you round to; all the digits further right only matter when that digit is exactly 5 and the rest are zeros, which is a tie.
| Round to the nearest | Rounding unit | Number | Deciding digit | Result |
|---|---|---|---|---|
| Hundredth (2 decimal places) | 0.01 | 4.736 | 6, so round up | 4.74 |
| Tenth (1 decimal place) | 0.1 | 4.736 | 3, so round down | 4.7 |
| Whole number (integer) | 1 | 4.736 | 7, so round up | 5 |
| Ten | 10 | 1,549 | 9, so round up | 1,550 |
| Hundred | 100 | 1,549 | 4, so round down | 1,500 |
| Thousand | 1,000 | 1,549 | 5, so round up | 2,000 |
Worked examples for each place value
Nearest tenth. Round 4.736 to the nearest tenth. The tenths digit is 7. The digit after it is 3, which is less than 5, so the 7 stays and the rest is dropped: 4.7. In the calculator, choose 1 decimal place.
Nearest hundredth. Round 4.736 to the nearest hundredth. The hundredths digit is 3 and the digit after it is 6, which is 5 or greater, so the 3 becomes 4: 4.74. Choose 2 decimal places.
Nearest whole number. Round 4.736 to the nearest whole number. The ones digit is 4 and the tenths digit is 7, so round up to 5. A value of exactly 7.5 is a tie and becomes 8 under half up, while 7.49 becomes 7. Choose 0 decimal places.
Nearest ten. Round 1,549 to the nearest ten. The tens digit is 4 and the ones digit is 9, so the 4 becomes 5 and the ones digit becomes 0: 1,550. Choose nearest multiple and 10.
Nearest hundred. Round 1,549 to the nearest hundred. The hundreds digit is 5 and the tens digit is 4, so the 5 stays and the tens and ones become zeros: 1,500. Notice that rounding 1,549 to the nearest ten first (1,550) and then to the nearest hundred would give 1,600, which is wrong. Always round the original number in one step.
Nearest thousand. Round 1,549 to the nearest thousand. The thousands digit is 1 and the hundreds digit is 5, so the 1 becomes 2 and everything after it becomes zero: 2,000. Choose nearest multiple and 1,000.
Significant figures. Round 0.004567 to 2 significant figures. The first non-zero digit is 4, so the two significant digits are 4 and 5. The next digit is 6, so the 5 becomes 6: 0.0046.
Rounding to the nearest half, quarter or eighth
Rounding to a fraction works the same way as rounding to 10 or 100: the rounding unit is simply 0.5, 0.25 or 0.125. Divide the number by the unit, round to a whole number, and multiply back. For 7.38 to the nearest quarter, 7.38 ÷ 0.25 = 29.52, which rounds to 30, and 30 × 0.25 = 7.5. To the nearest eighth, 7.38 × 8 = 59.04, which rounds to 59, and 59 ÷ 8 = 7.375, or 7 3/8.
In the calculator, choose nearest multiple and pick 0.5 or 0.25 from the list, or choose a custom multiple and type a fraction such as 1/8 or 1/16. This is useful for measurements in inches, recipe quantities and time sheets kept in quarter hours.
The six rounding rules compared
The three “half” rules agree whenever a number is closer to one neighbour than the other; they differ only for exact ties. The three directed rules never look at distance. The table shows each rule on a positive tie, a negative tie and two ordinary values, all rounded to a whole number.
Half up is defined here as ties away from zero, which is what Excel’s ROUND and most school textbooks do. Some software sends ties toward positive infinity instead, so that −2.5 becomes −2: JavaScript’s Math.round and Java’s Math.round both work that way. Check which convention your tool uses before comparing results for negative numbers.
| Rule | What happens on a tie | 2.5 | −2.5 | 2.4 | −2.6 |
|---|---|---|---|---|---|
| Half up | away from zero | 3 | −3 | 2 | −3 |
| Half even (banker’s) | to the even neighbour | 2 | −2 | 2 | −3 |
| Half down | toward zero | 2 | −2 | 2 | −3 |
| Always up (ceiling) | always toward +∞ | 3 | −2 | 3 | −2 |
| Always down (floor) | always toward −∞ | 2 | −3 | 2 | −3 |
| Toward zero (truncate) | always toward zero | 2 | −2 | 2 | −2 |
Why banker’s rounding exists
Half up pushes every tie in the same direction, so a long column of rounded values drifts away from the true total. Round 0.5, 1.5, 2.5 and 3.5 to whole numbers with half up and you get 1 + 2 + 3 + 4 = 10, although the original values add up to 8. Half even gives 0 + 2 + 2 + 4 = 8, because half of the ties go up and half go down.
That is why half even is the default in the IEEE 754 floating-point standard and in Python’s round(), R’s round() and .NET’s Math.Round. If your result differs from a spreadsheet or a program by one unit in the last place, a different tie rule is the usual reason.
Rounding to significant figures
Significant figures are counted from the first non-zero digit, wherever the decimal point is. So 0.004567 to 2 significant figures is 0.0046, and 1234.5678 to 3 significant figures is 1230. The zero in 1230 is a placeholder that keeps the size of the number right; writing 1.23 × 10³ makes it clear that only three digits are significant.
Rounding can carry into a new digit: 9.96 to 2 significant figures is 10, not 9.9 or 10.0. Decimal places are different: they count digits after the decimal point, so they are the right choice for money and for tables where every value should line up.
Why 1.005 rounds to 1.01 here but 1.00 in code
Computers usually store numbers in binary, and most decimal fractions have no exact binary form. The stored value closest to 1.005 is 1.00499999999999989…, a little below the halfway point, so JavaScript’s (1.005).toFixed(2) returns 1.00. In the same way Python’s round(2.675, 2) returns 2.67.
Neither result is a bug in the rounding rule; the number being rounded is simply not the one that was typed. This calculator avoids the problem by working with the typed digits as exact whole-number fractions, so 1.005 is exactly 1005/1000 and is recognised as a tie.
Common use cases
- Money: round a calculated price or tax to 2 decimal places, or to the nearest 0.05 where the smallest coin is five cents.
- Reporting statistics: give a mean or standard deviation to one more decimal place than the data, and a p-value to three.
- Science and engineering: state a measurement to the number of significant figures the instrument supports.
- Estimates: round populations, budgets and distances to the nearest 10, 100 or 1,000.
- Time and billing: round hours worked to the nearest quarter (0.25) or half hour.
- Checking software: reproduce a spreadsheet’s or a program’s result by choosing the same tie rule.
Assumptions and limitations
- Rounding throws information away. Round once, at the end of a calculation; rounding intermediate results lets small errors add up.
- Half up here means ties away from zero. If you need ties toward positive infinity (as in JavaScript’s Math.round), the results differ only for negative ties: use half down for negative numbers to reproduce it.
- A whole-number result does not show how many of its zeros are significant: 1230 could have three or four significant figures. Use the scientific notation shown in the results when that matters.
- Decimal places are limited to 0–10 and significant figures to 1–15. A number can be up to 60 characters long, and scientific notation (1.5e-7) is accepted for exponents from −30 to 30.
- A single comma followed by exactly three digits is taken as a thousands separator, so 2,675 means 2675, not 2.675: type a point for that. Other single commas are decimal commas (2,67 means 2.67 and 0,675 means 0.675).
- A custom multiple must be positive and have a finite decimal form, such as 0.05, 2.5 or 1/8. For remainders after division by a step, see the Modulo Calculator.
Frequently asked questions
How do you round to two decimal places?
What is the rule for rounding a number that ends in 5?
What is banker’s rounding?
How do you round negative numbers?
How do you round to significant figures?
Why does my code round 1.005 to 1.00 instead of 1.01?
How do I round to the nearest 5 or the nearest 0.05?
How do you round to the nearest tenth?
How do you round to the nearest whole number?
How do you round to the nearest 10, 100 or 1,000?
Cite this page
Statculator. (2026, November 14). Rounding Calculator. Retrieved November 14, 2026, from https://statculator.com/math/rounding-calculator/