Skip to content

Mixture concentrations from absorbance

analyt_multicomponent_absorbance

Works out the molar concentrations of 2 to 4 absorbing species in a mixture from absorbance.

Runs
On the server
Level
Checked against a reference: Harvey's printed Example 10.3.2 and Exercise 10.3.2, and the full check of 14 November 2026 (second implementation, edge cases)
Ask your assistant

What it is

Returns the molar concentrations of 2 to 4 absorbing species by the additivity of absorbance (Beer's law). Use when absorbances at exactly as many wavelengths as species, each species' decadic molar absorption coefficient there and the path length are known. More wavelengths than species (least squares) is not offered; a negative concentration is returned and flagged. Not for a calibration line: use `analyt_detection_limits`.

Field: Analytical chemistry.

What it does

You give

  • pathLength (required): The cell's path length b. Must be above 0 cm.
  • species (required): The absorbing species, 2 to 4.
  • wavelengths (required): The wavelengths: exactly as many as species.

No request is recorded for this tool.

Limits

  • Research and quality-control arithmetic on the values you supply, using the formulae of USP ⟨621⟩ (harmonised text, official 1 December 2022) and ICH Q2(R2) (adopted 1 November 2023) as each method writes them out.
  • Each reply states whether a number lies inside or outside the range the chapter states; it does not decide whether a method, column or system meets a requirement, and it is not a release or regulatory decision.
  • Solves Beer's-law additivity (Harvey, Analytical Chemistry 2.1, §10.2 eq.
  • 10.6 and §10.3) for 2 to 4 species from exactly as many wavelengths, using decadic molar absorption coefficients and a path length you supply.
  • It assumes that absorbances add with no interaction between species, that no other species absorbs, and that Beer's law holds at each wavelength (monochromatic light, no stray light, dilute solution).
  • It does not fit more wavelengths than species, does not warn when two spectra are nearly alike (results then depend strongly on small errors in absorbance), and does not propagate uncertainty.
  • A negative concentration is shown and flagged: it means an assumption has failed, not that the species is absent.
  • For research and education; not for diagnosis or treatment decisions.
  • Every computed number a reply returns, other than an integer or an exact decimal, is rounded once to 12 significant figures: to the nearest, a change of at most 5 × 10⁻¹² of its value, except that a lower bound is rounded down and an upper bound up, a change of less than 1 × 10⁻¹¹; the method computes, and decides any pass or fail, on the unrounded value.

It will not answer when

  • fewer wavelengths than species.
  • more wavelengths than species: least squares is not offered at this version (no source on the method read).
  • two species or two wavelengths share a label.
  • fewer than 2 or more than 4 species.
Every input, with its units3 inputs
  • pathLength (required): The cell's path length b. Must be above 0 cm.
  • species (required): The absorbing species, 2 to 4.
  • wavelengths (required): The wavelengths: exactly as many as species.
Every refusal, with its code5 refusals
CodeWhen
TOO_FEW_WAVELENGTHSfewer wavelengths than species.
MORE_WAVELENGTHS_THAN_SPECIESmore wavelengths than species: least squares is not offered at this version (no source on the method read).
INVALID_STRINGtwo species or two wavelengths share a label.
OUT_OF_RANGEfewer than 2 or more than 4 species.
MISSING_ARGUMENTa wavelength lacks an ε for a listed species, or gives one for an unlisted species.

The calculation

The method's equations, constants and worked example.

