In short
To round a number, find the last digit you want to keep and look at the digit after it. If that digit is 5 or more, add one to the kept digit; otherwise leave it. Then drop everything after it. Science and statistics often round an exact half to the nearest even digit instead, which avoids a bias upward over many values.
How it works
Rounding replaces a number with a nearby one that has fewer digits. You choose where to cut, and a rule decides what happens to the last digit you keep.
n decimal places: keep digits down to 10⁻ⁿ s significant figures: keep s digits from the first non-zero digit
The OpenStax Prealgebra procedure is round half up: underline the digit after the place you keep, and if it is 5 or more, add 1. So 18.379 becomes 18.38, 18.4 or 18 depending on the place.
Half to even. When the dropped part is exactly half, OpenStax Chemistry rounds so that the last kept digit is even: 92.85 to three figures is 92.8, but 6.8752 is 6.88 because the 5 is followed by a 2. Over many values, half the ties go up and half go down, so sums and averages are not pushed upward. It is sometimes called banker’s rounding, and it is the default rounding mode of the IEEE 754 standard for computer arithmetic.
Counting significant figures
Count from the first non-zero digit. Zeros between digits count (70.607 has 5), leading zeros never do (0.00832407 has 6), and trailing zeros count after a decimal point (55.0 has 3). Trailing zeros in a whole number like 1300 are ambiguous, so this calculator doesn’t count them. Write 1.30e3 to show three.
Worked examples
Rounding 18.379 to the nearest hundredth
The hundredths digit is 7, and the digit after it is 9. Since 9 is 5 or more, the 7 becomes 8: 18.38. To the nearest tenth it is 18.4, and to the nearest whole number 18. These are OpenStax’s Examples 5.9 and 5.10.
Four significant figures with the half-to-even rule
0.90275 has five significant figures. Keeping four leaves 0.9027 with a 5 dropped and nothing after it, an exact tie. Rounding to even turns the 7 into 8: 0.9028, the answer in OpenStax Chemistry’s Example 1.3. With 0.051065, the same rule keeps 0.05106, because 6 is already even.
Rounding 48,350 to the nearest hundred
Enter −2 decimal places. The hundreds digit is 3 and the next digit is 5, so it rounds up to 48400. With half to even it would also be 48,400, since 3 rounds up to the even 4. A tie at 48,250 would split the two rules: 48,300 or 48,200.
Using this calculator well
- Round once, at the end. Rounding intermediate results adds errors that can build up. Keep full precision through a calculation and round only the final answer.
- Money has its own rules. Prices are rounded to the cent, but tax authorities may specify how, for example per line or per invoice. Follow those rules for tax returns and invoices.
- Match the precision of your data. In science, a result can’t be more precise than its least precise measurement. Multiplying 0.6238 by 6.6 gives 4.11708, but with only two significant figures in 6.6 the answer is 4.1.
- Spreadsheets may disagree. Excel’s ROUND rounds halves away from zero, while Python’s round() uses half to even. Binary floating point can also turn 2.675 into 2.67499…, which is why this calculator works on the digits you type.
Frequently asked questions
How do you round to 2 decimal places?
Look at the third digit after the decimal point. If it is 5 or more, add one to the second digit; if it is less than 5, leave the second digit as it is. Then drop everything after it. 3.14159 becomes 3.14, and 2.71828 becomes 2.72.
What is round half to even?
It is a rule for exact ties. When the part you drop is exactly half, you round to whichever neighbour has an even last digit, so 2.5 becomes 2 and 3.5 becomes 4. Because ties go up and down equally often, averages of many rounded numbers stay unbiased.
How many significant figures does a number have?
Count every digit from the first non-zero one, including zeros between digits and zeros at the end after a decimal point. 0.0450 has three: 4, 5 and the final 0. A whole number with trailing zeros, like 2500, is ambiguous unless written as 2.5 × 10³ or 2.50 × 10³.
What is the difference between rounding and truncating?
Rounding goes to the nearest value, so 7.89 to one decimal place is 7.9. Truncating simply drops the extra digits, so it gives 7.8. Truncation always moves toward zero, which is why it is used where an amount must never be overstated.
How do I round to the nearest 10, 100 or 1,000?
Use negative decimal places: −1 for tens, −2 for hundreds, −3 for thousands. Look at the digit just right of that place. 2,749 to the nearest hundred looks at the 4 and becomes 2,700, while to the nearest ten it looks at the 9 and becomes 2,750.
Sources and methodology
- Chemistry 2e, 1.5 Measurement Uncertainty, Accuracy, and Precision, OpenStax, Rice University, counting significant figures; rounding a trailing 5 to the even digit; Example 1.3: 31.57 → 32, 8.1649 → 8.16, 0.051065 → 0.05106, 0.90275 → 0.9028 (accessed November 24, 2026)
- Prealgebra 2e, 5.1 Decimals, OpenStax, Rice University, How To: round a decimal; Examples 5.9–5.10: 18.379 → 18.38, 18.4 and 18 (accessed November 24, 2026)
Rounding: Rounding is done on the decimal digits you typed, with arbitrary-precision integers, so results are exact. Results are not grouped with thousands separators, so they can be copied as is.
Review status: formulas verified against the cited sources by automated tests; editorial review pending. Version 1.0.0, content updated November 24, 2026.
Changelog
- 1.0.0 · November 24, 2026: First published.
How we build and test calculators
Embed this calculator on your site
Paste this code into your page. The calculator runs in a frame, with no tracking and no cookies, and links back here for the formula and sources.
<iframe src="https://northcalculator.com/embed/en/rounding" title="Rounding Calculator" width="100%" height="760" style="border:0" loading="lazy"></iframe>