
Smoking roughly halves it. Oral contraceptives, pregnancy and liver disease lengthen it, and some medicines do too. In one study the half-life was 10.7 hours in women taking oral contraceptives against 6.2 hours in those who were not. Genes matter as well, through the liver enzyme CYP1A2. If you are in a slow group, an 8 to 10 hour cutoff is safer than 6.
Set your cutoff
Pick your usual bedtime and subtract 8 hours: that is your last coffee
Count tea, cola, energy drinks, pre-workout and chocolate
If you wake early or sleep lightly, move the cutoff 2 hours earlier
Switch to decaf after the cutoff; it still has a few mg
Keep a coffee nap before 15:00