Chemistry · Analytical Chemistry
Calibration curve calculator icon showing standards on a straight line and an unknown read off the curve

Calibration curve calculator

This calibration curve calculator fits a least-squares straight line to your standards (concentration against instrument signal), gives the slope, intercept, R² and residual standard deviation, turns the signal of an unknown into a concentration with its standard deviation and 95 % confidence interval, and estimates the limits of detection and quantitation.

Paste one standard per line: concentration first, then signal, separated by a space, tab, comma or semicolon (use a dot as the decimal mark). The example is the fluorescence calibration from Miller and Miller, Statistics and Chemometrics for Analytical Chemistry, in pg/mL.

Calibration curve calculator: fit, unknown, LOD and LOQ

Ordinary least squares, y = a + b·x, or a line forced through the origin, y = b·x.
At least three standards (two for a line through the origin). Include the blank as concentration 0 if you measured it.
Used only to label the results.
Mean of the m replicate readings.

Calibration curve calculator for a known equation

Already have the line y = a + b·x from software or a lab manual? Enter it to convert signals, with an optional dilution factor.

How to use the calibration curve calculator

Type or paste your standards into the box, one line each: the known concentration, then the measured signal (absorbance, peak area, fluorescence intensity, emission counts…). Choose whether the line has an intercept, type the concentration unit so the results are labeled, and enter the signal of your unknown. If you measured the unknown several times, enter the mean signal and the number of replicates m; more replicates shrink the uncertainty. The calibration curve calculator then shows the regression statistics, the unknown concentration with its standard deviation and 95 % confidence interval, the LOD and LOQ, and a plot of the standards, the line and the unknown. The second panel converts signals with an equation you already have.

The least-squares line behind the calibration curve calculator

An external calibration assumes the signal y is a straight-line function of concentration x. Ordinary least squares chooses the slope b and intercept a that minimize the sum of squared vertical deviations, which assumes the concentrations of the standards are known much more precisely than the signals and that the scatter is about the same at all concentrations. These are the formulas the calibration curve calculator applies:

b = Σ(x − x̄)(y − ȳ) / Σ(x − x̄)², a = ȳ − b·x̄, sy/x = √( Σ(y − ŷ)² / (n − 2) )

The residual standard deviation sy/x measures the scatter of the points about the line, in signal units. It gives the standard deviation of the slope, sb = sy/x/√Σ(x − x̄)², and of the intercept, sa = sy/x·√(Σx² / (n·Σ(x − x̄)²)). The unknown concentration is read back from the line, x₀ = (y₀ − a)/b, and its standard deviation follows the standard formula (Miller and Miller):

sx0 = (sy/x / b) · √( 1/m + 1/n + (y₀ − ȳ)² / (b²·Σ(x − x̄)²) )

Here m is the number of replicate readings of the unknown and n the number of standards. The uncertainty is smallest when y₀ is near the centroid ȳ of the standards and grows toward the ends of the range. The 95 % confidence interval is x₀ ± t·sx0 with Student’s t for n − 2 degrees of freedom. For a line forced through the origin the calibration curve calculator uses b = Σxy/Σx², n − 1 degrees of freedom and sx0 = (sy/x/b)·√(1/m + y₀²/(b²·Σx²)).

Worked example with the calibration curve calculator: fluorescence

The default data are a classic textbook data set: fluorescence intensities of 2.1, 5.0, 9.0, 12.6, 17.3, 21.0 and 24.7 for standards of 0 to 12 pg/mL in steps of 2. The calibration curve calculator gives these results, which match the values published by Miller and Miller.

QuantityResultMeaning
Slope b1.930 ± 0.041Sensitivity: signal per pg/mL
Intercept a1.518 ± 0.295Blank signal
r and R²0.99888 and 0.99776Strength of the linear relationship
sy/x0.4328Scatter about the line (signal units)
Unknown, y₀ = 13.5 (m = 1)x₀ = 6.21 pg/mL, sx0 = 0.2495 % interval 6.21 ± 0.62 pg/mL (t = 2.571, 5 degrees of freedom)
Same unknown, m = 3sx0 = 0.15Replicates reduce the uncertainty
LOD = 3.3·sy/x/b0.74 pg/mLICH Q2 convention
LOD = 3·sy/x/b0.67 pg/mLBlank + 3 s convention (Miller and Miller)
LOQ = 10·sy/x/b2.24 pg/mLLowest level reported with acceptable precision

Signals of 2.9 and 23.0, near the ends of the range, give 0.72 ± 0.26 and 11.13 ± 0.26 pg/mL (as sx0): the same line produces a larger uncertainty away from the centroid. The intercept, 1.52, is about 5 times its standard deviation, so it is real (a blank signal) and the line should not be forced through zero; the calibration curve calculator states this in its note.

