Fitting the line
y = m × x + b
m = Σ(x − x̄)(y − ȳ) ÷ Σ(x − x̄)²
b = ȳ − m × x̄
x is the known concentration, y the reading, m the slope and b the intercept; x̄ and ȳ are the means. Spreadsheets do this with SLOPE and INTERCEPT, or a linear trendline.
Worked example
| Standard (mg/mL) | Reading |
|---|---|
| 0 | 0.002 |
| 0.25 | 0.152 |
| 0.5 | 0.298 |
| 1 | 0.604 |
| 1.5 | 0.895 |
| 2 | 1.204 |
The fit gives m = 0.5999 per mg/mL and b = 0.0009, with R² = 0.9999.
Reading off an unknown
x = (y − b) ÷ m
A sample that reads 0.45 is (0.45 − 0.0009) ÷ 0.5999 = 0.749 mg/mL.
Original concentration = value from the curve × dilution factor
If the sample was diluted 1 in 10 before measuring, the original concentration is 7.49 mg/mL. See dilutions explained.
What R² does and does not tell you
R² is the fraction of the variation in the readings that the line explains. Values close to 1 mean the points lie close to the line. A high R² does not show that the line is the right shape: a curve that bends at the top can still give R² above 0.99.
Only read unknowns within the range of the standards. Outside it, dilute or concentrate the sample and measure again.
Where the calculation goes wrong
- Swapping x and y, which gives the wrong slope when you solve for the unknown.
- Extrapolating beyond the highest standard.
- Forgetting to multiply by the sample’s dilution factor.
- Forcing the line through zero when the blank reading is not zero.
Common questions
- How do I calculate an unknown from a standard curve?
- Fit y = mx + b to the standards, then x = (y − b) ÷ m, and multiply by any dilution of the sample.
- What is a good R²?
- Close to 1, often above 0.99 for linear assays, but always also check that the points follow a straight line.
- Should the line go through zero?
- Only if the blank truly reads zero. Usually it is better to fit the intercept than to force it to zero.
