Skip to content

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

1.
2.

Calibration Curve

Enter at least 2 valid data points to generate a calibration curve

Calculate Unknown Concentration

Create a valid calibration curve first by entering at least 2 data points
Loading calculator...
📚

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:

y=mx+by = mx + b

  • yy is the response (what the instrument measures)
  • xx is the concentration
  • mm is the slope
  • bb is the y-intercept

How to Calculate the Slope and Intercept

For a set of nn points, the slope and intercept that best fit the data (in the least squares sense) are:

m=i=1n(xixˉ)(yiyˉ)i=1n(xixˉ)2m = \frac{\sum_{i=1}^{n}(x_i - \bar{x})(y_i - \bar{y})}{\sum_{i=1}^{n}(x_i - \bar{x})^2}

b=yˉmxˉb = \bar{y} - m\bar{x}

Here xˉ\bar{x} and yˉ\bar{y} 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:

R2=1i=1n(yiy^i)2i=1n(yiyˉ)2R^2 = 1 - \frac{\sum_{i=1}^{n}(y_i - \hat{y}_i)^2}{\sum_{i=1}^{n}(y_i - \bar{y})^2}

y^i\hat{y}_i is the response the line predicts for each xix_i. 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 yy can be converted back into a concentration:

x=ybmx = \frac{y - b}{m}

If this calculation gives a negative number, the calculator reports the concentration as 0, since a negative concentration is not physically meaningful.

Worked Example

Suppose four standards give the following results:

Concentration (x)Response (y)
00.05
20.15
40.24
60.36

The mean concentration is 3 and the mean response is 0.20.

Slope:

m=(3)(0.15)+(1)(0.05)+(1)(0.04)+(3)(0.16)(3)2+(1)2+12+32=1.0220=0.0510m = \frac{(-3)(-0.15) + (-1)(-0.05) + (1)(0.04) + (3)(0.16)}{(-3)^2 + (-1)^2 + 1^2 + 3^2} = \frac{1.02}{20} = 0.0510

Intercept:

b=0.20(0.0510)(3)=0.0470b = 0.20 - (0.0510)(3) = 0.0470

R²: comparing the predicted responses to the actual ones gives R² = 0.9966.

The fitted line is:

y=0.0510x+0.0470(R2=0.9966)y = 0.0510x + 0.0470 \quad (R^2 = 0.9966)

Now suppose an unknown sample gives a response of 0.20. Its concentration is:

x=0.200.04700.0510=3.0000x = \frac{0.20 - 0.0470}{0.0510} = 3.0000

How to Use This Calculator

  1. Enter each standard's known concentration and its measured response as a pair of numbers. The calculator starts with two rows.
  2. 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.
  3. 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.
  4. 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.
  5. 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 x=(yb)/mx = (y - b) / m produces a negative number. The calculator displays 0 in that case, since a real concentration cannot be negative.

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.