LOD and LOQ: which convention?

The ICH Q2(R2) guideline on validation of analytical procedures allows the detection limit to be estimated as DL = 3.3·σ/S and the quantitation limit as QL = 10·σ/S, where S is the slope of the calibration line and σ the standard deviation of the response, taken either as the residual standard deviation of the regression line or as the standard deviation of the y-intercepts; you can pick either in the calibration curve calculator. The factor 3.3 is roughly 2 × 1.645, which keeps both false positives and false negatives near 5 %. Many analytical chemistry textbooks instead use LOD = blank + 3s, which corresponds to 3·sy/x/b when the intercept estimates the blank; both values are shown. State which convention you used whenever you report a detection limit, and confirm a calculated LOQ by analyzing samples near that level.

Calibration curve calculator example 2: UV-Vis absorbance in mg/L, step by step

Data. A blank and five standards of 2, 4, 6, 8 and 10 mg/L are measured in a 1 cm cell. The absorbances are 0.003, 0.152, 0.297, 0.455, 0.598 and 0.751. An unknown sample reads A = 0.388. Find the calibration line, R², the unknown concentration and the LOD and LOQ by hand; the calibration curve calculator does the same steps in its working.

Step 1, means. n = 6, x̄ = (0 + 2 + 4 + 6 + 8 + 10)/6 = 5.000 mg/L and ȳ = 2.256/6 = 0.37600.

Step 2, sums of squares and products.

x (mg/L)y (absorbance)x − x̄y − ȳ(x − x̄)²(x − x̄)(y − ȳ)Fitted ŷResidual y − ŷ
00.003−5−0.373251.86500.0020+0.0010
20.152−3−0.22490.67200.1516+0.0004
40.297−1−0.07910.07900.3012−0.0042
60.455+1+0.07910.07900.4508+0.0042
80.598+3+0.22290.66600.6004−0.0024
100.751+5+0.375251.87500.7500+0.0010
Sum2.25600Sxx = 70Sxy = 5.2360Σ(y − ŷ)² = 4.32 × 10⁻⁵

Step 3, slope and intercept. b = Sxy/Sxx = 5.2360/70 = 0.074800 L/mg and a = ȳ − b·x̄ = 0.37600 − 0.074800 × 5 = 0.00200. The calibration line is A = 0.00200 + 0.07480·c.

Step 4, scatter and R². sy/x = √(4.32 × 10⁻⁵/4) = 0.003286. With Syy = Σ(y − ȳ)² = 0.391696, R² = 1 − 4.32 × 10⁻⁵/0.391696 = 0.99989 (r = 0.99995). The standard deviation of the intercept is sa = 0.003286 × √(220/(6 × 70)) = 0.00238, so a = 0.0020 is smaller than t·sa = 2.776 × 0.00238 = 0.0066 and is not significantly different from zero.

Step 5, the unknown. This is the x₀ row of the calibration curve calculator. c₀ = (0.388 − 0.00200)/0.074800 = 5.160 mg/L. Its standard deviation is sx0 = (0.003286/0.0748) × √(1/1 + 1/6 + (0.388 − 0.376)²/(0.0748² × 70)) = 0.0475 mg/L, and with t = 2.776 for 4 degrees of freedom the 95 % confidence interval is 5.16 ± 0.13 mg/L.

Step 6, LOD and LOQ. Sections 6.3.2 and 7.3.2 of the ICH Q2(R1) guideline define DL = 3.3·σ/S and QL = 10·σ/S, with S the slope and σ either the residual standard deviation of the regression line or the standard deviation of the y-intercepts. With σ = sy/x: LOD = 3.3 × 0.003286/0.0748 = 0.145 mg/L and LOQ = 10 × 0.003286/0.0748 = 0.439 mg/L. With σ = sa = 0.00238 instead: LOD = 0.105 mg/L and LOQ = 0.318 mg/L. ICH adds that the curve used for this should contain samples in the range of the limit, so a curve spanning 0–10 mg/L gives a first estimate that you confirm with standards near 0.1–0.5 mg/L.

Paste the six pairs into the calibration curve calculator, enter 0.388 as the unknown and mg/L as the unit, and it returns exactly these values: 5.1604 mg/L, sx0 = 0.0475 mg/L, R² = 0.99989, LOD 0.145 mg/L and LOQ 0.439 mg/L.

Good practice for a reliable calibration

