Skip to content

Non-compartmental analysis of one single-dose concentration–time profile

pk_nca

Works out Cmax, Tmax, AUC, half-life, CL, Vz and MRT from one single-dose concentration-time profile.

Runs
On the server
Level
Checked against a reference: PKNCA 0.12.1 and NonCompart 0.8.4 run offline, with 50-digit arithmetic where they lose digits
Ask your assistant

What it is

Returns Cmax, Tmax, AUC, λz, half-life, CL, Vz and MRT from one single-dose concentration–time profile. Use when concentrations were measured at stated times after one extravascular, bolus or infusion dose; linear or linear-up log-down areas. Not for a stated CL and V: use `pk_one_compartment_parameters`; for a ratio of two AUCs use `pk_bioavailability`; it fits no model and computes no dose. Refuses unsorted times, negative or interior-zero concentrations and mixed mass and molar units; withholds what a weak terminal phase cannot support.

Field: Pharmacokinetics and DMPK.

What it does

You give

  • route (required): How the dose was given, at time 0 of the profile.
  • observations (required): The profile: one time unit and one concentration unit throughout, the dose at time 0.
  • dose (required): The dose given at time 0: mass with a mass concentration, amount of substance with a molar one. Given as mass or amount; no conversion between them is assumed. Must be above 0 mg. Must be above 0 nmol.
  • aucMethod (required): The trapezoid rule for the areas.
  • lambdaZSelection (required): How the terminal points are chosen.
  • extrapolationLimit (required): The largest extrapolated share of AUCinf to report, in (0, 100] %; stated, never defaulted.

and 5 more, listed below

No request is recorded for this tool.

Limits

  • Pharmacokinetics and DMPK: research arithmetic on concentrations, times and parameters you supply; not a dosing, clinical, welfare or diagnostic authority.
  • No tool here outputs or recommends a dose, and no result is a prediction for any person or animal.
  • Non-compartmental arithmetic on one single-dose profile you supply, dose at time 0.
  • λz is an unweighted log-linear fit on points after Cmax (for a bolus, from Cmax on, never the dose-time sample) and, for an infusion, strictly after the end of infusion; it and every value from it depend on the floors and extrapolation limit you stated, which are echoed.
  • A zero is read as zero: values below the limit of quantification are yours to enter, and interior zeros are refused.
  • No baseline correction.
  • Vss is not reported for extravascular dosing; MRT after extravascular dosing includes absorption.
  • Research arithmetic; not a dosing, clinical, welfare or diagnostic authority.
  • 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 than two observations.
  • the observations use more than one time unit or more than one concentration unit.
  • a mass concentration with an amount dose, or a molar concentration with a mass dose: no molar mass is assumed.
  • a limit outside its range: the extrapolation limit not above zero or above one hundred percent, the adjusted r squared floor outside zero to one, or the span ratio floor below zero.
Every input, with its units11 inputs
  • route (required): How the dose was given, at time 0 of the profile.
  • observations (required): The profile: one time unit and one concentration unit throughout, the dose at time 0.
  • dose (required): The dose given at time 0: mass with a mass concentration, amount of substance with a molar one. Given as mass or amount; no conversion between them is assumed. Must be above 0 mg. Must be above 0 nmol.
  • aucMethod (required): The trapezoid rule for the areas.
  • lambdaZSelection (required): How the terminal points are chosen.
  • extrapolationLimit (required): The largest extrapolated share of AUCinf to report, in (0, 100] %; stated, never defaulted.
  • minAdjustedR2 (required): The adjusted-r² floor for the terminal regression, in [0, 1]; a stated 0 withholds λz only when the adjusted r² is negative.
  • minSpanRatio (required): The span-ratio floor for the terminal regression, at or above 0; a stated 0 disables it.
  • lambdaZTimes: The terminal points' times; points mode only, at least three. Optional.
  • infusionDuration: How long the infusion ran; iv_infusion only. Must be above 0 h. Optional.
  • c0Method: How the bolus's C0 is obtained; iv_bolus only. Optional.
