Sub topic 7
Significant Figures in Calculations and Rounding
What this chapter assumes
You should be able to count significant figures in a single number, including leading zeros, trailing zeros, and scientific notation. You should also be comfortable with powers of ten and basic algebra. This chapter covers what happens to significant figures after you start combining measured values, and how to round the result correctly.
Why calculations need rules
A measured value carries an uncertainty. When you combine values, the result is no more certain than its weakest input. A calculator shows eight digits, but most of them are noise. Significant-figure rules are a quick, approximate way to track how much of the result is meaningful. They do not replace a proper uncertainty calculation, which a later chapter covers. They are a bookkeeping shortcut that is usually correct to within one unit in the last digit.
There are two rules, and they count different things.
| Operation | What limits the result | Example |
|---|---|---|
| Multiplication, division, powers, roots | The fewest significant figures among the inputs | 4.56 × 1.4 = 6.384, reported as 6.4 |
| Addition, subtraction | The fewest decimal places among the inputs | 12.11 + 18.0 + 1.013 = 31.123, reported as 31.1 |
Multiplication and division
Count the significant figures in each factor. The answer has as many as the smallest count.
A rectangle measures 4.56 m by 1.4 m. The first value has three significant figures and the second has two. The product is 6.384 m², and it is reported as 6.4 m², with two significant figures.
The reason is relative uncertainty. A value like 1.4 is uncertain by about 0.05 out of 1.4, which is about 3.5 percent. That is far larger than the roughly 0.1 percent uncertainty of 4.56. The product inherits the larger relative uncertainty, and two significant figures is the matching precision.
Addition and subtraction
Here you ignore the count of significant figures and look at the position of the last reliable digit. Line up the numbers and find the one whose last digit sits furthest to the left. The answer cannot be reported beyond that column.
12.11
18.0 <- last reliable digit is the tenths place
+ 1.013
-------
31.123 -> report 31.1Subtraction can destroy significant figures. Compare 10.52 and 10.49, each with four significant figures. Their difference is 0.03, which has one significant figure. The two numbers agree in their leading digits, and subtraction cancels exactly the digits that carried the precision. This is called catastrophic cancellation. If a calculation requires subtracting two nearly equal measurements, plan to measure them to much higher precision.
Mixed operations: round only at the end
Real formulas mix both rules. Apply each rule in the order the operations occur, but keep the unrounded value in your calculator. Rounding at each step introduces rounding error that accumulates.
Consider (3.24 + 0.6) × 1.5, where 1.5 is a measured value.
- The sum 3.24 + 0.6 = 3.84. The decimal-place rule limits it to the tenths place, so it has two significant figures: 3.8.
- The product is 3.84 × 1.5 = 5.76. The fewest significant figures is two, so the answer is 5.8.
If you had rounded to 3.8 first and then multiplied, you would get 3.8 × 1.5 = 5.7. The correct answer is 5.8. The method that keeps an extra guard digit (3.84) and rounds once at the end is the right one. Mark the limiting digit in your working, for example 3.8|4, and carry one or two guard digits.
Powers, roots, and logarithms
- Powers and roots follow the multiplication rule. If x has three significant figures, then x² and √x also get three. A measured side of 2.5 m (two significant figures) gives √2.5 = 1.58, reported as 1.6.
- Logarithms work differently. The digits in front of the decimal point of a log (the characteristic) only locate the order of magnitude. The digits after the decimal point (the mantissa) carry the precision. A value with n significant figures gives a logarithm with n decimal places. For 2.50 × 10³ (three significant figures), log₁₀ = 3.39794..., reported as 3.398.
- Antilogarithms reverse this. A pH of 4.74 has two decimal places, so [H⁺] = 10^−4.74 = 1.8 × 10⁻⁵ mol/L, with two significant figures.
Exact numbers and constants
Some numbers have no uncertainty and never limit the result.
- Counted values, such as 12 eggs or 4 trials.
- Defined conversions, such as 100 cm = 1 m, or 1 mile = 1609.344 m exactly. The earlier chapter on unit conversion treated these as exact factors.
- Pure numbers in formulas, such as the 2 in 2πr or the ½ in ½mv².
Measured constants and irrational numbers like π are different. Use enough digits that they do not become the limiting factor. If your data has three significant figures, use π = 3.14159, not 3.14. Many modern physical constants, such as the speed of light and the Planck constant, are now exact by the SI definition, but older tables list rounded values. Check which you have.
mph = 60
metres_per_second = mph * 1609.344 / 3600
print(round(metres_per_second, 2)) # 26.82The factors 1609.344 and 3600 are exact. Only the measured 60 limits the result. If 60 has two significant figures, the physically honest answer is 27 m/s. The printed 26.82 shows two extra digits for checking, not for reporting.
Rounding rules
The standard rule is to look at the first digit you are dropping.
- If it is less than 5, leave the last kept digit alone (4.63 to two figures is 4.6).
- If it is greater than 5, or a 5 followed by any nonzero digit, increase the last kept digit by one (4.68 becomes 4.7).
- If it is exactly 5 with nothing after it, there are two conventions. Round half up always increases, and school textbooks mostly use it. Round half to even rounds to the nearest even last digit (2.5 becomes 2, 3.5 becomes 4). It avoids a systematic upward bias when many values are rounded, and it is the default in IEEE 754 arithmetic and in Python's
roundfor exact ties.
Always round from the original unrounded value. Never round in two stages, for example 4.349 to 4.35 and then to 4.4. The correct one-step result is 4.3.
from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN
for s in ["0.5", "1.5", "2.5", "3.5"]:
d = Decimal(s)
up = d.quantize(Decimal("1"), rounding=ROUND_HALF_UP)
even = d.quantize(Decimal("1"), rounding=ROUND_HALF_EVEN)
print(s, up, even)
# 0.5 1 0
# 1.5 2 2
# 2.5 3 2
# 3.5 4 4Rounding to n significant figures in code
Python's round(x, k) rounds to k decimal places, not significant figures. To round to n significant figures, find the order of magnitude with log10 and derive k from it.
from math import floor, log10
def round_sig(x, n):
if x == 0:
return 0.0
return round(x, n - 1 - floor(log10(abs(x))))
print(round_sig(0.0045678, 3)) # 0.00457
print(round_sig(123456, 2)) # 120000For 0.0045678, floor(log10(x)) is −3, so the function rounds to 3 − 1 + 3 = 5 decimal places. For 123456, the order of magnitude is 5, so the function rounds to −4 decimal places, which means to the nearest ten thousand.
Two limits apply. First, floats are stored in binary, so a value that looks like a tie in decimal, such as 2.675, may be slightly below the tie and round down. Use Decimal when the exact tie behavior matters. Second, a float cannot show whether trailing zeros are significant. 120000 prints the same whether it has two significant figures or six. To keep that information, use scientific notation: 1.2 × 10⁵.
Common errors
- Using the wrong rule. Applying the significant-figure count to a sum, or decimal places to a product. Check the operation first.
- Rounding intermediate steps. This causes the 5.7 versus 5.8 discrepancy shown earlier.
- Treating exact numbers as limiting. The 2 in 2πr does not reduce the result to one significant figure.
- Over-reporting. Copying every digit from the calculator display.
- Dropping meaningful trailing zeros. A result of 3.00 m has three significant figures. Writing 3 m discards precision you measured.
- Ignoring units in rounding. Converting 2.5 km to 2500 m does not add precision. Write 2.5 × 10³ m.
Exercise
Compute (8.75 − 6.2) × 3.14 and report the result with the correct number of significant figures. Then say what you would get if you rounded the difference before multiplying.
Show answer
The difference is 8.75 − 6.2 = 2.55, limited to the tenths place by 6.2, so it has two significant figures. The product is 2.55 × 3.14 = 8.007, which is limited to two significant figures: 8.0. If you first round the difference to 2.6 (or 2.5 with half-to-even) and then multiply, you get 2.6 × 3.14 = 8.164, which rounds to 8.2, or 7.85, which rounds to 7.9. Both differ from the correct 8.0, so keep the guard digits and round once at the end.
Exercise
A student measures a pH of 3.62 (two decimal places). What is [H⁺] = 10^(−3.62) in mol/L, with the correct number of significant figures?
Show answer
10^(−3.62) = 2.399 × 10⁻⁴. The pH has two decimal places, so the concentration has two significant figures: 2.4 × 10⁻⁴ mol/L.
Exercise
Using roundsig, what does roundsig(8.5, 1) return, and why might round_sig(2.675, 3) not return 2.68?
Show answer
round_sig(8.5, 1) calls round(8.5, 0). The value 8.5 is exactly representable in binary and is a tie, so Python rounds half to even and returns 8.0. For 2.675, the stored float is slightly below 2.675, so rounding to two decimal places gives 2.67, not 2.68. Use Decimal with an explicit rounding mode when exact decimal ties matter.