Use at least five or six standards spread evenly over the working range, plus a blank. Bracket the unknowns: never extrapolate beyond the highest standard; dilute the sample instead and multiply by the dilution factor. Look at the residuals, not only R². A value of 0.999 can hide a clear curve; a systematic pattern of residuals (negative at the ends, positive in the middle) means the response is not linear, often at high absorbance (see the Beer-Lambert Law Calculator). Do not force the line through zero unless the intercept is not significantly different from zero; the note in the calibration curve calculator compares |a| with t·sa. Replicate the unknown: going from m = 1 to m = 3 cut sx0 from 0.24 to 0.15 pg/mL in the example. Match the matrix of standards and samples, or use standard addition or an internal standard when the matrix changes the sensitivity. Check heteroscedasticity: if the scatter grows with concentration, a weighted regression is more appropriate than the unweighted fit used here. The NIST/SEMATECH e-Handbook section on calibration covers these checks in more depth.

Common mistakes with a calibration curve calculator

Swapping the axes. Concentration (the precisely known value) goes on x, signal on y; regressing x on y gives a different line. Using R² as proof of linearity. It measures correlation, not the shape of the curve. Reporting x₀ with too many digits. Round the result to match sx0, for example 6.21 ± 0.24 pg/mL; the Significant Figures Calculator helps with the rounding. Forgetting the dilution factor of the sample; the second panel of the calibration curve calculator applies it. Trusting the line without checking the method. A calibration curve calculator only describes the standards; recovery tests and check standards show whether the method is accurate. Ignoring the replicate SD of standards. The repeatability of the method is a separate figure, best summarized as a %RSD with the Relative Standard Deviation Calculator.

Three mistakes deserve numbers, and the calibration curve calculator can reproduce each of them, because they are the most common in lab reports. Extrapolating beyond the standards. Take a slightly curved absorbance set: 0.002, 0.205, 0.395, 0.570, 0.730 and 0.872 at 0, 2, 4, 6, 8 and 10 mg/L. A line fitted to the first four standards only (0–6 mg/L) is A = 0.0089 + 0.0947·c; extrapolated to the reading 0.872, it predicts 9.11 mg/L for a solution that is really 10 mg/L, an error of −9 %. Forcing the line through zero when the intercept is real. In the fluorescence example above the intercept is about 5 times its standard deviation. Forcing the line through the origin raises the slope to 2.105, and a low signal of 2.9 then reads 1.38 pg/mL instead of 0.72 pg/mL, almost twice the true result, while the error at mid-range is only 3 %. Judging linearity by R² alone. The curved set above still gives R² = 0.9960, which passes a typical 0.995 rule, yet its residuals run −0.025, +0.004, +0.020, +0.021, +0.006, −0.026: negative at both ends and positive in the middle, the signature of curvature. Plot the residuals (the calibration curve calculator lists the fitted line so you can check them), narrow the range or use a quadratic or weighted fit when you see such a pattern.

Related calculators

For absorbance measurements, the Beer-Lambert law calculator links the slope of your line to the molar absorptivity. The live Standard Deviation Calculator and Statistics Calculator cover general descriptive statistics.

Frequently asked questions

How do I find an unknown concentration from a calibration curve?

Fit the line y = a + b·x to the standards, then solve for x: x₀ = (y₀ − a)/b. With a = 1.52, b = 1.93 and a signal of 13.5, x₀ = 6.21. The calibration curve calculator also gives the uncertainty of x₀.

What R² is acceptable for a calibration curve?

Many laboratories require R² ≥ 0.995, and 0.999 or better for assays. A high R² alone does not prove linearity, so also check that the residuals scatter randomly about zero.

How do I calculate the LOD and LOQ from a calibration curve?

Following ICH Q2(R1), LOD = 3.3·σ/S and LOQ = 10·σ/S, where S is the slope of the calibration curve and σ the residual standard deviation of the regression line (or the standard deviation of the y-intercepts). Example: slope 0.0748 L/mg and s(y/x) = 0.003286 give LOD = 3.3 × 0.003286/0.0748 = 0.145 mg/L and LOQ = 0.439 mg/L. The calibration curve calculator gives both, plus the 3·s/b value used in many textbooks. Confirm the result with standards near the calculated limit.

Should I force the calibration line through zero?

Only if the intercept is not significantly different from zero, that is, |a| is smaller than t·s(a). Forcing it otherwise biases results, especially at low concentrations.

Why is the uncertainty larger at the ends of the curve?

The term (y₀ − ȳ)² in the formula for s(x₀) grows as the signal moves away from the mean of the standards, because errors in the slope matter more there. Try signals of 2.9, 13.5 and 23.0 in the calibration curve calculator to see the effect.

Is this calibration curve calculator free?

Yes. It runs in your browser, needs no sign-up and does not store or send the data you enter.

Results are for study, homework and lab preparation; check important results against your own data, and follow your lab’s safety rules. Back to chemistry calculators or CalcSwiftly home.

Reviewed by: CalcSwiftly · Last reviewed: