A high R² does not prove that a calibration is linear. Plot the residuals against concentration and look for a pattern; with independent replicates at each level, add a lack-of-fit test. Judge any curvature or intercept by the bias it causes in reported results, and claim only the range over which response, accuracy and precision are shown.
Why doesn’t a high R² prove linearity?
R² measures how much of the response variation a straight line explains, and over a wide concentration range almost any smooth curve explains most of it. The Analytical Methods Committee showed graphically that a large correlation coefficient does not indicate a linear relationship.1 Van Loco and co-workers found cadmium calibration curves with r above 0.997 that failed the lack-of-fit and Mandel’s fitting tests.2 The IUPAC harmonized guidelines for single-laboratory validation are blunt: the correlation coefficient is “misleading and inappropriate as a test for linearity”.3
ICH Q2(R2) Validation of Analytical Procedures (Step 4, November 2023) still asks for the correlation coefficient or coefficient of determination to be reported for a linear response, but alongside a plot, the slope and y-intercept, at least five concentrations across the range and an assessment of the impact of any non-random pattern in the residuals plot (§3.2.2.1).4 How the response fits among the other validation characteristics is set out in the ICH Q2(R2) validation guide.
The worked example is a simulated assay calibration by HPLC with UV detection (HPLC-UV): seven levels from 50 to 150 µg/mL (target 100 µg/mL), three independent preparations per level and a mild detector saturation built into the data. Fitted by unweighted least squares, it gives R² = 0.99966. Table 1 compares that fit with the same data restricted to 70–130 µg/mL.
| Quantity | 50–150 µg/mL (7 levels, n = 21) | 70–130 µg/mL (5 levels, n = 15) |
|---|---|---|
| R2 | 0.99966 | 0.99970 |
| Slope (mAU·s per µg/mL) | 11.042 | 11.082 |
| Intercept (mAU·s), 95% confidence interval | 43.65 (33.33 to 53.98) | 43.14 (31.4 to 54.88) |
| Residual SD, sy/x (mAU·s) | 6.92 | 4.37 |
| Lack-of-fit F (degrees of freedom) | 13.1 (5, 14) | 2.01 (3, 10) |
| Lack-of-fit p | 7.1 × 10−5 | 0.18 |
| Largest mean back-calculated bias, level | −1.42% at 50 µg/mL | −0.45% at 70 µg/mL |
What should a residual plot look like?
A residual is the measured response minus the response the line predicts. Plotted against concentration, residuals from an adequate straight-line model scatter in a band of roughly constant width around zero with no shape. IUPAC recommends inspecting the residuals after the first fit and notes that any curved pattern suggests lack of fit from a non-linear calibration function.3 In the example, the mean residuals by level run from −7.8 at 50 µg/mL to +6.0 at 100 µg/mL and back to −9.6 at 150 µg/mL: an arch, the signature of curvature, under an R² of 0.99966. Figure 1 shows the same data as the calibration line and as residuals.
Other shapes point elsewhere, as Table 2 summarizes. A fan that widens with concentration is heteroscedasticity, not curvature: the line can still be straight, but unweighted regression then favors the high standards, and the calibration curve weighting guide shows how to choose 1/x or 1/x². A trend against injection order is drift, which is why standards are best run in random order.3
| Pattern in the residuals | Usual cause | Next check |
|---|---|---|
| Random band around zero, constant width | Straight-line model adequate | Confirm with back-calculated bias across the range |
| Arch or U shape | Curvature: detector saturation, adsorption at low levels, chemistry of the response | Lack-of-fit test; bias at the range ends; narrower range or a justified non-linear model |
| Fan widening with concentration | Heteroscedasticity (variance grows with level) | Replicate SD against concentration; weighting |
| Trend against run order | Drift during the sequence | Re-run in random order; check system stability |
| One point far from the rest | Preparation or injection error | Investigate the preparation; exclude only for a documented cause |
When is a lack-of-fit test worth running?
When each level has replicates from independent preparations. The test splits the residual scatter into two parts, pure error (the spread of replicates around their level mean) and lack of fit (the distance of the level means from the line), and compares their variances:3
F = [(SSres − SSpe) ÷ (k − 2)] ÷ [SSpe ÷ (n − k)]
where SSres is the residual sum of squares of the fit, SSpe the pure-error sum of squares, k the number of levels and n the number of points. For the full example, F = 13.1 on 5 and 14 degrees of freedom, p = 7.1 × 10−5: the straight line does not fit.
IUPAC warns that design is all-important in tests for lack of fit, because non-linearity is easily confounded with drift, and that the test should be used together with a residual plot.3 As a LabVeda rule of thumb, make the replicates independent preparations rather than repeat injections. A non-significant result is not proof of linearity either, because with few levels the test has little power. And a significant test is not automatically a practical problem: the mean back-calculated bias is at most 1.42% at any level, largest at 50 µg/mL, and at most 0.62% at the levels inside an 80–120% reportable range. Whether that matters depends on the accuracy the procedure needs.
Does a non-zero intercept matter?
Only once the line fits. IUPAC states that a test for an intercept different from zero can be made on the same data if there is no significant lack of fit.3 Over 50–150 µg/mL, the intercept is 43.7 mAU·s with a 95% confidence interval of 33.3 to 54.0, but that offset comes from forcing a line through a curve: the quadratic model’s intercept is −10.0, and the simulation contains no blank response. A refit over 70–130 µg/mL shows why a non-significant test is not enough. The lack-of-fit p rises to 0.18, yet the level means still arch weakly (within ±3.5 mAU·s) and a quadratic term remains significant (p = 0.035). The intercept there, 43.1 mAU·s, is still mostly the offset of the curve, not a background to subtract.
Whatever its cause, the intercept matters when routine quantitation assumes the line passes through zero, as single-point calibration against a 100% standard does. A positive intercept then makes results above the standard read low and results below it read high. Quantified against the mean of the three 100 µg/mL preparations, the 85 and 130 µg/mL standards read +0.74% and −1.22%. If those errors are small against the procedure’s accuracy requirement, single-point calibration is defensible; if not, quantify against the full curve or bracket the samples. A quantitation limit estimated as 10σ/S inherits the low-range fit too; see the guide to LOQ from a matrix-matched calibration curve. Figure 2 sets out the checks that make up linearity evidence.
The calculator below opens with the example loaded, so its statistics match the first column of Table 1; enter 70 to 130 as the fit range to see the second. Paste your own data to see R², the residuals, the lack-of-fit test and the bias; it does not judge acceptability.
Simulated example data are loaded for illustration. Paste your own as rows of numbers (comma, tab or space between values; decimal point, not comma). It runs in your browser: your numbers and results are sent only if you press Save. We count that the calculator was used, without the numbers or the results.
Formula versions LV-CAL 1.0 (2 Dec 2026) and LV-LIN 1.0 (3 Dec 2026). Weighted least squares with weights 1, 1/x and 1/x² back-calculated concentration and %RE as in ICH M10 (Step 4, 24 May 2022) §3.2.4, adopted by FDA as guidance in November 2022. DL = 3.3σ/S and QL = 10σ/S as in ICH Q2(R2) (Step 4, 1 Nov 2023) §3.2.3.3. Linearity check: unweighted least squares, residuals as in ICH Q2(R2) §3.2.2.1, lack-of-fit F test as in the IUPAC harmonized guidelines for single-laboratory validation (Pure Appl. Chem. 74, 835–855, 2002) §A3.1. Up to 30 rows per box (60 in the linearity box). For learning how the choices change the numbers; it does not choose a model, decide acceptance or produce a record for a validation file. For validated or compendial methods, the applicable procedure and regulatory framework take precedence over the general rules of thumb given here.
How do you set and justify the range?
ICH Q2(R2) defines the range as the interval between the lowest and highest results in which the procedure has a suitable level of response, accuracy and precision, and allows it to be validated through reportable results.4 Its Table 2 (§2.3) gives recommended reportable ranges, such as 80–120% of the declared content for an assay of a product, and other ranges may be acceptable if justified. Where materials covering the full range cannot be prepared, extrapolation of the reportable range may be appropriate and has to be justified.4
Start from the specification. As a LabVeda rule of thumb, place the calibration levels so they bracket that range with some margin. IUPAC suggests 50–150% (or 0–150%) of the concentration likely to be encountered, with six or more evenly spaced standards,3 which is the example’s design. Its curvature is real, but at the levels inside an 80–120% reportable range it biases results by at most 0.62%, so it can be accepted if the procedure’s accuracy requirement allows. What does not demonstrate a range is deleting levels after the fact until a test passes: the 70–130 µg/mL refit has five levels, which meets the Q2(R2) minimum but not the IUPAC design, and its weak arch remains. A narrower claimed range is confirmed by a run designed for it.
What do curved or fanning residuals tell you to do next?
Narrow the claimed range when the curvature sits at the ends and the samples fall inside it, confirmed by a run designed for it. Dilute samples into the linear part when high concentrations bend the response; for diluted results that disagree between dilution factors, see the guide to LC-MS/MS dilution non-linearity. Use a non-linear model when the response is curved by nature: Q2(R2) accepts non-linear responses with a model assessed by non-linear regression.4 Table 3 separates what the guidelines state from common practice, and Figure 3 shows the order of work.
| Status | Statement | Source |
|---|---|---|
| Guideline (ICH Q2(R2)) | For a linear response: at least five concentrations across the range; a plot; correlation coefficient or coefficient of determination, slope and y-intercept; assess the impact of any non-random pattern in the residuals. Non-linear responses: a suitable model assessed by non-linear regression | ICH Q2(R2) §3.2.2 |
| Guideline (ICH Q2(R2)) | Range = interval with suitable response, accuracy and precision; validated through reportable results; recommended reportable ranges (assay 80–120%), other ranges acceptable if justified; extrapolation justified | ICH Q2(R2) §2.3 (Table 2), §3.2.1 |
| Guidance (IUPAC, single-laboratory validation) | Six or more evenly spaced standards over 50–150% (or 0–150%), at least duplicate (preferably triplicate) in random order; inspect residuals; correlation coefficient not a test of linearity; lack of fit against pure error, used with a residual plot; test the intercept only without lack of fit | Thompson et al. 2002, §A3.1 |
| Common practice | A minimum R² (often 0.999 for assays) written into the protocol as one acceptance criterion | Widely used; not guideline wording |
| LabVeda rule of thumb | Never accept linearity on R² alone; make replicates independent preparations; judge curvature and intercept by the bias they cause across the reportable range; confirm a narrower range with a run designed for it, not by deleting levels | LabVeda |
Frequently asked questions
What R² value is acceptable for linearity?
ICH Q2(R2) sets no value; it asks for the coefficient to be reported with the plot, the regression parameters and a residual assessment.4 Many laboratories write a minimum such as 0.999 for an assay into the protocol, which is common practice, not guideline wording. Treat it as a screening floor at most: the example passes 0.999 easily at 0.99966 while its residuals arch and the lack-of-fit test rejects the line.
How many concentration levels and replicates do I need?
ICH Q2(R2) recommends a minimum of five concentrations distributed across the range.4 The IUPAC guidelines go further: six or more standards, evenly spaced, each measured at least in duplicate and preferably in triplicate, in random order.3 The replicates should be independent preparations if you want a lack-of-fit test, because repeat injections of one solution measure only injection precision.
Should I force the calibration line through zero?
Only if the data support it. First check that the line fits (no residual pattern, no significant lack of fit); then test whether the intercept differs from zero, which IUPAC describes as a valid test only in the absence of lack of fit.3 If the confidence interval of the intercept includes zero and the bias at the lowest level is acceptable, a zero-intercept model can be justified. In the example the full-range fit fails the lack-of-fit test, so its intercept cannot be tested at all, and forcing the line through the origin would bias the low end.
Can I remove an outlier from the linearity data?
Not on statistics alone. A point far from the rest is a reason to investigate the preparation, the injection and the integration; if a documented cause is found, the point can be excluded and the reason recorded. Removing a point because it lowers R² or the lack-of-fit statistic is testing into compliance.
Do I need a lack-of-fit test if ICH Q2(R2) does not ask for one?
Q2(R2) asks for an assessment of non-random patterns in the residuals, not for a particular test.4 The lack-of-fit test adds an objective number when the pattern is unclear. Van Loco and co-workers found that curves with high correlation coefficients but significant lack of fit gave less accurate results than a curvilinear model, which is the practical reason to look.2
The takeaway
R² is reported, not relied on. Show linearity with a residual plot over the range you will claim, add a lack-of-fit test when you have independent replicates, test the intercept only once the line fits and judge any curvature by the bias it puts into reported results across the reportable range.
References
- Analytical Methods Committee, “Uses (proper and improper) of correlation coefficients”, Analyst 113(9), 1469–1471 (1988). https://doi.org/10.1039/an9881301469 (accessed 2026-12-03) — a large value of r does not indicate a linear relationship, shown graphically.
- J Van Loco, M Elskens, C Croux, H Beernaert, “Linearity of calibration curves: use and misuse of the correlation coefficient”, Accred. Qual. Assur. 7(7), 281–285 (2002). https://doi.org/10.1007/s00769-002-0487-6 (accessed 2026-12-03) — cadmium AAS calibration curves with r > 0.997 rejected as straight lines by the lack-of-fit and Mandel’s fitting tests; the straight-line model with lack of fit gave less accurate results than a quadratic model.
- M Thompson, SLR Ellison, R Wood, “Harmonized guidelines for single-laboratory validation of methods of analysis (IUPAC Technical Report)”, Pure Appl. Chem. 74(5), 835–855 (2002). https://doi.org/10.1351/pac200274050835 (accessed 2026-12-03) — §A3.1 linearity and intercept: six or more evenly spaced calibration standards, at least in duplicate and preferably triplicate, in random order; residual inspection; correlation coefficient not a test for linearity; lack-of-fit variance against pure error, replicates needed for pure error, used with a residual plot; design all-important; intercept test only without significant lack of fit.
- International Council for Harmonisation. ICH Q2(R2) Validation of Analytical Procedures. Step 4, 1 November 2023; error correction 30 November 2023. https://database.ich.org/sites/default/files/ICH_Q2%28R2%29_Guideline_2023_1130.pdf (accessed 2026-12-03) — §3.2.1 range and reportable range, extrapolation to be justified; §3.2.2.1 linear response: at least five concentrations, plot, correlation coefficient or coefficient of determination, slope and y-intercept, impact of non-random patterns in the residuals plot; §3.2.2.2 non-linear response assessed by non-linear regression; §2.3 Table 2 recommended reportable ranges, others acceptable if justified.
Further reading
- Miller JN, Miller JC. Statistics and Chemometrics for Analytical Chemistry. 7th ed. Pearson (2018).
- Magnusson B, Örnemark U (eds.). Eurachem Guide: The Fitness for Purpose of Analytical Methods. 2nd ed. (2014).
Reviewed against primary sources. Every statement about guidelines on this page is checked against ICH Q2(R2) (Step 4, 1 November 2023) §3.2 and Table 2 and the IUPAC harmonized guidelines for single-laboratory validation (2002) §A3.1, and the statements on correlation coefficients against the peer-reviewed sources cited above. The dataset is simulated and every number is calculated from it with the formulas shown (formula version LV-LIN 1.0); the numbers are illustrative calculations, not acceptance criteria. Guideline statements, common practice and LabVeda rules of thumb are labeled as such, and following this page does not by itself achieve compliance. For validated or compendial methods, the applicable procedure and regulatory framework take precedence over the general rules of thumb given here. Evidence review: December 2026.
