Interactive

One to four compartments

An interactive tour of one- to four-compartment pharmacokinetic models: their equations, three ways to write their parameters, what each means for exposure, and how variability between people spreads the curve.

10 min read

Most pharmacokinetic models in everyday use are built from the same few pieces: a central compartment that the drug is dosed into, sampled from and eliminated from, and up to three peripheral compartments that exchange drug with it. This post builds them up one compartment at a time, writes each in the three common parameterizations, and shows what they mean for exposure. Every chart is live: the curves are computed in your browser as you move the sliders.

CentralV1PeripheralV2PeripheralV3PeripheralV4k12k21k13k31k14k41k10

The mammillary model. Drug is dosed into, measured in and eliminated from the central compartment (k10k_{10}), which exchanges drug with up to three peripheral compartments (k1jk_{1j} out, kj1k_{j1} back). The one-compartment model is the central box alone; each added peripheral compartment adds a box.

One compartment

After an intravenous bolus dose DD, a one-compartment model declines as a single exponential (1):

C(t)=DV e−kt,k=CLVC(t) = \frac{D}{V}\, e^{-k t}, \qquad k = \frac{CL}{V}

Here CC is the plasma concentration (mg/L), DD the dose (mg), VV the volume of distribution (L), CLCL the clearance (L/h) and kk the elimination rate constant (1/h). The half-life is t1/2=ln⁡2/k=ln⁡2⋅V/CLt_{1/2} = \ln 2 / k = \ln 2 \cdot V / CL, and the area under the curve is AUC0−∞=D/CLAUC_{0-\infty} = D / CL.

The same curve can be written three ways:

Clearance and volume are the usual choice for modelling, because a change in one does not drag the other along. Doubling VV halves kk and doubles the half-life, but leaves CLCL, and so the AUCAUC, unchanged.

View data
Time (h)Current (mg/L)
02
0.51.902
11.81
1.51.721
21.637
2.51.558
31.482
3.51.409
41.341
4.51.275
51.213
5.51.154
61.098
6.51.044
70.9932
7.50.9447
80.8987
8.50.8548
90.8131
9.50.7735
100.7358
10.50.6999
110.6657
11.50.6333
120.6024
12.50.573
130.5451
13.50.5185
140.4932
14.50.4691
150.4463
15.50.4245
160.4038
16.50.3841
170.3654
17.50.3475
180.3306
18.50.3145
190.2991
19.50.2845
200.2707
20.50.2575
210.2449
21.50.233
220.2216
22.50.2108
230.2005
23.50.1907
240.1814

A 100 mg intravenous bolus with one compartment (CL 5 L/h, V 50 L; illustrative values, not a drug). Freeze the curve, then double V: the new curve starts lower and falls more slowly, and AUC₀–∞ stays the same. Switch the parameterization: the values convert and the curve stays put.

Model parameters
Exposure over the plotted window (AUC0–∞ after every dose)
MetricCurrent
Cmax (mg/L)2
Tmax (h)0
AUC0–24 (mg·h/L)18.2
AUC0–∞ (mg·h/L)20
Vss (L)50
t½ (h)6.93

Oral absorption

An oral dose adds a depot compartment that empties into the central one at a first-order rate kak_a (1/h), of which a fraction FF reaches the circulation. The concentration is the Bateman function (3,4):

C(t)=F⋅D⋅kaV (ka−k)(e−kt−e−kat)C(t) = \frac{F \cdot D \cdot k_a}{V \, (k_a - k)} \left( e^{-k t} - e^{-k_a t} \right)

It peaks at tmax=ln⁡(ka/k)/(ka−k)t_{max} = \ln(k_a / k) / (k_a - k), which does not depend on the dose.1

Repeated doses

Linear models add: the concentration after several doses is the sum of the single-dose curves, each shifted to its own dose time. Below, the oral model (kak_a = 1.2 1/h, CL = 5 L/h, V = 50 L) is given 100 mg every 12 h, and the curve builds up one dose at a time.

Repeated oral doses of 100 mg every 12 h. Dotted vertical lines mark the doses given so far.