Mixture concentrations from absorbance (additivity of Beer's law, square systems)multicomponent-absorbance@1.0.1

Equation 1

Amix(λ)=Σiεi(λ)·b·Ci
SymbolMeaning
A_mix(λ)decadic absorbance of the mixture at λ, AU
εᵢ(λ)molar (decadic) absorption coefficient, L/(mol·cm)
bpath length, cm
Cᵢmolar concentration, M

Source 1.

Equation 2

n species need absorbances at n wavelengths

the n equations are solved simultaneously

SymbolMeaning
nnumber of species and of wavelengths, two to four
Cᵢmolar concentration of each species, M

Source 1.

Equation 3

ε=A10/(c·l)

the derivation 1 m² = 10⁴ cm² and 1 L = 10³ cm³, so 1 m² mol⁻¹ = 10 L mol⁻¹ cm⁻¹ (exact), is not at this locator, whose note 22 gives only the usual unit

SymbolMeaning
εmolar (decadic) absorption coefficient, L/(mol·cm)
A10decadic absorbance, AU
camount concentration, M
lpath length, cm

Source 2.

A definition, not a model: the equation states what the quantity means. A different convention gives a different number.

Worked example

Worked example: one case of multicomponent-absorbance@1.0.1, from its inputs through each step to the answer. Values are written as a person writes them; the working carries more digits, so your own figure may differ in the last digit shown.

Inputs

  • pathLength = 1 cm
  • species[0].label = X
  • species[1].label = Y
  • wavelengths[0].label = w1
  • wavelengths[0].absorbance = 0.12 AU
  • wavelengths[0].absorptivities[0].species = X
  • wavelengths[0].absorptivities[0].absorptivity = 1000 L/(mol·cm)
  • wavelengths[0].absorptivities[1].species = Y
  • wavelengths[0].absorptivities[1].absorptivity = 100 L/(mol·cm)
  • wavelengths[1].label = w2
  • wavelengths[1].absorbance = 0.1 AU
  • wavelengths[1].absorptivities[0].species = X
  • wavelengths[1].absorptivities[0].absorptivity = 200 L/(mol·cm)
  • wavelengths[1].absorptivities[1].species = Y
  • wavelengths[1].absorptivities[1].absorptivity = 800 L/(mol·cm)

Steps

  1. f = 0.2, from wavelengths; by a rule this method's record does not list as an equation.
  2. pivot = 780, from wavelengths, pathLength, f; by a rule this method's record does not list as an equation.
  3. rhs = 0.076, from wavelengths, f; by a rule this method's record does not list as an equation.
  4. Y = 0.000097435897 M, from pivot, rhs; by equation 2; gives concentrations[1].concentration.
  5. X = 0.00011025641 M, from wavelengths, pathLength, Y; by equation 2; gives concentrations[0].concentration.

The working, as the case writes it:

det = 1000x800 - 100x200 = 780000

CX = (0.12x800 - 100x0.10)/780000 = 86/780000 = 1.10256e-4 M

CY = (1000x0.10 - 200x0.12)/780000 = 76/780000 = 9.7436e-5 M.

Answer

concentrations[1].concentration = 0.000097435897 M

concentrations[0].concentration = 0.00011025641 M

Where these values came from: our own exact-arithmetic script and a hand-worked case; Harvey D. Analytical Chemistry 2.1, LibreTexts (pages last modified 12 September 2021), section 10.2 eq. 10.6 and section 10.3 eqs. 10.1-10.2; exact rationals.

At build the tool returned this answer within the tolerance the file states: relative 1e-12 (absolute 1e-18 below 1e-6); statuses, codes, labels, flags and units exact.

Sources

  1. Harvey D. Analytical Chemistry 2.1, LibreTexts, chapter 10, Spectroscopic Methods; CC BY-NC-SA 4.0, cited and not copied

    Used for: Mixture concentrations from absorbance (additivity of Beer's law, square systems). At: equation 10.6, section Beer's Law and Multicomponent Samples; equation 10.1–10.2 of that section, section Quantitative Analysis of Mixtures.

    Read in full, 10 November 2026
  2. IUPAC, Quantities, Units and Symbols in Physical Chemistry (the Green Book), 3rd ed., 2007 (2nd printing 2012)

    Used for: Mixture concentrations from absorbance (additivity of Beer's law, square systems). At: section §2.7, molar (decadic) absorption coefficient.

    Read in full, 10 November 2026

How it is checked

Level

Checked against a reference.

Checked against

Our own exact-arithmetic script and a hand-worked case.

Cases

No case set is linked to this version.

Not checked

Least squares over more wavelengths than species; ill-conditioning (no sourced threshold); Beer's-law failures (stray or polychromatic light, concentrated solutions, interactions); mass absorptivities and transmittance (not accepted); uncertainty.

Changes to its methods0 changes

No change is logged for these method versions.