Calibration Curve Calculator

Build a linear calibration curve from standards: paste x,y pairs and the calculator fits y = m·x + b using ordinary least squares.

Science R² fit ICH LOD/LOQ Predict x
Rate this calculator · 5.0 (1)

Calibration Curve (Linear Regression)

y = m·x + b · R², LOD, LOQ · interpolate unknown

Instructions — Calibration Curve Calculator

1

Paste your standards

Put each (concentration, response) pair on its own line, separated by a comma. Use at least five points for a reliable fit. Six standards are typical for an ICH-validated curve.

2

Read the fit

The calculator returns slope (m), intercept (b), R², and the standard error. R² ≥ 0.99 is the usual acceptance criterion for analytical chemistry. Also shown: LOD (3.3 σ/S) and LOQ (10 σ/S).

3

Predict an unknown

Enter the response of an unknown sample into the y field. The calculator inverts the line to give x = (y − b) / m — the concentration of the unknown. Make sure it falls inside the calibration range.

Formulas

Least-squares slope
$$ m = \frac{n \sum xy - \sum x \sum y}{n \sum x^2 - (\sum x)^2} $$
Ordinary least squares finds the slope that minimises the sum of squared vertical residuals between the data and the fitted line.
Intercept
$$ b = \frac{\sum y - m \sum x}{n} = \bar{y} - m \bar{x} $$
The intercept passes the regression line through the centroid of the data. A clean calibration has |b| close to zero (no detector offset).
Coefficient of determination
$$ R^2 = 1 - \frac{\sum (y_i - \hat{y}_i)^2}{\sum (y_i - \bar{y})^2} $$
R² is the fraction of variance in y explained by the linear model. ICH Q2(R1) and FDA guidance set 0.99 as the threshold for analytical methods.
LOD and LOQ (ICH Q2)
$$ \text{LOD} = 3.3 \cdot \frac{\sigma}{S}, \;\; \text{LOQ} = 10 \cdot \frac{\sigma}{S} $$
σ is the standard deviation of the residual response, S is the slope. LOD is the smallest concentration distinguishable from noise; LOQ is the smallest concentration measurable with acceptable precision.
Predicted concentration
$$ x = \frac{y - b}{m} $$
Inverse regression: invert the calibration line to convert an instrument response to a concentration. Only valid within the calibration range — never extrapolate outside the measured standards.
Residual standard error
$$ SE = \sqrt{\frac{\sum (y_i - \hat{y}_i)^2}{n - 2}} $$
SE is the typical vertical scatter of the residuals around the fitted line, in the same units as the response. Lower SE means a tighter calibration.

Reference

Regulatory acceptance criteria
ParameterLimit (ICH / FDA)Comment
≥ 0.99Standard for analytical methods
R² (bioanalytical)≥ 0.98FDA bioanalytical guidance
Linearity range≥ 5 levelsICH Q2(R1)
Replicates per level≥ 36 preferred for precision
Recovery80 – 120 %QC standards
RSD≤ 15 %≤ 20 % at LOQ
LOD signal/noise~ 3: 1Detection limit
LOQ signal/noise~ 10: 1Quantification limit

Worked example

A UV-Vis assay produces these standards (absorbance at 450 nm):

  • 0.1 mg/L → 0.052 abs
  • 0.2 mg/L → 0.108 abs
  • 0.4 mg/L → 0.215 abs
  • 0.6 mg/L → 0.322 abs
  • 0.8 mg/L → 0.432 abs
  • 1.0 mg/L → 0.540 abs
  • Fit — slope 0.539, intercept −0.0027, R² 0.99997
  • Unknown — 0.275 abs → 0.515 mg/L

Article — Calibration Curve Calculator

Calibration Curve Calculator: Linear Regression with R², LOD, and LOQ

A calibration curve is the linear regression of instrument response against known analyte concentration. The fit returns slope (m), intercept (b), and R². The equation y = m·x + b lets you invert to x = (y − b)/m for any unknown sample response. For analytical chemistry, ICH Q2(R1) sets R² ≥ 0.99 as the linearity threshold. The limit of detection (LOD) equals 3.3·σ/S and the limit of quantification (LOQ) equals 10·σ/S, where σ is the residual standard error and S is the slope. A typical six-point UV-Vis calibration with R² of 0.9999 might have LOD of 0.005 mg/L and LOQ of 0.015 mg/L, then convert a sample absorbance of 0.275 into a concentration of 0.515 mg/L.

This calculator takes pasted (x, y) standards, runs ordinary least squares, and reports slope, intercept, R², residual standard error, and the ICH LOD/LOQ values. Enter an optional sample response and the calculator returns the predicted concentration.

What is a calibration curve

A calibration curve is the relationship between the known concentration of an analyte and the response of an instrument that measures it. Build it by running a series of standards spanning the working range, measuring the response (peak area, absorbance, signal counts), and fitting a line. The curve is then used to convert unknown sample responses into concentrations. Calibration is standard practice in UV-Vis, HPLC, GC, AAS, ICP-MS, ELISA, and almost every quantitative analytical method.

The underlying assumption is linearity in the chosen range. Most detectors have a linear range that ends in saturation at high concentration. Below the lower limit, signal-to-noise becomes the constraint. The calibration curve is only valid inside the measured range — never extrapolate.

Did you know

The Beer-Lambert law (A = ε·c·l) gives a perfectly linear absorbance versus concentration relationship in dilute solutions, but real spectrophotometers deviate from linearity above absorbance of about 1 because stray light corrupts the measurement. That is why analytical chemists target absorbances between 0.2 and 0.8 — high enough to be precise, low enough to stay linear.

Calibration curve formula y = mx + b

The calibration curve formula is y = m·x + b, where y is the instrument response, x is the analyte concentration, m is the sensitivity (slope), and b is the offset (intercept). Ordinary least squares (OLS) finds the m and b that minimise the sum of squared vertical residuals between the data and the fitted line: SSE = Σ(yi − ŷi)².

The slope m has units of (response per concentration). A higher slope means a more sensitive method — small changes in concentration produce big changes in signal. The intercept b should ideally be zero (no signal at zero concentration); a small non-zero b reflects the blank response or detector offset.

Linear regression formulas
m = (nΣxy − ΣxΣy) / (nΣx² − (Σx)²) slope
b = ȳ − m·x̄ intercept
R² = 1 − SSE/SST fit quality
LOD = 3.3·σ/S detection
LOQ = 10·σ/S quantification

Interpreting R² on a calibration curve

R² is the fraction of variance in y explained by the linear model. R² of 0.99 means 99% of the variation in instrument response is accounted for by the calibration line; 1% is residual noise. ICH Q2(R1) and FDA bioanalytical guidance set acceptance thresholds: R² ≥ 0.99 for general analytical methods, R² ≥ 0.98 for bioanalysis.

R² alone is not enough. A perfectly straight residual plot indicates a good fit; systematic curvature in residuals — or one outlier dominating — can give a high R² that hides a model failure. Always plot the residuals and look for patterns.

Calibration curve LOD and LOQ

The calibration curve LOD and LOQ follow the ICH Q2(R1) formulas: LOD = 3.3·σ/S and LOQ = 10·σ/S. σ is the standard deviation of the residual response (an alternative is the SD of replicate blanks). S is the slope of the calibration curve. The 3.3 and 10 factors correspond approximately to signal-to-noise ratios of 3:1 (detection) and 10:1 (precise quantification).

LOD is the smallest concentration distinguishable from the blank with confidence. LOQ is the smallest concentration measurable with acceptable precision (usually RSD ≤ 15–20%). Real samples should be at or above LOQ; samples between LOD and LOQ are "detected but not quantified."

Preparing standards for a calibration curve

To prepare standards for a calibration curve, use at least five concentration levels covering the expected range of samples. ICH Q2(R1) recommends six levels with replicates. Use a single stock solution (pure analyte, weighed precisely) and serial dilutions to minimise pipetting error. Match the matrix — same solvent, same buffer, same matrix concentration — to compensate for matrix effects on the response.

Minimum
5 levels
ICH minimum
Standard
6 levels
+3 replicates
Premium
8 levels
+6 replicates

