How to Build a Habit of Taking Medicine: A Step-by-Step System
To build a habit of taking medicine, attach it to a behavior you already do automatically (your anchor), keep the medication visible, and use a timed SMS reminder for the first 90 days while the habit forms. The reminder does the work until the habit is strong enough to self-sustain — which takes most people 60–90 days of consistent behavior. After that, the reminder becomes a backup rather than the primary trigger.
Why Medication Habits Are Hard to Form
Medication habits face a specific neurological challenge: unlike habits with immediate sensory rewards (coffee, exercise, food), medication adherence has delayed or invisible benefits. Blood pressure pills don't feel like they're working. Statins don't produce a detectable daily effect. Antidepressants take weeks to show results.
Habits form through reward loops. The loop: cue → routine → reward. Medication habits have a clear cue (time of day, reminder) and a clear routine (taking the pill) but a weak or absent immediate reward. This is why willpower-based approaches fail — the brain doesn't reinforce the behavior the way it reinforces pleasurable habits.
The workaround: borrow the reward from an anchor habit. By attaching medication to coffee (which has an immediate pleasure reward), you piggyback on the coffee habit's established loop rather than building a new one.
Step 1: Choose Your Anchor Behavior
An anchor behavior is an existing daily habit that:
- Happens at approximately the same time each day
- Has a clear physical trigger
- Requires no decision to initiate (it's already automatic)
Good medication anchors:
| Anchor | When it works |
|---|---|
| Morning coffee or tea preparation | Morning medications |
| Brushing teeth (morning) | Morning medications |
| Eating breakfast | Morning medications requiring food |
| Eating lunch | Midday medications |
| Brushing teeth (evening) | Bedtime medications |
| Getting into bed | Nighttime medications |
| Removing shoes after work | Evening medications |
Poor anchors:
- "When I wake up" (variable time)
- "Before dinner" (variable time and location)
- "When I get to work" (travel disrupts it)
Choose the anchor that most closely matches your medication's prescribed timing window.
Step 2: Implement the Habit Stack
The habit stack formula: "After I [anchor behavior], I will [take my medication]."
Write this down explicitly. Make it physical — write it on a sticky note attached to your coffee maker or medicine cabinet:
After I start the coffee brewing, I take the lisinopril and vitamin D from the counter.
The written instruction creates a cognitive shortcut during the formation period — you read it, your brain maps the action, and over time the anchor cue directly triggers the medication behavior without reading.
The goal isn't to remember to take your medication. The goal is to make forgetting impossible.
Step 3: Place Medication Visibly at the Anchor Point
Physical placement is as important as the habit stack.
- Coffee drinker → pill bottle next to the coffee maker
- Toothbrush anchor → pill bottle on the bathroom counter, not in the cabinet
- Breakfast anchor → pill bottle on the table where you eat
The medication needs to be in your visual field at the moment your anchor behavior triggers. Out of sight means you can go through the anchor (pour the coffee) and still forget the medication because nothing physical reminded you.
If you're concerned about medication appearance for guests: a small dish or decorative container works fine for most medications. The goal is visual accessibility, not display.
Step 4: Set SMS Reminders for the Formation Period
During the 60–90 day habit formation window, SMS reminders serve as a safety net — they catch the days when you're distracted, traveling, or your routine is disrupted.
Set up your reminders in YouGot:
Text me every morning at 8:30 AM to take my escitalopram with breakfast — same time every day matters for this one.
Ping me on the 20th of every month to refill the prescription before I run out — pharmacy is on autodial.
Set these to fire 10–15 minutes before your anchor behavior so you're prompted before, not after, the automatic behavior sequence starts.
Step 5: Track Consistency for 90 Days
Tracking serves two purposes during habit formation:
- Accountability: seeing a streak of checkmarks creates a loss-aversion motivation ("I don't want to break the streak")
- Pattern identification: tracking reveals which days and situations cause misses, so you can adjust
Tracking tools:
- A simple paper calendar with an X for each day taken
- A weekly pill organizer (empty compartment = took it; full compartment = missed)
- A habit-tracking app like Streaks or Habitica
After 90 days, review your tracking. If you have fewer than 5 misses in 90 days, the habit is likely established. If you have more than 10 misses, identify the pattern — are misses clustered around weekends? Travel? Specific life disruptions? — and adjust the system.
Handling Common Disruptions
Weekends: many medication habits break on weekends because the anchor behavior changes (no work routine). Set an explicit weekend anchor — Saturday coffee still happens, but you may start it later. The reminder timer protects you during this transition.
Travel: keep a dedicated travel pill case in your toiletry bag permanently. Don't pack medication for each trip — have a permanent small supply ready to go. For international travel, ask your doctor about managing time zone changes with time-critical medications.
Illness: being sick often disrupts routine most. This is when the SMS reminder is most valuable — it fires regardless of how you feel or what your normal routine looks like.
Starting a new medication: the anchor system may not yet be established. Use the reminder as the primary trigger for the first 30 days rather than waiting for the habit to form before adding a reminder.
The 90-Day Maintenance Transition
After 90 days of consistent behavior:
- The anchor habit is now a reliable trigger for the medication habit
- Keep the SMS reminder running, but downgrade its role to a backup
- Review the reminder message to ensure it still reflects the correct dose and medication
- Schedule a 6-month medication audit: review all medications with your pharmacist to confirm doses, interactions, and relevance
The reminder doesn't need to stop — it just shifts from primary driver to safety net. Many long-term patients keep their reminders running indefinitely and treat them as a daily habit maintenance tool rather than a crutch.
Ready to get started? YouGot works for Health — see plans and pricing or browse more Health articles.
Frequently Asked Questions
How long does it take to build a habit of taking medicine?
Research on habit formation, including a widely cited 2010 study by Phillippa Lally at University College London, found that habits take 18–254 days to become automatic, with an average of 66 days. For medication habits, 60–90 days of consistent behavior is a realistic target. External reminders are most valuable during this formation period — as the habit solidifies, the reminder becomes a backup rather than a primary trigger.
What is habit stacking for medication?
Habit stacking for medication means attaching the new habit (taking medicine) to an existing automatic behavior (the anchor). Common anchors: morning coffee preparation, brushing teeth, eating breakfast, or going to bed. The formula is: 'After I [anchor habit], I will take my medication.' The existing habit becomes the trigger, leveraging the neurological pathway already established by the anchor behavior instead of building a new one from scratch.
What should I do if I missed a dose?
When you miss a dose, check the medication's instructions or package insert — the guidance varies by drug type. For most daily medications: if you remember within 12 hours of the missed dose, take it then and continue your normal schedule. If it's closer to your next dose, skip the missed one and don't double up. Never double-dose without consulting your pharmacist or prescriber. Set your next reminder to also include a missed-dose protocol message for future reference.
Does the timing of medication really matter for habit building?
Consistent timing matters both pharmacologically and behaviorally. Pharmacologically, many medications (thyroid medications, blood pressure drugs, antidepressants) work best when plasma levels are stable, which requires consistent timing. Behaviorally, variable timing prevents habit formation — your brain can't automate a behavior that happens at different times. Picking one specific time and committing to it for 90 days is the foundation of any successful medication habit.
How do I build a medication habit when I travel frequently?
Frequent travelers need a travel-proof anchor: a behavior that happens at the same time regardless of location. Morning coffee is better than 'when I wake up at 7 AM' because coffee happens in hotel rooms too. Keep a small travel pill case in your toiletry bag permanently (not just when packing for travel) so the medication is always with you. Set your SMS reminder to your home time zone and convert manually while traveling, or use a timezone-aware app like YouGot to set the reminder in your destination's local time.
Never Forget What Matters
Set reminders in plain English (or any language). Get notified via push, SMS, WhatsApp, or email.
Try YouGot Free →Frequently Asked Questions
How long does it take to build a habit of taking medicine?▾
Research on habit formation, including a widely cited 2010 study by Phillippa Lally at University College London, found that habits take 18–254 days to become automatic, with an average of 66 days. For medication habits, 60–90 days of consistent behavior is a realistic target. External reminders are most valuable during this formation period — as the habit solidifies, the reminder becomes a backup rather than a primary trigger.
What is habit stacking for medication?▾
Habit stacking for medication means attaching the new habit (taking medicine) to an existing automatic behavior (the anchor). Common anchors: morning coffee preparation, brushing teeth, eating breakfast, or going to bed. The formula is: 'After I [anchor habit], I will take my medication.' The existing habit becomes the trigger, leveraging the neurological pathway already established by the anchor behavior instead of building a new one from scratch.
What should I do if I missed a dose?▾
When you miss a dose, check the medication's instructions or package insert — the guidance varies by drug type. For most daily medications: if you remember within 12 hours of the missed dose, take it then and continue your normal schedule. If it's closer to your next dose, skip the missed one and don't double up. Never double-dose without consulting your pharmacist or prescriber. Set your next reminder to also include a missed-dose protocol message for future reference.
Does the timing of medication really matter for habit building?▾
Consistent timing matters both pharmacologically and behaviorally. Pharmacologically, many medications (thyroid medications, blood pressure drugs, antidepressants) work best when plasma levels are stable, which requires consistent timing. Behaviorally, variable timing prevents habit formation — your brain can't automate a behavior that happens at different times. Picking one specific time and committing to it for 90 days is the foundation of any successful medication habit.
How do I build a medication habit when I travel frequently?▾
Frequent travelers need a travel-proof anchor: a behavior that happens at the same time regardless of location. Morning coffee is better than 'when I wake up at 7 AM' because coffee happens in hotel rooms too. Keep a small travel pill case in your toiletry bag permanently (not just when packing for travel) so the medication is always with you. Set your SMS reminder to your home time zone and convert manually while traveling, or use a timezone-aware app like YouGot to set the reminder in your destination's local time.