Standard curve and calibration curve calculator
Paste your reference and indication pairs — a calibration curve or a standard curve, the fit is the same — and get the least-squares line, the residual plot that decides whether to believe it, and the residual standard deviation your uncertainty budget needs.
Calibration data
Paste straight from a spreadsheet. Commas, tabs, semicolons or spaces all work, and a header row is ignored. The figures above are an example, not your data.
Runs entirely in your browser · nothing you enter is sent to a server
The fit
indication = 0.035714 + 1.0024 × reference
Residual standard deviation
0.013310 °C
On 4 degrees of freedom. This is a Type A contribution and belongs in the uncertainty budget.
R²
1.000
Reported because it is expected, not because it decides anything. Read the residual plot instead.
Standard error of slope
0.00015908
Standard error of intercept
0.0096327 °C
Residuals
The residuals scatter without an obvious pattern, which is what a straight line should produce.
Use the curve: an indication, corrected
This uncertainty is the contribution from the curve only. The uncertainty of the reference standard, the resolution of the instrument and its drift since calibration are all separate, and all belong in the budget with it. Never use the curve outside the range of the points it was fitted from.
1 line was skipped because it did not contain two numbers. A header row is the usual reason and is nothing to worry about.
A worked example
A pressure gauge is calibrated at six points against a deadweight tester, and a later reading of 60.00 kPa has to be turned back into an applied pressure with an uncertainty attached.
What you start with
- Applied (kPa)
- 0, 20, 40, 60, 80, 100
- Indicated (kPa)
- 0.15, 20.08, 39.94, 59.88, 79.97, 99.82
The arithmetic
- 01
Fit indicated against applied by least squares.
indicated = 0.99709 × applied + 0.11905
- 02
Check the residuals before trusting the line.
residual standard deviation 0.064 kPa on 4 degrees of freedom; scatter random, no curvature or funnel
- 03
Invert the line for an observed indication of 60.00 kPa.
applied = (60.00 − 0.11905) / 0.99709 = 60.056 kPa, u = 0.070 kPa
A reading of 60.00 kPa means 60.06 kPa was applied, with a standard uncertainty of 0.070 kPa.
r² for this fit is 0.999998. It looks like proof of a perfect instrument and it is very nearly useless: r² rises with the range you calibrated over, not with how well the gauge agrees. The number that belongs in the uncertainty budget is the 0.070 kPa on the inverse prediction, and nothing about r² would have told you it was 0.070 rather than 0.007.
How the calculation works
- 01Ordinary least squares with the reference as the known quantity and the indication as the observed one, which is the direction the calibration is performed in and the direction the least-squares assumptions hold for.
- 02Residual standard deviation on n − 2 degrees of freedom: s = √(Σrᵢ² / (n − 2)). This is a Type A uncertainty contribution in its own right.
- 03Standard errors of the slope and intercept from that residual spread and the spread of the reference values, Sxx = Σ(xᵢ − x̄)².
- 04Inverse prediction, which is how a calibration curve is actually used: u(x₀) = (s / |b|) · √(1 + 1/n + (x₀ − x̄)² / Sxx). Larger than the standard error of the line, and larger still towards the ends of the range.
- 05Outliers are flagged against a median absolute deviation rather than the standard deviation, because one large outlier inflates the very spread that would otherwise be used to find it.
Limitations
- Straight-line fits only. If the residuals show an arc, the answer is a higher order or a split range, and this tool will say so rather than fit it for you.
- The uncertainty shown is the contribution from the curve alone. The reference standard, the instrument's resolution and its drift since calibration are separate contributions and belong in the budget alongside it.
- It assumes the error is in the indication and that the reference values are known. Where both carry comparable uncertainty, ordinary least squares understates the slope uncertainty.
- Never use a fitted curve outside the range of the points it came from; the tool cannot stop you, and a polynomial in particular departs from reality quickly beyond its last point.
Frequently asked questions
- Is a standard curve the same as a calibration curve?
- For this calculation, yes. Analytical chemistry and bioassay work say standard curve; instrument calibration says calibration curve. Both are a least-squares fit through points of known value, inverted to read an unknown back off the line, and both need the same two things before the fit can be believed: a residual pattern that looks like scatter rather than structure, and the uncertainty the line itself contributes to every result passing through it. Where they differ is convention, not mathematics — assay work more often runs a non-linear fit such as a four-parameter logistic, which this tool does not do.
- What does the residual standard deviation tell me?
- How far the calibration points scatter about the fitted line, expressed on n − 2 degrees of freedom. It represents everything the straight line does not explain: instrument repeatability, short-term drift during the calibration, and any small mis-specification of the model. It is a Type A uncertainty contribution and belongs in the budget.
- Why does the tool tell me to ignore R²?
- Because R² measures how much of the total spread the fit explains, which is dominated by the range of the data rather than the quality of the fit. A genuinely curved response measured over a wide range still scores 0.999. The residual plot answers the question R² cannot: whether the residuals scatter randomly or form a pattern.
- Why is the corrected value's uncertainty larger than the standard error of the line?
- Because a corrected value carries two things: the uncertainty of where the line sits, and the scatter of the single new observation about it. That is the 1 in √(1 + 1/n + …). It also grows with distance from the centre of the calibration points, which is why points belong at the values you actually measure at.
- How many calibration points should I use?
- At least three, or there are no degrees of freedom and no residual standard deviation exists. Two points fit a straight line perfectly and prove nothing. Five or six spread across the working range is a common minimum, placed to cover the range rather than clustered where testing is convenient.
Need the reasoning, not just the number?
Ask ValiTrac AI and see the standards evidence and the engine calculation behind the answer.
Ask ValiTrac AIRead the theory
Calibration curves: fitting, residuals and the uncertainty they add
Fitting the line is the easy part. Judging whether the fit is honest, and carrying its uncertainty into the budget, is where calibration curves go wrong.
Choosing calibration points
Calibrate where you measure. Points should bracket the use range and include any temperature where a decision is made.
Building an uncertainty budget step by step
Write the model, list the inputs, evaluate each as a standard uncertainty, apply sensitivity coefficients, combine in quadrature, expand with k. One table.
Tolerance versus uncertainty
Tolerance is what you require of the instrument; uncertainty is how well the calibration could measure it. A conformity statement needs both.
Other calculators
- Type A uncertainty
- En number
- Protocol builder
- Mapping analyser
- Calibration interval
- Thermal lag simulator
- Mapping placement planner
- TUR calculator
- Uncertainty budget
- Guard band / decision rule
- MKT & logger data check
- Pt100 converter
- Dew point / RH
- Sampling interval
- Thermocouple mV ↔ °C
- Equipment selector
- Certificate checker
- Laboratory finder
- Temperature converter
- Pressure converter
- 4–20 mA calculator
- Accuracy spec calculator
- NTC thermistor
- Wet-bulb humidity
- Balance minimum weight
- pH slope & offset
- Pt100 lead wire error
- Pressure gauge calibration
- Calibration worksheet
- Qualification workspace