Glossary · Memory Science

What Is the SM-2 Algorithm?

Definition

SM-2 Algorithm: a spaced repetition algorithm created by Piotr Woźniak in 1987 for SuperMemo, which schedules each flashcard using a per-card ease factor that grows or shrinks depending on how well you recall it.

Also known as: SuperMemo 2, SM2, SuperMemo algorithm

SM-2 is a spaced repetition algorithm that decides when you should next review each flashcard. After every review you grade your answer, and the algorithm multiplies the card's previous interval by an ease factor that reflects how hard the card is for you. Created by Piotr Woźniak in 1987, it is one of the most widely copied algorithms in learning software and the basis of Anki's classic scheduler.

Origin

Woźniak, then a student in Poznań, Poland, had been experimenting with spaced review on paper since the mid-1980s. In 1987 he implemented SM-2 in the first computer version of SuperMemo. He published the algorithm's description, and its simplicity made it easy to reimplement. Later SuperMemo versions use much more complex algorithms (SM-17, SM-18), but SM-2 lived on in open-source tools including Anki and Mnemosyne.

How SM-2 works: the formula

After each review you rate recall quality q from 0 to 5 (5 = perfect, 3 = correct with serious difficulty, 0–2 = incorrect).

Intervals (in days), where n is the number of successful reviews in a row:

  • I(1) = 1
  • I(2) = 6
  • I(n) = I(n−1) × EF, for n > 2

Ease factor update after each review:

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

  • Every card starts with EF = 2.5. EF never goes below 1.3.
  • q = 5 adds 0.1; q = 4 leaves EF unchanged; q = 3 subtracts 0.14.
  • If q < 3, the card's repetitions restart from I(1), with EF left unchanged.
  • Within a day's session, cards graded below 4 are repeated until they reach at least 4.

A worked vocabulary example

You add the card ambivalent (having mixed feelings).

ReviewGradeEF afterNext interval
Day 0 (first review)42.51 day
Day 152.66 days
Day 732.466 × 2.46 ≈ 15 days
Day 2242.4615 × 2.46 ≈ 37 days
Day 592 (forgot)2.46Restart: 1 day

The lapse resets the schedule but keeps the ease factor, so once you relearn the word its intervals grow again quickly.

You can generate a schedule like this with the spaced repetition scheduler.

Why it matters for learning words

SM-2 made spaced repetition personal. Unlike the Leitner system, where every card in a box shares one interval, SM-2 lets an easy word like happy race ahead to monthly reviews while a slippery word like ambivalent stays on shorter intervals. That means far fewer wasted reviews in a deck of thousands of words.

Known weaknesses

  • "Ease hell." Repeated low grades push EF down toward 1.3, and in implementations like Anki's there is little mechanism to raise it again, so hard cards can get stuck on short intervals.
  • Fixed assumptions. The constants (2.5, 1, 6, 1.3) are not fitted to your memory.
  • Delays are ignored. Reviewing a card late, and still remembering it, is not credited as evidence of a stronger memory.
  • Six grades are hard to use consistently. Most apps reduce them to three or four buttons.

These issues motivated newer algorithms, most notably FSRS, which models memory stability directly from your review history.

SM-2 and Wordie

Wordie does not implement SM-2. Its recall mode uses a simpler Forgot / Hard / Easy rating that updates a 0–100% mastery score per word, and its main review mechanism is highlighting saved words when they reappear on web pages. If you want strict SM-2 scheduling, export your words to CSV and import them into Anki; see how to import words into Anki.

Sources: Woźniak, P. A. (1990). Optimization of learning (master's thesis, Poznań University of Technology), describing the SM-2 algorithm developed in 1987.

Frequently asked questions

Who created SM-2?

Piotr Woźniak, a Polish researcher, created SM-2 in 1987 for SuperMemo, the program he developed while studying in Poznań.

Does Anki use SM-2?

Anki's classic scheduler is based on SM-2 with modifications, such as four answer buttons and learning steps. Since version 23.10, Anki also offers FSRS as an alternative scheduler.

What is the ease factor in SM-2?

A number assigned to each card, starting at 2.5, that multiplies the previous interval to get the next one. Easy answers raise it slightly; hard ones lower it, with a minimum of 1.3.

Is SM-2 outdated?

SuperMemo itself has moved far beyond it, and FSRS predicts memory better in benchmarks. SM-2 is still simple, transparent and effective enough for many learners.

Related terms

Articles about SM-2 Algorithm

Build your vocabulary while you browse

Wordie saves any word in one click, highlights it on every page you read, and quizzes you with active recall. Free, private, no account.

Add Wordie to Chrome — it's free