Sub topic 7
Doubling Time and Half-Life
This chapter assumes you can read the form f(x) = a·b^x, convert a percent rate to a factor (b = 1 ± rate), and apply the exponent laws, including fractional exponents. Logarithms are used lightly here. The chapter on solving for time covers them in full.
The idea: a fixed time to multiply by 2 or by 1/2
An exponential model changes by the same factor over every equal time interval. Two intervals are special because their factors are easy to reason about.
- The doubling time d is the time it takes a growing quantity to double.
- The half-life h is the time it takes a decaying quantity to fall to half.
Both are constants of the model. A quantity with a 3-hour doubling time doubles from 500 to 1000, and it also doubles from 5 million to 10 million, in 3 hours. This follows from the form a·b^x. Multiplying the input by one interval multiplies the output by the same factor, whatever the starting amount.
Writing the model with d or h
If a quantity doubles every d time units, the number of doublings after time t is t/d. Each doubling multiplies by 2, so:
N(t) = N0 · 2^(t/d)
For decay, each half-life multiplies by 1/2:
N(t) = N0 · (1/2)^(t/h)
These match f(x) = a·b^x with a = N0. The exponent is t divided by the interval, and the base is 2 or 1/2. The exponent does not have to be a whole number. After 1.5 half-lives, the exponent is simply 1.5.
| Half-lives elapsed | Fraction remaining | Percent remaining |
|---|---|---|
| 0 | 1 | 100% |
| 1 | 1/2 | 50% |
| 2 | 1/4 | 25% |
| 3 | 1/8 | 12.5% |
| 4 | 1/16 | 6.25% |
| 10 | 1/1024 | about 0.098% |
Decay never reaches zero in this model. After ten half-lives only about a thousandth is left, but some always remains. This is the horizontal asymptote at y = 0 seen earlier.
Worked example: bacteria
A culture starts with 500 cells and doubles every 3 hours. After 12 hours there are four doublings: 500 · 2^(12/3) = 500 · 16 = 8000. After 10 hours the exponent is 10/3, so N = 500 · 2^(10/3) ≈ 5039.68. A model like this allows fractional doublings. It gives a value between the 4-doubling and 3-doubling counts, which is what you want for a continuous approximation.
Worked example: a drug in the body
A 200 mg dose has a half-life of 6 hours. After 9 hours, the exponent is 9/6 = 1.5, so N = 200 · (1/2)^1.5 ≈ 70.71 mg. After 18 hours (three half-lives) exactly 25 mg remain.
Connecting d and h to the factor b
The model N0 · 2^(t/d) can be rewritten as N0 · (2^(1/d))^t. Comparing with a·b^t gives:
- Growth: b = 2^(1/d)
- Decay: b = (1/2)^(1/h)
For the bacteria, b = 2^(1/3) ≈ 1.2599. The culture grows by about 26% per hour, even though "doubles every 3 hours" sounds like a different kind of statement. For the 8-day half-life, b = 0.5^(1/8) ≈ 0.9170, so the sample loses about 8.3% per day.
Going the other way, you start from b and solve for the interval. For growth, b^d = 2, so:
d = ln 2 / ln b
For decay, b^h = 1/2, so:
h = ln(1/2) / ln b = −ln 2 / ln b
Both logarithms in the decay formula are negative when 0 < b < 1, so h comes out positive. You can use natural logarithms or common logarithms. The ratio is the same as long as both use the same base.
Computing d and h in code
The conversion formulas translate directly into short functions.
import math
def doubling_time(b):
"""Time units for a quantity with growth factor b > 1 to double."""
return math.log(2) / math.log(b)
def half_life(b):
"""Time units for a quantity with decay factor 0 < b < 1 to halve."""
return math.log(0.5) / math.log(b)
print(round(doubling_time(1.05), 2)) # 14.21
print(round(half_life(0.95), 2)) # 13.51
# From an interval back to a factor
print(round(2 ** (1 / 3), 4)) # 1.2599 (doubling every 3 hours)
print(round(0.5 ** (1 / 8), 4)) # 0.917 (half-life of 8 days)A 5% growth rate per period doubles the quantity in about 14.21 periods, not 20. A tempting linear guess says "5% of the starting value per period, so 100% takes 20 periods". That guess ignores that each 5% is taken of a larger and larger amount.
The rule of 70
Doing logarithms by hand is slow, so there is a mental shortcut. For a growth rate of r percent per period, the doubling time is roughly 70 / r. It comes from ln 2 ≈ 0.693 and the fact that ln(1 + r) ≈ r when r is small. You can compare it with the exact value.
import math
for rate in (1, 5, 10, 20):
exact = math.log(2) / math.log(1 + rate / 100)
rule = 70 / rate
print(f"{rate}%: exact {exact:.2f}, rule {rule:.2f}")
# 1%: exact 69.66, rule 70.00
# 5%: exact 14.21, rule 14.00
# 10%: exact 7.27, rule 7.00
# 20%: exact 3.80, rule 3.50The rule is good for rates up to about 10% and drifts as the rate grows. For decay, the same shortcut works with the loss rate, but it is less accurate, so use the exact formula when the answer matters.
Solving for time at any target
The doubling time and half-life are the easy cases. The general question is "when does the quantity reach a given target?". Set N0 · (1/2)^(t/h) equal to the target and take logarithms of both sides:
t = h · ln(target / N0) / ln(1/2)
The same expression works for growth if you replace 1/2 with 2 and h with d. Using the drug example, the time to fall from 200 mg to 30 mg is 6 · ln(30/200) / ln(0.5) ≈ 16.42 hours.
import math
def time_to_target(n0, target, interval, base):
"""Time for n0 * base ** (t / interval) to reach target.
Use base=0.5 with a half-life, or base=2 with a doubling time."""
return interval * math.log(target / n0) / math.log(base)
# Drug: 200 mg, half-life 6 h
print(round(200 * 0.5 ** (9 / 6), 2)) # 70.71 mg after 9 h
print(round(time_to_target(200, 25, 6, 0.5), 2)) # 18.0 h (three half-lives)
print(round(time_to_target(200, 30, 6, 0.5), 2)) # 16.42 h
# Bacteria: 500 cells, doubling every 3 h
print(round(500 * 2 ** (10 / 3), 2)) # 5039.68 cells after 10 h
print(round(time_to_target(500, 100000, 3, 2), 2)) # 22.93 h to reach 100,000The last result is 3 · ln(200) / ln 2 ≈ 22.93 hours. This is a little under 8 doublings (2^8 = 256 times the start would be 128,000), which is a useful sanity check. Reaching 200 times the starting amount sits between 7 doublings (128×) and 8 doublings (256×), so the time should be between 21 and 24 hours.
The e form
You will often see decay written as N0 · e^(−kt) instead of N0 · (1/2)^(t/h). The two are the same model with k = ln 2 / h. The number k is the continuous decay rate, covered in the chapter on e. The interval and the rate carry the same information, and you can switch freely.
import math
N0, h = 100.0, 8.0
k = math.log(2) / h
print(round(k, 4)) # 0.0866
print(round(N0 * math.exp(-k * 24), 6)) # 12.5The value k ≈ 0.0866 is not the same as the 8.3% per-period loss computed earlier. The per-period loss is 1 − b, measured over a full time unit. The continuous rate k is the rate in the exponent. They are close for small rates and diverge as rates grow.
Common errors
- Mismatched units. If the half-life is 8 days and t is in hours, convert one of them first. The exponent t/h must be dimensionless.
- Inverting the exponent. Writing (1/2)^(h/t) instead of (1/2)^(t/h) gives results that grow when they should shrink as t increases. Check that the value moves in the right direction as t grows.
- Treating two half-lives as total decay. After one half-life, half remains. After two, a quarter remains, not zero.
- Using the linear shortcut. "5% per period, so 20 periods to double" is wrong because the base changes each period. Use ln 2 / ln b.
- Using the rule of 70 at large rates. At 20% it is already off by almost 10%. Use the logarithm formula.
- Reading b as the rate. For doubling every 3 hours, b is 1.26, so the hourly growth rate is 26%, not 200% or 67%.
Practice
Exercise
A culture starts with 250 cells and doubles every 4 hours. How many cells are there after 10 hours? What is the hourly growth factor b?
Show answer
The exponent is 10/4 = 2.5, so N = 250 · 2^2.5 ≈ 250 · 5.657 ≈ 1414 cells. The hourly factor is b = 2^(1/4) ≈ 1.189, which is about 18.9% growth per hour.
Exercise
A sample has a half-life of 12 years. What percent of it remains after 30 years?
Show answer
The exponent is 30/12 = 2.5. The fraction remaining is (1/2)^2.5 ≈ 0.1768, so about 17.7% remains.
Exercise
A population grows by 3% per year. Find its doubling time with the exact formula, then compare with the rule of 70.
Show answer
Exact: d = ln 2 / ln 1.03 ≈ 0.6931 / 0.02956 ≈ 23.45 years. The rule of 70 gives 70 / 3 ≈ 23.33 years, which is close.
Exercise
A medicine has a half-life of 5 hours. A dose of 80 mg is taken. After how many hours do 10 mg remain, and after how many hours do 15 mg remain?
Show answer
For 10 mg, 80 · (1/2)^(t/5) = 10 means the quantity has halved three times (80 → 40 → 20 → 10), so t = 15 hours. For 15 mg, t = 5 · ln(15/80) / ln(0.5) ≈ 5 · 2.415 ≈ 12.07 hours.