Rounding Numbers Correctly, Including the Tricky Cases
What rounding does
Rounding replaces a number with a simpler one that is close to it. You round when extra digits add nothing useful: a length measured with a ruler, a price shown in cents, a result shown to two decimal places. The key is to decide how precise the result should be, and then to round only once, at the end.
The usual rule: round half up
To round to a chosen position, look at the next digit to the right.
- If it is 0, 1, 2, 3 or 4, leave the kept digit alone (round down).
- If it is 5, 6, 7, 8 or 9, add one to the kept digit (round up).
- Drop everything after the kept position, or replace it with zeros for whole numbers.
- 3.14159 to 2 decimal places: the next digit is 1, so 3.14.
- 2.718 to 2 decimal places: the next digit is 8, so 2.72.
- 7.25 to 1 decimal place: the next digit is 5, so 7.3.
- 1,234 to the nearest 10: the next digit is 4, so 1,230. To the nearest 100: 1,200.
- 6.97 to 1 decimal place: rounding up turns 9 into 10, which carries, so the answer is 7.0. Keep the trailing zero to show the precision.
Only the single next digit matters. 2.4999 rounds to 2 at the nearest whole number, even though it is very close to 2.5.
Rounding up and rounding down on purpose
Sometimes "nearest" is not what you need. Practical problems often force one direction.
- Round up (ceiling). 23 people need cars that seat 5 each. 23 ÷ 5 = 4.6, but 4 cars leave 3 people behind, so you need 5 cars. Whenever a shortfall is not allowed (boxes, buses, tiles, paint tins), round up.
- Round down (floor). You have 100 photos and each album page holds 7. 100 ÷ 7 = 14.28…, so you can fill 14 pages completely, with 2 photos left over. Whenever you can only use complete units, round down.
- Truncate. Truncating simply chops off the digits: 4.98 truncated to a whole number is 4. For positive numbers this is the same as rounding down.
Negative numbers
Negative numbers are where the different methods stop agreeing. "Down" means towards minus infinity, so rounding −2.7 down gives −3, not −2.
| Number | Nearest (half away from zero) | Round down (floor) | Round up (ceiling) | Truncate |
|---|---|---|---|---|
| 2.7 | 3 | 2 | 3 | 2 |
| −2.7 | −3 | −3 | −2 | −2 |
| 2.5 | 3 | 2 | 3 | 2 |
| −2.5 | −3 | −3 | −2 | −2 |
For −2.5, the school rule "round half away from zero" gives −3. Some software instead rounds halves towards positive infinity, which gives −2. Both are in real use, so if a temperature or a negative balance in a spreadsheet looks off by one, check which rule the program applies.
Round half to even
There is one more rule worth knowing. Always rounding halves upwards pushes totals slightly upwards over many numbers. To balance this, statistics and some software use round half to even (sometimes called banker's rounding): a value exactly halfway goes to the nearest even digit.
- 2.5 becomes 2, and 3.5 becomes 4.
- 0.125 to 2 decimal places becomes 0.12, and 0.135 becomes 0.14.
Half the halfway cases go up and half go down, so the errors cancel out on average. Only exact halves are affected; 2.51 still rounds to 3.
Decimal places versus significant figures
Decimal places count digits after the decimal point. Significant figures count digits from the first non-zero digit, wherever the decimal point is. They are different tools.
| Number | 2 decimal places | 2 significant figures |
|---|---|---|
| 0.004567 | 0.00 | 0.0046 |
| 3.14159 | 3.14 | 3.1 |
| 123,456 | 123,456.00 | 120,000 |
Decimal places suit money and measurements on a fixed scale. Significant figures suit science, where numbers range from tiny to huge: 0.004567 to 2 decimal places loses everything, while 2 significant figures keeps the useful part. Leading zeros never count (0.0046 has 2 significant figures), but zeros after the point at the end do: writing 0.0500 says you measured to 3 significant figures.
Why rounding twice causes errors
Round once, from the full value, to the precision you need. Rounding in stages can move the result.
- 2.449 rounded directly to 1 decimal place is 2.4.
- Rounded first to 2 decimal places it becomes 2.45, and rounding that to 1 place gives 2.5. The two-step answer is wrong.
Rounding too early inside a calculation does similar damage. 1.26 × 40 = 50.4, but if you first round 1.26 to 1.3, you get 1.3 × 40 = 52, an error of 1.6 created by a "small" rounding. Keep full values on the calculator and round only the final answer.
Rounded parts also do not always add up to a rounded total. Split 100 three ways and each share is 33.33 to two decimal places, but 3 × 33.33 = 99.99. Survey charts that show 33%, 33% and 33% add up to 99% for the same reason. That is not a mistake; it is a side effect of rounding each part separately.
Why computers show 0.1 + 0.2 = 0.30000000000000004
Computers store numbers in binary (base 2). In binary, 0.1 cannot be written exactly, just as 1/3 cannot be written exactly in decimal (0.3333…). The computer stores the closest binary value it can, which is very slightly off. Add two slightly-off values and the tiny errors can show up in the 17th digit.
- 0.1 + 0.2 gives 0.30000000000000004 in many programs.
- 0.1 × 3 gives the same 0.30000000000000004.
- 1.1 × 1.1 gives 1.2100000000000002.
- 0.1 + 0.7 gives 0.7999999999999999.
This is not a bug in a particular app; it is how standard computer arithmetic works. The same effect explains why some programs round 2.675 to 2.67 instead of 2.68: the stored value is really a hair below 2.675. The calculators on this site round every result to 12 significant digits before showing it, so 0.1 + 0.2 appears as 0.3, which matches the maths. You can try it in the basic calculator or the scientific calculator.
Common mistakes
- Looking at more than one digit. 2.46 to the nearest whole number is 2, not 3. Only the first dropped digit counts.
- Rounding at every step. Errors build up. Round once at the end.
- Rounding down when you need enough. Materials and seats need rounding up.
- Dropping meaningful zeros. 7.0 and 7 say different things about precision.
- Mixing decimal places and significant figures. Check which one a question asks for.
Rounding and percentages often meet, so the percentage guide and the fractions and decimals guide are good next reads.
FAQ
Is 0.5 rounded to 0 or 1?
With the usual school rule it rounds up to 1. With round half to even it becomes 0, because 0 is even.
How many decimal places should I give?
Match the precision of your least precise input. If lengths were measured to the nearest millimetre, an answer to a thousandth of a millimetre suggests a precision you do not have.
Why does a total in a table differ from the sum of the rows?
Each row was rounded on its own. The total is usually calculated from the unrounded values, so small differences of one in the last digit are normal.
Open the calculator: Calculator →
Related guide
- How to Calculate Percentages: Simple Methods
- Discount Guide: Sale Prices and Stacked Deals
- Percent Change: Increase, Decrease and Growth
- How Age Is Calculated: Years, Months and Days
- Days Between Dates: Counting, Adding and Countdowns
- Time Calculation Guide: Hours, Minutes, Differences
- Fractions: Add, Subtract, Multiply and Divide
- Scientific Calculator Guide: Angles, Powers, E Notation
- Order of Operations: PEMDAS, BODMAS and 8÷2(2+2)
- Averages Explained: Mean, Weighted Average, Median, Mode
- Ratios and Proportions: Recipes, Maps and Fair Splits
- Leap Years, Month Lengths and Finding the Weekday
- Decimal Hours, Minutes and the 12/24-Hour Clock
- Fractions, Decimals and Percents: Converting Between Them
- Logarithms Made Simple: log, ln and Real-World Scales