{
// --- 1. CONFIGURATION ---
const diagramId = `grad-cyl-final-${crypto.randomUUID().slice(0, 8)}`;
const config = {
width: 300,
height: 410,
cylinderWidth: 65,
cylinderHeight: 380,
measurement: 42.8,
minVolume: 28,
maxVolume: 52,
colors: {
border: '#5c677d',
fill: 'rgba(52, 152, 219, 0.15)',
meniscus: '#3498db',
tick: '#8690a4',
text: '#34495e',
annotation: '#c0392b'
},
fontStack: "'Segoe UI', 'San Francisco', 'Helvetica Neue', sans-serif"
};
// LOCAL DARK MODE STYLES
const darkModeStyles = html`<style>
/* Light mode - default colors */
#${diagramId} {
background: transparent;
}
/* Dark mode cyberpunk styles */
body.quarto-dark #${diagramId} rect[rx="4"] {
fill: #0a0e1a !important;
stroke: #00d9ff !important;
stroke-width: 2.5;
filter: drop-shadow(0 0 8px rgba(0, 217, 255, 0.6));
}
body.quarto-dark #${diagramId} path[fill*="rgba(52, 152, 219"] {
fill: rgba(0, 217, 255, 0.25) !important;
filter: drop-shadow(0 0 6px rgba(0, 217, 255, 0.4));
}
body.quarto-dark #${diagramId} path[stroke="#3498db"] {
stroke: #00d9ff !important;
stroke-width: 3;
filter: drop-shadow(0 0 4px rgba(0, 217, 255, 0.8));
}
body.quarto-dark #${diagramId} .tick-mark {
stroke: #00d9ff !important;
filter: drop-shadow(0 0 2px rgba(0, 217, 255, 0.5));
}
body.quarto-dark #${diagramId} .tick-label {
fill: #00ffff !important;
font-weight: 600;
filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.6));
}
body.quarto-dark #${diagramId} text.tick-label {
fill: #00ffff !important;
font-weight: 600;
filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.6));
}
body.quarto-dark #${diagramId} g[fill="#c0392b"] {
fill: #ff2566 !important;
stroke: #ff2566 !important;
}
body.quarto-dark #${diagramId} g[fill="#c0392b"] text {
fill: #ff2566 !important;
font-weight: 600;
filter: drop-shadow(0 0 6px rgba(255, 37, 102, 0.8));
}
body.quarto-dark #${diagramId} g[fill="#c0392b"] path {
stroke: #ff2566 !important;
stroke-width: 2;
filter: drop-shadow(0 0 6px rgba(255, 37, 102, 0.8));
}
</style>`;
// --- 2. D3 SETUP & SCALES ---
const svg = d3.create("svg")
.attr("id", diagramId)
.attr("width", config.width)
.attr("height", config.height)
.attr("viewBox", `0 0 ${config.width} ${config.height}`)
.attr("style", `max-width: 100%; height: auto; font-family: ${config.fontStack}; cursor: pointer;`);
const g = svg.append("g")
.attr("transform", `translate(${config.width / 2}, ${config.height / 2})`);
const yScale = d3.scaleLinear()
.domain([config.minVolume, config.maxVolume])
.range([config.cylinderHeight / 2, -config.cylinderHeight / 2]);
// --- 3. DRAWING THE 2D COMPONENTS ---
const r = config.cylinderWidth / 2;
const h = config.cylinderHeight / 2;
g.append("rect")
.attr("x", -r).attr("y", -h).attr("width", config.cylinderWidth).attr("height", config.cylinderHeight)
.attr("rx", 4).attr("fill", "#ffffff").attr("stroke", config.colors.border).attr("stroke-width", 2);
const meniscusY = yScale(config.measurement);
const meniscusCurveDepth = 8;
const meniscusStrokeWidth = 2.5;
g.append("path")
.attr("d", `M ${-r},${h} L ${-r},${meniscusY} Q 0,${meniscusY + meniscusCurveDepth} ${r},${meniscusY} L ${r},${h} Z`)
.attr("fill", config.colors.fill);
g.append("path")
.attr("d", `M ${-r},${meniscusY} Q 0,${meniscusY + meniscusCurveDepth} ${r},${meniscusY}`)
.attr("fill", "none").attr("stroke", config.colors.meniscus).attr("stroke-width", meniscusStrokeWidth);
const ticks = g.append("g")
.attr("transform", `translate(${-r}, 0)`)
.attr("stroke", config.colors.tick);
ticks.selectAll(".tick-mark")
.data(d3.range(config.minVolume, config.maxVolume + 1))
.enter().append("line")
.attr("class", "tick-mark")
.attr("y1", d => yScale(d)).attr("y2", d => yScale(d))
.attr("x1", 0)
.attr("x2", d => (d % 10 === 0) ? 20 : ((d % 5 === 0) ? 12 : 6))
.attr("stroke-width", d => (d % 10 === 0 ? 1.5 : 1));
ticks.selectAll(".tick-label")
.data(d3.range(30, config.maxVolume + 1, 10))
.enter().append("text")
.attr("class", "tick-label")
.attr("y", d => yScale(d))
.attr("x", 25)
.attr("dy", "0.32em")
.attr("font-size", "14px")
.attr("fill", config.colors.text)
.text(d => d);
// --- 4. PRECISION ANNOTATION ---
const annotation = g.append("g")
.attr("fill", config.colors.annotation).attr("stroke", config.colors.annotation);
// Calculate the exact point on the meniscus curve for the annotation to target.
const annotationEndpointX = r - 15;
// Solve for parameter 't' of the quadratic Bezier curve at the target x-coordinate.
const t = (annotationEndpointX / r + 1) / 2;
// Calculate the corresponding y-coordinate on the curve using the formula y(t) = y_base + 2*depth*(t - t^2).
const annotationEndpointY = meniscusY + (2 * meniscusCurveDepth * (t - t*t));
const [textX, textY] = [r + 20, meniscusY - 30];
const annotationText = annotation.append("text")
.attr("x", textX).attr("y", textY)
.attr("font-size", "13px").attr("font-weight", "500")
.style("letter-spacing", "0.3px")
.style("word-spacing", "1px");
annotationText.append("tspan").text("Read at bottom");
annotationText.append("tspan").attr("x", textX).attr("dy", "1.2em").text("of the meniscus");
annotation.append("path")
.attr("d", `M ${textX + 30},${textY + 20} C ${textX + 20},${textY + 35} ${annotationEndpointX + 10},${annotationEndpointY + 10} ${annotationEndpointX},${annotationEndpointY}`)
.attr("stroke-width", 1.5).attr("fill", "none");
// --- 5. WRAP & RETURN ---
const svgNode = svg.node();
// Dark mode CSS for the new tab (without body.quarto-dark prefix)
const darkModeCssForNewTab = `
#${diagramId} rect[rx="4"] {
fill: #0a0e1a !important;
stroke: #00d9ff !important;
stroke-width: 2.5;
filter: drop-shadow(0 0 8px rgba(0, 217, 255, 0.6));
}
#${diagramId} path[fill*="rgba(52, 152, 219"] {
fill: rgba(0, 217, 255, 0.25) !important;
filter: drop-shadow(0 0 6px rgba(0, 217, 255, 0.4));
}
#${diagramId} path[stroke="#3498db"] {
stroke: #00d9ff !important;
stroke-width: 3;
filter: drop-shadow(0 0 4px rgba(0, 217, 255, 0.8));
}
#${diagramId} .tick-mark {
stroke: #00d9ff !important;
filter: drop-shadow(0 0 2px rgba(0, 217, 255, 0.5));
}
#${diagramId} .tick-label,
#${diagramId} text.tick-label {
fill: #00ffff !important;
font-weight: 600;
filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.6));
}
#${diagramId} g[fill="#c0392b"] {
fill: #ff2566 !important;
stroke: #ff2566 !important;
}
#${diagramId} g[fill="#c0392b"] text {
fill: #ff2566 !important;
font-weight: 600;
filter: drop-shadow(0 0 6px rgba(255, 37, 102, 0.8));
}
#${diagramId} g[fill="#c0392b"] path {
stroke: #ff2566 !important;
stroke-width: 2;
filter: drop-shadow(0 0 6px rgba(255, 37, 102, 0.8));
}
`;
// Add click handler to open in new tab (responsive fullscreen)
svgNode.setAttribute('title', 'Click to open in new tab');
svgNode.addEventListener('click', () => {
const isDarkMode = document.body.classList.contains('quarto-dark');
// Clone the SVG and remove fixed dimensions to allow CSS scaling
const svgClone = svgNode.cloneNode(true);
svgClone.removeAttribute('width');
svgClone.removeAttribute('height');
svgClone.removeAttribute('style');
const svgString = svgClone.outerHTML;
const htmlDoc = `
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Graduated Cylinder</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: ${isDarkMode ? '#1a1b26' : '#ffffff'};
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
padding: 20px;
}
svg {
display: block;
}
/* Desktop: fit to viewport, upright (wide diagrams cap to width) */
@media (min-width: 768px) {
svg {
height: calc(100vh - 40px);
width: auto;
max-width: 100%;
}
}
/* Mobile portrait: fill width, upright (top stays at the top) */
@media (max-width: 767px) and (orientation: portrait) {
body { padding: 12px; }
svg {
width: 100%;
height: auto;
}
}
/* Mobile landscape: fit height, upright (wide diagrams cap to width) */
@media (max-width: 767px) and (orientation: landscape) {
body { padding: 12px; }
svg {
height: calc(100vh - 24px);
width: auto;
max-width: 100%;
}
}
${isDarkMode ? darkModeCssForNewTab : ''}
</style>
</head>
<body>${svgString}</body>
</html>
`;
// Open as a real Blob URL (not document.write into about:blank):
// the tab gets a genuine URL so it parses viewport+CSS on first paint
// (no top-left/small bug) and can be reloaded without going blank.
const blob = new Blob([htmlDoc], { type: "text/html" });
const blobUrl = URL.createObjectURL(blob);
window.open(blobUrl, "_blank");
});
const container = html`<div style="display: flex; justify-content: center;"></div>`;
container.appendChild(darkModeStyles);
container.appendChild(svgNode);
return container;
}Significant Figures
Counting significant figures in measurements and propagating them through calculations. Rules for addition, subtraction, multiplication, and division.
What Are Significant Figures?
In science, numbers are based on measurements. Since every measurement has some uncertainty, we must report our numbers in a way that reflects the measurement’s precision. The standard convention is to write all of the certain digits in a measurement along with the first uncertain digit. These digits are collectively called significant figures.
Here precision means instrument precision: how finely a single device can be read. The distinct statistical precision of repeated measurements (and how it differs from accuracy) is developed in Foundations of Chemistry.
Quick Reference
The Significant Figures reference page is a crib sheet for all significant figures rules.
The rules for handling significant figures are not arbitrary. They come directly from how measurement works, and let scientists report how precise a value is without overstating it.
Measurement, Uncertainty, and Significant Figures
Reading Measurements: Certainty and Estimation
A measurement tells you both a value and how precisely that value is known. Every measurement made with an analog instrument, like a ruler or a graduated cylinder, has some degree of uncertainty. Significant figures are how we record both the digits we are sure of and the one we have estimated. The number of significant figures in any measurement is the sum of the certain digits plus the one, and only one, estimated (or uncertain) digit. Recorded this way, the measurement reflects the instrument’s precision.
Consider the graduated cylinder shown below. Our goal is to determine the volume of the liquid as accurately as possible.
To read the volume correctly, we follow a systematic process:
Identify the Certain Digits. Look at the numbered markings. We can see the liquid level is above the “40” mL mark. The smaller markings represent 1 mL increments. The bottom of the curved meniscus is clearly above the 42 mL mark but below the 43 mL mark. Therefore, we are certain that the volume is “42-point-something” milliliters. The digits ‘4’ and ‘2’ are our certain digits.
Estimate the Uncertain Digit. Now, we must estimate the liquid’s position between the 42 mL and 43 mL lines. It is not exactly halfway (which would be 42.5 mL), nor is it right at the top (42.9 mL). It appears to be about eight-tenths of the way up from the 42 mL line. We will therefore estimate this last digit as an “8”.
Combine to Form the Full Measurement. By combining our certain digits with our single uncertain digit, we report the volume as 42.8 mL.
This measurement contains three significant figures.
NoteWhat is a Meniscus?
The curved surface of a liquid in a narrow container like a graduated cylinder is called a meniscus. This curve is the result of a competition between two types of intermolecular forces:
- Cohesive Forces: The attraction between the liquid’s own molecules.
- Adhesive Forces: The attraction between the liquid’s molecules and the walls of the container.
For water (and most water-based solutions) in a glass cylinder, the adhesive forces are stronger than the cohesive forces. The water molecules are more attracted to the glass than to each other, causing the liquid to “climb” the walls of the container. This creates the familiar concave (U-shaped) meniscus.
Why do we read the bottom?
For a concave meniscus, the bottom of the curve is the lowest point of the bulk liquid and is the most distinct and reproducible point to measure. To ensure that every scientist records the same volume from the same measurement, it is the universal convention to read the volume from the bottom of a concave meniscus.
(A small number of liquids, like mercury, have stronger cohesive forces than adhesive forces and form a convex (domed) meniscus. In those rare cases, the measurement is read from the top of the dome.)
Now, let’s apply the same principle to measuring the length of an object with a ruler. This ruler is marked in centimeters (cm), and the smaller tick marks represent millimeters (mm), or tenths of a centimeter.
A common point of confusion arises when a measurement appears to land on a marked line. How do we report the significant figures in this case?
Identify the Certain Digits. The tip of the pencil aligns with the “8” on the ruler. Because the ruler has markings for every millimeter (every 0.1 cm), we can see that the tip is not at 7.9 cm or 8.1 cm. It sits right at the 8.0 cm line. Therefore, we are certain about the digit in the ones place (the ‘8’) and the digit in the tenths place (a ‘0’). Our certain digits are ‘8’ and ‘0’.
Estimate the Uncertain Digit. The rule of measurement is to always estimate one digit beyond the smallest graduation mark. The smallest marks on this ruler are millimeters (0.1 cm). This means we must estimate to the hundredths of a centimeter (0.01 cm). Since the pencil’s tip appears to sit right at the 8.0 cm line, our best estimate for the hundredths place is ‘0’. This final ‘0’ is our uncertain digit, but it is a necessary one.
Combine to Form the Full Measurement. Combining our certain digits (8.0) with our uncertain digit (0) gives a final measurement of 8.00 cm.
Reporting the measurement as “8 cm” would be incorrect as it would imply that we are uncertain about the tenths place. Reporting “8.0 cm” would also be incomplete, as it implies uncertainty in the hundredths place when the ruler’s precision allows us to estimate that digit. The value 8.00 cm correctly communicates that we are certain the length is 8.0-something and that our estimate for the next digit is zero.
This measurement contains three significant figures. The trailing zeros after the decimal point are significant because they reflect the precision of the instrument used.
When using a digital instrument like an analytical balance, reading a measurement is different from using an analog tool. The instrument performs the measurement and provides a direct numerical readout, so you do not need to estimate a digit.
However, a common misconception is that this makes the reading perfectly certain. In reality, every measurement has uncertainty. For any digital instrument, the rule is: the last digit on the display is the uncertain digit.
Read the Full Display: The balance shows a mass of 12.105 g.
Understand the Precision vs. Uncertainty:
“Precision” here means instrument precision, the resolution of a single device. For the distinct statistical precision of repeated measurements, see Accuracy vs. Precision.
- The manufacturer’s precision,
d = 0.001 g(where ‘d’ stands for scale division), indicates the smallest increment the balance can resolve. In this case, it is the thousandths place (the third decimal). - This means the digits
12.10are considered certain, assuming the balance is properly calibrated and leveled. - The final digit, the
5, is the uncertain digit. It represents the limit of the instrument’s resolution, and the true value could be slightly different (e.g., 12.104 g or 12.106 g).
- The manufacturer’s precision,
Record the Full, Significant Measurement: A valid measurement includes all certain digits plus the one uncertain digit. Therefore, we record the full value displayed. All digits shown on the screen are significant.
- The measurement is 12.105 g.
- This reading has five significant figures.
Trailing zeros after a decimal point on a digital display are significant for the same reason. If the balance read 12.100 g, it would also have five significant figures. The final ‘0’ would be the uncertain digit, representing the instrument’s best estimate at that decimal place.
NoteBeyond sig figs: explicit uncertainty
Significant figures are a compact shorthand for uncertainty, but they are not the only way to report it. Scientists routinely write uncertainty explicitly using a plus-or-minus notation:
42.8 ± 0.1 mL
The 42.8 mL is the best estimate. The ± 0.1 mL is the standard uncertainty, a one-standard-deviation estimate of how far the true value is likely to lie from 42.8 mL. Sig figs encode roughly the same information by reporting one digit beyond the certain digits, but explicit ± notation is sharper and is the standard form in scientific papers.
A compact alternative puts the uncertainty in parentheses after the last digit shown:
42.8(1) mL
This means the uncertainty is 1 in the place value of the last digit (so 0.1 mL). You will see this form in CODATA tables of physical constants.
In this book we use sig figs throughout for compactness. The formal theory of uncertainty propagation lives in references like NIST TN 1297 and the GUM (Guide to the Expression of Uncertainty in Measurement).
NoteA note on overline notation
Throughout this book we mark the last significant figure (LSF) of a number with an overline. The overlined digit is the LSF, and every digit shown up to and including the overlined one is significant.
- 12 has 3 significant figures, with the 3 as the LSF.
- 0.030 has 3 significant figures, with the trailing zero as the LSF.
- 100 has 2 significant figures. The
1and the overlined2are significant, and the trailing zeros are placeholders.
This overline is a notation used in several analytical chemistry textbooks. We use it consistently throughout this book to make significant-figure tracking unambiguous. It is not part of IUPAC, NIST, or ACS style and will not appear in published research. The authoritative way to remove the same ambiguity is scientific notation: 1.2 × 103 shows exactly two significant figures without needing an overline.
Identifying Significant Figures
The rules for identifying which digits in a number are significant can be organized into three main categories: non-zero digits, the handling of zeros, and special cases for exact numbers.
All non-zero digits are always significant.
- 12 has 3 significant figures.
- 9.8 has 3 significant figures.
A zero in a measurement is either a placeholder that locates the decimal point or a significant digit that indicates a specific level of precision. The rules below identify which role applies based on the zero’s location.
A. Zeros Between Non-Zero Digits
A zero between non-zero digits is always significant. (Other textbooks call these captive zeros or interior zeros.)
- 101. has 4 significant figures.
- 500 has 4 significant figures.
B. Leading Zeros
Zeros that come before all non-zero digits are never significant. They are placeholders that indicate the scale of the number.
- 0.5 has 2 significant figures.
- 0.003 has 2 significant figures.
C. Trailing Zeros
The significance of zeros at the end of a number is the most common point of confusion. Their meaning depends on the presence of a decimal point.
Case 1: Decimal Point is Present Trailing zeros are significant because they indicate a specific level of precision.
- 50. has 3 sf (the decimal point makes the final zero significant)
- 0.030 has 3 sf (the trailing zeros are significant)
Case 2: No Decimal Point (The Ambiguity Rule)
Trailing zeros in a number without an explicit decimal point are ambiguous. For the number 1200, it is unclear if the measurement is precise to the hundreds, tens, or ones place.
WarningClassroom Convention for Ambiguous CasesUnless specified otherwise, assume trailing zeros in a number without a decimal point are not significant. Therefore, treat 100 as having 2 significant figures.
To remove this ambiguity, either place a decimal point at the end of the number or use scientific notation.
Exact Numbers
Numbers obtained from counting discrete objects or from definitions are considered exact. They have an infinite number of significant figures and never limit the precision of a calculation.
- Counting: 35 students, 12 beakers
- Definitions: 1 inch = 2.54 cm (by definition), 1 minute = 60 seconds
Physical Constants
Some physical constants are defined exactly by SI convention, while others are still measured.
- Defined (Exact): Constants given an exact value by international agreement. The speed of light c0 = 299 792 458 m s−1 has been exact since the 1983 SI redefinition of the meter. The molar gas constant R = 8.314 462 618 153 24 J mol−1 K−1 has been exact since the 2019 SI redefinition, when both NA and kB were fixed exactly (so R = NA kB is itself exact). Both have infinite significant figures in their defined values.
- Rounded (Inexact): In practice we use rounded forms. This book writes c0 = 2.998 × 108 m s−1 (4 sf), the rounded form of the exact value above, and R = 8.3145 J mol−1 K−1 (5 sf). The rounded values are inexact and will limit the precision of a calculation just like any measured number.
- Measured (Inexact): A few constants are still measured rather than defined. The electron mass me = 9.109 383 71 × 10−31 kg and the gravitational constant G = 6.674 30 × 10−11 N m2 kg−2 both have residual uncertainty in their last digits.
ImportantA Note on Treatment of Physical Constants
Sometimes instructors will have you treat all given physical constants (even rounded) as exact. This book will treat all provided physical constants in a manner that follows the actual rules of significant figures.
Summary Rules for Identification
TipWhat About Other Kinds of Numbers?
The real world is full of numbers that aren’t direct measurements: prices, wages, dosages, recipes, and even conversion factors given in a problem. How do we handle their significant figures?
These cases are nuanced. The full rules are in our guide on Exact, Counted, and Stipulated Values.
Significant Figures in Calculations
NoteWhy these rules exist
A calculated result rests on measured inputs, and it cannot report more certainty than those inputs carry. Take the first example below, where each value is uncertain by about one unit in its last digit:
12.11 ± 0.01, 18.0 ± 0.1, 1.013 ± 0.001
The sum is 31.123, but the uncertainties combine to about ± 0.1, dominated by the 18.0. Writing 31.123 claims the sum is known to the thousandths place when one measurement is not even known to the hundredths. Rounding to 31.1 is what the data support.
For addition and subtraction the absolute uncertainties combine, so the input carrying the largest absolute uncertainty sets the place value of the answer. That is where the place-value rule comes from.
Addition and Subtraction
The Rule: When adding or subtracting, find the input whose last significant digit sits in the largest place value. Round the answer to that place. Significant-figure counts do not matter here; only place value does.
Such an input is the least precise of the set: a value known only to the hundreds place is less precise than one known to the tenths.
Example: Numbers with Decimals
Add 12.11, 18.0, and 1.013.
12.11 (hundredths place)
18.0 (tenths place) ← Least Precise Place
+ 1.013 (thousandths place)
31.123
The raw sum is 31.123. The least precise number, 18.0, is known to the tenths place. Therefore, the last significant digit in the answer is in the tenths place.
- Unrounded answer showing last significant digit: 31.23
- Final rounded answer: 31.1
Example: Numbers without Decimals
Add 10 500 and 235. Assume the trailing zeros in 10 500 are not significant.
10 500 (hundreds place) ← Least Precise Place
+ 235 (ones place)
10 735
The raw sum is 10 735. The least precise number is known to the hundreds place. Therefore, the last significant digit in the answer is in the hundreds place.
- Unrounded answer showing last significant digit: 10 35
- Final rounded answer: 10 700
Example: Subtraction
Subtract 3.1 from 24.68. The same place-value rule applies.
24.68 (hundredths place)
− 3.1 (tenths place) ← Least Precise Place
21.58
The raw difference is 21.58. The least precise number, 3.1, is known only to the tenths place, so the last significant digit in the answer is in the tenths place.
- Unrounded answer showing last significant digit: 21.8
- Final rounded answer: 21.6
Multiplication and Division
The Rule: The result is limited by the measurement with the fewest number of significant figures.
NoteWhy this rule counts digits instead
Multiplication and division combine relative uncertainties rather than absolute ones, and the count of significant figures is what tracks relative uncertainty. 2.5 g is uncertain by about 4 parts in 100; 2.500 g by about 4 parts in 10 000.
So the input with the largest relative uncertainty, which is the one with the fewest significant figures, sets the answer. As with the addition rule, this reproduces formal uncertainty propagation to within about a digit rather than exactly: a two-figure value can sit anywhere from 1.0 (about 10 %) to 9.9 (about 1 %).
Logarithms and Antilogarithms
Before any of the digit rules apply, the input has to qualify. A logarithm accepts only a pure number. A measured quantity carries a unit, so what goes inside the log is the quantity divided by its unit, written log(p / atm) rather than log p. That division is what makes the input unitless, and it is why axis labels and table headings in this book use a slash. The logarithms note works through the reason. Everything below concerns the digits of the result and assumes the input has already been reduced to a pure number.
The rules for significant figures with logarithms are unique because the result contains two distinct pieces of information. To handle this, we separate the result of a logarithm into two named parts:
- The Characteristic: The integer part of the logarithm (the number before the decimal point). It represents the order of magnitude, specifically the integer power of the logarithm’s base.
- The Mantissa: The decimal part of the logarithm (the numbers after the decimal point). It contains the precision of the original number, and its number of digits is related to the significant figures.
Example:
log x = 4.090
- The characteristic is 4.
- The mantissa is 0.090.
Think of this as being similar to scientific notation, where the exponent gives the magnitude and the coefficient gives the significant figures. Since most calculations in general chemistry use the base-10 logarithm (log₁₀, often written as log), the characteristic conveniently corresponds to the power of 10. For a natural logarithm (ln), the integer part is no longer a power of ten, and the decimal part no longer stays fixed when the number is scaled by ten, so here characteristic and mantissa are really just borrowed base-10 labels. The digit-counting rule still applies, because it does not actually depend on the base: the number of decimal places in the result is set by the relative precision of the original number (its significant figures), which is the same whichever logarithm you take.
NoteWhy the base drops out
Differentiating \(\log_b x = \dfrac{\ln x}{\ln b}\) gives \(\mathrm{d}(\log_b x) = \dfrac{\mathrm{d}x}{x \ln b}\). The spread of the logarithm is therefore the relative spread of \(x\) (set by its significant figures) divided by the constant \(\ln b\). Because \(\ln b\) is of order one (\(\ln 10 \approx 2.30\), \(\ln \mathrm{e} = 1\)), changing the base only rescales the spread; it does not change how many digits the relative precision of \(x\) can support. The mantissa carries the same number of digits whichever base you use, to within the one-digit tolerance of the significant-figure rules.
Logarithms (log, ln)
The number of digits in the mantissa of the result of a log is equal to the number of significant figures in the original number. This is the rule behind the significant figures in pH and pKa values.
Example:
log(1.2 × 104)
- The original number has 3 significant figures.
- Therefore, the mantissa of the result must have 3 digits.
Result: 4.089… → Rounded result: 4.090
Like the significant-figure rules for addition and multiplication, this rule (and the antilogarithm rule that follows) is a convention that reproduces formal uncertainty propagation to within about a digit, not an exact law.
Antilogarithms (10x, ex)
The number of significant figures in the result of the antilogarithm is equal to the number of digits in the mantissa of the original exponent.
Example:
100.5
- The exponent’s mantissa is 0.52, which has 2 digits.
- Therefore, the result must be rounded to 2 significant figures.
Result: 3.11… → Rounded result: 3.3
Example:
102.4
- The exponent’s mantissa is 0.45, which has 2 digits.
- Therefore, the result must be rounded to 2 significant figures.
Result: 21.838… → Rounded result: 2.8 × 102
Summary Rules for Operations
Rounding Rules
Because the final significant digit in a calculated answer is an estimate, we must follow a consistent set of rules for how to round that number based on the digits that follow it. There are two common methods.
Textbook Rounding (round half up)
This method is commonly used in introductory courses.
- If the digit next beyond the one to be retained is 5 or greater, round up the last kept digit.
- If the digit next beyond the one to be retained is 4 or less, keep the last digit the same.
Examples (rounding to 3 sig figs):
- 1.26… → 1.24 (round up)
- 1.25… → 1.24 (round up)
- 1.24… → 1.23 (keep same)
Banker’s Rounding (round half to even)
This method is preferred by IUPAC and NIST1 and is statistically less biased.
- If the digit next beyond the one to be retained is 5 followed by nothing or only zeros, round the last kept digit to the nearest even number.
- If the digit next beyond the one to be retained is greater than 5, round up the last kept digit.
- If the digit next beyond the one to be retained is less than 5, keep the last digit the same.
- If two or more figures are to the right of the last figure to be retained, consider them as a group in rounding decisions. Thus, in 2.4(501), the group (501) is greater than 500 and rounds to 2.5 while for 2.4(499), (499) is less than 500 and rounds to 2.4
Examples (rounding to 3 sig figs):
- 1.25 → 1.24 (exactly 5, round to even 4)
- 1.25 → 1.22 (exactly 5, round to even 2)
- 1.250 → 1.24 (exactly 5, round to even 4)
- 1.250 → 1.22 (exactly 5, round to even 2)
- 1.26 → 1.24 (> 5, round up)
- 1.24 → 1.23 (< 5, keep same)
- 1.251 → 1.24 (> 50, round up)
- 1.249 → 1.23 (< 50, keep same)
NoteWhich Rounding Rule Do I Follow?
Always follow the rounding rule specified by your instructor or textbook. This book will use Banker’s Rounding (round half to even).
TipBanker’s Rounding is Better
Want to know why Banker’s Rounding is better or other rounding rules that exist depending on the application? Read Beyond the 5: Why Scientists Use Banker’s Rounding for more!
Multi-Step Calculations
The Rule: Do not round intermediate results. Carry extra digits through all steps and only round the final answer, applying the order of operations and tracking significance at each step.
NoteHow many guard digits?
The common rule of thumb is to keep one or two extra digits past the position of the last significant figure in each intermediate, then round only at the end. This book uses two extra digits (two guard digits past the bar) consistently. When an intermediate terminates, such as the exact sum 1.12 + 0.235 = 1.355 in the example below, it simply carries fewer than two guard digits. You can always carry more, but rounding sooner can introduce error. In the worked example below, each intermediate is written with the LSF marked by a bar and the trailing guard digits preserved to the next step.
Example: (2.54 × 0.0034) / (1.12 + 0.235)
Numerator Parentheses (Multiplication): 2.54 × 0.0034 = 0.008636. The result is limited by 0.0034, which has 2 sig figs. Our intermediate is 0.00836.
Denominator Parentheses (Addition): 1.12 + 0.235 = 1.355. The result’s last significant digit is in the hundredths place. So our intermediate value is 1.35, limited to the hundredths place (and therefore 3 significant figures for the division that follows).
Final Division: 0.008636 / 1.355. We are dividing a number with 2 significant figures by a number with 3 significant figures. The final answer must be limited to 2 significant figures.
- Calculator shows: 0.0063734…
- The last significant digit is the second non-zero digit: 0.006734…
Round the Final Answer: The final answer, rounded to 2 significant figures, is 0.0064.
What early rounding would have cost: Suppose we had rounded each intermediate to its own limit instead of carrying the guard digits. The numerator would become 0.0086 and the denominator 1.36, giving 0.0086 / 1.36 = 0.006323… and a final answer of 0.0063, which is wrong in its last significant digit.
The true quotient, 0.0063734, sits just above 0.00635, the boundary between 0.0063 and 0.0064. Rounding early pushed it below. Note also that the two errors did not cancel: the numerator was rounded down and the denominator up, and both changes drive the quotient in the same direction. You cannot tell in advance whether a problem is one where early rounding is harmless, which is why the guard digits are always carried.
ImportantScaling vs Summing
8.0 + 8.0 = 16.0 but 2 × 8.0 = 16. The results differ because each operation follows its own rule: 2 × 8.0 multiplies by an exact count, so it keeps 8.0’s two significant figures (16), while 8.0 + 8.0 is addition, fixed by the least precise place (16.0). When should you add and when should you multiply? A common and confusing paradox arises when an operation can be viewed in two ways and the choice matters. Read the Scaling vs. Summing article to find out!
References
(1)
National Institute of Standards and Technology. GLP 9: Rounding Expanded Uncertainties and Calibration Values; Good Laboratory Practice; National Institute of Standards; Technology, 2019. https://www.nist.gov/system/files/documents/2019/05/14/glp-9-rounding-20190506.pdf.