Skip to content
Statculator
Math & Percentages

Rounding Calculator

Round to the nearest tenth, hundredth, whole number, 10, 100 or any multiple, or to significant figures, with steps and half-up, banker’s and other rules.

Free, no sign-up Runs in your browserBy Hira Noor, BS MathematicsUpdated

Try

Decimals of any length, negative numbers and fractions such as 22/7 are accepted.

The rule only changes the answer when the number is exactly halfway, or when you choose always up, always down or truncate.

Results

2.675 rounded to 2 decimal places
2.68
Rule: half up
Lower neighbour
2.67
0.005 below the number
Upper neighbour
2.68
0.005 above the number

Exactly halfway: the rule decides

2.675 is exactly halfway between 2.67 and 2.68. Half up sends a tie to the neighbour further from zero, so the result is 2.68.

Rounding unit
0.01
Distance to the lower neighbour
0.005
Distance to the upper neighbour
0.005
Change made by rounding (rounded − original)
+0.005
Change as a percent of the original
0.1869%
Rules that give this result
half up, half even (banker’s), always up (ceiling)

Interpretation: Under the half up rule, 2.675 rounded to 2 decimal places is 2.68. 3 rules give 2.67 instead (half down, always down (floor), toward zero (truncate)); the table below shows all six.

2.675 rounded to 2 decimal places under every rule

RuleResultHow it decidesRounded − original
Half up2.68Tie → away from zero+0.005
Half even (banker’s)2.68Tie → even neighbour+0.005
Half down2.67Tie → toward zero-0.005
Always up (ceiling)2.68Upper neighbour (toward +∞)+0.005
Always down (floor)2.67Lower neighbour (toward −∞)-0.005
Toward zero (truncate)2.67Neighbour closer to zero-0.005

The highlighted row is the rule you selected. Ties are detected on the digits you typed, so a number such as 1.005 is treated as exactly halfway between 1.00 and 1.01.

Step-by-step solution

  1. 1

    Find the rounding position

    Rounding to 2 decimal places keeps the hundredths digit, so the rounding unit is 0.01. Digits left of the bar are kept; digits right of it are dropped.

    2.67 | 5
  2. 2

    Identify the two neighbours

    These are the multiples of 0.01 just below and just above the number.

    lower = 2.67
    upper = 2.68
  3. 3

    Compare the number with the halfway point

    The number is exactly halfway, so distance cannot decide.

    halfway = (2.67 + 2.68) / 2 = 2.675
    2.675 = 2.675
    distance to lower = 0.005, distance to upper = 0.005
  4. 4

    Apply the rule: half up

    Half up sends a tie to the neighbour further from zero.

    2.675 → 2.68

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

  1. 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.
  2. 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.
  3. Pick a Rounding rule. Leave it on half up for everyday and school rounding.
  4. Read the rounded value and the two neighbours. The message below them says whether the number was a tie and which rule decided.
  5. 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.

The two neighbours
lower = u × ⌊x / u⌋, upper = lower + u
Unit for d decimal places
u = 10⁻ᵈ (d = 2 gives u = 0.01)
Unit for s significant figures
u = 10^(e − s + 1), where 10ᵉ ≤ |x| < 10ᵉ⁺¹
Halfway point (a tie)
x is a tie when x = (lower + upper) / 2
Formula symbols
SymbolMeaning
xthe number being rounded
uthe 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, sthe number of decimal places or significant figures to keep
ethe 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.

  1. 01Two decimal places means the rounding unit is 0.01. Split the digits after the hundredths place: 2.67 | 5.
  2. 02The neighbours are the multiples of 0.01 on either side: 2.67 below and 2.68 above.
  3. 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.
  4. 04Half up sends a tie away from zero: 2.68. Half even also gives 2.68, because 8 is even and 7 is not.
  5. 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 nearestRounding unitNumberDeciding digitResult
Hundredth (2 decimal places)0.014.7366, so round up4.74
Tenth (1 decimal place)0.14.7363, so round down4.7
Whole number (integer)14.7367, so round up5
Ten101,5499, so round up1,550
Hundred1001,5494, so round down1,500
Thousand1,0001,5495, so round up2,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.

