Knowledge Concepts

What Is the SM-2 Algorithm? A Plain-English Guide

The SM-2 algorithm is the mathematical formula that powers Anki and many other spaced repetition systems — it calculates precisely when to show you each flashcard based on how well you recalled it last time.

Back to blogJuly 23, 20268 min read
vthe-sm-2-algorithm-meaningthe-sm-2-algorithm-explainedthe-sm-2-algorithm-definition

The SM-2 algorithm is the scheduling formula developed by Piotr Wozniak in 1987 that calculates when to show you each flashcard next based on how confidently you recalled it. Rate your recall from 0 to 5 after each card; the algorithm adjusts the next review interval up or down accordingly. Cards you know well are reviewed weeks or months from now; cards you struggled with appear tomorrow. SM-2 is the engine behind Anki and most spaced repetition software.

Understanding SM-2 helps you use Anki more effectively — and explains why the rating you give yourself on each card matters so much.


Where the SM-2 Algorithm Comes From

Piotr Wozniak is a Polish researcher who became fascinated with optimizing memory in the mid-1980s. He built the first version of his SuperMemo spaced repetition software in 1985-1986, and the SM-2 algorithm (SuperMemo algorithm version 2) was published in 1987. He published the algorithm publicly, and it became the foundation for virtually all subsequent spaced repetition software.

Wozniak's key insight was that spaced repetition needed a feedback loop: each review's outcome should determine when the next review happens. The Leitner system's fixed box intervals are approximate; SM-2 calculates a mathematically derived interval based on your specific performance history with each card.

The algorithm has been refined since (Wozniak himself developed SM-5, SM-11, FSRS), but SM-2 is what Anki implements and is what most learners encounter in practice.


How the SM-2 Algorithm Works

The core inputs: After reviewing each card, you rate your recall quality on a scale of 0-5:

  • 5: Perfect recall, immediate.
  • 4: Correct, with minor hesitation.
  • 3: Correct, but with significant difficulty.
  • 2: Incorrect, but felt close — you remembered once you saw the answer.
  • 1: Incorrect, and the answer was barely familiar.
  • 0: Complete blackout — no memory of the card.

The core formula: The SM-2 algorithm calculates the next review interval based on:

  1. The ease factor (EF): A per-card multiplier that starts at 2.5 and adjusts up or down based on your rating history. Higher EF = longer intervals (you're remembering it easily). Lower EF = shorter intervals (you're struggling).
  2. The current interval: How many days since the last review.
  3. Your rating: 0-5 on the current review.

The interval calculation:

  • First successful review: 1 day
  • Second successful review: 6 days
  • Subsequent successful reviews: previous interval × EF (rounded to nearest day)

Example with EF = 2.5:

  • Review 1: 1 day
  • Review 2: 6 days
  • Review 3: 15 days (6 × 2.5)
  • Review 4: 37 days (15 × 2.5)
  • Review 5: 93 days (37 × 2.5)

The ease factor adjustment: After each review: EF = EF + (0.1 − (5 − q) × (0.08 + (5 − q) × 0.02)), where q is your rating.

  • Rating 5: EF increases slightly.
  • Rating 4: EF stays roughly the same.
  • Rating 3: EF decreases slightly.
  • Rating 2 or below: card is reset (next interval is 1 day), EF decreases.

In practice: consistently rating cards 4-5 makes their intervals grow quickly. Consistently rating 3 keeps intervals modest. Rating 0-2 resets the card to daily review and reduces the ease factor.


A Worked Example

A student uses Anki to study Spanish vocabulary.

Card: "hablar" (to speak)

Day 1 — First review: Rated 4 (correct with minor hesitation). Next interval: 1 day. EF: 2.5.

Day 2 — Second review: Rated 5 (perfect recall). Next interval: 6 days. EF: 2.6.

Day 8 — Third review: Rated 4 (correct with minor hesitation). Next interval: 15 days (6 × 2.5). EF: 2.5.

Day 23 — Fourth review: Rated 5 (perfect). Next interval: 37 days (15 × 2.5). EF: 2.6.

Day 60 — Fifth review: Rated 3 (correct but struggled). Next interval: 36 days (reduced — EF decreased to 2.4; 37 × 0.98 ≈ 36). EF: 2.4.

The card reappears as intervals grow. Each successful review pushes the next review farther out. A single bad review reduces the ease factor and shrinks the next interval — but doesn't reset the card unless the rating is 0-2.


Why Your Self-Rating Matters So Much

The SM-2 algorithm's quality depends entirely on your rating honesty. Common mistakes:

Rating too high (pressing 4 or 5 when you barely recalled it): This makes the algorithm give you longer intervals than your actual retention supports. Cards disappear from review too quickly. You forget them. On the next review (weeks later): surprised you can't remember it.

Rating too low (pressing 1 or 2 when you clearly recalled it): This resets the card and reduces the ease factor unnecessarily. The card will appear more often than needed. Your daily review load grows; you spend time on cards you already know.

The right calibration:

  • Rate 5 only for immediate, effortless recall with full confidence.
  • Rate 4 for correct recall with slight hesitation (1-2 seconds).
  • Rate 3 for correct recall that required meaningful effort.
  • Rate 2 for incorrect recall where you felt close.
  • Rate 0-1 for genuine inability to recall.

Consistent calibration makes SM-2 work well. Poor calibration undermines its scheduling.


SM-2 vs. Other Scheduling Algorithms