Every refusal, with its code19 refusals
CodeWhen
TOO_FEW_OBSERVATIONSfewer than two observations.
UNITS_DIFFER_WITHIN_PROFILEthe observations use more than one time unit or more than one concentration unit.
DIMENSIONS_MIXEDa mass concentration with an amount dose, or a molar concentration with a mass dose: no molar mass is assumed.
LIMIT_OUT_OF_RANGEa limit outside its range: the extrapolation limit not above zero or above one hundred percent, the adjusted r squared floor outside zero to one, or the span ratio floor below zero.
ARGUMENT_NOT_FOR_ROUTEinfusionDuration with a route other than iv_infusion, or c0Method with a route other than iv_bolus.
INFUSION_DURATION_REQUIREDiv_infusion without infusionDuration.
C0_METHOD_REQUIREDiv_bolus without c0Method.
ARGUMENT_NOT_FOR_MODElambdaZTimes with best_fit.
TIMES_NOT_INCREASINGobservation times repeated or not in increasing order.
TIME_BEFORE_DOSEan observation before the dose at time 0.
NEGATIVE_CONCENTRATIONa negative concentration.
NO_POSITIVE_CONCENTRATIONno concentration above 0.
INTERIOR_ZEROa zero between positive concentrations (values below the limit of quantification are the caller's to enter).
NO_OBSERVATION_AT_DOSE_TIMEno observation at time 0 for an extravascular or infusion dose, or for a bolus with observed_at_dose_time.
POSITIVE_AT_DOSE_TIMEa positive concentration at the dose time for an extravascular or infusion dose (no baseline correction in this version).
C0_NOT_POSITIVEobserved_at_dose_time with a concentration of 0 at the dose time.
C0_METHOD_CONFLICTSlog_back_extrapolation with an observation at the dose time.
BACK_EXTRAPOLATION_NOT_FALLINGlog_back_extrapolation where the first two concentrations are not positive and falling.
LAMBDA_Z_POINTS_INVALIDpoints mode without at least three distinct observed times, each with a positive concentration, after Tmax (an infusion's after its end; a bolus's after the dose time).

The calculation

The method's equations, constants and worked example.

Non-compartmental analysis of one single-dose concentration–time profilepk-nca@1.0.1

Equation 1

Cmax and Tmax: the largest observed concentration and the time of its first occurrence

Clast and Tlast: the last positive concentration and its time

Tlag (extravascular only): the time of the last sample before the first positive concentration

SymbolMeaning
Cmaxlargest observed concentration (or in nM), ng/mL
Tmaxtime of its first occurrence, h
Tlaglag time, h

Source 1.

Equation 2

AUClast and AUMClast by the shared trapezoid routine from the dose time to Tlast

AUCall on to the first zero after Tlast. Phoenix's logarithmic AUMC formula image is cut off at its right edge, so the log-down moment term is the record's reading of the visible part, checked numerically against PKNCA 0.12.1, not by the page

SymbolMeaning
AUClastarea under C to Tlast (or in nmol·h/L), ng·h/mL
AUMClastarea under t·C to Tlast, ng·h^2/mL

Source 2.

Equation 3

λz = −slope of the unweighted least-squares line of ln C on t

best fit: the last 3, 4, … eligible points, negative slopes only, the largest adjusted r², and the most points among windows whose adjusted r² is within 1e-4 (absolute) of it

eligible: a positive concentration after Tmax (extravascular), after Tmax and strictly after the end of infusion (infusion), or from Tmax on but never the dose-time sample (bolus), where Tmax is the time of the first occurrence of the largest concentration

a window of equal ln C has slope exactly 0

SymbolMeaning
λzterminal rate constant, 1/h

Source 3.

Equation 4

The infusion window starts strictly after the end of infusion

a bolus's dose-time sample, observed or back-extrapolated, is never in the regression

the adjusted-r² floor is applied before the span-ratio floor

the floors and the limit are compared with a band δ = 1e-10 × max(1, the floor or limit), the accuracy to which these statistics are checked: λz is withheld when the adjusted r² is below minAdjustedR2 by more than δ or, after that, the span ratio is below minSpanRatio by more than δ, and the extrapolated outputs are withheld when %extrapolated is above extrapolationLimit by more than δ

a statistic within δ of a floor or limit, an exact tie included, is accepted

SymbolMeaning
Tinfinfusion duration, h
C0the observation, or the back-extrapolated concentration, at the dose time, ng/mL
δthe band the floors and the limit are compared with

Source not recorded.

Equation 5

r2adj=1−(1−r2)(n−1)/(n−2)
SymbolMeaning
npoints in the regression

Source 3.

Equation 6

t½ = ln 2/λz

span ratio = (last − first λz time)/t½

SymbolMeaning
t½terminal half-life, h

Source 1.

Equation 7

AUCinf = AUClast + C/λz and AUMCinf = AUMClast + Tlast·C/λz + C/λz², with C = Clast (obs) or Clast,pred = exp(intercept − λz·Tlast) (pred)

%extrapolated = 100·(Clast/λz)/AUCinf,obs

SymbolMeaning
Clastlast positive concentration (or in nM), ng/mL
Tlastits time, h

Source 1.

Equation 8

CL (CL/F extravascular) = Dose/AUCinf,obs

Vz(Vz/F)=CL/λz

MRTinf = AUMCinf,obs/AUCinf,obs (an infusion's less Tinf/2

extravascular, including absorption)

Vss = MRTinf·CL (intravenous only)

SymbolMeaning
Dosethe stated dose (or in nmol), mg

Source 1.

Equation 9

Bolus C0: the observation at the dose time, or ln C0 = ln C1 + (t1/(t2 − t1))·ln(C1/C2) from the first two observations, Phoenix's log-linear back-extrapolation

backExtrapolatedPercent = 100·(area from 0 to t1)/AUCinf,obs (Phoenix's AUC_%Back_Ext, NCA parameter formulas). A departure from Phoenix, by ruling: where the first two concentrations are not positive and falling, Phoenix falls back to the first observation as C0, and this method refuses instead with BACK_EXTRAPOLATION_NOT_FALLING (a project choice)

SymbolMeaning
C1first observation, ng/mL
C2second observation, ng/mL

Source 4.

Conventions

  • aucMethod = linear: The linear trapezoid on every interval (and on t·C for the moment).
  • aucMethod = linear_up_log_down: The log trapezoid where the concentration falls and both ends are positive; linear elsewhere.
  • lambdaZSelection = best_fit: The terminal regression chosen by the largest adjusted r² among the last 3, 4, … eligible points, preferring more points within 1e-4.
  • lambdaZSelection = points: The terminal regression on the times the caller names, at least three, all eligible.
  • c0Method = observed_at_dose_time: C0 is the observation at the dose time, which must be positive.
  • c0Method = log_back_extrapolation: C0 is the log-linear back-extrapolation of the first two observations to the dose time; no observation at the dose time.

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 pk-nca@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

  • route = extravascular
  • aucMethod = linear
  • lambdaZSelection = best_fit
  • dose = 10 mg
  • observations[0].time = 0 h
  • observations[0].concentration = 0 ng/mL
  • observations[1].time = 0.25 h
  • observations[1].concentration = 18.4 ng/mL
  • observations[2].time = 0.5 h
  • observations[2].concentration = 41.7 ng/mL
  • observations[3].time = 1 h
  • observations[3].concentration = 66.2 ng/mL
  • observations[4].time = 1.5 h
  • observations[4].concentration = 74.9 ng/mL
  • observations[5].time = 2 h
  • observations[5].concentration = 73.1 ng/mL
  • observations[6].time = 3 h
  • observations[6].concentration = 61.8 ng/mL
  • observations[7].time = 4 h
  • observations[7].concentration = 50.2 ng/mL
  • observations[8].time = 6 h
  • observations[8].concentration = 33.6 ng/mL
  • observations[9].time = 8 h
  • observations[9].concentration = 22.1 ng/mL
  • observations[10].time = 12 h
  • observations[10].concentration = 9.84 ng/mL
  • observations[11].time = 24 h
  • observations[11].concentration = 0.93 ng/mL
  • extrapolationLimit = 100 %
  • minAdjustedR2 = 0
  • minSpanRatio = 0

Steps

  1. auclast = 500.5125 ng·h/mL, from observations; by equation 2; gives aucLast.
  2. aumclast = 2706.654 ng·h²/mL, from observations; by equation 2; gives aumcLast.
  3. lambda-z = 0.1994393 1/h, from observations[5], observations[6], observations[7], observations[8], observations[9], observations[10], observations[11]; by equation 3; gives lambdaZ.rateConstant.
  4. half-life = 3.4754794 h, from lambda-z; by equation 6; gives lambdaZ.halfLife.

The working, as the case writes it:

AUClast = 0.25×(0+18.4)/2 + 0.25×(18.4+41.7)/2 + 0.5×(41.7+66.2)/2 + 0.5×(66.2+74.9)/2 + 0.5×(74.9+73.1)/2 + 1×(73.1+61.8)/2 + 1×(61.8+50.2)/2 + 2×(50.2+33.6)/2 + 2×(33.6+22.1)/2 + 4×(22.1+9.84)/2 + 12×(9.84+0.93)/2 = 40041/80 = 500.5125 ng·h/mL exactly. λz: the last 7 points (2 to 24 h

Cmax 74.9 at 1.5 h excluded)

mean t = 8.428571429 h, mean ln C = 3.022247922, Sxx = 351.7142857, Sxy = -70.14565127

λz = −Sxy/Sxx = 0.199439300929 1/h

t½ = ln 2/λz = 3.475479393 h

Answer

aucLast = 500.5125 ng·h/mL

aumcLast = 2706.654 ng·h²/mL

lambdaZ.rateConstant = 0.1994393 1/h

lambdaZ.halfLife = 3.4754794 h

Where these values came from: an outside program, PKNCA 0.12.1; nca_reference.R (PKNCA 0.12.1, NonCompart 0.8.4) on the arguments. Per output (those with another reference are in checks): aucAll: both programs; aucExtrapolatedPercent: both programs; aucInfObs: both programs; aucInfPred: both programs; aucLast: both programs; aumcInfObs: both programs; aumcInfPred: both programs; aumcLast: both programs; clast: copied observation; clearanceOverF: both programs (NonCompart converting the caller's dose and concentration units); cmax: both programs; copied observation; lambdaZ.adjustedRSquared: both programs; lambdaZ.halfLife: both programs; lambdaZ.points: window by the method's rule, enumerated in this script, equal to PKNCA's; NonCompart's best fit agrees; lambdaZ.rSquared: both programs; lambdaZ.rateConstant: both programs; mrtInfExtravascular: both programs; tlag: both programs; tlast: copied observation; tmax: copied observation; volumeZOverF: both programs (NonCompart converting the caller's dose and concentration units).

At build the tool returned this answer within the tolerance the file states: relative 1e-10 on computed values, absolute 1e-22 below 1e-12 in each output's own unit (no output here is that near zero); copied observations, λz points and times, statuses, withheld rules, codes and units exact.

Sources

  1. Certara, Phoenix 8.4 user documentation, NCA Object: NCA parameter formulas

    Used for: Non-compartmental analysis of one single-dose concentration–time profile. At: section NCA parameter formulas: Cmax, Tmax, Clast, Tlast, Lambda_z, HL_Lambda_z, Rsq_adjusted, Span, AUCINF_obs and _pred, AUC_%Extrap_obs, AUMCINF, CL, Vz, MRTINF, Vss, Tlag, C0 and AUC_%Back_Ext.

    Read in full, 10 November 2026
  2. Certara, Phoenix 8.4 user documentation, NCA Object: Partial area calculation

    Used for: Non-compartmental analysis of one single-dose concentration–time profile. At: section Partial area calculation: the linear trapezoidal rule and the logarithmic trapezoidal rule for AUC and AUMC (formula images); the log rule falls back to linear when C1 <= 0, C2 <= 0 or C1 = C2.

    Read in full, 14 November 2026
  3. Certara, Phoenix 8.4 user documentation, NCA Object: Lambda Z or Slope Estimation settings

    Used for: Non-compartmental analysis of one single-dose concentration–time profile. At: section Best Fit method: at least three points, the largest adjusted R², the larger number of points within 0.0001, a negative slope, Cmax excluded for non-bolus models; section Best Fit method: for each linear regression of ln(y) = intercept + slope · t, an adjusted R² is computed (the formula image after that sentence).

    Read in full, 10 November 2026
  4. Certara, Phoenix 8.4 user documentation, NCA Object: NCA computation rules

    Used for: Non-compartmental analysis of one single-dose concentration–time profile. At: section Inserting initial time points: IV Bolus data (a log-linear regression of the first two data points back-extrapolates C0; the first observed value is used if the slope is >= 0 or either value is zero).

    Read in full, 14 November 2026

How it is checked

Level

Checked against a reference.

Checked against

An outside program, PKNCA, 0.12.1; a reference program this project wrote itself, second implementation (Python 3.13), 2026-11-14, mpmath 1.4.1 at 60 digits on the exact rationals of the input doubles, rounded once; not an outside program.

Cases

No case set is linked to this version.

Not checked

Weighting of the λz regression (unweighted only); sparse sampling, steady state and urine (other tools); rules for values below the limit of quantification beyond refusal; baseline correction; the Phoenix "at or after the end of infusion" window (not offered); an infusion whose Tmax falls after the end of infusion; Phoenix's sequential reading of the 1e-4 tie rule, where it differs from the global one.

What this project's records still lack1 thing
  • The source's location for each equation for pk-nca@1.0.1.
Changes to its methods0 changes

No change is logged for these method versions.