Dose 1. The first 100 mg dose peaks at 1.60 mg/L, about 2.3 h after the dose. By 12 h the concentration has fallen to 0.66 mg/L, not to zero.

Dose 2. The second dose lands on what is left of the first. The two curves add, so the peak rises to 2.13 mg/L and the trough at 24 h to 0.86 mg/L.

Dose 3. Each dose adds less than the one before, because less of the earlier doses remains: the half-life is ln⁡2/k\ln 2 / k = 6.9 h, so about 30% of a dose is left after one 12 h interval. The peak is now 2.29 mg/L.

Dose 4. The peak is 2.34 mg/L and the trough 0.93 mg/L. The curve in this interval is hard to tell from the one before it.

Dose 5. After 48 h, about seven half-lives, the amount eliminated in each interval nearly equals the dose: peak 2.35 mg/L, trough 0.94 mg/L.

Steady state. With more doses the curve settles between a peak of 2.36 mg/L and a trough of 0.94 mg/L, the dashed lines. That is 1/(1−e−kτ)1/(1 - e^{-k\tau}) = 1.43 times the single-dose trough: the accumulation ratio for τ\tau = 12 h.

At steady state the amount eliminated over a dosing interval τ\tau equals the amount absorbed, so the average concentration depends on clearance alone:

Css,avg=F⋅DCL⋅τC_{ss,avg} = \frac{F \cdot D}{CL \cdot \tau}

Here that is 100 / (5 × 12) = 1.67 mg/L, whatever VV and kak_a are. They set how far the peak and trough swing around it.

View data
Time (h)Current (mg/L)
00
1.751.564
3.51.505
5.251.287
71.083
8.750.9095
10.50.7635
12.251.153
142.126
15.751.927
17.51.635
19.251.375
211.154
22.750.9689
24.51.691
26.252.278
282.018
29.751.707
31.51.434
33.251.204
351.011
36.751.986
38.52.303
40.252.011
421.698
43.751.426
45.51.198
47.251.005
492.161
50.752.285
52.51.976
54.251.666
561.399
57.751.175
59.50.9862
61.252.266
632.252
64.751.933
66.51.628
68.251.367
701.148
71.750.9635
73.52.326
75.252.211
771.888
78.751.589
80.51.334
82.251.12
840.9402

The same model, 100 mg every 12 h for seven doses, with an illustrative target range of 1–3 mg/L. At 100 mg the trough falls just below it. Find a dose that keeps the whole steady-state curve inside: only about 106 to 127 mg does.

Model parameters
Exposure over the plotted window (AUC0–∞ after every dose)
MetricCurrent
Cmax (mg/L)2.36
Tmax (h)73.9
AUC0–84 (mg·h/L)131
AUC0–∞ (mg·h/L)140
Css,avg (mg/L)1.67
Vss (L)50
t½ (h)6.93

Two compartments

When the log concentration falls quickly at first and then more slowly, one compartment is not enough. A peripheral compartment takes up drug while the central concentration is high and returns it later. In amounts A1A_1 (central) and A2A_2 (peripheral):

dA1dt=−(k10+k12) A1+k21 A2dA2dt=k12 A1−k21 A2\begin{aligned} \frac{dA_1}{dt} &= -(k_{10} + k_{12})\,A_1 + k_{21}\,A_2 \\ \frac{dA_2}{dt} &= k_{12}\,A_1 - k_{21}\,A_2 \end{aligned}

with micro-constants k10=CL/V1k_{10} = CL/V_1, k12=Q/V1k_{12} = Q/V_1 and k21=Q/V2k_{21} = Q/V_2, where QQ (L/h) is the intercompartmental clearance. After a bolus the concentration is a sum of two exponentials, with macro-constants AA, BB (mg/L) and α>β\alpha > \beta (1/h) (1):

C(t)=A e−αt+B e−βtC(t) = A\,e^{-\alpha t} + B\,e^{-\beta t} α,β=12[(k10+k12+k21)±(k10+k12+k21)2−4 k10 k21]\alpha, \beta = \tfrac{1}{2}\left[ (k_{10} + k_{12} + k_{21}) \pm \sqrt{(k_{10} + k_{12} + k_{21})^2 - 4\,k_{10}\,k_{21}} \right] A=D (α−k21)V1 (α−β),B=D (k21−β)V1 (α−β)A = \frac{D\,(\alpha - k_{21})}{V_1\,(\alpha - \beta)}, \qquad B = \frac{D\,(k_{21} - \beta)}{V_1\,(\alpha - \beta)}

