Pharmacokinetic NCA Calculator
Operator: Abdulla Al Fahad. How tools are built and checked
A concentration-time profile becomes a handful of numbers that regulators and colleagues compare: how high it peaked, how long the drug stayed, how much exposure it produced and how fast the body clears it. Non-compartmental analysis gets there with trapezoids and one straight line on a log plot, with no model of the body assumed.
Give the page one row per sample with a subject, a time and a concentration, and it reports Cmax, Tmax, AUC to the last sample and to infinity, the terminal rate constant and half-life, MRT and, when a dose is known, clearance and volume, for every subject and as group statistics.
It covers extravascular and IV bolus dosing. Infusions, steady state and urine data are not handled.
It is meant for research, teaching and checking the numbers in a study report. Do not use its output to choose or change a dose for a patient; that is a clinical decision, and regulated submissions are expected to use validated software.
Key features
- Linear trapezoid or linear-up / log-down AUC, with AUMC calculated by the matching rule
- Terminal slope chosen from the last 3 or more points after Tmax by best adjusted R², with a tolerance of 0.0001 that favours more points, and a per-subject override of where the slope starts
- t½, AUC0-inf from observed and predicted Clast, percent extrapolated, MRT, CL/F and Vz/F (CL and Vz for IV), C0 by back-extrapolation and Vss for IV bolus
- Below-limit values from BLQ, <0.5 or an LLOQ you set, with three rules for handling them
- Flags for slopes with a low adjusted R², for more than 20% of AUC extrapolated, and for a slope spanning under two half-lives
- Mean, SD, CV, geometric mean and geometric CV, median, min and max by group, and a semi-log chart that shows the terminal fit
- Subject and summary CSVs and a workbook with a settings sheet
How concentrations are read, how AUC and the terminal slope are calculated
The table is long: one row per sample, with a subject column, a time column from 0 upward and a concentration column. A group column and a dose column are optional; a dose column holds one dose per subject, and a single dose for everyone can be typed instead. Rows with a negative time are ignored and counted, two rows at one time for one subject are an error, and negative concentrations are rejected. A concentration such as 1,050 is read with the comma as a thousands separator (1050), like the time and dose columns, and the page notes how many cells were read that way; 12,5 and 0,62 are read as decimals.
A concentration cell can be a number, BLQ or BQL, a value written as <0.5, or blank, NA or ND. Values under an LLOQ you enter are treated as below the limit. With the default rule a below-limit value before Tmax becomes 0 and one after Tmax is left out; the other rules turn all of them into 0 or leave all of them out.
For extravascular dosing a zero at time 0 is added when the profile starts later, unless you switch that off. For IV bolus, C0 is the concentration at time 0 if there is one, or the log-linear back-extrapolation from the first two positive points, and AUC then starts from C0.
How it works
AUC is summed over the intervals up to the last positive concentration. The linear rule uses the trapezoid on every interval. Linear-up / log-down uses the trapezoid while the concentration rises and, on falling intervals where both values are positive, the log-trapezoid (C1 - C2) x dt / ln(C1 / C2), which suits an exponential decline.
The terminal slope is a least-squares line of ln concentration on time over the last n points after Tmax, for every n from your minimum up to all of them. The fit with the largest adjusted R² wins, and a fit within 0.0001 of it with more points is preferred. The rate constant λz is the negative slope, and t½ is ln 2 / λz.
AUC0-inf is AUC to the last sample plus Clast / λz, using the observed Clast, and also the value predicted by the fitted line. AUMC adds Clast x Tlast / λz + Clast / λz², and MRT is AUMC0-inf over AUC0-inf.
Clearance is dose over AUC0-inf, the volume Vz is dose over λz x AUC0-inf, and for an IV bolus Vss is CL x MRT. With an extravascular route these are CL/F and Vz/F, because bioavailability is unknown.
When to use it
- A toxicokinetics group with 6 rats per dose level needs Cmax, AUC0-t and t½ for each group, with geometric means because exposure is log-normal.
- A student on a pharmacokinetics course reproduces a textbook IV bolus calculation and checks that CL is dose over AUC and Vz is dose over λz x AUC.
- A scientist sees a flagged 38% extrapolated AUC for a rat whose last sample came too early, and decides to report AUC0-t only for that animal.
- A pharmacist with a CSV of 30 BLQ-containing profiles chooses 'zero before Tmax, missing after' and sets the LLOQ at 0.5 ng/mL so values below it are counted as below the limit.
Inputs
- Drop the table or paste it, or load the Theoph data, and confirm the subject, time and concentration columns.
- Choose the route and the AUC rule, and give a dose column or one dose.
- Set how below-limit values are handled and the fewest terminal points.
- Read the subject table and its flags, then pick a subject to see its terminal fit.
- Download the subject table, the group summary or the workbook.
Worked example
The Theoph dataset: 12 subjects, oral theophylline (dose in mg/kg), concentration in mg/L, linear-up / log-down
Subject,Dose,Time,Conc
1,4.02,0,0.74
1,4.02,0.25,2.84
1,4.02,0.57,6.57
1,4.02,1.12,10.5
...
1,4.02,24.37,3.28Subject 1 and the 12-subject summary
Subject 1: Cmax 10.5 at 1.12 h, AUC0-t 147.23, λz 0.04846 per h from the last 3 points (adjusted R² 0.9999995), t½ 14.30 h, AUC0-inf 214.92 (31.5% extrapolated, flagged), CL/F 0.01870 L/h/kg, Vz/F 0.3860 L/kg
All 12 subjects: Cmax mean 8.759 (SD 1.473), median Tmax 1.135 h, AUC0-t geometric mean 98.65 (geometric CV 22.5%), t½ mean 8.180 h (SD 2.115)
With the linear rule, subject 1's AUC0-t is 148.92 and AUC0-inf 216.61Tips for best results
- Look at the amber points on the chart. If the slope includes a point that is still in the distribution phase, move the start later with Terminal slope starts at.
- Use the linear rule only if your protocol or the reference you are matching asks for it; log-down is more accurate for an exponential decline and the two usually differ by a few percent.
- A span of the terminal slope shorter than two half-lives, flagged on the page, usually means the sampling stopped too early for a reliable AUC0-inf.
Limits
A fixed LLOQ treats every concentration under it as below the limit, including a genuine measurement that happens to be small, so enter it only if the assay report says so.
CL/F and Vz/F depend on the dose units. With the dose in mg/kg and concentration in mg/L the clearance comes out in L/h/kg, but the page only labels units and does no conversion.
AUC0-t ends at the last positive concentration, so subjects with different last sampling times have AUC0-t over different intervals and are not strictly comparable.
Geometric means and CVs need every value above 0; a subject with Tmax of 0 or a parameter of 0 leaves them blank.
Common errors and how to fix them
- Subject "7" has two rows at time 2.
- Each subject can have only one concentration at a time. Remove or average the duplicate, or give the replicates different subject labels.
- Subject "3" has fewer than 2 measurable concentrations.
- After below-limit values are handled, fewer than two positive concentrations remain. Check the BLQ rule and the concentration column.
- The adjusted R-squared limit must be from 0 up to (not including) 1.
- Enter a decimal such as 0.7. Slopes whose adjusted R² is below it are rejected and the parameters that need λz are left blank.
- Subject "4" has 1,200 observations; the limit is 1,000 per subject.
- The terminal-slope search refits every window after Tmax, so work grows with the square of the sample count. Thin dense sampling, or split a long record into separate profiles.
- The table has 210,000 rows; the limit is 200,000.
- Split the table by study or analysis, or drop sampling rows that are not part of the profile.
Best practices
- State the AUC rule, the rule for below-limit values and the terminal-slope criterion alongside the parameters you report.
- Report Tmax as a median and range, and exposure as geometric mean and CV.
- Keep a note of every subject whose terminal slope you overrode and why.
Frequently asked questions
What can I check the Theoph and IV bolus results against?
Three things you can reproduce. A mono-exponential profile C = 10 e^(-0.1 t) given as an IV bolus returns C0 10, λz 0.1, AUC0-inf 100, AUMC0-inf 1000, MRT 10, CL 1 and Vz 10 for a dose of 100, which are the exact values. The Theoph data are R's datasets::Theoph, and an independent implementation of the same rules (linear-up / log-down trapezoids, the best adjusted R² slope with the 0.0001 tolerance) written separately from this page agrees with it on all 12 subjects to rounding error, including the 14.30 h half-life and 214.92 AUC0-inf of subject 1. Finally, the trapezoid sums are simple enough to check in a spreadsheet from the profile. Other NCA programs can differ in the slope-selection rule or in how below-limit values are set, so compare those settings before comparing numbers.
Why does my AUC differ from another program's?
The usual causes are the AUC rule (linear versus log-down), how below-limit values are set, and whether a zero at time 0 was added. Match those three first.
Can I fix the terminal slope for one subject?
Yes. Pick the subject, then choose the first time to include under Terminal slope starts at. The table of candidate fits shows what each choice gives, and an override is used even if its adjusted R² is below the limit.
Does it do steady state or infusion data?
No. It handles single extravascular doses and IV boluses, and reports AUC from time 0 rather than over a dosing interval.
Is a subject excluded if the slope fails?
No. Cmax, Tmax, AUC0-t and the other parameters that do not need λz are still reported, and the page notes why the rest are blank.