Worked example · Spectroscopy and chemical analysis · UV-Vis spectrophotometry
From a table of spectra to a concentration you can file.
A spectrophotometer export holds the spectra of a blank, five methylene blue standards and one unknown. We asked Vicena to build the calibration line, test it, and give the unknown's concentration with its uncertainty and the detection limits.
The question
One CSV file holds seven spectra from 500 to 800 nm in a 1 cm cuvette: a blank, standards at 2 to 10 µM and an unknown. How concentrated is the unknown, how sure can we be, and how low could this method measure?
What Vicena did
It plotted the spectra, took the absorbance at the standards' maximum, fitted a straight line through the blank and the standards, and tested it for curvature, for how well it recovers each standard and for its sensitivity to the baseline and the exact wavelength.
What it found
A straight line describes the standards from 2 to 10 µM, each recovered within 1.7 %. The unknown reads 5.335 µM. With one blank and no replicates, Vicena gave the detection limit only as an estimate and set 2 µM as the lowest level it would report.
The session
From one question to a checked answer.
- 01
Open the protocol
In the Protocols app, search for UV-Vis and open Measure a concentration from UV-Vis standards. The page says what you get, what you need and how it works.

- 02
Fill the form, or try the example
Attach your spectra and say which column is which solution, with the standards' concentrations. Here Try with example data attached a CSV of simulated methylene blue spectra and named the standards; the wavelength was left empty.

- 03
Start
Start opens a new session with the protocol's request and the file attached. Vicena follows the library's quantification page and works in a folder of its own, UV-Vis Quantification.

- 04
Read the answer
Vicena gives the unknown's concentration with its interval, the calibration equation and molar absorptivity, what it found about the blank, and a table with the limits.

- 05
Open the notebooks
Two notebooks beside the chat hold every step: the spectra in Overview, and the wavelength, baseline checks, fit, residuals, limits and results table in Calibration and limits.

Results
The unknown is 5.335 µM (approximate 95 % interval 5.254–5.416) at the 664 nm maximum, and the slope gives a molar absorptivity of 74,094 L mol⁻¹ cm⁻¹.
An unweighted line fitted best when each level was left out in turn (root-mean-square error 1.09 %, against 1.23 % for 1/x and 1.34 % for 1/x² weights). It has a slope of 0.0740943 ± 0.0002387 absorbance per µM and an intercept of 0.003329, with a residual standard deviation of 0.0020 absorbance. The residuals are negative at both ends and positive in between, but a quadratic term changes the fitted absorbance at 10 µM by only −0.21 % and Mandel's test gives p = 0.169. The example data were made to give about 664 nm, 74,000 M⁻¹ cm⁻¹ and 5.3 µM, and the run reproduces all three.
- 5.335 µM
- unknown, approximate 95 % interval ±0.081
- 74,094
- molar absorptivity at 664 nm, L mol⁻¹ cm⁻¹, ±239
- 1.7 %
- largest error of a back-calculated standard
- 0.14 µM
- detection limit estimated from the line alone

