PharmaWallah

Pharmaceutical Analysis

Calibration Curve Calculator

Least-squares regression of absorbance on concentration — slope, intercept, R² and the concentration of an unknown, with every step shown.

Experiment

Printed on the lab record.

Used for the standards and for the unknown's result.

Standards

Standard # | Concentration (X) | Absorbance (Y)

5

2–10 standards.

Standard concentrations and absorbances
#Concentration (X)(µg/mL)Absorbance (Y)(AU)Remove
Std 1
Std 2
Std 3
Std 4
Std 5

Load an example data set (you can edit every value)

Unknown sample

AU

Optional — leave blank to fit the curve only.

Laboratory calculation card

Enter every standard's concentration and absorbance to fit the curve.

Worked example: five UV standards and one unknown

Illustrative values. Five standard solutions of a drug (4–20 µg/mL) are read at the drug's λmax against a solvent blank. A tablet extract, diluted to fall inside the range, reads 0.512 AU. Enter the five standards, unit µg/mL, and the unknown absorbance.

Concentrations X (µg/mL)
4, 8, 12, 16, 20
Absorbances Y (AU)
0.158, 0.321, 0.474, 0.645, 0.790
Number of standards (n)
5
Unknown absorbance
0.512 AU
  1. Sums

    ΣX = 60 ΣY = 2.388 ΣXY = 35.008 ΣX² = 880

  2. Slope m = [nΣxy − (Σx)(Σy)] / [nΣx² − (Σx)²]

    m = (5 × 35.008 − 60 × 2.388) / (5 × 880 − 60²) = (175.04 − 143.28) / (4,400 − 3,600) = 31.76 / 800 = 0.0397 AU per µg/mL

  3. Intercept c = [Σy − mΣx] / n

    c = (2.388 − 0.0397 × 60) / 5 = (2.388 − 2.382) / 5 = 0.0012 AU

  4. Goodness of fit R² = 1 − SSE / SST

    R² = 1 − (0.0001228 / 0.252297) = 0.999513

  5. Unknown: X = (Y − c) / m

    X = (0.512 − 0.0012) / 0.0397 = 0.5108 / 0.0397 = 12.8665 µg/mL

Y = 0.0397X + 0.0012 · R² = 0.9995 · unknown = 12.87 µg/mL

12.87 µg/mL is the concentration in the cuvette, inside the 4–20 µg/mL range of the standards, so it is an interpolation. To report the drug content of the tablet you still multiply by every dilution made from the tablet to the cuvette. A high R² is necessary but not sufficient: look at the graph for points that curve away from the line.

Common mistakes

Swapping the axes. Concentration (what you prepared) is X and absorbance (what you measured) is Y; regressing X on Y gives a different line.
Adding a (0, 0) point that was never measured. It forces the line towards the origin; enter only the readings you actually recorded.
Reading an unknown that lies above the top standard. The result is an extrapolation — dilute the sample so its absorbance falls within the curve.
Forgetting the dilution factor. The calibration gives the concentration in the cuvette, not in the original sample.
Judging linearity by R² alone. A curved set of points can still give R² above 0.99; check the residuals or the plot.
Using a curve prepared in a different solvent or at a different wavelength from the one the sample was read in.

Assumptions and limitations

Ordinary least squares assumes the error is in Y only and is similar across the range; it does not weight points.
A straight line is valid only where Beer–Lambert behaviour holds. At high absorbance, stray light and instrument limits bend the curve.
R² describes the fit to these standards; it says nothing about the accuracy of the standards themselves or of an unknown read on another day.
Acceptance criteria for linearity (minimum R², number of levels, range) come from the method protocol or monograph, not from this calculator.

References

  1. Harris DC, Lucy CA. Quantitative Chemical Analysis. 10th ed. New York: W. H. Freeman (Macmillan Learning); 2019.
  2. International Council for Harmonisation. ICH Q2(R2): Validation of Analytical Procedures. Step 4, adopted 1 November 2023. Source
  3. United States Pharmacopeia–National Formulary. General Chapter <1225> Validation of Compendial Procedures. Rockville (MD): USP.

Common questions

Prepared by the PharmaWallah student team. Verify results with your textbook or instructor. Report an error · Editorial policy