Short Answer
Round half up and round half even are tie-breaking rules. They produce identical results for almost every number, but they diverge at exact midpoints such as 2.5, 3.5, and -2.5. That single difference explains why your calculator, Excel, Python, and R can disagree on the same input. This reference explains the rules, standards, software defaults, and common pitfalls so you can choose the right convention for significant figures, measurement uncertainty, and financial calculations.
Rule Statement
Both rules apply only when the digit immediately after the last retained digit is exactly 5 and no nonzero digits follow. If any nonzero digit follows the 5, the number is not a tie; round normally. For significant-figure work, the same tie rule applies to the last significant digit. See Significant Figures and Rounding Rules.
- Round half up: Ambiguous term. In many calculators and Excel, it means round half away from zero: 2.5 → 3, -2.5 → -3. In some mathematical contexts, it means round half toward positive infinity: 2.5 → 3, -2.5 → -2. Always verify software documentation.
- Round half even (banker’s rounding): Round ties to the nearest even last retained digit. 2.5 → 2, 3.5 → 4, -2.5 → -2, -3.5 → -4.
Worked Examples
Example 1: 2.45 to one decimal place
- Retain tenths digit 4.
- Next digit is 5, and no nonzero digits follow.
- Half up: 2.45 → 2.5.
- Half even: retained digit 4 is even, so keep it: 2.45 → 2.4.
Example 2: 3.45 to one decimal place
- Retain tenths digit 4.
- Tie at 5.
- Half up: 3.5.
- Half even: 4 is even, so 3.4.
Note that 3.55 to one decimal place gives 3.6 under both half up and half even, because the retained digit 5 is odd and must round to the even digit 6 under half even.
Example 3: -2.5 to integer
- Half away from zero: -3.
- Half toward positive infinity: -2.
- Half even: -2, because 2 is even.
Example 4: Significant figures: 0.02450 to two significant figures
- Significant digits are 2, 4, 5, 0.
- Retain 2 and 4; next digit is 5, followed by 0 with no nonzero digits after.
- Half up: 0.025.
- Half even: retained 4 is even, so 0.024.
Counter-Examples
These cases expose common errors.
- Not every 5 is a tie. 2.4501 to one decimal is not a tie because a nonzero digit follows the 5. Both conventions round to 2.5.
- Negative ties differ. Excel’s ROUND(-2.5,0) returns -3 because it rounds half away from zero. JavaScript Math.round(-2.5) returns -2 because it rounds half toward positive infinity. Python round(-2.5) returns -2 because it rounds half even.
- Double rounding. Rounding 2.45 to one decimal directly with half even gives 2.4. Rounding first to two decimals and then to one decimal with half up can give 2.5. Avoid intermediate rounding; see Double Rounding Error.
- Binary floating point. In Python, round(2.675, 2) often returns 2.67 because 2.675 is stored as 2.674999…; the tie rule never triggers. Use decimal.Decimal for exact decimal ties.
Convention Comparison Table
| Convention | Tie rule | 2.5 | 3.5 | -2.5 | Common use |
|---|---|---|---|---|---|
| Half up (toward +∞) | To larger value | 3 | 4 | -2 | JavaScript Math.round |
| Half away from zero | To larger magnitude | 3 | 4 | -3 | Excel ROUND, MATLAB round |
| Half even | To even last digit | 2 | 4 | -2 | IEEE 754 default, Python round, R round |
| Half down | To smaller magnitude or value | 2 | 3 | -2 | Some financial and custom rules |
Standards Citation
Standards and guides do not always agree, which is why software defaults differ.
- IEEE 754-2019, Clause 4.3.1: Defines roundTiesToEven as the default rounding attribute for binary floating-point arithmetic; roundTiesToAway is optional. This is the root of Python, R, and many numerical libraries using half-even.
- ISO 80000-1:2009, Clause 6.2: Gives rounding rules for quantities and units. For an exact tie, it recommends rounding to the nearest even digit in many scientific and engineering contexts.
- ASTM E29-13(2019), Clause 7.2.2: Standard practice for using significant digits in test data. It specifies rounding to the nearest even digit when the digit following the last retained digit is exactly 5 and no nonzero digits follow.
- JCGM 100:2008 (GUM), Clause 7.2.6: Discusses rounding of measurement results and uncertainties. It warns against excessive digits and recommends conventional rounding; final uncertainty is often reported to two significant digits.
- NIST SP 811, Section 7.4: Provides guidance on rounding numerical values in SI usage and defers to standard practice for exact ties.
Software Behavior Note
Your calculator and spreadsheet disagree because they implement different tie rules and different internal number representations.
| Tool | Default tie behavior | Example |
|---|---|---|
| Excel ROUND | Half away from zero | ROUND(2.5,0)=3; ROUND(-2.5,0)=-3 |
| Google Sheets ROUND | Half away from zero | ROUND(2.5,0)=3 |
| Python round() | Half even for binary floats | round(2.5)=2; round(-2.5)=-2 |
| R round() | Half even (IEC 60559) | round(2.5)=2 |
| JavaScript Math.round | Half toward positive infinity | Math.round(2.5)=3; Math.round(-2.5)=-2 |
| MATLAB round | Half away from zero | round(2.5)=3; round(-2.5)=-3 |
| Many handheld calculators | Half away from zero or half up | 2.5 → 3; -2.5 → -3 or -2 depending model |
Use explicit functions when exact tie behavior matters: Python’s decimal module supports ROUND_HALF_UP, ROUND_HALF_EVEN, and others. Excel users can build custom formulas with IF, MOD, and ABS to force half-even. See Excel and Python.
Discipline Note
- Chemistry and materials testing: ASTM E29 favors half-even for conformance and significant-digit reporting, reducing bias in large data sets.
- Physics and engineering: ISO 80000-1 and IEEE 754 make half-even common in computation and SI reporting.
- Finance and accounting: Banker’s rounding, or half-even, is often used to avoid systematic upward bias when summing many rounded values.
- Education: Many introductory textbooks teach half-up for simplicity, but advanced courses should introduce tie-breaking rules explicitly.
- Measurement uncertainty: GUM does not mandate a single tie rule, but it does require that rounding not introduce significant error. Report uncertainties consistently.
Quick Reference Table
| Input | Half up (away from zero) | Half even | Excel ROUND | Python round |
|---|---|---|---|---|
| 2.5 | 3 | 2 | 3 | 2 |
| 3.5 | 4 | 4 | 4 | 4 |
| 4.5 | 5 | 4 | 5 | 4 |
| -2.5 | -3 | -2 | -3 | -2 |
| 2.45 to 1 dp | 2.5 | 2.4 | 2.5 | 2.4* |
| 3.45 to 1 dp | 3.5 | 3.4 | 3.5 | 3.4* |
*Python examples assume exact decimal values or Decimal; binary floats may not represent the tie exactly.
Sources & Further Reading
- IEEE 754-2019, IEEE Standard for Floating-Point Arithmetic, Clause 4.3.1.
- ISO 80000-1:2009, Quantities and units — Part 1: General, Clause 6.2.
- ASTM E29-13(2019), Standard Practice for Using Significant Digits in Test Data to Determine Conformance with Specifications, Clause 7.2.2.
- JCGM 100:2008, Evaluation of measurement data — Guide to the expression of uncertainty in measurement (GUM), Clause 7.2.6.
- NIST SP 811, Guide for the Use of the International System of Units (SI), Section 7.4.
FAQ
Why does Excel round 2.5 to 3 but Python rounds to 2?
Excel's ROUND function uses half away from zero. Python's built-in round() uses half even for binary floats, following IEEE 754. The difference appears only at exact ties.
Which method should I use for significant figures?
For scientific and engineering work, half-even is often preferred because it avoids upward bias and aligns with ISO 80000-1 and IEEE 754. For classroom exercises, follow your instructor's convention. Always state the tie rule when precision matters.
Does round half even always round to an even number?
No. It rounds only exact ties to the nearest even last retained digit. Non-ties round normally. For example, 3.5 -> 4, but 3.51 -> 4 and 3.49 -> 3.
How do I force half-up rounding in Python?
Use decimal.Decimal with ROUND_HALF_UP for ties away from zero, or ROUND_HALF_EVEN for banker's rounding. The built-in round() cannot be globally changed.
Is banker's rounding the same as round half even?
Yes. Banker's rounding is a common name for round half even, used to reduce cumulative rounding bias in finance and statistics.

Leave a Reply