Rounding Calculator

Type a number, pick a place value or a number of significant figures, and get the rounded result plus a table showing that number rounded to every common place at once, with the exact steps worked out.

Put this calculator on your website for free

Copy one snippet and give your visitors a working Rounding Calculator.

How this rounding calculator works

Type any number, pick the place value you want (or switch to significant figures), and you get the rounded result along with a table showing that same number rounded to every common place at once: whole, tenth, hundredth, thousandth, ten, hundred, and thousand. That table is handy when you are not sure which precision you actually need, or when you want to compare a few side by side. Every result comes with the exact steps worked out using your number, not a generic example.

The rounding rule

Look at the digit right after the place you are rounding to. 5 or more rounds up. Below 5 rounds down.

This is round half up. For negative numbers, this calculator rounds by magnitude first (so -2.5 and 2.5 are treated the same at the halfway point) and then reattaches the sign, which means -2.5 rounds to -3, not -2. That is the convention nearly every math class, spreadsheet function, and calculator uses by default. A different convention, banker's rounding (round half to even), shows up in accounting and in the IEEE floating-point standard, because it does not bias a long run of numbers consistently upward; see the FAQ below for when that matters.

Worked example

Round 3.14159 to every common place value.

Nearest whole number: the tenths digit is 1, which is less than 5, so round down: 3.

Nearest tenth: the hundredths digit is 4, less than 5, round down: 3.1.

Nearest hundredth: the thousandths digit is 1, less than 5, round down: 3.14.

Nearest thousandth: the ten-thousandths digit is 5, which is 5 or more, so round up the thousandths digit from 1 to 2: 3.142.

Nearest ten, hundred, and thousand: 3.14159 is smaller than 5, so each of these rounds down to 0. Rounding to a coarser place than your number's own size is a legitimate answer, just not always a useful one.

Place value refresher

Every digit's position gives it a value ten times bigger than the digit to its right. Rounding always means: keep everything down to one chosen place, and replace (or drop) everything past it.

PlaceValueExample digit in 4,321.567
Thousands1,0004
Hundreds1003
Tens102
Ones11
Tenths0.15
Hundredths0.016
Thousandths0.0017

Significant figures, done properly

Significant figures (sig figs) count meaningful digits rather than decimal places, which makes them a measure of precision instead of a measure of position. Three rules cover almost every case:

  1. Every nonzero digit is significant. 314 has 3 sig figs.
  2. Leading zeros never count, no matter how many there are. 0.0041 has 2 sig figs (the 4 and the 1); the zeros are just placeholders showing how small the number is.
  3. Trailing zeros after a decimal point do count. 3.10 has 3 sig figs, because writing that extra zero is a deliberate claim that you measured precisely enough to know the hundredths digit is exactly 0, not just "about 3.1."

Rounding to n significant figures means: find the first nonzero digit, count n digits from there (including that first one), and round at that place using the same 5-or-more rule. So 0.004052 rounded to 2 sig figs looks past the two leading zeros, keeps the 4 and the next digit, and rounds using the digit after that: 0.0041.

The floating-point honesty section

Computers store decimal numbers in binary, and most decimals cannot be written exactly in binary any more than 1/3 can be written exactly in decimal. That mismatch causes a famous bug: the obvious way to round in code, something like Math.round(x * 100) / 100, quietly turns 1.005 into 1.00 instead of 1.01. It happens because 1.005 is not actually stored as 1.005; it is stored as the closest binary approximation, which lands a hair below 1.005, so the multiply-and-round step never sees a true 5 to round up.

This calculator sidesteps the whole problem by never converting your number into that kind of binary math in the first place. It reads the digits you typed as text and rounds them the way you would on paper, one digit at a time. Try 1.005 to the nearest hundredth above: you will correctly get 1.01. Try 2.675, a case that trips up the naive approach even worse: you will correctly get 2.68.

Frequently asked questions

What is the rule for rounding numbers?

Look at the digit immediately to the right of the place you are rounding to. If it is 5 or more, round the target digit up by one. If it is less than 5, leave the target digit as it is. Every digit after the target place is then dropped (or turned to a placeholder zero if it sits to the left of the decimal point).

How do you round a negative number?

This calculator rounds negative numbers the same way it rounds positive ones, based on magnitude, then reapplies the sign. That means half up away from zero: -2.5 rounds to -3, not -2. It is the convention most math classes and most calculators use, though it is worth knowing that a few contexts (below) do it differently.

Why does my calculator or spreadsheet round 1.005 to 1.00 instead of 1.01?

Because most software rounds by multiplying, rounding, then dividing (something like Math.round(1.005 * 100) / 100), and computers store decimals in binary. 1.005 cannot be stored exactly in binary, so it is actually held as a number microscopically below 1.005, which rounds down. This calculator works on the digits themselves, the way you would on paper, so 1.005 correctly rounds to 1.01.

What counts as a significant figure?

Every nonzero digit is significant. Zeros between nonzero digits are significant (1005 has 4 sig figs). Leading zeros never count, no matter how many there are (0.0041 has 2 sig figs). Trailing zeros after a decimal point do count (3.10 has 3 sig figs), because writing that extra zero is a deliberate claim of precision.

How many significant figures should I round to?

It depends on the precision of your original measurement or data. A common classroom default is 2 to 4 significant figures. In science, you generally should not report more significant figures in a result than the least precise measurement that went into it.

What is banker's rounding and is it what my homework wants?

Banker's rounding (round half to even) rounds a 5 to whichever neighbor is even, so 2.5 becomes 2 and 3.5 becomes 4. It shows up in accounting and in the IEEE floating-point standard because it cancels out rounding bias over many calculations. Homework and everyday use almost always mean round half up instead, which is what this calculator does.

How do I round a number to the nearest ten, hundred, or thousand?

The same rule applies, just applied to a place value left of the decimal point instead of right of it. For the nearest hundred, look at the tens digit: 1,250 has a 5 in the tens place, so it rounds up to 1,300. Pick the place value from the dropdown above and this calculator will show the same working with your number.

Does rounding a number change its value?

Yes, slightly, on purpose. Rounding trades a small amount of accuracy for a number that is easier to read, say out loud, or compare. That is fine for reporting a distance or a price, but if a calculation depends on many rounded numbers, the small errors can add up, so it is usually best to round only your final answer, not the numbers you calculate with along the way.

Related calculators