The conversion runs the other way too. Given a fitted AA, BB, α\alpha and β\beta:

V1=DA+B,k21=Aβ+BαA+B,k10=αβk21,k12=α+β−k21−k10V_1 = \frac{D}{A + B}, \qquad k_{21} = \frac{A\beta + B\alpha}{A + B}, \qquad k_{10} = \frac{\alpha\beta}{k_{21}}, \qquad k_{12} = \alpha + \beta - k_{21} - k_{10}

α\alpha is the distribution phase and β\beta the terminal phase; the terminal half-life is ln⁡2/β\ln 2 / \beta. With CL = 5 L/h, V₁ = 20 L, Q = 10 L/h and V₂ = 80 L, a 100 mg bolus gives A = 4.45 mg/L, α = 0.838 1/h, B = 0.548 mg/L and β = 0.0373 1/h: a distribution half-life of 0.83 h and a terminal half-life of 18.6 h.

View data
Time (h)Current (mg/L)
05
12.454
21.342
30.8505
40.628
50.5221
60.4672
70.4346
80.4119
90.394
100.3783
110.3639
120.3503
130.3374
140.325
150.3131
160.3016
170.2906
180.2799
190.2697
200.2598
210.2503
220.2411
230.2323
240.2238
250.2156
260.2077
270.2001
280.1928
290.1857
300.1789
310.1723
320.166
330.16
340.1541
350.1485
360.143
370.1378
380.1327
390.1279
400.1232
410.1187
420.1143
430.1102
440.1061
450.1022
460.09849
470.09488
480.09141

Two compartments after a 100 mg bolus, on a log axis, written in micro-constants. Switch to macro-constants to see A, α, B and β, and drag them: any positive pair of coefficients with distinct exponents is a valid model.

Model parameters
Exposure over the plotted window (AUC0–∞ after every dose)
MetricCurrent
Cmax (mg/L)5
Tmax (h)0
AUC0–48 (mg·h/L)17.6
AUC0–∞ (mg·h/L)20
Vss (L)100
t½, λ₁ (h)0.827
Terminal t½, λ₂ (h)18.6

Three and four compartments

Each added peripheral compartment adds an exponential phase, C(t)=∑iAi e−λitC(t) = \sum_i A_i\, e^{-\lambda_i t}. The exponents λi\lambda_i solve

k10−λ=∑jk1j λkj1−λk_{10} - \lambda = \sum_j \frac{k_{1j}\,\lambda}{k_{j1} - \lambda}

and its roots interlace the peripheral exit rates kj1k_{j1}: one lies above the largest, one between each neighbouring pair and one below the smallest. So each root can be found in a bracket of its own, which is how the explorers here compute them. Three compartments also have a closed form through the trigonometric solution of the cubic (5), which the site’s tests use as a check. The coefficients are

Ai=DV1 ∏j(kj1−λi)∏m≠i(λm−λi)A_i = \frac{D}{V_1} \, \frac{\prod_j (k_{j1} - \lambda_i)}{\prod_{m \neq i} (\lambda_m - \lambda_i)}

Going back from macro-constants works the same way for any number of compartments (6,7). The central volume is V1=D/∑iAiV_1 = D / \sum_i A_i. The kj1k_{j1} are the roots of ∑iAi∏m≠i(λm−x)\sum_i A_i \prod_{m \neq i} (\lambda_m - x), one between each neighbouring pair of λ\lambda. Then k10=∏iλi/∏jkj1k_{10} = \prod_i \lambda_i / \prod_j k_{j1}, and each k1jk_{1j} follows. Any set of positive coefficients with distinct exponents belongs to exactly one mammillary model, up to the order of its peripheral compartments: the curve cannot tell which peripheral compartment is which, so the explorers number them fastest first.

