Residence time distribution calculator
This residence time distribution calculator takes outlet concentrations from a pulse tracer test, normalizes them into the E(t) curve, and returns the mean residence time, the variance, the tanks-in-series number N and the closed-vessel dispersion number, then predicts the conversion of a first-order reaction from the measured RTD.
E(t), mean residence time and variance from tracer data
Conversion of a first-order reaction from the RTD
How to use the residence time distribution calculator
Inject a short pulse of tracer at the inlet and record the outlet concentration at regular times until the tracer has gone. Paste the pairs into the first panel of the residence time distribution calculator, one pair per line, and pick the time unit. The calculator normalizes the curve into E(t), integrates the moments with the trapezoid rule, and returns the mean residence time tm, the variance σ², the dimensionless variance, the tanks-in-series number and the closed-vessel dispersion number, with a plot of the measured E(t) against the fitted tanks-in-series curve. If you also enter the vessel volume and flow, it compares tm with V/Q to reveal dead volume or bypassing. The second panel uses the same data to predict the conversion of a first-order reaction.
This page analyzes a measured distribution. If you only need the average time from the volume and flow, τ = V/Q, use the Residence Time Calculator instead; the residence time distribution calculator is for the shape of the distribution around that average.
E(t), mean residence time and variance
The residence time distribution calculator follows the standard definitions. After a pulse injection, the exit-age distribution E(t) is the outlet concentration divided by the area under the concentration curve, so that the area under E(t) equals one. The fraction of fluid that has spent between t and t + dt in the vessel is E(t)·dt. Its first moment is the mean residence time and its second central moment is the variance:
The cumulative distribution F(t) = ∫₀t E dt is the fraction that has left by time t; it is what a step tracer test measures directly. Fogler’s course notes on residence time distributions for chemical reactors derive these definitions and the E(t) of the ideal reactors. Because the variance weights the tail with (t − tm)², a residence time distribution calculator is only as good as the tail of the data: stop the test too early and σ² comes out low.
Tanks-in-series and dispersion models
Two one-parameter models, both built into the residence time distribution calculator, turn the variance into a design number. The tanks-in-series model replaces the vessel with N equal ideal stirred tanks; its dimensionless variance is 1/N, so N = tm²/σ². The axial dispersion model superimposes diffusion-like mixing on plug flow, characterized by the vessel dispersion number d = D/(u·L) or its inverse, the Peclet number. For a closed vessel (no dispersion across the inlet and outlet boundaries):
The residence time distribution calculator solves this implicit equation by bisection. For small dispersion (d below about 0.01) it reduces to σθ² ≈ 2d. The table summarizes how the numbers from a residence time distribution calculator map onto reactor behavior.
| Vessel behavior | σθ² | Tanks in series N | Dispersion number d |
|---|---|---|---|
| Ideal plug flow | 0 | ∞ | 0 |
| Small deviation from plug flow | below 0.02 | above 50 | below 0.01 |
| Typical packed bed or long tube | 0.02 – 0.1 | 10 – 50 | about 0.01 – 0.05 |
| Intermediate (like the default data) | about 0.2 – 0.3 | 3 – 5 | about 0.1 – 0.2 |
| Ideal CSTR | 1 | 1 | ∞ |
| Bypassing, dead zones, long tail | above 1 | below 1 | no solution |
Worked example with the residence time distribution calculator
The default data are Fogler’s classic pulse test: outlet concentrations of 0, 1, 5, 8, 10, 8, 6, 4, 3.0, 2.2, 1.5, 0.6 and 0 g/m³ at 0 to 10, 12 and 14 min. With the trapezoid rule, ∫C dt = 50.65 g·min/m³ and the peak of E(t) is 10/50.65 = 0.197 min⁻¹. The moments are tm = 5.13 min and σ² = 5.95 min² (σ = 2.44 min), so σθ² = 5.95/5.13² = 0.226. That gives N = 4.42 tanks in series and, from the closed-vessel equation, d = 0.130, Pe = 7.69. These are the values the residence time distribution calculator shows with its default data.
Fogler integrates the same data with Simpson-type quadrature and reports ∫C dt = 50.0 g·min/m³, tm = 5.15 min and σ² = 6.1 min², hence N = 4.35 and Per ≈ 7.5 (see the Fogler chapter on models for nonideal reactors). The small differences come from the integration rule over the coarse 2-min steps at the end, a good reminder that close sampling matters. With k = 0.25 min⁻¹, the second panel gives 67.5 % by the segregation model, 67.6 % by tanks in series and 67.9 % by dispersion, against 72.2 % for an ideal PFR and 56.2 % for an ideal CSTR of the same mean residence time; Fogler’s values on his rounded moments are 67.7 %, 68.0 %, 72.5 % and 56.3 %.
Diagnosing a vessel with the residence time distribution calculator
Enter the vessel volume and flow in the first panel to use these checks. Dead volume. If tm is clearly shorter than V/Q, part of the vessel does not take part in the flow; the active fraction is roughly tm/τ. Bypassing or channeling. A sharp early peak followed by a long tail, often with σθ² near or above 1, means some fluid short-circuits from inlet to outlet. Plug flow check. A narrow, nearly symmetric peak at t ≈ τ with N above about 20 indicates near plug flow, as expected in turbulent pipes and well-packed beds. Laminar tubes. Laminar flow gives a sharp first appearance at τ/2 and a very long tail, which neither one-parameter model fits well. For packed beds, catalyst beds and long pipes, the tanks-in-series N or the Peclet number from the residence time distribution calculator can be fed straight into the Plug Flow Reactor (PFR) Calculator as a correction to ideal behavior, or compared with the CSTR Volume Calculator result for a fully mixed vessel.
Common mistakes with a residence time distribution calculator
Cutting the tail. Stopping the test while tracer is still coming out underestimates both tm and σ²; the calculator warns when the last reading exceeds 5 % of the peak. Baseline not subtracted. Subtract any background concentration before entering the data, otherwise the tail never reaches zero. Uneven time steps. They are fine (the trapezoid rule handles them), but sample densely around the peak. Step data entered as a pulse. A step test gives F(t); differentiate it first, or use E = dF/dt. Non-first-order kinetics. The second panel of the residence time distribution calculator is limited to first order, because only first-order conversion follows from the RTD alone; for other orders the degree of micromixing matters too.
Related calculators
For the average time alone use the residence time calculator; to size the ideal reactors that these models correct, use the plug flow reactor calculator or the CSTR volume calculator, and check the flow regime with the Reynolds Number Calculator.
- Residence Time Calculator
- Plug Flow Reactor (PFR) Calculator
- CSTR Volume Calculator
- Agitator Power Calculator
- Reynolds Number Calculator
- All chemical engineering calculators
Frequently asked questions
How do you calculate E(t) from tracer data?
For a pulse test, divide each outlet concentration by the area under the concentration-time curve, E(t) = C(t)/∫C dt. The residence time distribution calculator integrates the area with the trapezoid rule, so unequal time steps are handled correctly.
What is the difference between mean residence time and space time?
Space time is V/Q from the vessel volume and flow. The mean residence time t_m is measured from the tracer curve. They are equal for a closed vessel with constant density and no dead volume; t_m shorter than V/Q points to stagnant regions.
How many tanks in series does my reactor correspond to?
N = t_m²/σ², the inverse of the dimensionless variance. N = 1 is a perfect CSTR, and N above about 20 to 50 is close to plug flow. Non-integer N is normal for real vessels.
What is the dispersion number?
The vessel dispersion number D/(u·L) measures axial mixing relative to convection; its inverse is the Peclet number. Zero is plug flow and infinity is a CSTR. The calculator solves the closed-vessel variance equation for it.
Can I use step-input data?
Not directly. A step test gives the cumulative F(t). Differentiate it (E = dF/dt) or take differences between successive points before using the residence time distribution calculator.
Is this residence time distribution calculator free?
Yes. It runs in your browser, needs no sign-up and does not store or send the data you paste.