AlgorithmWhere usedHow it differs from SM-2
SM-2Anki (default), many SRS appsSimple, widely adopted, slightly imprecise
SM-5/SM-11SuperMemoMore complex, better models forgetting curves
FSRSAnki (new option)Machine learning model, more accurate than SM-2
Leitner boxesPhysical flashcardsNo calculation — approximate box intervals
DuolingoDuolingo appProprietary, adapted for gamification

For most learners, the difference between SM-2 and more sophisticated algorithms is small compared to the difference between using any spaced repetition vs. not using it. SM-2 is "good enough" for most purposes. FSRS (now available in Anki) produces meaningfully better scheduling at higher card counts.


How to Use SM-2 Effectively in Anki

Start with fewer new cards per day: Anki's default settings add 20 new cards per day. For most learners starting out: 5-10 new cards per day is more manageable. The daily review load grows proportionally to how many cards you've added; starting slowly keeps it sustainable.

Rate honestly: Your self-ratings are the algorithm's only feedback signal. Rate accurately based on the quality and speed of recall, not on how you want the schedule to look.

Don't skip reviews: The SM-2 algorithm's intervals are calculated to keep you just above the forgetting curve. Skipping reviews means cards mature past their optimal review date — you'll forget more before the next review. Missing a few days occasionally is fine; systematic skipping undermines the system.

Use suspension for cards that aren't working: If a card consistently gets rated 1-2 after many reviews: consider why. Maybe the card is too complex (split it into simpler cards). Maybe the question is ambiguous. Suspend and redesign cards that aren't converting to retention, rather than letting them accumulate and inflate your daily load.


Related Concepts

Spaced repetition: The broader principle that SM-2 implements algorithmically — reviewing material at increasing intervals based on retention.

The forgetting curve: SM-2 schedules reviews to happen before the forgetting curve brings retention below a threshold — typically before you fall below 90% retention.

The Leitner system: The manual, pre-digital implementation of spaced repetition. SM-2 replaced it with precise interval calculation.

Anki: The most widely used implementation of SM-2 (with FSRS now available as an alternative).


Frequently Asked Questions

Does Anki still use SM-2? Anki has used SM-2 as its default algorithm since its founding. In recent versions, Anki added FSRS (Free Spaced Repetition Scheduler) as an optional alternative, which many advanced users now prefer for its superior accuracy. SM-2 remains the default and works well for most learners.

Why does Anki's algorithm behave differently than the SM-2 formula describes? Anki implements a variant of SM-2 with some modifications: the button labels (Again, Hard, Good, Easy) map differently from the 0-5 scale, and Anki adds features (learning steps, relearning steps) not in the original SM-2. The core interval-growth logic follows SM-2.

Can I use SM-2 without Anki? Yes. The SM-2 formula is open and well-documented. Any spaced repetition system that calculates intervals based on recall quality and uses an ease factor is implementing SM-2 or a variant. Some learners implement it in spreadsheets; others use alternative apps.


Key Takeaways

  1. The SM-2 algorithm calculates when to show you each card based on how well you recalled it — adjusting intervals up for well-known cards, down for struggling ones.
  2. The ease factor is a per-card multiplier that changes based on your rating history — consistent success grows it; struggling cards shrink it.
  3. Your self-rating (0-5) is the algorithm's only feedback; rate accurately or the scheduling breaks down.
  4. Rating 0-2 resets the card and reduces ease factor; rating 4-5 extends intervals and increases it.
  5. SM-2 is why Anki works — the algorithm ensures you review each card at roughly the optimal time for retention.
  6. Start slow — 5-10 new cards per day is more sustainable than Anki's default 20 for new users.

Conclusion

The SM-2 algorithm is the hidden mechanism that makes spaced repetition effective — and the reason why how you rate your cards matters so much. It's not magic: it's a formula that grows intervals when you succeed and shrinks them when you struggle, keeping each card's review scheduled at roughly the last moment before you'd forget it. Understanding the formula helps you use Anki more deliberately: rate honestly, keep new card counts manageable, and trust the schedule even when the intervals feel surprisingly long.

Try WebSnips free — capture definitions, vocabulary, and concepts from your web research, then convert the key items into Anki cards powered by SM-2, turning your saved reading into durable retention.

Keep reading

More WebSnips articles that pair well with this topic.

Knowledge ConceptsJuly 25, 20268 min read

What Are Intermediate Packets? A Plain-English Guide

Intermediate packets are small, discrete, reusable units of work — an outline, a research summary, a slide deck draft, a set of notes — that can be saved and reused across future projects rather than starting from scratch each time.

vintermediate-packets-meaningintermediate-packets-explainedintermediate-packets-definition
Read article
Knowledge ConceptsJuly 25, 20268 min read

What Is a Bullet Journal? A Plain-English Guide

A bullet journal (BuJo) is an analog organization system created by Ryder Carroll using a dot-grid notebook: rapid logging with bullet symbols, collections (logs, trackers, lists), and migration (intentional task review). It combines daily planner, to-do list, diary, and habit tracker in one notebook.

va-bullet-journal-meaninga-bullet-journal-explaineda-bullet-journal-definition
Read article
Knowledge ConceptsJuly 25, 20269 min read

What Is a KWL Chart? A Plain-English Guide

A KWL chart is a three-column learning organizer: K (What I Know), W (What I Want to Know), L (What I Learned). It activates prior knowledge before learning, sets specific goals, and documents what you actually learned — making the learning process active and self-directed.

vthe-kwl-chart-meaningthe-kwl-chart-explainedthe-kwl-chart-definition
Read article