View data
Time (h)Current (mg/L)
010
21.005
40.6253
60.4383
80.3192
100.2427
120.1932
140.1608
160.1394
180.1249
200.1148
220.1076
240.1022
260.09795
280.09447
300.0915
320.08886
340.08646
360.08421
380.08209
400.08007
420.07812
440.07623
460.0744
480.07262
500.07089
520.0692
540.06755
560.06594
580.06438
600.06285
620.06135
640.05989
660.05847
680.05708
700.05572
720.0544
740.05311
760.05185
780.05061
800.04941
820.04824
840.04709
860.04597
880.04488
900.04381
920.04277
940.04176
960.04076

Three compartments after a 100 mg bolus, written as three exponential phases. Switch to micro-constants or clearance and volume: the curve stays the same.

Model parameters

Coefficients A are for a dose of 100 mg; peripheral compartments are numbered fastest first.

Exposure over the plotted window (AUC0–∞ after every dose)
MetricCurrent
Cmax (mg/L)10
Tmax (h)0
AUC0–96 (mg·h/L)16.6
AUC0–∞ (mg·h/L)20
Vss (L)230
t½, λ₁ (h)0.303
t½, λ₂ (h)3.05
Terminal t½, λ₃ (h)57.6

In practice, data seldom support more than three exponentials. The slowest phase shows only at low concentrations, long after the dose, so it needs sensitive assays and late samples. Three-compartment models are common for anaesthetics such as propofol, where the slow return of drug from fat matters after a long infusion (8).

Exposure

Distribution changes the shape of the curve, not the total exposure. With central elimination, every dose is eventually cleared at the rate CL⋅CCL \cdot C, so AUC0−∞=F⋅D/CLAUC_{0-\infty} = F \cdot D / CL and Css,avg=F⋅D/(CL⋅τ)C_{ss,avg} = F \cdot D / (CL \cdot \tau) hold for any number of compartments. The explorers’ default models all have CL = 5 L/h, so a 100 mg bolus gives each an AUC0−∞AUC_{0-\infty} of 20 mg·h/L. They differ in everything else:

CompartmentsVssV_{ss} (L)Terminal t1/2t_{1/2} (h)Terminal share of AUCDose 4Dose 14
1506.9100%99%100%
210018.673%88%100%
323057.654%70%93%
473025435%57%76%

The last two columns are for 100 mg every 12 h: the AUC over the 4th and the 14th dosing interval, as a share of the AUC over an interval at steady state.

The volume of distribution at steady state, Vss=V1+∑jVjV_{ss} = V_1 + \sum_j V_j, grows with each compartment, and so does the terminal half-life. But the terminal half-life overstates how long it takes to reach steady state when its phase holds only part of the AUC. With four compartments it is over ten days, yet three quarters of the steady-state exposure (the AUC over one interval) is reached within the first week, at dose 14. The last quarter takes weeks.

View data
Time (h)Current (mg/L)
010
140.9197
280.6518
420.5405
560.4846
700.46
8410.45
981.262
1120.9451
1260.7951
1400.7072
1540.6559
16810.63
1821.417
1961.085
2100.9214
2240.8222
2380.7614
25210.72
2661.507
2801.169
2940.9999
3080.8959
3220.8308
33610.79
3501.569
3641.228
3781.056
3920.9494
4060.8818
42010.84
4341.616
4481.272
4621.099
4760.9904
4900.9211
50410.88
5181.652
5321.307
5461.132
5601.023
5740.9521
58810.91
6021.68
6161.335
6301.159
6441.048
6580.9766
6720.9289

Four compartments on 100 mg every 12 h for four weeks, on a log axis. Most of the rise is over in the first few days; the troughs then creep up for weeks. Compare Css,avg with the one-compartment model above: the same dose and clearance give the same 1.67 mg/L.

Model parameters
Exposure over the plotted window (AUC0–∞ after every dose)
MetricCurrent
Cmax (mg/L)10.9
Tmax (h)660
AUC0–672 (mg·h/L)964
AUC0–∞ (mg·h/L)1120
Css,avg (mg/L)1.67
Vss (L)730
t½, λ₁ (h)0.282
t½, λ₂ (h)2.76
t½, λ₃ (h)46.8
Terminal t½, λ₄ (h)254

