Rounding Calculator
Round a number to a chosen number of decimal places or to significant figures.
What this calculator does
Enter a number and choose a target — 0 to 6 decimal places, or significant figures — and the calculator returns the rounded value. At its defaults, 3.14159 rounded to 2 decimal places gives 3.14. The same input rounds to 3.142 at 3 places, 3.1416 at 4 places, and to 3 sig figs it also gives 3.14, because 3.14159 has three meaningful digits before the discard begins.
How rounding works
To round to N decimal places, look at the digit one place further right. If it is 5 or more, round the last kept digit up; otherwise leave it alone. Rounding 3.14159 to 2 places: the third decimal digit is 1, which is below 5, so the second digit stays and the result is 3.14. To 3 places the fourth digit is 5, so the third digit (1) steps up to 2 and the result is 3.142.
The formula shows the mechanics: shift the decimal point N places right (multiply by 10n), round to a whole number, then shift back. For 3.14159 at n = 2: 314.159 rounds to 314, and 314 ÷ 100 = 3.14. This is exactly the arithmetic the calculator performs, and it is also how most spreadsheet ROUND functions behave.
Rounding examples
| Number | Rounding | Result |
|---|---|---|
| 3.14159 | 2 decimal places | 3.14 |
| 3.14159 | 3 decimal places | 3.142 |
| 3.14159 | 4 decimal places | 3.1416 |
| 2.5 | 0 decimal places | 3 |
| 2.4 | 0 decimal places | 2 |
| 0.004567 | 3 significant figures | 0.00457 |
| 12345 | 3 significant figures | 12300 |
The last two rows show why significant figures are a different animal. Counting sig figs starts at the first non-zero digit, so leading zeros never count: 0.004567 has four, and keeping three gives 0.00457. For 12345, three sig figs means keeping 123 and rounding the 4 — but the discarded digit is 4, so the result is 12300. One more digit of noise (12355) would round to 12400 instead.
The tie rule: half-up versus banker’s rounding
This calculator rounds an exact trailing 5 up (round half up): 2.5 becomes 3, and 1.5 becomes 2. Many financial and statistical systems instead use banker’s rounding (round half to even), where 2.5 rounds to 2 and 3.5 rounds to 4. The two agree everywhere except when the discarded part is exactly 5 with nothing after it. The difference is small per number but not per ledger: half-up always pushes the same direction, so rounding thousands of transactions can bias a total upward by a measurable amount, while half-to-even pushes up and down roughly equally. Bank reconciliations and tax computations are where this choice actually bites.
Decimal places versus significant figures
The two modes answer different questions. Decimal places fix the position after the point regardless of magnitude: 3.14159 and 0.000314159 both become 2-decimal values (3.14 and 0.00), destroying the small number entirely. Significant figures fix the count of meaningful digits regardless of position: they keep 3.14 and 0.000314. Use decimal places for money and everyday figures (always 2 for cents); use significant figures for measurements whose precision lives in the digits, such as 3 sig figs for a lab reading of 0.004567 g.
Where rounding choices matter
- Money. Round once at the end of a calculation, to 2 places. A $79.99 item at 8% tax is $86.3892, which the register prints as $86.39 — rounding earlier, to $80.00, would give $86.40.
- Splits and tips. Rounding per person then summing can drift from the bill: $100 ÷ 3 rounds to $33.33 each, $99.99 total, leaving a $0.01 gap someone must absorb.
- Science class. Keep guard digits: carry 4 digits through the work and round only the final answer, or rounding errors from three chained steps can reach the reported digit.
- Recurring decimals. 1/3 = 0.333… has no exact decimal form; any decimal display is a rounding choice, and three rounded thirds sum to 0.999, not 1.
- Statistics. Percentages in a table often fail to sum to exactly 100% (37.5 + 37.5 + 25 rounds to 38 + 38 + 25 = 101); the discrepancy is rounding, not an error.
Common mistakes
- Rounding twice. 2.3447 rounded directly to 2 places is 2.34, but rounding first to 3 places (2.345) and then to 2 places (2.35) lands one cent higher. Always round from the original value, never from an already-rounded one.
- Assuming every 5 rounds up in every system. Python, IEEE floating point and many banks round half to even: 2.5 can become 2. Check the tool before predicting its output.
- Counting leading zeros as significant. 0.004567 has four significant figures, not seven; zeros before the first non-zero digit are placeholders.
- Trailing zeros after rounding. Writing 3.14159 → 3.14 as 3.1400 falsely claims four decimal places of precision; report only the digits you kept.
- Rounding intermediate results in a chain. Rounding each step of a tax-and-tip calculation shifts the final figure by cents; keep full precision and round once.
How much precision do you actually need?
Match the rounding to the precision of the input, not to the calculator’s output. A measurement read off a ruler marked in millimeters carries about 3-4 significant figures, so reporting 3.14159 cm from that ruler invents digits that were never measured. Money needs exactly 2 places because currency is defined in cents. Engineering slack is cheaper than precision: rounding a 14.4 ft cut to 14.5 ft wastes an inch of lumber but avoids a second trip to the saw. A practical rule for chained arithmetic: carry one or two guard digits beyond your final target everywhere in the middle, then round once at the end — at that point, rounding to 2 places on the defaults’ 3.14159 loses less than 0.002 of information, which is invisible in almost every real decision.
Frequently asked questions
How do I round to 2 decimal places?
Look at the third decimal digit. If it is 5 or more, increase the second digit by one. 3.14159 has a 1 in the third place, so it rounds to 3.14.
What are significant figures?
The digits that carry meaning, counted from the first non-zero digit. 0.004567 to three significant figures is 0.00457; 12345 to three is 12300.
What is banker’s rounding?
It rounds an exact 5 to the nearest even digit: 2.5 becomes 2 and 3.5 becomes 4, which avoids the upward bias that round-half-up builds up across many values.
Does 2.5 round up or down?
With round half up (this calculator), 2.5 rounds to 3. With banker’s rounding, common in finance, it rounds to 2.
How do I round 3.14159 to 3 decimal places?
The fourth decimal digit is 5, so the third digit steps up: 3.142. At 4 places the fifth digit is 9, giving 3.1416.
What is the difference between 2 decimal places and 2 significant figures?
Decimal places fix the position after the point (3.14159 → 3.14); significant figures fix the digit count (12345 → 12300). Tiny numbers survive sig-fig rounding but not decimal rounding.
Why do my rounded percentages sum to more than 100?
Independent rounding: 37.5 + 37.5 + 25 rounds to 38 + 38 + 25 = 101. The inputs were exact; the display is not expected to sum exactly.
How much tax is on $79.99 at 8%?
The exact total is 79.99 × 1.08 = $86.3892, which rounds once at the end to $86.39. Rounding the price first would give $86.40.
Should I round during or after a calculation?
After, always. Carry full precision (or one or two guard digits) through every step and round only the final result; intermediate rounding compounds.
How many significant figures should a lab answer have?
Match the least precise input, typically 3 to 4 sig figs for school equipment. Reporting 3.14159 from a millimeter ruler invents digits the ruler never measured.
Method and sources
- Standard round-half-up and significant-figure rounding rules.