Rounding Calculator: Any Place, Any Multiple, 7 Rules
Round any number to a place value, from thousands to ten-thousandths, or to the nearest multiple of any amount, such as 0.05, 0.25 or 5. Choose from seven rounding rules and the calculator shows the answer with steps and a number line. A table gives the result under every rule, so you can see at once whether the rule you pick changes the answer.
The example below is a tie: 1,287.645 rounded to two decimal places is 1,287.65 under the school rule, but 1,287.64 under banker’s rounding. The 5 sits exactly halfway, so the two rules disagree.
Four Choices: Number, Place, Rule, Result
- Type the number. Commas, negatives and scientific notation such as 4.2e-3 all work.
- Choose where to round. Pick a place value, from “Nearest thousand” down to “Ten-thousandth”. To round to something else, choose “Nearest multiple of…” and type the multiple: 0.05 for nickels, 0.25 for quarter hours, 5 or 10 for prices.
- Pick the rounding rule. The default, “Nearest, halves away from zero”, is the rule taught in school. The other six are explained below.
- Read the results. You get the rounded number, how much rounding changed it, the two values it fell between, and the range of numbers that round to the same answer. The steps mark the digit you’re rounding and the digit that decides it.
The table under the steps rounds your number with all seven rules. When every row shows the same answer, the rule doesn’t matter for that number. When the rows differ, it does.
Seven Rounding Rules, Side by Side
The three nearest rules disagree only on exact ties. The four directed rules can differ on any number that isn’t already rounded, and negative numbers pull the two groups further apart. Here are four numbers rounded to a whole number:
| Rule | 2.5 | −2.5 | 3.7 | −3.7 |
|---|---|---|---|---|
| Nearest, halves away from zero | 3 | −3 | 4 | −4 |
| Nearest, halves to even | 2 | −2 | 4 | −4 |
| Nearest, halves up toward +∞ | 3 | −2 | 4 | −4 |
| Always up (ceiling) | 3 | −2 | 4 | −3 |
| Always down (floor) | 2 | −3 | 3 | −4 |
| Toward zero (cut off) | 2 | −2 | 3 | −3 |
| Away from zero | 3 | −3 | 4 | −4 |
The first three are nearest rules. They only differ on ties like 2.5. The last four are directed rules. They ignore which neighbour is closer and always move one way, so 3.7 can become 3.
The words “up” and “down” are where the confusion starts. For −3.7, “up” toward +∞ gives −3, while “up” in size gives −4. That’s why the calculator names each rule by its direction rather than just “round up”.
Which Rule Should You Use?
- Homework and everyday rounding: nearest, halves away from zero. A 5 rounds the size up, so 2.5 becomes 3 and −2.5 becomes −3. This is also what Excel’s ROUND does.
- Large sets of data: nearest, halves to even. Ties go up half the time and down half the time, so totals don’t drift upward. It’s the default rounding mode in the IEEE 754 standard that computers use for floating-point numbers, and it’s what Python’s round() does.
- When you need enough of something: always up. If a job takes 2.3 buses, you book 3. Some professionals bill time in tenths of an hour and round each task up, so a 14-minute call becomes 0.3 hours.
- When only complete units count: always down or toward zero. Ages work this way. You’re 17 until your 18th birthday, even at 17.9 years.
- Spreadsheets and code: check which rule the function uses before you trust a result on a tie. JavaScript’s Math.round sends −2.5 to −2, while Excel’s ROUND sends it to −3.
Rounding to the Nearest Multiple
Place values are multiples of 10, 1, 0.1 and so on. Rounding to any other multiple works the same way: divide by the multiple, round to a whole number, then multiply back.
Prices to the nearest 5. 47 ÷ 5 = 9.4, which rounds to 9, so 47 becomes 45. 48 ÷ 5 = 9.6, which rounds to 10, so 48 becomes 50.
Quarters (0.25). To round 3.38 to the nearest 0.25: 3.38 ÷ 0.25 = 13.52, which rounds to 14, and 14 × 0.25 = 3.50.
Cash without pennies. Canada stopped distributing the penny on February 4, 2013. Cash totals are now rounded to the nearest 5 cents. The Canada Revenue Agency’s guideline rounds $1.01 and $1.02 down to $1.00, and $1.03 and $1.04 up to $1.05. That’s exactly rounding to the nearest multiple of 0.05:
| Total | Cash payment |
|---|---|
| $12.41 | $12.40 |
| $12.42 | $12.40 |
| $12.43 | $12.45 |
| $12.47 | $12.45 |
| $12.48 | $12.50 |
The rounding applies only to the final amount for cash payments, after sales tax. Card and cheque payments are still charged to the cent.
Time to the nearest quarter hour. 7 hours 38 minutes is 7.6333… hours. Rounded to the nearest 0.25, that’s 7.75 hours, or 7 hours 45 minutes. In minutes, rounding to the nearest 15 means 1 to 7 minutes past a quarter rounds down and 8 to 14 rounds up. US federal rules allow employers to round work time to the nearest 5 minutes, tenth of an hour or quarter hour, as long as the rounding doesn’t end up underpaying employees over time.
Rounding Error Adds Up
Every rounding changes a number a little. Round many numbers and add them, and the small changes can add up to a visible difference.
A shop charges 8.25% sales tax on three items: $1.99, $3.49 and $5.49.
| Method | Tax |
|---|---|
| Round the tax on each item, then add: $0.16 + $0.29 + $0.45 | $0.90 |
| Add the prices first ($10.97), then round the tax: $0.905025 | $0.91 |
The one-cent gap comes only from where the rounding happened. Rounding once, at the end, keeps the answer closest to the exact value. When a set of rules says where to round, as tax and payroll rules sometimes do, follow them, and use the same method every time so results can be checked.
Rounding in Excel and Google Sheets
Each rounding rule has a matching spreadsheet function. With the number in A1, rounding to 2 decimal places:
| Rule | Formula |
|---|---|
| Nearest, halves away from zero | =ROUND(A1, 2) |
| Always up (toward +∞) | =CEILING.MATH(A1, 0.01) |
| Always down (toward −∞) | =FLOOR.MATH(A1, 0.01) |
| Toward zero | =ROUNDDOWN(A1, 2) or =TRUNC(A1, 2) |
| Away from zero | =ROUNDUP(A1, 2) |
| Nearest multiple, halves away from zero | =MROUND(A1, 0.05) |
| Nearest, halves up toward +∞ | =FLOOR.MATH(A1 + 0.005, 0.01) |
A few notes:
- Negative digits round to the left of the point. =ROUND(A1, -2) rounds to the nearest hundred.
- INT rounds down, not toward zero. =INT(-3.7) is −4, while =TRUNC(-3.7) is −3.
- MROUND needs matching signs in Excel. The number and the multiple must both be positive or both be negative.
- There’s no built-in banker’s rounding. To round to a whole number with halves to even, use
=IF(ABS(A1-TRUNC(A1))=0.5, 2*ROUND(A1/2, 0), ROUND(A1, 0)). It turns 2.5 into 2, 3.5 into 4 and −2.5 into −2.
Why Some Calculators Get 1.005 Wrong
Round 1.005 to two decimal places. It’s exactly halfway, so the school rule gives 1.01. Yet in JavaScript, (1.005).toFixed(2) returns “1.00”, and in Python round(1.005, 2) returns 1.0.
The reason isn’t the rounding rule. Computers store numbers in binary, and 1.005 can’t be stored exactly. The closest binary value is 1.00499999999999989…, which is just under halfway, so it rounds down. Any tool built on ordinary floating-point arithmetic can trip on values like this.
This calculator works with the decimal digits exactly as you type them, so 1.005 is treated as exactly 1.005. It gives 1.01 with the school rule and 1.00 with banker’s rounding, because 0 is even. If a result from a spreadsheet or script looks one digit off on a value ending in 5, check it here.
Rounding Whole Numbers and Large Values
The same tool rounds to the left of the decimal point. Choose “Nearest ten”, “Nearest hundred” or “Nearest thousand”, or type a multiple such as 1,000,000 for millions.
- 499,500 to the nearest thousand is 500,000. The 500 left over is exactly half a thousand, a tie. Halves away from zero and halves to even both go up here, because 499 is odd and 500 is even.
- 1,995 to the nearest ten is 2,000. The carry runs through two 9s.
Rounding Questions With Short Answers
- What is 1,287.645 rounded to two decimal places? 1,287.65 by the school rule. With banker’s rounding it’s 1,287.64, because the 4 is already even.
- Is −4.5 rounded to −4 or −5? It depends on the rule. The school rule and Excel’s ROUND give −5. Banker’s rounding and JavaScript’s Math.round give −4.
- How do I round to the nearest 5? Divide by 5, round to a whole number, and multiply by 5. 47 becomes 45 and 48 becomes 50.
- Can I round 4.2 to the hundredth? Yes, it becomes 4.20. Adding the zero doesn’t make the number more precise; it only writes it to that place.
- How do I round money to the nearest dollar? Choose “Whole number”. $14.49 becomes $14 and $14.50 becomes $15 with the school rule. Banker’s rounding sends $14.50 to $14, because 14 is even.
- What does the “Numbers that round to” box mean? It’s the range of values that give the same answer. Everything from 1,287.645 up to 1,287.655 rounds to 1,287.65 to the hundredth, so the rounded number can stand for any value in that range.
- What’s the difference between rounding down and truncating? For positive numbers, nothing. For negatives, rounding down goes to the lower number (−3.7 becomes −4), while truncating just drops the digits (−3.7 becomes −3).
For the reasoning behind each step, including carrying 9s, keeping zeros and why you should round only once, see how to round decimals. To round to a number of significant figures instead of a place value, use the Significant Figures Calculator.
