Rounding Calculator
Round any number to the nearest place value, a set number of decimal places or significant figures, or the nearest multiple (like 5, 0.25 or 1/8). Choose how halves are handled or always round up or down. You get the answer, a plain-English reason, a digit guide, a number line, and step-by-step working. Every answer is worked out with exact arithmetic, so there are no floating-point surprises.
Background
Rounding replaces a number with a nearby value that is easier to read or use. The usual rule: look at the digit just right of the place you keep. If it is 5 or more, round up; if it is 4 or less, leave the kept digit alone and drop the rest. The one tricky case is a number that is exactly halfway, like 2.5 or 72.445. Different fields settle ties differently, so this calculator lets you choose the rule and shows you how the answers compare.
How to use this calculator
- Type the number. Negatives, decimals, fractions like 2/3 and scientific notation like 1.5e3 are fine.
- Pick what to round to: a place value, a number of decimal places, a number of significant figures, or the nearest multiple of any step.
- Choose how to round: nearest (the usual), or always up, always down, toward zero, or away from zero. For nearest, choose what happens to an exact half.
- The answer updates as you type. You get the result, why, a digit guide, a number line, step-by-step working, and a table comparing every rule.
How this calculator works
- Exact arithmetic. Your number is held as an exact fraction of two whole numbers, so nothing is lost to floating-point error. Many calculators store 2.675 as 2.67499999… and wrongly return 2.67. This one returns 2.68.
- Two neighbours. Every rounding picks one of the two multiples of the step on either side of your number. The calculator shows both and which one wins and why.
- Ties are your call. When the number is exactly halfway, the rule you choose decides. The comparison table shows what every rule would give.
Rules used
Nearest, halves away from zero
The school rule: a deciding digit of 5 or more rounds the size of the number up. 2.5 → 3 and −2.5 → −3.
Nearest, halves to even (bankers)
An exact half goes to the neighbour with an even last digit. 2.5 → 2 and 3.5 → 4. It avoids a small upward bias when you round lots of numbers.
Nearest, halves toward zero
An exact half goes to the neighbour closer to zero. 2.5 → 2 and −2.5 → −2.
Nearest, halves up (toward +∞)
An exact half goes to the larger neighbour. 2.5 → 3 and −2.5 → −2. This is how JavaScript's Math.round works.
Always up / always down
Ceiling takes the larger neighbour and floor takes the smaller one, whatever the distance. 8.999 floors to 8, and −2.1 ceils to −2.
Toward zero / away from zero
Toward zero cuts digits off (truncates). Away from zero always takes the neighbour farther from zero.
Example Problems & Step-by-Step Solutions
Example 1 — Round 15.496 to the nearest tenth
- The tenths digit is 4 and the decision digit (hundredths) is 9.
- The neighbours are 15.4 and 15.5. 15.496 is 0.004 from 15.5 and 0.096 from 15.4.
- Because 9 ≥ 5 it rounds up. The result is 15.5.
Example 2 — Round 72.445 to 2 decimal places (an exact half)
- Keep two decimals: the neighbours are 72.44 and 72.45.
- The decision digit is 5 with nothing after it, so 72.445 is exactly halfway (0.005 from each).
- With the school rule (halves away from zero) the result is 72.45. With bankers rounding it is 72.44, because 4 is even.
Example 3 — Round 0.004876 to 3 significant figures
- The first nonzero digit is 4 (thousandths), so three significant figures reach the hundred-thousandths place.
- The significant digits are 4, 8, 7 and the next digit is 6, which is 5 or more.
- Round the 7 up to 8. The result is 0.00488.
Example 4 — Round −2.5 to a whole number
- The neighbours are −3 and −2, and −2.5 is exactly halfway.
- Halves away from zero: −3. Halves to even, toward zero, or up: −2.
- This is why the tie rule matters, and why the page shows every rule side by side.
Example 5 — Round 37 to the nearest 5
- The multiples of 5 on either side are 35 and 40.
- 37 is 2 from 35 and 3 from 40.
- It is closer to 35, so the result is 35.
Frequently Asked Questions
Which digit decides whether a number rounds up or down?
The digit immediately to the right of the place you keep. 5 or more rounds up; 4 or less rounds down. If it is exactly 5 with nothing after it, the number is a tie.
Why does another calculator give 72.44 or 2.67?
Many tools use floating-point numbers, which can't store values like 72.445 or 2.675 exactly, so an exact half can land just below the half and round the wrong way. This calculator uses exact arithmetic.
Which tie rule should I use?
For schoolwork, usually "away from zero" (the 5-or-more rule). Statistics, accounting and some programming languages use bankers rounding (to even). If your instructions don't say, use the default.
What is the difference between decimal places and significant figures?
Decimal places count digits after the decimal point. Significant figures count meaningful digits starting at the first nonzero digit, so 0.004876 to 3 sig. figs is 0.00488 (and to 3 decimal places it would be 0.005).
How are negative numbers rounded?
The same rule applies, but "round up" has two meanings. "Always up" means toward +∞ (−2.7 → −2), while "away from zero" means −2.7 → −3. Both options are here.
What happens to trailing zeros?
By default they are kept to show precision, like 15.50. Untick "Keep trailing zeros" to remove them. With significant figures, trailing zeros in whole numbers are only placeholders, so the scientific notation panel is the clearest way to show them.
How are commas read?
1,234 and 1,234.5 are read with the comma as a thousands separator. 3,14 is read as 3.14 (decimal comma), and the page tells you how it read it. When in doubt, type the number without commas.
How big a number can it handle?
Up to about 400 digits, and powers of ten up to ±400, all exact.