Using the calibration curve to find an unknown

Using the calibration curve to find an unknown sample is straightforward: measure the sample response y, then invert the fit to x = (y − b) / m. A UV-Vis run with slope 0.539 abs per mg/L and intercept −0.003 converts an unknown absorbance of 0.275 into (0.275 − (−0.003)) / 0.539 = 0.516 mg/L. Always check the unknown response lies inside the calibration range.

Tip

If a sample response exceeds the highest standard, dilute the sample (in matrix-matched diluent) and re-measure. Never extrapolate the calibration curve above its highest point — the detector may have saturated or curved. Similarly, if a sample is below LOQ, concentrate it or use a more sensitive method.

Calibration curve validation with ICH Q2

Calibration curve validation with ICH Q2(R1) covers linearity (R² ≥ 0.99, ≥ 5 levels), range (80–120% of expected sample concentration), precision (RSD ≤ 15%, ≤ 20% at LOQ), accuracy (80–120% recovery), and limits LOD and LOQ. A validated method needs documented residual plots, outlier analysis, and intra-day plus inter-day replicates. Regulatory submissions to FDA, EMA, or PMDA reference these criteria directly.

Common calibration curve mistakes

The most common calibration curve mistake is extrapolating beyond the range — the linearity assumption only applies between the lowest and highest standards. Second mistake: using R² alone as quality criterion. A high R² can hide a curve that needs a weighted least squares fit. Third mistake: ignoring matrix effects. A standard in pure solvent will give a different slope than the same concentration in plasma or a complex food matrix.

Heteroscedastic data

When variance in y grows with concentration (common at high concentrations), ordinary least squares over-weights the high-concentration points and biases the slope. Use weighted least squares with weights 1/y or 1/y² to correct. Heteroscedasticity is the norm for HPLC peak areas and immunoassay signals across wide ranges.

FAQ

A calibration curve is a plot of instrument response (y) versus known analyte concentration (x). Within the linear range, response is proportional to concentration. The slope and intercept of the fit let you convert unknown responses into concentrations: x = (y − b) / m.
At least 5 levels are required by ICH Q2(R1), with 6 levels preferred. Each level should be measured in triplicate (six replicates is better). Use logarithmic spacing if the calibration range spans more than one decade.
R² ≥ 0.99 is the standard for analytical chemistry. Bioanalytical methods accept ≥ 0.98. R² alone is not enough — always check the residual plot for systematic curvature, which a high R² can hide.
LOD (limit of detection) is the smallest concentration distinguishable from blank noise, with signal-to-noise ≈ 3:1. LOQ (limit of quantification) is the smallest concentration measurable with acceptable precision (typically RSD ≤ 15–20%), with S/N ≈ 10:1. The ICH formula is LOD = 3.3·σ/S, LOQ = 10·σ/S.
The linearity assumption only holds in the range you measured. Outside the highest or lowest standard, the response may bend, saturate, or fall off. Confidence intervals also widen sharply beyond the range. If a sample lies outside the curve, dilute it (or concentrate it) until it fits.
Plot the residuals (y_measured − y_fitted). Outliers stand out. The Dixon Q-test or Grubbs test can flag them statistically. Document every removed point; never delete data points just to improve R².
Try a weighted least-squares fit (1/x² weighting helps when variance grows with concentration). If curvature persists, restrict the calibration to a shorter linear range or switch to a quadratic fit. ICH validation typically requires linearity, so a non-linear range may need a different analytical method.
SE is the typical vertical spread of the data around the fitted line, in response units. Smaller SE means a tighter calibration. Combined with the slope, SE drives the LOD and LOQ — a steeper slope (more sensitive method) and lower SE give a better detection limit.
Not necessarily — only if there is no background signal. A small non-zero intercept often reflects the blank response. If the intercept is statistically zero (within its 95% CI), you can force the fit through the origin. Otherwise, keep the intercept as a free parameter.
A chemically similar compound added to every standard and sample at the same concentration. Its peak (or response) is used to normalise the analyte signal, cancelling out instrument drift, injection volume variation, and matrix effects. Internal standards are standard practice in HPLC and GC-MS.