Calibration Curve Calculator | Slope, Intercept, R²
Fit a calibration curve to standards by linear regression, then find slope, intercept, R², and unknown sample concentrations from a measured response.
Simple Calibration Curve Calculator
Enter Calibration Data Points
Calibration Curve
Calculate Unknown Concentration
Documentation
What Is a Calibration Curve Calculator
A calibration curve calculator turns instrument readings into concentrations. It does this by fitting a straight line through data points from standards of known concentration, then using that line to convert a new reading into a concentration. Laboratories use calibration curves in chemistry, biology, and environmental testing whenever an instrument reports a signal, such as absorbance or peak area, instead of a concentration directly.
The calculator on this page fits a line using linear regression, the least squares method. It reports the slope, the intercept, and R², a measure of how closely the points follow the line. It can then estimate the concentration of an unknown sample from a measured response.
The Calibration Curve Formula
A calibration curve assumes a straight-line relationship between concentration and instrument response:
- is the response (what the instrument measures)
- is the concentration
- is the slope
- is the y-intercept
How to Calculate the Slope and Intercept
For a set of points, the slope and intercept that best fit the data (in the least squares sense) are:
Here and are the mean concentration and mean response of all the points.
R² Formula
R², the coefficient of determination, shows how well the line fits the data:
is the response the line predicts for each . R² ranges from 0 to 1. A value of 1 means every point sits exactly on the line.
Unknown Concentration Formula
Once the slope and intercept are known, a measured response can be converted back into a concentration:
If this calculation gives a negative number, the calculator reports the concentration as 0, since a negative concentration is not physically meaningful. It also reports 0 when the fitted slope is 0, because a flat line carries no information about concentration.
Worked example
Suppose four standards give the following results:
| Concentration (x) | Response (y) |
|---|---|
| 0 | 0.05 |
| 2 | 0.15 |
| 4 | 0.24 |
| 6 | 0.36 |
The mean concentration is 3 and the mean response is 0.20.
Slope:
Intercept:
R²: comparing the predicted responses to the actual ones gives R² = 0.9966.
The fitted line is:
Now suppose an unknown sample gives a response of 0.20. Its concentration is:
How to Use This Calculator
- Enter each standard's known concentration and its measured response as a pair of numbers. The calculator starts with two rows.
- Select "Add Data Point" to enter more standards, or "Remove data point" next to a row to delete it. At least two points are required.
- Once at least two points are filled in, the calculator shows the regression equation, the R² value, and a graph of the points with the fitted line. The slope, intercept, R² and concentration are all rounded to four decimal places for display.
- Enter a measured response under "Calculate Unknown Concentration" to see the matching concentration. It updates automatically as the value is typed; there is no separate button to press.
- Select "Reset" to clear all entered points and the response field and start over.
Interpreting Slope, Intercept, and R²
The slope shows how much the response changes per unit of concentration. A larger slope means the method responds strongly to small concentration changes.
The intercept is the predicted response at zero concentration. It reflects background signal, such as a blank sample or instrument baseline. A non-zero intercept is common and not automatically a problem, but a large or inconsistent intercept between calibrations can point to contamination or an instrument fault.
R² shows how closely the points follow a straight line. Values above 0.99 are typical for a well-behaved linear method. A lower R² can mean pipetting error, a degraded standard, or a concentration range where the response is no longer linear.
Where Calibration Curves Are Used
Calibration curves are common wherever an instrument's raw signal needs to be converted to a concentration:
- Spectrophotometry — absorbance of light is measured and converted to concentration, for example when measuring protein or pigment content.
- Chromatography (HPLC, GC) — peak area or height from a chromatogram is converted to concentration, common in drug testing and environmental analysis.
- ELISA and other immunoassays — color or fluorescence intensity from a plate reader is converted to antigen or antibody concentration.
- qPCR — cycle threshold values from serial dilutions of a known sample build a curve used to estimate the amount of genetic material in an unknown sample.
When a Straight Line Does Not Fit
Some methods are not linear across their full range. Common fixes include limiting the calibration to a narrower, linear region, applying a logarithmic transform before fitting a line, using a polynomial (curved) fit, or using weighted regression when measurement error grows or shrinks with concentration. This calculator only fits a straight line; if the points clearly curve, the results will be less reliable and a different model may be needed.
Frequently asked questions
What is a calibration curve?
A calibration curve is a line fitted through instrument readings for samples of known concentration. It is used to convert a new reading, from a sample of unknown concentration, into a concentration value.
How many data points does a calibration curve need?
The calculator needs at least two points to fit a line, but two points cannot show whether the true relationship is actually straight. Most laboratories use five to eight standards spanning the expected range of the unknown samples.
What does R² mean in a calibration curve?
R² measures how closely the data points follow the fitted line, on a scale from 0 to 1. A value of 1 means every point lies exactly on the line. Values above 0.99 are generally considered strong evidence of a linear relationship.
Can concentrations be estimated outside the range of the standards?
Estimating a concentration below the lowest standard or above the highest standard is unreliable, because there is no data confirming the line stays straight there. It is better to dilute a sample that reads too high, or concentrate one that reads too low, and remeasure within the calibrated range.
Why is the calculated concentration sometimes shown as 0?
If a measured response is lower than the fitted intercept (with a positive slope), the formula produces a negative number. The calculator displays 0 in that case, since a real concentration cannot be negative. It also displays 0 when the slope is 0, which happens if every standard has the same response or every standard has the same concentration.
What is the difference between the slope and the intercept?
The slope describes how sensitive the response is to a change in concentration. The intercept is the response predicted at zero concentration, often reflecting background signal rather than the analyte itself.