RuleWhat happens on a tie2.5−2.52.4−2.6
Half upaway from zero3−32−3
Half even (banker’s)to the even neighbour2−22−3
Half downtoward zero2−22−3
Always up (ceiling)always toward +∞3−23−2
Always down (floor)always toward −∞2−32−3
Toward zero (truncate)always toward zero2−22−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?

Look at the third decimal digit. If it is 4 or less, drop it and everything after it; if it is 5 or more, add one to the second decimal digit. So 3.14159 becomes 3.14 and 2.718 becomes 2.72. The only disputed case is when the dropped part is exactly a 5 with nothing after it, where the tie rule decides.

What is the rule for rounding a number that ends in 5?

The everyday rule is half up: a number exactly halfway is rounded away from zero, so 2.5 becomes 3 and 0.125 becomes 0.13 at two places. Banker’s rounding sends ties to the even neighbour instead, giving 2 and 0.12. If any non-zero digit follows the 5, the number is above halfway and every nearest rule rounds it up.

What is banker’s rounding?

Banker’s rounding, or round half to even, rounds a tie to the neighbour whose last digit is even: 0.5 → 0, 1.5 → 2, 2.5 → 2, 3.5 → 4. Ties then go up half the time and down half the time, so sums and averages of rounded values are not biased. It is the default in IEEE 754 arithmetic and in Python.

How do you round negative numbers?

Find the two neighbours as usual and pick the closer one: −2.6 rounds to −3 and −2.4 rounds to −2. Only ties need care. With half up as ties away from zero, −2.5 becomes −3; with ties toward positive infinity, as some software does, it becomes −2. Ceiling and floor are also mirror images for negatives: the ceiling of −2.5 is −2 and the floor is −3.

How do you round to significant figures?

Start counting at the first non-zero digit, keep as many digits as you need, and round the last kept digit using the digits that follow. Replace dropped digits before the decimal point with zeros. To 3 significant figures, 1234.5678 becomes 1230 and 0.0045678 becomes 0.00457.

Why does my code round 1.005 to 1.00 instead of 1.01?

Because the program does not hold 1.005 exactly. In binary floating point the nearest storable value is 1.00499999999999989…, which is below halfway and correctly rounds down to 1.00. Rounding the decimal digits themselves, as this calculator does, treats 1.005 as a true tie and gives 1.01 under half up.

How do I round to the nearest 5 or the nearest 0.05?

Divide the number by the step, round the result to a whole number, and multiply back. For 12.37 to the nearest 0.05: 12.37 ÷ 0.05 = 247.4, which rounds to 247, and 247 × 0.05 = 12.35. In the calculator, choose nearest multiple and enter the step as a custom multiple.

How do you round to the nearest tenth?

Keep one digit after the decimal point and look at the second. If the hundredths digit is 5 or greater, add one to the tenths digit; otherwise leave it. So 4.736 rounds to 4.7, 2.85 rounds to 2.9 under half up, and 9.96 rounds to 10.0, because the carry moves into the ones place.

How do you round to the nearest whole number?

Look at the first digit after the decimal point. If it is 5 or greater, round up to the next whole number; if it is 4 or less, drop the decimal part. So 4.736 rounds to 5, 7.49 rounds to 7 and 7.5 rounds to 8 under half up. For negative numbers the same distances apply: −4.736 rounds to −5.

How do you round to the nearest 10, 100 or 1,000?

Look at the digit one place to the right of the place you are rounding to: the ones digit for the nearest 10, the tens digit for the nearest 100 and the hundreds digit for the nearest 1,000. If it is 5 or more, round up; otherwise round down, and fill the places to the right with zeros. So 1,549 is 1,550 to the nearest 10, 1,500 to the nearest 100 and 2,000 to the nearest 1,000.

Cite this page

Statculator. (2026, November 14). Rounding Calculator. Retrieved November 14, 2026, from https://statculator.com/math/rounding-calculator/