Linearizing Data in Physics Labs: Slope, Units and Uncertainty
Learn how to linearize physics lab data, choose what to plot, read a slope's units and find its uncertainty, with worked pendulum, decay and power-law examples.
Professor Eric Editorial · Nov 29, 2026 · 8 min read
In this article
- What does it mean to linearize a physics equation?
- How do you find the slope, intercept and their uncertainties?
- What does the intercept tell you?
- How do you linearize an exponential or a power law?
- How do you read units and uncertainty from the graph?
- Which courses use this?
- What assignments does this help with, and what help is allowed?
- Linearization checklist
- Frequently asked questions
- Try it on your own data
A straight line is the easiest curve to judge by eye, and its slope and intercept carry physical meaning. Linearizing means choosing what to plot so that the theory predicts a straight line. Then the line tests the theory and hands you a result with an uncertainty.
What does it mean to linearize a physics equation?
Start from the theory and ask which combination of measured quantities should be proportional. A few standard moves:
- Square or other power: for a pendulum, T = 2π√(L/g) becomes T² = (4π²/g) L. Plot T² against L, and the slope is 4π²/g.
- Logarithm of an exponential: for V = V₀ e^(−t/τ), take the natural log: ln V = ln V₀ − t/τ. Plot ln V against t, and the slope is −1/τ.
- Log-log for a power law: for y = a xⁿ, ln y = ln a + n ln x. The slope is the exponent n.
Plotting the raw curve and eyeballing a shape is a weak test. A straight line has one clear failure mode: if the points curve away from it, the model or the data have a problem you can see.
Assumptions in this guide: the x values are known much better than the y values, the uncertainty of each y is about the same, and the scatter is random. That is the setting for the ordinary least-squares line. If your y uncertainties differ a lot, ask your instructor about a weighted fit.
How do you find the slope, intercept and their uncertainties?
For N points, the least-squares slope is m = Σ(xᵢ − x̄)(yᵢ − ȳ) / Σ(xᵢ − x̄)². The intercept is b = ȳ − m x̄. The scatter about the line is s = √[Σ(residual)² / (N − 2)], and the slope's uncertainty is
δm = s / √Σ(xᵢ − x̄)²
Most lab software and spreadsheets will do this, and you should know what it is doing. Compare one hand calculation with your software, to make sure both use the same method.
Square each period: T² = 0.8100, 1.6129, 2.4025, 3.2041, 4.0000 s². The fit gives a slope of 3.986 ± 0.005 s²/m and an intercept of 0.015 ± 0.003 s². The scatter about the line is s = 0.0033 s², and the residuals are −0.0017, +0.0041, −0.0034, +0.0011 and −0.0001 s², small and with no pattern.
Slope units. The slope is in seconds squared per meter because it is a change in T² divided by a change in L. Always check that your slope's units agree with what the theory predicts: 4π²/g has units 1/(m/s²) = s²/m, as it should.
Result. g = 4π²/slope = 39.478/3.9856 = 9.91 m/s². The relative uncertainty of g equals that of the slope, 0.13%, so δg = 0.013 m/s² and g = 9.91 ± 0.01 m/s².
What does the intercept tell you?
The theory predicts a line through the origin, so the intercept should be zero within its uncertainty. Here it is 0.015 ± 0.003 s², roughly four uncertainties above zero. That doesn't license you to delete it. It is a clue. A positive intercept means T² is not zero when the measured L is zero, which is what happens if the true pendulum length is longer than the measured one by about the intercept divided by the slope, 0.0036 m or 3.6 mm. That would be a hypothesis, for example that length was measured to the wrong point on the bob, and a good report states it as a hypothesis and says how to test it.
Notice the second lesson. The fit says g = 9.91 ± 0.01 m/s², but the accepted value is 9.80 m/s², about eight fit-uncertainties away. The fit uncertainty only reflects scatter, not systematic effects like a timing bias. A small uncertainty doesn't mean an accurate result, and your discussion should say so.
How do you linearize an exponential or a power law?
Exponential decay. Illustrative numbers, not measurements: a voltage across a discharging capacitor at t = 0, 1, 2, 3, 4, 5 s reads V = 10.0, 6.1, 3.7, 2.3, 1.4, 0.8 V. Take ln V, which gives 2.303, 1.808, 1.308, 0.833, 0.336, −0.223. The fit gives a slope of −0.5006 ± 0.0058 s⁻¹, so τ = 1/0.5006 = 2.00 s with δτ = δm/m² = 0.023 s. The intercept gives V₀ = e^2.312 = 10.1 ± 0.2 V.
The unweighted fit treats every point's uncertainty as equal in ln V. But the last reading, 0.8 V, has a bigger relative uncertainty than the first, because the instrument's absolute uncertainty is the same. That is why a careful lab may require a weighted fit. State what you did.
Power law. Illustrative numbers, not measurements: x = 1, 2, 4, 8 and y = 3.0, 12.1, 47.8, 192. The log-log fit gives a slope of 1.998 ± 0.004, so the exponent is n = 2.00 within its uncertainty, and a = e^(intercept) = 3.01. With only four points the uncertainty is fragile, so avoid claiming more confidence than the data support.
How do you read units and uncertainty from the graph?
- Units of the slope are units of y divided by units of x. For ln V against t, the slope is per second. A logarithm itself is dimensionless, so ln V has no units, even though V does.
- Uncertainty of the slope comes from the fit, or from the steepest and shallowest lines that stay within the error bars if your course uses the by-hand method.
- Propagate it. If g = 4π²/m, then δg/g = δm/m, since g is inversely proportional to m. Use the propagation rules from your lab course for more complex cases.
- Show error bars on the graph, and plot residuals if you can. Residuals expose curvature a fit line hides.
Transform uncertainties too. If y = ln V, then δy = δV/V. For T², δ(T²) = 2T δT. Include these when you add error bars to the linearized graph.
Which courses use this?
Linearization is a standard skill in high school and AP physics labs, where experimental design and analysis questions may ask which quantities to plot to obtain a straight line, and in introductory college labs. AP is a trademark of the College Board, which isn't affiliated with Professor Eric. Algebra-based labs usually use a spreadsheet's best-fit line and read the slope. Calculus-based and upper-division labs add the uncertainty formulas above, weighted fits and chi-squared tests. Check the course description for what is expected.
What assignments does this help with, and what help is allowed?
You'll linearize data in lab reports, lab practical write-ups and data-analysis problem sets. The data must be yours. Allowed help can include a model analysis on a different data set, feedback on your graph and your reading of the slope, tutoring on fitting and uncertainty, and help organizing the report.
Follow your school's honor code and your instructor's rules on outside help, and submit only your own work. We don't do graded online homework, quizzes, labs or exams, and we never invent or alter lab data. See our physics assignment help page.
Linearization checklist
Your checklist
0 of 7 done
Frequently asked questions
Why not just fit the curve directly?
You can, with nonlinear fitting software, but a straight-line plot lets you judge the model by eye. Linearization is also what many courses expect when they teach graph analysis.
Does a high R² mean my result is good?
No. R² measures how well points follow a line, not whether the slope is right or the uncertainty is realistic. A line can fit well and still have a systematic offset, as in the pendulum example.
Should I include the origin as a data point?
Only if you measured it. Adding a point at (0, 0) because the theory says so inflates your confidence. Fit your data, then compare the intercept with zero.
What if my points curve?
Report the curve. It means the model, the range or the apparatus has a limitation, such as a large release angle in a pendulum. Discuss it rather than fitting only the straight part.
Try it on your own data
Pick one relationship from your last lab and write down, before plotting, what the slope and intercept should be. Then plot, fit and compare. If you want feedback on your own analysis, a tutor or a model analysis on different data can help.