🎮 How to Use
- Type a habit name and click + Add.
- Each day, click Mark today to keep your streak going.
- Saved locally in your browser. No login needed.
About the Habit Tracker
A habit tracker is a deceptively simple piece of technology: a calendar, a list of habits, and a daily yes-or-no check mark. Behind it sits decades of behaviour-change research from BF Skinner's operant conditioning through Charles Duhigg's The Power of Habit (2012) and James Clear's Atomic Habits (2018), all converging on one finding: visible streaks of consistent action change behaviour more reliably than motivation, willpower, or goal-setting alone. The wall-calendar Jerry Seinfeld used in the late 1980s to write jokes every day is the prototype; this browser tool is the digital equivalent that fits in a tab.
You list the habits you want to install (read 30 minutes, walk 10000 steps, study Spanish, meditate, no alcohol), tick them off each day, and the tool tracks current streak and all-time best. Data lives in browser localStorage, so it persists across sessions on the same device without a signup, account, or server.
How the tracker works
The core mechanic is a single binary decision per habit per day. The tool turns that into three displayed numbers:
- Today's check. Did you do the habit today? One click toggles yes/no.
- Current streak. The number of consecutive days, counting back from today, that you marked complete. Missing any day in the chain resets this to zero.
- Best streak. The longest unbroken chain you have ever achieved on this device. Resets are remembered as separate runs, so the best streak is preserved.
The interface intentionally hides everything else. No graphs, no points, no weekly summaries. Behaviour-change researchers at the University of Pennsylvania (2019, Milkman et al.) found that complex gamification often backfires; the most effective habit tools show only the immediate next action and the streak.
Worked example: 90-day reading habit
Suppose you want to read for 30 minutes daily for 90 days. With a 5 percent miss probability per day (a realistic estimate after the novelty wears off):
- Probability of any single 90-day run with zero misses: 0.9590 = about 1 percent. Almost nobody achieves a perfect run.
- Expected longest streak over 90 days at 95 percent compliance: roughly 25 to 40 days (geometric distribution).
- Total compliant days over 90: 90 × 0.95 = 85.5 days. The habit lands 85 of 90 times.
- Most likely path: a 32-day streak, a one-day miss, a 50-plus day streak. That delivers the same total minutes of reading as a perfect 90-day chain.
- Practical takeaway: the goal is not zero misses, it is high compliance. A 50-day streak after one miss is a success, not a failure.
How long until a habit feels automatic?
| Habit type | Median days to automaticity (Lally 2009) | Range |
|---|---|---|
| Drink water at breakfast | ~20 days | 18 to 30 |
| Daily 10-minute walk after dinner | ~40 days | 30 to 80 |
| Eat fruit with lunch | ~60 days | 40 to 120 |
| 50 sit-ups in the morning | ~90 days | 60 to 200 |
| Complex multi-step routine | 120+ days | up to 254 |
Source: Lally et al., European Journal of Social Psychology, 2009. The 21-day figure widely cited online is a misattributed Maxwell Maltz quote from 1960 and is not supported by modern research.
Common pitfalls
- Too many habits at once. BJ Fogg's Stanford lab recommends one to three habits maximum. Five or more shares willpower across all of them and lowers each one's success rate.
- All-or-nothing thinking. Missing one day resets the streak counter but not the habit's biology. Researchers found a single missed day has no measurable effect on automaticity. The risk is two consecutive misses, not one.
- Habits that are too vague. "Exercise" is hard to track. "Do ten push-ups after brushing my teeth" is binary, anchored, and trackable.
- No anchor. Fogg's behaviour model requires an existing routine as a trigger. Habits floating in the day without an anchor have a much lower install rate.
- Streak shame. A long streak feels too valuable to lose, leading to one-day cheats (reading two minutes counts as 30) that hollow the habit. The streak should track real behaviour, not loophole behaviour.
- Lost data when switching devices. localStorage is per-browser per-device. The streak does not sync to your phone. Take a periodic screenshot if cross-device continuity matters.
Frequently asked questions
What is the don't-break-the-chain technique?
Don't break the chain is a habit-formation method popularised in 2007 by comedian Jerry Seinfeld in an interview with software developer Brad Isaac. The rule is simple: every day you perform the habit, mark an X on a wall calendar; over time the Xs form a chain. The only goal each day is to not break that chain. The technique works because the cost of breaking a 30-day streak feels enormous, while the cost of one more X is tiny, biasing you toward consistency.
How long does it take to form a new habit?
The popular 21-day figure is a myth: it traces back to plastic surgeon Maxwell Maltz's 1960 book Psycho-Cybernetics and was an observation about patient adaptation, not a universal habit timeline. The most-cited modern study is Phillippa Lally's 2009 work at University College London which followed 96 volunteers and found habit automaticity takes a median of 66 days, with a range from 18 to 254 days depending on habit complexity. Drinking a glass of water at breakfast formed faster than doing 50 sit-ups.
How are inputs stored in this habit tracker?
The tracker uses browser localStorage, which is a small key-value store inside your browser tied to the 3tej.com domain. Data persists across sessions on the same device and browser, but it does not sync to a server, to other devices, or to other browsers on the same device. Clearing site data, using private or incognito mode, or switching browser will lose the streak. Export by screenshotting periodically if you want a permanent record.
What happens if I miss a day?
The tracker calculates the current streak as the number of consecutive days marked complete up to today. Missing one day breaks the chain and resets the current streak to zero, but the all-time best streak is preserved separately. Researchers at the British Journal of General Practice in 2012 noted that missing one day has no measurable impact on long-term habit formation, so the psychological reset is more punitive than the biology requires. Treat the reset as a nudge, not a failure.
How many habits should I track at once?
Behaviour-change researcher BJ Fogg at Stanford recommends starting with one to three habits, each anchored to an existing daily routine (after I brush my teeth, I will floss). Trying to install five or more simultaneous habits dramatically lowers the success rate of each, because willpower is a shared resource. Once a habit feels automatic, usually after two to three months, you can stack a new one on top of it.