Variability between people

A model’s parameters describe a typical person. Real people differ, and population models describe that with between-subject variability: each person’s clearance is the typical value times a random factor, CLi=CL⋅eηiCL_i = CL \cdot e^{\eta_i}, where ηi\eta_i is normally distributed with mean 0 and variance ω2\omega^2. That makes CLiCL_i log-normal, with a coefficient of variation of eω2−1\sqrt{e^{\omega^2} - 1}.

The explorer below simulates 1,000 people on the oral regimen from above, at 115 mg, a dose that keeps the typical person inside the 1–3 mg/L range at steady state. The band is where the middle 90% of them are at each time.

View data
Time (h)Typical subject (mg/L)
00
1.751.799
3.51.731
5.251.48
71.245
8.751.046
10.50.878
12.251.325
142.445
15.752.216
17.51.88
19.251.581
211.327
22.751.114
24.51.945
26.252.62
282.32
29.751.963
31.51.649
33.251.385
351.163
36.752.284
38.52.648
40.252.313
421.952
43.751.64
45.51.377
47.251.156
492.485
50.752.628
52.52.272
54.251.916
561.609
57.751.351
59.51.134
61.252.606
632.589
64.752.223
66.51.872
68.251.572
701.32
71.751.108
73.52.675
75.252.543
772.171
78.751.827
80.51.534
82.251.288
841.081

1,000 simulated people on 115 mg every 12 h: the median and the 90% prediction interval, with between-subject variability of 30% on CL, 20% on V and 40% on ka (illustrative). Once at steady state the typical person stays inside the range; many people do not.

The 1,000 subjects are simulated in your browser; until then, the dashed curve is the typical subject.

Typical values and variability

The median of the simulated people need not match the typical person’s curve, because log-normal parameters make the concentrations skewed. Raise the variability on CL and watch the band widen at the trough, where clearance matters most.

How the numbers are made

The curves come from a pharmacokinetic engine written in TypeScript that runs in your browser. Linear models use the closed-form sums of exponentials above, and doses are added by superposition. The population simulation runs in a background thread so the page stays responsive while you drag. The engine is tested against mrgsolve, an established R package for pharmacokinetic simulation, on bolus, infusion and oral doses for one to four compartments, within stated tolerances. How this site is made has more.

Notes

  1. When ka=kk_a = k the formula is 0/00/0; its limit is C(t)=FDk t e−kt/VC(t) = F D k \, t \, e^{-k t} / V. When ka<kk_a < k the formula still holds, but the terminal slope then reflects absorption rather than elimination: “flip-flop” kinetics. ↩

References

1.
Gibaldi M, Perrier D. Pharmacokinetics. 2nd ed. New York: Marcel Dekker; 1982.
2.
Rowland M, Tozer TN. Clinical Pharmacokinetics and Pharmacodynamics: Concepts and Applications. 4th ed. Philadelphia: Lippincott Williams & Wilkins; 2011.
3.
Bateman H. The solution of a system of differential equations occurring in the theory of radioactive transformations. Proceedings of the Cambridge Philosophical Society. 1910;15:423–7.
4.
Gabrielsson J, Weiner D. Pharmacokinetic and Pharmacodynamic Data Analysis: Concepts and Applications. 5th ed. Stockholm: Apotekarsocieteten; 2016.
5.
Abuhelwa AY, Foster DJR, Upton RN. ADVAN-style analytical solutions for common pharmacokinetic models. Journal of Pharmacological and Toxicological Methods. 2015;73:42–8.
6.
Wagner JG. Linear pharmacokinetic equations allowing direct calculation of many needed pharmacokinetic parameters from the coefficients and exponents of polyexponential equations which have been fitted to the data. Journal of Pharmacokinetics and Biopharmaceutics. 1976;4(5):443–67.
7.
Godfrey K. Compartmental Models and Their Application. London: Academic Press; 1983.
8.
Schnider TW, Minto CF, Gambus PL, Andresen C, Goodale DB, Shafer SL, et al. The influence of method of administration and covariates on the pharmacokinetics of propofol in adult volunteers. Anesthesiology. 1998;88(5):1170–82.