| Quantity | Value | Note |
|---|---|---|
| Slope | 0.07409 ± 0.00024 µM⁻¹ | Unweighted, free intercept |
| Molar absorptivity | 74,094 ± 239 L mol⁻¹ cm⁻¹ | 1 cm path |
| Linear range | 2–10 µM | Standards within 1.7 % |
| Unknown, A = 0.3986 | 5.335 µM (5.254–5.416) | No dilution |
| Detection limit | 0.142 µM | From the line only |
| Quantitation limit | ≥ 0.213 µM | Calibration part only |
| Reporting floor | 2 µM | Lowest standard |
Back-calculated standards: 2.034, 4.013, 6.008, 7.994 and 9.988 µM. Baseline correction moves the unknown by 0.005 µM.
In plain words
Absorbance at the band maximum rises in proportion to concentration, so a line through standards of known concentration turns the unknown's absorbance, 0.3986, into a concentration: 5.335 µM, with an approximate 95 % interval of ±0.081 µM.
That interval covers the scatter of the readings and the uncertainty of the line at 664 nm. Reading the same scans one nanometre to either side gives 5.265 and 5.289 µM, so the choice of wavelength moves the result by about as much again; a method that fixes the wavelength, or averages a few nanometres, removes that spread.
The data are simulated, made to behave like methylene blue in water, so the example shows the procedure and its checks rather than a measurement of a real sample.
For this kind of work
What you can do with Vicena.
Your own calibration series
Attach the spectra or a table of absorbances from any dye, protein or complex measured against standards, and get the line tested and the result reported with its uncertainty.
Routine batches
Rerun the notebook on the next day's standards and samples: the wavelength choice, the linearity checks and the limits are recomputed the same way.
Method details, for specialists
Vicena read simulated absorbance spectra, 500 to 800 nm in a 1 cm cuvette, of a blank, five methylene blue standards from 2 to 10 µM and one unknown. It located the maximum of the standards at 664 nm and fitted an unweighted straight line through all six levels: A = 0.003329 + 0.074094 c, with c in µM, which gives a molar absorptivity of 74,094 ± 239 L mol⁻¹ cm⁻¹ (standard uncertainty). Mandel's test did not establish curvature (p = 0.169), and every standard back-calculated within 1.7 %. The unknown, absorbance 0.3986, is 5.335 µM with an approximate 95 % interval of 5.254–5.416 µM. From one blank scan the detection limit could only be estimated from the calibration, at 0.142 µM; Vicena set 2 µM, the lowest standard, as the reporting floor.
The prompt Vicena was given, verbatim:
Measure the concentration of my samples from the attached UV-Vis standards. Use the calibration and limits method of the library's quantification page (apps/analytical-chemistry/elemental-quantification.md), which applies to any single-signal calibration line, here absorbance under the Beer–Lambert law. Plot the spectra, check the blank and baseline, and take the absorbance at the given wavelength or the standards' maximum. Fit the calibration line, test its linearity and range, report the slope as a molar absorptivity, and give each sample's concentration with its uncertainty and the detection and quantitation limits. Work in a notebook and finish with a short table I can file. Inputs: - Spectra or absorbance table: uv-vis-series.csv (attached) - Standards and samples: A_0uM to A_10uM are standards at 0, 2, 4, 6, 8 and 10 µM; A_unknown is the sample. 1 cm cuvette.
The data and the wavelength
The file holds seven absorbance spectra at 1 nm steps from 500 to 800 nm: a blank, standards at 2, 4, 6, 8 and 10 µM, and the unknown. They show the methylene blue band with its maximum near 664 nm and a shoulder near 610 nm, and the unknown lies between the 4 and 6 µM standards.
No wavelength was given, so Vicena smoothed the spectra with a 7-point moving average and took the maximum of the mean of the five standards, 664 nm; the individual standards peak at 663 or 664 nm. The calibration uses the unsmoothed absorbance at that wavelength.
Checks and limits
The blank reads 0.0006 at 664 nm, against means of 0.0044 and 0.0038 in the off-band windows at 500–540 and 760–800 nm: an isolated low point in an otherwise flat scan with a scatter of 0.0013. Subtracting each scan's own off-band baseline moved the unknown by only 0.005 µM, so Vicena kept the measured absorbances and a free intercept.
The detection limit, twice the critical concentration of 0.071 µM, is 0.142 µM, and three times the critical concentration gives 0.213 µM as the calibration part of the quantitation limit. Both rest on the scatter of the line alone: with one blank scan, the blank-based terms of the library's method, three and ten times the standard deviation of replicate blanks, could not be calculated. Both lie well below the lowest standard, so Vicena reported 2 µM as the floor and recommended replicate blanks and low standards to establish the method's limits.
Conclusions
- The unknown is 5.335 µM, with an approximate 95 % interval of 5.254–5.416 µM, inside the tested range of 2–10 µM.
- The slope gives a molar absorptivity of 74,094 ± 239 L mol⁻¹ cm⁻¹ at 664 nm, and the line is straight within the data: every standard back-calculates within 1.7 % and Mandel's test finds no curvature.
- Reading one nanometre to either side moves the result by up to 0.070 µM, outside the stated interval; the detection limit of 0.142 µM is an estimate from the line, and replicate blanks are needed to confirm it.
Data and notebooks
- Overview.ipynb
- Calibration and limits.ipynb
- uv-vis-series.csv
- UV-Vis results.csv
- charts/Spectra.chart.json
- charts/Calibration and residuals.chart.json
- tables/UV-Vis results.table.json
Data source: Simulated UV-Vis spectra of methylene blue made for the Analytical Chemistry app's protocols, , CC0 1.0.
References
- ISO 11843-2:2000. Capability of detection, Part 2: Methodology in the linear calibration case.
- ICH Q2(R2). Validation of Analytical Procedures. International Council for Harmonisation, 2023.
- J. Mandel, The Statistical Analysis of Experimental Data, Interscience, 1964.
Try it