# Two-compartment intravenous bolus macro and micro constants, each from the other, version 2.0.2

pk-two-compartment-constants\@2.0.2: this version's equations with their symbols, each constant's value, their sources and whether each was read, a worked example where the record holds one, its level and what it was checked against, the number of cases, and what was not checked. This version's record is not rewritten; a correction is added under Changes.

## What this page can and cannot show

**Level: Checked against a reference; Bourne's Basic Pharmacokinetics, ch. 19, forms; numerical forms, Q and V2 our derivation; IV bolus only. Reference kind: our own exact-arithmetic script and a hand-worked case.**

Checked by this project, not independently reviewed. Every method on this page has its equations, constants, sources and cases on record, and its cases agree with the stated reference within the stated tolerance. A reader can follow each method's worked example by hand; that shows the stated method gives the stated answer for one set of inputs, and does not test the code. The other cases and their values are not printed, so a reader cannot re-run these checks. No independent scientist has yet reviewed them.

[Every version of this method](https://www.drybench.com/methods/m/pk-two-compartment-constants) · [Every method](https://www.drybench.com/methods/m) · [What the levels mean](https://www.drybench.com/methods/levels)

## Version 2.0.2

**Level: Checked against a reference; Bourne's Basic Pharmacokinetics, ch. 19, forms; numerical forms, Q and V2 our derivation; IV bolus only. Reference kind: our own exact-arithmetic script and a hand-worked case.** `pk-two-compartment-constants@2.0.2`

Built, not hosted. Generated from a snapshot of the library's records taken on 2026-11-25, as committed on 2026-11-25. A later snapshot replaces this one, so these records and this page can change.

**Verification statement:** The forward forms (quadratic, A and B) and the inverse relations (k21, k10, k12, V1, Vss) are as stated in Bourne's open textbook Basic Pharmacokinetics, chapter 19, read 17 November 2026 at its equation images, hashes in the record; the phase half-lives apply its ln 2 = kel·t½ to α and β. The numerically stable forms, Q and V2 are our derivation from them. Values are computed on the decimals given (precision as stated). No outside comparison was used. Every output compared with a second implementation in Python by a separate agent of the same model family (44 cases, 27 at the edges).

From the macro constants (A, α, B, β) of C(t) = A·e^(−αt) + B·e^(−βt) after a bolus, the micro constants and volumes, and from the micro constants the macro ones, by the closed form.

- **How results are reported:** Each value is read as its shortest decimal times its unit's exact factor and converted once to a working double. From the macro constants, α − β is the exact difference of the stated decimals, rounded once; from the micro constants, the discriminant is formed as (k10 + k12 − k21)² + 4·k12·k21, with k10 + k12 − k21 = (CL + Q)/V1 − Q/V2 the exact difference of the stated decimals, rounded once, and α − β its square root; every other step is double arithmetic in the numerical forms stated, within 1e-15 relative of the exact value on the stated decimals.
- **Uncertainty:** Exact relations within an assumed two-compartment bolus model; no uncertainty is propagated from the inputs.
- **Reference, as its record states it:** exact arithmetic at 80 digits with an eigen-decomposition cross-check, scripts of the project's own, and a second implementation in Python by a separate agent of the same model family
- **Level confirmed by this project's ruling of** 17 November 2026

[What this page can and cannot show](#what-this-page-can-and-cannot-show)

### What was checked

61 cases in 2 files, linked by this exact version.

Run through the tool at build against our own exact-arithmetic script and a hand-worked case: 48 agree within the tolerance the file states, 13 refuse as the case expects, 0 differ, 0 were not run.

- **File 1, 44 cases**
  - **Where the expected values came from:** our own exact-arithmetic script and a hand-worked case
  - **Recorded on:** 2026-11-14
  - **Reference:** second implementation by a fresh agent (Python 3.13), 2026-11-14; licence BSD-3-Clause
  - **Tolerance as the file states it:** every number relative 1e-15 (absolute 1e-30 below 1e-15, in each value's unit); statuses, codes and units exact

- **File 2, 17 cases**
  - **Where the expected values came from:** our own exact-arithmetic script and a hand-worked case
  - **Recorded on:** 2026-11-14
  - **Reference:** mpmath with fractions.Fraction, 1.3.0; licence BSD-3-Clause
  - **Tolerance as the file states it:** relative 1e-10 on every quantity, absolute 1e-20 below 1e-10 in the same unit; statuses, codes and units exact

Apart from the worked example, the cases and their values are not printed here. This shows agreement with this project's recorded cases. It does not show that a method suits your work, and it is not a qualification.

### What was not checked

Infusion and oral parameterisations (not offered); molar doses (not offered in 1.0.0); whether a two-compartment model describes the caller's data. A constant that is above 0 on the stated values but comes out as exactly 0, subnormal or outside the double range (B from a tiny Q, whose k12·k21 underflows) is refused as RESULT\_OUTSIDE\_DOUBLE\_RANGE, never served as 0. So is a constant formed through an intermediate that is above 0 on the stated values but comes out 0, subnormal or outside the double range (k12·k21, k10·k21, the smaller coefficient term, c0 and its products with the two terms; from the macro constants A·B and the products of k12's numerator and denominator), even where the constant itself is normal: it would carry fewer digits than stated. No reordering is attempted.

### Definition or model

A closed form: the result follows from the inputs by the equations alone.

### Equations

**Equation 1**

```equation
dA1/dt = −(k10 + k12)·A1 + k21·A2
dA2/dt = k12·A1 − k21·A2
A1(0) = dose, A2(0) = 0
C = A1/V1
from the micro form given, k10 = CL/V1, k12 = Q/V1 and k21 = Q/V2
```

| Symbol | Meaning and unit |
| --- | --- |
| CL | clearance, L/h |
| Q | intercompartmental clearance, L/h |
| V2 | peripheral volume, L |
| A1 | amount in the central compartment, mg |
| A2 | amount in the peripheral compartment, mg |
| k10 | elimination rate constant, 1/h |
| k12 | rate constant from central to peripheral, 1/h |
| k21 | rate constant from peripheral to central, 1/h |
| V1 | central volume, L |
| C | central concentration, mg/L |

Source: Bourne DWA. Basic Pharmacokinetics, online textbook (boomer.org/c/p4), Chapter 19, Multi-Compartment Pharmacokinetic Models, p. Chapter 19, page 2 (Intravenous Administration), section as stated in Bourne: Figure 19.2.1 (the scheme: central X1 and peripheral X2 linked by k12 and k21, elimination kel from X1) and Equation 19.2.1, dX1/dt = −kel·X1 − k12·X1 + k21·X2 (image Ch195.gif, SHA-256 06f8de991f16e60a90b9df11320d50722ad10f194f2e5cbca1803eb44eda4b33), kel being this record's k10; the peripheral equation, read from the scheme, A1(0) = dose, A2(0) = 0, C = A1/V1 and k10 = CL/V1, k12 = Q/V1, k21 = Q/V2 are the record's statement of that model (Clearance = V1·kel is printed on Chapter 19, page 5, Eq. 19.5.2), the online textbook as retrieved on 17 November 2026, each page last modified 28 July 2024 by its footer; the hash is of the page's HTML as retrieved, whose rotating promotional footer differs on a re-fetch; the equation images, hashed in the locator, do not; read in full on 2026-11-17 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning bf57edb35779. Free to read (free to read at boomer.org; Copyright 2001-2026 David W. A. Bourne; the site states its material should be used for educational or self-study purposes only; no reuse licence (read and hashed, never vendored)), checked 2026-11-17. No erratum found (searched the pages as retrieved: the site has no errata or corrections channel), 2026-11-17.

**Equation 2**

```equation
α = (S + √(S² − 4P))/2 and β = P/α, with S = k10 + k12 + k21 and P = k10·k21
```

| Symbol | Meaning and unit |
| --- | --- |
| α | fast exponent, 1/h |
| β | slow exponent, 1/h |
| S | sum of the exponents, 1/h |
| P | product of the exponents, 1/h^2 |

Source: Bourne DWA. Basic Pharmacokinetics, online textbook (boomer.org/c/p4), Chapter 19, Multi-Compartment Pharmacokinetic Models, p. Chapter 19, page 2 (Intravenous Administration), section as stated in Bourne: α + β = kel + k12 + k21 and α·β = kel·k21 (the page's text) and Equation 19.2.5, α, β = ((α + β) ± √((α + β)² − 4·α·β))/2, α taking + so that α > β (image Ch196.gif, SHA-256 aeff2576ee77bfa734cf06e513aed440827d7265e375ae1e13f5b3235cfb9c4b); β = P/α is the record's numerical form, from the printed product α·β = kel·k21, the online textbook as retrieved on 17 November 2026, each page last modified 28 July 2024 by its footer; the hash is of the page's HTML as retrieved, whose rotating promotional footer differs on a re-fetch; the equation images, hashed in the locator, do not; read in full on 2026-11-17 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning bf57edb35779. Free to read (free to read at boomer.org; Copyright 2001-2026 David W. A. Bourne; the site states its material should be used for educational or self-study purposes only; no reuse licence (read and hashed, never vendored)), checked 2026-11-17. No erratum found (searched the pages as retrieved: the site has no errata or corrections channel), 2026-11-17.

**Equation 3**

```equation
A = (dose/V1)·(α − k21)/(α − β)
B = (dose/V1)·(k21 − β)/(α − β), with (α − k21)(k21 − β) = k12·k21
```

| Symbol | Meaning and unit |
| --- | --- |
| A | fast coefficient, mg/L |
| B | slow coefficient, mg/L |
| dose | the bolus dose, mg |
| V1 | central volume, L |

Source: Bourne DWA. Basic Pharmacokinetics, online textbook (boomer.org/c/p4), Chapter 19, Multi-Compartment Pharmacokinetic Models, p. Chapter 19, page 2 (Intravenous Administration), section as stated in Bourne: Equation 19.2.2, Cp = A·e^(−α·t) + B·e^(−β·t) (image Fig1907.png, SHA-256 7e0dd1bc3d8441b28b9d1b5130ce0847e2d70c5fd6605df0a472cf61ee474e9b), Equation 19.2.3 (Fig3023.gif, SHA-256 b9008a830e1157fab461b90925a5bb2a12f334d4324c74921a923c591422c6a3) and Equation 19.2.4, A = Dose·(α − k21)/(V1·(α − β)) and B = Dose·(k21 − β)/(V1·(α − β)) (Ch197.gif, SHA-256 79c9c4fcc4bd09c32b0214a3e7d98b1b36509ae617e263774d6145307a44fb5b; Ch198.gif, SHA-256 81c14a65c301a262444efe00aefa5cdafe5882bcd9ed9b525976a6cb8ab5f629); the identity (α − k21)(k21 − β) = k12·k21 is the record's derivation, the online textbook as retrieved on 17 November 2026, each page last modified 28 July 2024 by its footer; the hash is of the page's HTML as retrieved, whose rotating promotional footer differs on a re-fetch; the equation images, hashed in the locator, do not; read in full on 2026-11-17 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning bf57edb35779. Free to read (free to read at boomer.org; Copyright 2001-2026 David W. A. Bourne; the site states its material should be used for educational or self-study purposes only; no reuse licence (read and hashed, never vendored)), checked 2026-11-17. No erratum found (searched the pages as retrieved: the site has no errata or corrections channel), 2026-11-17.

**Equation 4**

```equation
V1 = dose/(A + B)
k21 = (A·β + B·α)/(A + B)
k10 = α·β/k21
k12 = α + β − k21 − k10 = A·B·(α − β)²/((A + B)²·k21)
CL = k10·V1
Q = k12·V1
V2 = Q/k21
Vss = V1 + V2
```

| Symbol | Meaning and unit |
| --- | --- |
| k10 | elimination rate constant from the central compartment, 1/h |
| k12 | central-to-peripheral rate constant, 1/h |
| k21 | peripheral-to-central rate constant, 1/h |
| CL | clearance, L/h |
| Q | intercompartmental clearance, L/h |
| V2 | peripheral volume, L |
| Vss | steady-state volume, L |

Source: Bourne DWA. Basic Pharmacokinetics, online textbook (boomer.org/c/p4), Chapter 19, Multi-Compartment Pharmacokinetic Models, p. Chapter 19, page 3 (Parameter Determination), section as stated in Bourne: Equation 19.3.6, k21 = (A·β + B·α)/(A + B), kel = α·β/k21 and k12 = α + β − k21 − kel (images Ch1914.jpg, SHA-256 ddcfe853b693cea253d36a720145b9a8b93471c19fba178406c31569bb0225e4; Ch1915.jpg, SHA-256 acefd83ec83ff8fae1391990e1bb520e93ab3cd8ba7055f88feeccb60421c04c; Ch1916.jpg, SHA-256 0cd9e70f75bf98273775258ff82c8c43e52bde77362bd7dad8a715bbe68fbf02); and on Chapter 19, page 5 (c19/c1905.php, its HTML as retrieved SHA-256 4e99d7e9f8ecf2016c9a6e64d1483b1a96250e179a998a8efd581857b4773520), V1 = Dose/(A + B) (Eq. 19.5.1, Ch1916.gif, SHA-256 6e190ba6737181fe12323219b6b80949847cef9f74a477ec1abc3bc45e3ffc60), Clearance = V1·kel (Eq. 19.5.2, Eqn1952.png, SHA-256 5354525891bde310b08b4a6085c24d53e70eef0c0bc79f04782f885ad4a472f4) and Vss = V1·(k12 + k21)/k21 (Eq. 19.5.3, Ch1919.gif, SHA-256 9debba0d67a906b228dfb797ce816b264f99c54bd2de29a8a4dfddf9bc42a06b). Q = k12·V1, V2 = Q/k21, Vss = V1 + V2 (the printed Vss rearranged) and k12 = A·B·(α − β)²/((A + B)²·k21) are the record's derivation, checked line by line in this project's scientific review, the online textbook as retrieved on 17 November 2026, each page last modified 28 July 2024 by its footer; the hash is of the page's HTML as retrieved, whose rotating promotional footer differs on a re-fetch; the equation images, hashed in the locator, do not; read in full on 2026-11-17 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning 0e5c9c346d3e. Free to read (free to read at boomer.org; Copyright 2001-2026 David W. A. Bourne; the site states its material should be used for educational or self-study purposes only; no reuse licence (read and hashed, never vendored)), checked 2026-11-17. No erratum found (searched the pages as retrieved: the site has no errata or corrections channel), 2026-11-17.

**Equation 5**

```equation
t½,α = ln 2/α
t½,β = ln 2/β
```

| Symbol | Meaning and unit |
| --- | --- |
| t½,α | half-life of the fast phase, h |
| t½,β | half-life of the slow phase, h |

Source: Bourne DWA. Basic Pharmacokinetics, online textbook (boomer.org/c/p4), Chapter 4, One Compartment IV Bolus, p. Chapter 4, page 10 (Half-life of Elimination), section as stated in Bourne: Equation 4.10.4, ln2 = kel·t½ (image Fig040804.png, SHA-256 6d26d2ea52e1918837baff9f1dab22f67b5b91566e18a59b5d267a12006935a0), the half-life of a first-order process; applied by the record to α and β (Chapter 19, page 3 names 0.693/β the terminal half-life), the online textbook as retrieved on 17 November 2026, each page last modified 28 July 2024 by its footer; the hash is of the page's HTML as retrieved, whose rotating promotional footer differs on a re-fetch; the equation images, hashed in the locator, do not; read in full on 2026-11-17 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning 0fbba450225d. Free to read (free to read at boomer.org; Copyright 2001-2026 David W. A. Bourne; the site states its material should be used for educational or self-study purposes only; no reuse licence (read and hashed, never vendored)), checked 2026-11-17. No erratum found (searched the pages as retrieved: the site has no errata or corrections channel), 2026-11-17.

### Constants

Constants: none used.

### Worked example

Worked example: one case of pk-two-compartment-constants\@2.0.2, 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**

- given = micro
- dose = 100 mg
- clearance = 3 L/h
- centralVolume = 10 L
- intercompartmentalClearance = 6 L/h
- peripheralVolume = 40 L

**Steps**

1. k10 = 0.3 1/h, from clearance, centralVolume; by equation 4; gives micro.k10.
2. k12 = 0.6 1/h, from intercompartmentalClearance, centralVolume; by equation 4; gives micro.k12.
3. k21 = 0.15 1/h, from intercompartmentalClearance, peripheralVolume; by equation 4; gives micro.k21.
4. sum = 1.05 1/h, from k10, k12, k21; by equation 2.
5. product = 0.045 1/h², from k10, k21; by equation 2.
6. alpha = 1.0052343 1/h, from sum, product; by equation 2; gives macro.alpha.
7. beta = 0.044765682 1/h, from product, alpha; by equation 2; gives macro.beta.
8. A = 8.904344 mg/L, from dose, centralVolume, alpha, beta, k21; by equation 3; gives macro.A.
9. B = 1.095656 mg/L, from dose, centralVolume, alpha, beta, k21; by equation 3; gives macro.B.
10. alpha-half-life = 0.68953792 h, from alpha; by equation 5; gives macro.alphaHalfLife.
11. beta-half-life = 15.483896 h, from beta; by equation 5; gives macro.betaHalfLife.
12. vss = 50 L, from centralVolume, peripheralVolume; by equation 4; gives micro.steadyStateVolume.

The working, as the case writes it:

```equation
k10 = 0.3, k12 = 0.6, k21 = 0.15 1/h
α + β = 1.05, αβ = k10·k21 = 0.045
α, β = (1.05 ± √(1.1025 − 0.18))/2 = (1.05 ± 0.96046864)/2 = 1.00523432, 0.04476568 1/h
A = (dose/V1)(α − k21)/(α − β) = 10 × 0.85523432/0.96046864 = 8.904344 mg/L
B = 10 − A = 1.095656 mg/L
```

**Answer**

- `micro.k10` = **0.3 1/h**
- `micro.k12` = **0.6 1/h**
- `micro.k21` = **0.15 1/h**
- `macro.alpha` = **1.0052343 1/h**
- `macro.beta` = **0.044765682 1/h**
- `macro.A` = **8.904344 mg/L**
- `macro.B` = **1.095656 mg/L**
- `macro.alphaHalfLife` = **0.68953792 h**
- `macro.betaHalfLife` = **15.483896 h**
- `micro.steadyStateVolume` = **50 L**

Where these values came from: our own exact-arithmetic script and a hand-worked case; closed form at 50 digits (quadratic for α, β = αβ/α, A = (dose/V1)(α − k21)/(α − β)); mpmath.eig on the rate matrix agrees within 5.9e-81 relative.

At build the tool returned this answer within the tolerance the file states: relative 1e-10 on every quantity, absolute 1e-20 below 1e-10 in the same unit; statuses, codes and units exact.

Who worked this case: not recorded.

### What it refuses, and its input ranges

- `INPUTS_NOT_THE_STATED_SET`: the quantities supplied are not exactly the set \`given\` names Next: State exactly the quantities that given names, and leave the others out.
- `ALPHA_NOT_ABOVE_BETA`: α is not above β: α is the larger exponent by convention, and α = β is not a two-compartment solution Next: Give the larger exponent as alpha and the smaller as beta; if they are equal, the curve is a single exponential: use pk\_one\_compartment\_parameters.
- `CENTRAL_VOLUME_NOT_POSITIVE`: A + B is not positive, so V1 = dose/(A + B) is not a volume Next: Check the signs of the coefficients A and B; their sum must be positive.
- `NO_POSITIVE_MICRO_CONSTANTS`: A or B is not positive: with α > β > 0 and A + B > 0, every micro constant is positive exactly when A > 0 and B > 0, since k21 − β = B(α − β)/(A + B) and α − k21 = A(α − β)/(A + B); A = 0 or B = 0 is a single exponential Next: Check the coefficients; if one is zero or negative the curve is not a two-compartment bolus curve, and a single exponential goes to pk\_one\_compartment\_parameters.

### Changes

No correction is logged for pk-two-compartment-constants\@2.0.2.

## Tools that use it

- [`pk_two_compartment_constants`](https://www.drybench.com/methods/tools/pk-two-compartment-constants)

## Cite this version

Two-compartment intravenous bolus macro and micro constants, each from the other. Drybench; pk-two-compartment-constants\@2.0.2; [https://www.drybench.com/methods/m/pk-two-compartment-constants/2.0.2](https://www.drybench.com/methods/m/pk-two-compartment-constants/2.0.2) (accessed \[date\]).
