PhysSandbox
Classical MechanicsWaves & SoundElectricity & MagnetismOptics & LightGravity & OrbitsLabs
🌙Astronomy & The Sky🌡️Thermodynamics🌍Biophysics, Fluids & Geoscience📐Math Visualization🔧Engineering🧪Chemistry

More from Biophysics, Fluids & Geoscience

Other simulators in this category — or see all 26.

View category →
NewSchool

Oxygen-Hemoglobin Dissociation Curve

Hill-equation Hb saturation vs pO2 with effective P50 shifts from pH, CO2, and temperature; arterial/venous points, Bohr effect, and O2 content.

Launch Simulator
NewUniversity / research

Hodgkin-Huxley / FHN Neuron Network

Multi-node excitable network using FHN reductions of HH dynamics: chain/ring topology, sigmoidal synaptic coupling, propagation delay, pacer-driven waves, and bursting-like activity.

Launch Simulator
NewUniversity / research

Cable Equation on an Axon

1D passive cable ∂V/∂t = D∂²V/∂x² − (V−V_r)/τ + I; compare uniform fiber vs myelinated (higher D in internodes).

Launch Simulator
NewSchool

Coupled FitzHugh–Nagumo Neurons

Two excitable FHN units with diffusive coupling: phase plots, time traces, and synchronization vs coupling strength.

Launch Simulator
NewSchool

Nernst Potentials & Membrane

Nernst E for K⁺ and Na⁺ from inside/outside concentrations; optional Goldman–Hodgkin–Katz resting estimate.

Launch Simulator
NewUniversity / research

Kelvin–Helmholtz Shear Instability

Two parallel flows with slip U: Fourier-mode growth rate sketch and animated interface billows (linear toy model).

Launch Simulator
PhysSandbox

Interactive physics, chemistry, and engineering simulators for students, teachers, and curious minds.

Physics

  • Classical Mechanics
  • Waves & Sound
  • Electricity & Magnetism

Science

  • Optics & Light
  • Gravity & Orbits
  • Astronomy & The Sky

More

  • Thermodynamics
  • Biophysics, Fluids & Geoscience
  • Math Visualization
  • Engineering
  • Chemistry

© 2026 PhysSandbox. Free interactive science simulators.

PrivacyTermsContact
Home/Biophysics, Fluids & Geoscience/Pharmacokinetics: 1-/2-Compartment

Pharmacokinetics: 1-/2-Compartment

This simulator implements a linear intravenous pharmacokinetic compartment model. In the 1-compartment setting, drug enters a central volume V_c, concentration is C=A_c/V_c, and clearance removes drug at rate CL·C. In the 2-compartment setting, a peripheral amount A_p exchanges with the central compartment through intercompartmental clearance Q, creating a distribution phase followed by a slower terminal elimination phase. The dosing input can be a single IV bolus, a zero-order infusion, or repeated doses every τ hours. The plots show central concentration, optional peripheral concentration, target concentration, and input timing. Readouts report terminal half-life, trapezoidal AUC, Cmax and late Cmin, a simple loading-dose estimate, maintenance infusion rate for the selected target, and percent of simulated time above target.

Who it's for: Students in pharmacology, biomedical engineering, physiology, or clinical sciences learning dose-concentration-time relationships and compartment models.

Key terms

  • Pharmacokinetics
  • Compartment model
  • Bolus dose
  • Infusion
  • Clearance
  • Volume of distribution
  • Half-life
  • AUC
  • Loading dose

This is an IV linear PK teaching model. It omits absorption, saturable metabolism, protein binding, organ-specific physiology, and patient variability.

Live graphs

Pharmacokinetics

500 mg
12 h
1.5 h
42 L
4.2 L/h
35 L
5 L/h
8 mg/L
96 h

Central concentration is C = A_c/V_c. Clearance removes drug from the central compartment; in the 2-compartment model Q exchanges drug with a peripheral compartment. Loading dose uses target × apparent Vd.

Measured values

terminal t1/26.9 h
AUC1798 mg·h/L
Cmax / late Cmin30.48 / 10.65 mg/L
loading dose336.0 mg
maintenance rate33.6 mg/h
time above target99%

How it works

Interactive pharmacokinetics compartment model: compare 1- and 2-compartment IV bolus/infusion dosing, concentration-time curves, half-life, AUC, and loading-dose intuition.

Key equations

dA_c/dt = R_in − (CL/V_c)A_c − (Q/V_c)A_c + (Q/V_p)A_p, dA_p/dt = (Q/V_c)A_c − (Q/V_p)A_p, C = A_c/V_c. For one compartment set Q = 0.

Frequently asked questions

Why does the 2-compartment curve often fall in two phases?
After an IV dose, drug first distributes from the central compartment into peripheral tissues, causing a relatively fast drop in central concentration. Later, central and peripheral compartments equilibrate and the terminal slope mainly reflects elimination plus redistribution.
What does loading dose mean here?
The loading-dose readout is target concentration times an apparent volume of distribution. It is a first-order estimate for reaching the target rapidly; real dosing also depends on safety, bioavailability, distribution kinetics, and therapeutic window.
What are the limitations of this model?
It assumes linear IV pharmacokinetics with constant volumes and clearance. It omits absorption, saturable metabolism, protein binding, renal/hepatic physiology, active metabolites, and patient variability.