Sig Fig Calculator
Count and round sig figs, or add, subtract, multiply and divide with the sig fig rules.
Rounding replaces a number with a nearby, simpler one at a chosen place.
3.14159 rounded to the nearest hundredth (2 decimal places)
3.14
Round half up.
The first dropped digit is 1, which is less than 5, so the hundredths digit stays the same: 3.14.
| Rule | Result | Error |
|---|---|---|
| Round half up (selected) | 3.14 | −0.00159 |
| Round half to even | 3.14 | −0.00159 |
| Round half down | 3.14 | −0.00159 |
| Round up (ceiling) | 3.15 | +0.00841 |
| Round down (floor) | 3.14 | −0.00159 |
| Round away from zero | 3.15 | +0.00841 |
| Truncate (toward zero) | 3.14 | −0.00159 |
Find the hundredths digit
Split the number just after it: 3.14 | 159.
Decide which way to round
The first dropped digit is 1, which is less than 5, so the hundredths digit stays the same: 3.14.
Write the rounded number
Keep 2 decimal places and drop the rest: 3.14.
To round 3.14159 to the nearest hundredth, look at the next digit, 1: it is less than 5, so . This rounding calculator rounds to any decimal place, place value, significant figure, fraction or multiple, under seven rules including half to even, and shows each step.
Rounding to a step (round half up)
Plain-text formula: round(x) = sgn(x) s⌊(|x|)/s + 1/2⌋
Divide by the step, add one half, drop the fraction, then multiply back. The step is for hundredths, for thousands, for eighths. Working on and putting the sign back makes round to , the same as rounds to .
Rounding up and down (ceiling and floor)
Plain-text formula: ceil(x) = s⌈x/s⌉, floor(x) = s⌊x/s⌋
Ceiling always goes to the next multiple up and floor to the next multiple down, however close the number is. and . For negatives, up means toward : .
The step for n significant figures
Plain-text formula: s = 10^(⌊log_10|x|⌋ − n + 1)
The first significant digit of sits in the place, so keeping digits means rounding to the place further right. For and 3 figures, , so and the answer is .
Rounding error
Plain-text formula: e = round(x) − x, |e| ≤ s/2
Any of the "half" rules keeps the error within half a step: rounding to the nearest hundredth is never off by more than 0.005. Ceiling, floor and truncation can be off by almost a whole step.
The answer is an approximation. stands for any value from up to , so keep the full number for further working and round once, at the end. The rounding error line shows how far the answer is from the number you typed.
Keep trailing zeros in a rounded decimal. to two decimal places says the value is known to the hundredth; writing hides that. Zeros before the decimal point in a whole-number answer, such as the zeros in , hold the place value and must stay.
If the result table shows the same answer for every "half" rule, the number was not a tie and the rule did not matter. The rules only disagree on exact halves, such as , and on negative numbers under ceiling and floor.
1. Find the rounding digit, the digit in the place you are rounding to. To round 4,786 to the nearest hundred, it is the 7.
2. Look at the digit to its right. If it is 5 or more, add 1 to the rounding digit. If it is 4 or less, leave the rounding digit as it is. Here the next digit is 8, so 7 becomes 8.
3. Drop the digits to the right. After the decimal point, remove them. Before the decimal point, replace them with zeros so the place value stays: .
Only the first dropped digit matters. 2.4999 to the nearest whole number is 2, because the 4 after the decimal point is below 5; the 9s after it do not push it up.
| Round to the nearest | Place value | Rounding digit | Next digit | Result | Check |
|---|---|---|---|---|---|
| Ten thousand | 10,000 | 4 | 5 | 50,000 | open |
| Thousand | 1,000 | 5 | 6 | 46,000 | open |
| Hundred | 100 | 6 | 7 | 45,700 | open |
| Ten | 10 | 7 | 8 | 45,680 | open |
| Whole number (one) | 1 | 8 | 2 | 45,678 | open |
| Tenth | 0.1 | 2 | 9 | 45,678.3 | open |
| Hundredth | 0.01 | 9 | 6 | 45,678.30 | open |
| Thousandth | 0.001 | 6 | 1 | 45,678.296 | open |
The tenths digit is the first after the decimal point, the hundredths digit the second and the thousandths the third. Rounding to the nearest tenth is the same as rounding to 1 decimal place, and the nearest hundredth is 2 decimal places, the usual precision for money.
A carry can run left through several digits. 9.96 to the nearest tenth: the 6 pushes the 9 tenths up to 10 tenths, which carries into the ones, giving 10.0. Keep the zero after the decimal point, because the answer is still exact to a tenth.
Every "round to nearest" rule gives the same answer unless the dropped part is exactly half. Then round half up goes away from zero (2.5 → 3, −2.5 → −3), round half down goes toward zero (2.5 → 2), and round half to even picks the even neighbour (2.5 → 2, 3.5 → 4).
The directed rules ignore how close the number is. Ceiling always goes up toward and floor always goes down toward , so for negatives ceiling moves toward zero. Away from zero and truncate treat both signs alike: truncating 2.7 or −2.7 just drops the .7.
| Value | Round half up | Round half to even | Round half down | Round up (ceiling) | Round down (floor) | Round away from zero | Truncate (toward zero) |
|---|---|---|---|---|---|---|---|
| 2.5 | 3 | 2 | 2 | 3 | 2 | 3 | 2 |
| 3.5 | 4 | 4 | 3 | 4 | 3 | 4 | 3 |
| 2.4 | 2 | 2 | 2 | 3 | 2 | 3 | 2 |
| 2.6 | 3 | 3 | 3 | 3 | 2 | 3 | 2 |
| −2.5 | −3 | −2 | −2 | −2 | −3 | −3 | −2 |
| −2.6 | −3 | −3 | −3 | −2 | −3 | −3 | −2 |
A dropped 5 with nothing after it is exactly halfway, so neither neighbour is nearer. The school rule picks up because it is simple and because, in practice, a 5 is usually followed by more non-zero digits, which really are above half. It has a small cost: across many exact ties, always rounding up pushes totals upward.
Round half to even, also called banker's rounding, sends half the ties up and half down, so the bias cancels. It is the default rounding of IEEE 754 floating point, of Python's round() and of many accounting and statistics systems. In 2.5 + 3.5 + 4.5 + 5.5 = 16, round half up gives 3 + 4 + 5 + 6 = 18; half to even gives 2 + 4 + 4 + 6 = 16.
Decimal places count digits after the decimal point. Significant figures count from the first non-zero digit, wherever the point is. 0.0045678 to 3 decimal places is 0.005, but to 3 significant figures it is 0.00457.
Use decimal places when values share units and size, such as money. Use significant figures when sizes vary widely, such as lab measurements. The sig fig calculator counts significant figures digit by digit and applies the rules for adding and multiplying measured values.
| Number | 3 decimal places | 3 significant figures |
|---|---|---|
| 0.0045678 | 0.005 | 0.00457 |
| 3.14159 | 3.142 | 3.14 |
| 45,678.296 | 45,678.296 | 45,700 |
| 0.1 | 0.100 | 0.100 |
To estimate a product, round each factor to one significant figure, so each has a single non-zero digit, then multiply. , close to the exact . The estimate tells you the size of the answer, so a calculator result of 14,880 or 148.8 is clearly a slip.
For division, round to numbers that divide easily: (exact: about 21.1). Rounding one factor up and the other down, as in , makes the errors partly cancel. To round many factors at once, paste them as a list and choose 1 significant figure.
| Problem | Rounded | Estimate | Exact |
|---|---|---|---|
| 48 × 31 | 50 × 30 | 1,500 | 1,488 |
| 682 × 19 | 700 × 20 | 14,000 | 12,958 |
| 4.8 × 7.2 | 5 × 7 | 35 | 34.56 |
| 612 ÷ 29 | 600 ÷ 30 | 20 | 21.10 (to 2 decimal places) |
| 3,875 + 2,140 | 4,000 + 2,000 | 6,000 | 6,015 |
To round to any multiple, divide by it, round to a whole number, and multiply back. 37 to the nearest 5: , which rounds to 7, and . The same steps round prices to 0.05 for cash, lengths to 1/16 inch for a tape measure, or minutes to the quarter hour.
Ceiling and floor to a multiple answer packing questions: 130 people at tables of 8 need the ceiling of , which is 17 tables.
| Task | Working | Result | Check |
|---|---|---|---|
| 37 to the nearest 5 | 37 ÷ 5 = 7.4 → 7 | 35 | open |
| 1,140 to the nearest 25 | 1,140 ÷ 25 = 45.6 → 46 | 1,150 | open |
| 4.37 to the nearest 0.05 (cash) | 4.37 ÷ 0.05 = 87.4 → 87 | 4.35 | open |
| 2.69 in to the nearest 1/8 in | 2.69 × 8 = 21.52 → 22 | 2.75 = 2 3/4 | open |
| 1.38 h to the nearest quarter hour | 1.38 ÷ 0.25 = 5.52 → 6 | 1.50 h | open |
| 130 people, tables of 8 (ceiling) | 130 ÷ 8 = 16.25 → 17 | 136 seats, 17 tables | open |
Spreadsheet and programming functions do not all use the same rule, which is why the same number can round differently in two programs. Excel and Google Sheets ROUND go away from zero on a tie. Python's round() uses half to even. JavaScript's Math.round sends ties toward , so it gives −2 for −2.5.
Software also stores most decimals in binary, so 1.005 is held as 1.00499999…, and Python's round(1.005, 2) and JavaScript's (1.005).toFixed(2) both give 1.00. This calculator works with the exact decimal you type. The article on floating point numbers explains why.
| Function | Rule | 2.5 gives | −2.5 gives |
|---|---|---|---|
| Excel / Google Sheets ROUND(x, 0) | Half away from zero | 3 | −3 |
| Excel ROUNDUP(x, 0) | Away from zero | 3 | −3 |
| Excel ROUNDDOWN(x, 0) or TRUNC(x) | Toward zero | 2 | −2 |
| Excel CEILING.MATH(x) | Ceiling (toward +∞) | 3 | −2 |
| Excel FLOOR.MATH(x) | Floor (toward −∞) | 2 | −3 |
| Python round(x) | Half to even | 2 | −2 |
| Python math.ceil(x) / math.floor(x) | Ceiling / floor | 3 / 2 | −2 / −3 |
| JavaScript Math.round(x) | Half toward +∞ | 3 | −2 |
| JavaScript Math.trunc(x) | Toward zero | 2 | −2 |
Rounding each number on its own adds a small error to each, and the errors can pile up. Three shares of 100 are 33.33 each to the hundredth, which add to 99.99, not 100. Percentages in a chart that "add to 101%" have the same cause.
Paste a list into the calculator to see each rounded value, both totals and the total rounding error. When the parts must match a total, round all but one and give the last part the remainder, or round the total once.
Each row shows a slip and the correct working.
| Mistake | Wrong | Right |
|---|---|---|
| Rounding in stages (double rounding) | 2.449 → 2.45 → 2.5 | 2.449 to the nearest tenth is 2.4: only the first dropped digit, 4, counts |
| Dropping place-holding zeros | 3,467 to the nearest hundred = 35 | 3,500: the zeros keep the place value |
| Dropping a trailing zero | 2.497 to 2 decimal places = 2.5 | 2.50: two decimal places means two digits after the point |
| Rounding a negative the wrong way | −3.7 to a whole number = −3 | −4: −3.7 is nearer −4 |
| Looking at the wrong digit | 0.0453 to 2 significant figures = 0.05 | 0.045: count from the first non-zero digit, 4 |
Work each one out, then open the calculator to check the answer and the steps.
| Question | Answer | Check |
|---|---|---|
| Round 6.849 to the nearest tenth | 6.8 | open |
| Round 1,250 to the nearest hundred | 1,300 | open |
| Round 0.0396 to 2 decimal places | 0.04 | open |
| Round 3,499,999 to the nearest million | 3,000,000 | open |
| Round 8.5 with banker's rounding | 8 | open |
| Round 98,765 to 2 significant figures | 99,000 | open |
| Round −2.35 to the nearest tenth (half up) | −2.4 | open |
A bill of 47.00 is split three ways, so each person owes 47 ÷ 3 = 15.666… Round each share to the nearest cent (hundredth).
Answer: Each share rounds to 15.67, and the three rounded shares total 47.01.
Find the digit in the place you are rounding to, then look at the digit to its right. If that digit is 5 or more, add 1 to the rounding digit; if it is 4 or less, leave it. Then drop the digits to the right, or replace them with zeros before the decimal point. 4,786 to the nearest hundred is 4,800.
Up, to 8, under the usual round half up rule, because the dropped digit is 5. With round half to even (banker's rounding) 7.5 also goes to 8, because 8 is even, but 6.5 would go down to 6.
2.47 rounds to 2.5 to the nearest tenth, because the next digit, 7, is 5 or more. To the nearest whole number it rounds to 2, because the digit after the decimal point, 4, is less than 5.
A 5 with nothing after it is an exact tie. The school rule rounds it up (away from zero), so 2.5 becomes 3 and −2.5 becomes −3. Round half to even sends it to the even neighbour, so 2.5 becomes 2 and 3.5 becomes 4. If any non-zero digit follows the 5, as in 2.51, it is more than half and always rounds up.
For positive numbers they are the same: 2.1 rounded up is 3, and the ceiling of 2.1 is 3. For negatives, ceiling goes toward positive infinity (−2.1 → −2), while Excel's ROUNDUP goes away from zero (−2.1 → −3). This calculator offers both, as Round up (ceiling) and Round away from zero.
Banker's rounding, or round half to even, rounds an exact tie to the neighbour with an even last digit: 2.5 → 2, 3.5 → 4, 0.125 → 0.12 to two places. Over many values the ties go up and down equally, so totals are not pushed upward. Python's round() and IEEE 754 floating point use it.
Decimal places count digits after the decimal point; significant figures count from the first non-zero digit. 0.0045678 is 0.005 to 3 decimal places but 0.00457 to 3 significant figures.
Computers store 1.005 in binary as about 1.00499999999999989, which is just below the tie, so it rounds down. Exact decimal arithmetic, which this calculator uses, gives 1.01. JavaScript's (1.005).toFixed(2) and Python's round(1.005, 2) both give 1.00 for this reason.
Count and round sig figs, or add, subtract, multiply and divide with the sig fig rules.
Convert to scientific, E and engineering notation, or add, subtract, multiply and divide, with steps.
Decimals and repeating decimals to fractions in lowest terms, and fractions back to decimals, with steps.
Add, subtract, multiply, divide and simplify fractions and mixed numbers, with every step shown.
Percent of a number, what percent, reverse percentages, change, increase, decrease and difference, with steps.
Results are calculated in your browser with methods checked by automated tests, and are intended for learning and general use. For engineering, medical, financial, legal or safety-critical decisions, verify important values independently and follow the rounding rules your work requires. How accurate are these results?