LearnShardsLearnShards

SM-2 Algorithm: The Science Behind Spaced Repetition

How a decades-old algorithm revolutionized the way we learn and remember information

LearnShards TeamFebruary 1, 20258 min read

Introduction

Have you ever crammed for an exam only to forget everything a week later? You're not alone. Research in cognitive science has shown that our brains are not designed for marathon study sessions. Instead, they thrive on a technique called spaced repetition — reviewing information at strategically increasing intervals.

At the heart of modern spaced repetition systems lies the SM-2 algorithm, created by Piotr Woźniak in 1987. This elegant algorithm calculates the optimal time to review each piece of information, ensuring that you remember it just as you're about to forget. In this article, we'll explore how SM-2 works, why it's so effective, and how LearnShards uses it to supercharge your learning.

What is SM-2?

SM-2 (SuperMemo 2) is a spaced repetition algorithm developed by Piotr Woźniak at the University of Technology in Poznań, Poland. It was the second iteration of his SuperMemo algorithm family and quickly became the most widely adopted version due to its simplicity and effectiveness.

Unlike simple flashcard systems where you review cards randomly, SM-2 uses your performance on each card to calculate a personalized review schedule. Cards you find easy are shown less frequently, while difficult cards appear more often until you master them.

Core Concepts

  • Easiness Factor (EF): A number (minimum 1.3) representing how easy a card is for you. Higher values mean easier cards with longer intervals.
  • Repetition Number (n): How many times you've successfully recalled the card in a row.
  • Inter-repetition Interval (I): The number of days before the next review, calculated based on EF and n.
  • Quality Score (q): Your self-rated recall quality from 0 (complete blackout) to 5 (perfect response).

How SM-2 Works

The SM-2 algorithm is elegant in its simplicity. After each review, you rate your recall quality, and the algorithm adjusts two things: the easiness factor (how quickly intervals grow) and the next review interval.

The Quality Rating Scale

After reviewing a card, you rate your recall on a scale from 0 to 5:

ScoreMeaningDescription
0Complete blackoutNo memory of the answer whatsoever
1IncorrectWrong answer, but remembered upon seeing it
2IncorrectWrong answer, but it felt familiar
3CorrectCorrect with significant difficulty
4CorrectCorrect after some hesitation
5PerfectInstant, confident recall

The Easiness Factor Formula

After each review, the easiness factor is recalculated using this formula:

EF' = EF + (0.1 - (5 - q) × (0.08 + (5 - q) × 0.02))

Where:

  • EFCurrent easiness factor (starts at 2.5)
  • qQuality score (0–5)
  • EF'New easiness factor (minimum 1.3)

Interval Calculation

The interval between reviews depends on the repetition number:

RepetitionFormulaExample
1st reviewI(1) = 1Review after 1 day
2nd reviewI(2) = 6Review after 6 days
3rd+ reviewI(n) = I(n-1) × EFIf EF = 2.5 and last interval was 6 → next is 15 days

Worked Example

Let's trace through a card with an initial EF of 2.5:

  1. Day 1: You study the card for the first time. Next review: Day 2 (1 day later).
  2. Day 2: You rate it a 4 (correct with hesitation). EF becomes 2.5 + (0.1 - 1 × 0.1) = 2.5. Next review: Day 8 (6 days later).
  3. Day 8: You rate it a 5 (perfect). EF becomes 2.5 + 0.1 = 2.6. Next review: Day 24 (6 × 2.6 ≈ 16 days later).
  4. Day 24: You rate it a 3 (difficult). EF becomes 2.6 + (0.1 - 2 × 0.14) = 2.42. The card is reviewed sooner since the EF decreased.

Why Spaced Repetition Matters

Spaced repetition is not just another study technique — it's backed by over a century of cognitive science research, starting with Hermann Ebbinghaus's discovery of the forgetting curve in 1885. Here's why SM-2 is so powerful:

  • Fights the Forgetting Curve: Without review, we forget approximately 70% of new information within 24 hours. SM-2 schedules reviews at the precise moment your memory begins to fade.
  • Maximizes Study Efficiency: By focusing on cards you're about to forget, you spend zero time reviewing things you already know well. Studies show spaced repetition can reduce study time by up to 50%.
  • Builds Long-term Memory: Each successful review strengthens the neural pathways associated with that knowledge, moving it from short-term to long-term memory.
  • Adapts to You: The easiness factor personalizes the schedule for every card. Medical terminology that's hard for you gets reviewed more often than vocabulary you find easy.

"Spaced repetition is the most powerful learning technique currently known to cognitive science." — Gwern Branwen

SM-2 in LearnShards

LearnShards implements the SM-2 algorithm at its core, enhanced with modern optimizations for a seamless learning experience:

  • Smart Scheduling: Each flashcard tracks its own easiness factor, repetition count, and next review date. The algorithm ensures you see the right card at the right time.
  • Multiple Card Types: Whether you're using standard flashcards, cloze deletions, or multiple choice — SM-2 adapts to every format.
  • Progress Tracking: Visual statistics show your learning progress, streak data, and mastery levels across all your decks.
  • Cross-platform Sync: Study on web or mobile — your SM-2 progress syncs seamlessly across all devices.

When you study a card in LearnShards, your quality rating is mapped to the SM-2 scale, and the algorithm calculates your next optimal review time. This means every study session is personalized and efficient.

Conclusion

The SM-2 algorithm represents a beautifully simple solution to one of learning's biggest challenges: how to remember what you study. By combining a proven mathematical model with the insights of cognitive science, it transforms flashcard study from a random guessing game into a precision-guided learning system.

Whether you're learning a new language, preparing for medical exams, or mastering any subject — SM-2 powered spaced repetition gives you a scientifically proven edge. Start using it today with LearnShards and experience the difference that intelligent scheduling makes.

Ready to Learn Smarter?

Experience the power of SM-2 spaced repetition with LearnShards. Create your free account and start mastering any subject today.