Saved

Press the star next to a tool's name to save it.

All my tools

Rounding Calculator

Enter a number, and this rounding calculator rounds it to decimal places, the nearest multiple or significant figures, using half up, banker's rounding or other rules.

Restored your last values ·

Negative decimal places round to tens, hundreds and so on: -2 rounds to the nearest hundred.

Rounded number

–

Enter a number and press Round.

See full result

A rounding calculator replaces a long number with a simpler one that is close to it. Enter your number and choose where to round: to a number of decimal places, to the nearest multiple of something, or to a number of significant figures. This rounding calculator then applies the rule you pick and shows how all seven common rules would treat the same number, so that you can see when the choice makes a difference. It works with exact decimals, which means 1.005 really does round to 1.01 at two places.

How to use the rounding calculator

  1. Enter your number. Negative numbers and long decimals are fine.
  2. Choose what to round to: decimal places, a multiple or significant figures.
  3. Enter the amount, such as 2 decimal places or a multiple of 15.
  4. Choose a rounding rule. Round half up is the one that most people learn at school.
  5. Press Round and compare the results.

The rounding rules compared

The rules only disagree in two situations: when the number sits exactly halfway between two choices, or when you always want to go in one direction.

Rule23.5-23.5What it does
Half up24-23Ties go toward positive infinity
Half away from zero24-24Ties go away from zero
Half down23-24Ties go toward negative infinity
Half to even24-24Ties go to the nearest even number
Up (ceiling)24-23The smallest whole number not less than x
Down (floor)23-24The largest whole number not more than x
Toward zero23-23Drops the fraction digits

Worked examples

Decimal places: 3.14159 rounded to 2 places is 3.14, because the next digit, 1, is below 5.

Banker's rounding: under round half to even, 23.5 and 24.5 both become 24, since 24 is the even choice in each case.

Nearest multiple: 48.2 rounded to a multiple of 15 is 45. The nearest multiples are 45 and 60, and 45 is closer.

Significant figures: 23217 rounded to 3 significant figures is 23,200.

Why does banker's rounding exist?

If you always round halves in the same direction, then a long list of rounded numbers can drift slightly high or low. Rounding to the nearest even digit sends about half of the ties up and half of them down, which helps the errors cancel out. It's also known as convergent rounding, and it is the default in the IEEE 754 standard for binary floating-point arithmetic. So if a spreadsheet or a program gives you a surprising result on an exact half, this may be the reason.

Half up and negative numbers

Be careful with the name “half up”. In strict terms it means rounding ties toward positive infinity, so -23.5 becomes -23. Some programming languages, including Java and Python, use the name for what is really round half away from zero, which turns -23.5 into -24. That's why this tool lists the two separately. For positive numbers, the two rules give exactly the same answer.

Significant figures explained

Significant figures count the digits that carry meaning in a measurement. A few rules decide which ones count. Zeros to the left of the first non-zero digit aren't significant, so 0.00034 has two significant figures. Zeros between non-zero digits are significant. Trailing zeros after a decimal point are significant if they fall within the resolution of the measurement, so 1.200 has four. Trailing zeros in a whole number are ambiguous: 45600 could have three, four or five significant figures, depending on how it was measured. To keep your meaning clear, say how many figures you are using.

Rounding to a multiple

Rounding to a multiple is useful whenever real life comes in fixed steps. Round a time to the nearest 15 minutes, a price to the nearest 0.05, or a length to the nearest 0.25 inch. The calculator divides your number by the multiple, rounds that to a whole number and then multiplies back. A multiple doesn't need to be a whole number, so 7.3 rounded to the nearest 0.25 gives 7.25.

Exact arithmetic

Computers usually store decimals in binary, and many decimal numbers can't be represented exactly in that form. As a result, some programs treat 1.005 as very slightly less than it looks, and they round it down to 1.00. This calculator keeps your number as exact decimal digits throughout, so halfway cases behave the way that you'd expect. It handles up to 40 digits.

When to round, and when not to

Keep all of the digits while you are calculating, and round only the final answer. Rounding at every step can pile up errors, particularly over a long series of operations. In a report, round to a level that matches how precise your data really is, since extra digits suggest accuracy that you don't have.

Common mistakes

  • Rounding twice. Rounding 1.449 to 1.45 and then to 1.5 gives the wrong answer. It should be 1.4.
  • Dropping zeros that matter. 2.50 and 2.5 can suggest different precision.
  • Assuming every program rounds alike. Check which rule your software uses.

Work out shares with the percentage calculator, find a typical value with the average calculator, and see every step with the long division calculator.

What next

Use this often? Add Rounding to your Home screen.

Frequently asked questions

How does the rounding calculator work?

It rounds your number to decimal places, a multiple or significant figures, using the rule you choose, and compares all of the rules.

What is banker's rounding?

It sends exact halves to the nearest even number, so 23.5 and 24.5 both round to 24.

How do I round to the nearest hundred?

Choose Decimal places and enter -2, or choose Nearest multiple and enter 100.

What is the difference between floor and ceiling?

Floor goes down to the largest whole number not above x. Ceiling goes up to the smallest whole number not below x.

Are leading zeros significant?

No. Zeros to the left of the first non-zero digit are not significant.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Math Tools