Science
What Is FSRS? The Algorithm Behind Modern Spaced Repetition
FSRS schedules each review just before you forget a card. How difficulty, stability and retention work, and what sets it apart from SM-2.
The BrainCell team6 min read
FSRS (Free Spaced Repetition Scheduler) is a freely available algorithm that calculates when you should review a flashcard. For each card, it estimates how likely you are to still remember it and schedules the next review just before you would forget it. That way you learn more with fewer reviews, because you don't waste time on cards you already know well.
In short
- FSRS is an open-source spaced repetition algorithm developed by Jarrett Ye and the open-spaced-repetition community.
- It describes your memory of each card with three values: difficulty, stability and retrievability.
- You decide how well you want to know your cards (for example 90%). FSRS sets the intervals so you reach that goal.
- Compared to the older SM-2, FSRS adapts better to you and to each individual card.
Why you need an algorithm at all
Back in 1885, Hermann Ebbinghaus showed that we don't forget what we learn at a steady rate. A lot is lost shortly after learning, and then the curve levels off. This forgetting curve is why spaced review works so well: each review at the right time makes the memory more stable, and the curve drops more slowly afterward.
The problem is the right time. Review too early and you waste time. Review too late and you have already forgotten the card and almost start over. With ten cards, you can keep track in your head. With several hundred cards, you need a system that does the math for each card separately. That is exactly what a scheduling algorithm does.
How FSRS works: the DSR model
FSRS is built on the so-called DSR model. The three letters stand for three properties that FSRS estimates for each of your cards.
Difficulty: How hard is the card for you?
Difficulty describes how easily a card can be consolidated. Some content sticks after two passes, other content takes many attempts. FSRS adjusts the difficulty after every rating. Cards you often forget count as harder, and their intervals grow more slowly.
Stability: How long does the memory last?
Roughly speaking, stability is the time it takes for your memory to drop to a certain level. A card with high stability can sit for a long time. Every successful review increases stability. Here's the interesting part: a review does more when the memory has already faded a little. This fits what Robert Bjork (1994) calls “desirable difficulties.” A bit of effort when remembering strengthens your memory.
Retrievability: How likely are you to know it right now?
Retrievability is the estimated chance that you know the answer at this moment. Right after a review it's high, and then it drops along a forgetting curve. How fast it drops depends on stability.
Desired retention
The most important setting in FSRS is desired retention. It sets the retrievability at which a card becomes due again. At 90%, FSRS schedules the review roughly when the chance that you still know the card has dropped to 90%.
This leads to a simple relationship:
| Retention | Intervals | Daily workload | Good fit for |
|---|---|---|---|
| 80% | longer | lower | general knowledge, casual language learning |
| 90% | medium | medium | everyday studying in college and school |
| 95% | shorter | higher | the time right before an exam |
So higher isn't automatically better. Going from 90 to 95% costs noticeably more reviews. For most learners, 90% is a good middle ground.
FSRS compared to SM-2
Many flashcard apps still use SM-2. Piotr Woźniak developed this algorithm for SuperMemo in 1987. SM-2 was a big step forward and is still usable today. But it works with fixed rules: each card has an “ease” factor, and the next interval is roughly the last interval times that factor.
FSRS takes a different approach. It explicitly models your memory and has parameters that can be trained on real review data. Jarrett Ye, Jingyong Su and Yilong Cao presented the foundations at the KDD conference in 2022, in the paper “A Stochastic Shortest Path Algorithm for Optimizing Spaced Repetition Scheduling.” Since then, the open-spaced-repetition community has been developing FSRS in the open. The current version is called FSRS-6. You can find the code and documentation at github.com/open-spaced-repetition.
- SM-2: fixed formula, intervals grow by a factor, little adjustment to how fast you actually forget.
- FSRS: memory model with difficulty, stability and retrievability, adjustable retention, parameters can be fitted to data.
How to get the most out of FSRS
A good algorithm takes the planning off your hands. Still, a few habits help it work well.
- Rate honestly. FSRS learns from your answers. If you mark a card as known even though you hesitated and guessed, the algorithm will schedule intervals that are too long.
- Study regularly. Short daily sessions are better than one long block on the weekend. If you skip a few days, that's no big deal. FSRS works with the time that has actually passed.
- Choose your retention on purpose. Start with 90%. If the daily workload gets too big, go down to 80%. Before an exam, you can raise it to 95%.
- Write good cards. No algorithm can save a card that asks for five facts at once. One question, one answer.
- Trust the intervals. It feels strange not to see a card for three weeks. Those very intervals are what make studying efficient.
How BrainCell does it
BrainCell schedules every review with FSRS-6. Desired retention is set to 90% by default, and you can choose 80, 90 or 95%. When you add an exam, BrainCell automatically raises the rate to 95% before the date. The full FSRS algorithm is included in the free version, with no limit on the number of cards.
FSRS FAQ
Is FSRS better than SM-2?
FSRS models forgetting more accurately, because it estimates difficulty, stability and retrievability for each card and can be fitted to data. SM-2 uses a fixed formula. In practice, FSRS usually means intervals that fit your cards better.
Do I have to configure FSRS myself?
No. The only setting you should know about is desired retention. The algorithm calculates everything else from your ratings.
What happens if I don't study for a few days?
FSRS takes the time that has actually passed into account. Overdue cards are re-estimated. You don't have to catch up on everything to get back in. Just start with your next short session.
Sources
- Ebbinghaus, H. (1885). Über das Gedächtnis. Untersuchungen zur experimentellen Psychologie. Leipzig: Duncker & Humblot. psychclassics.yorku.ca/Ebbinghaus/index.htm
- Bjork, R. A. (1994). Memory and metamemory considerations in the training of human beings. In J. Metcalfe & A. Shimamura (Eds.), Metacognition: Knowing about knowing. MIT Press.
- Woźniak, P. (1987). SM-2 algorithm, developed for the SuperMemo learning program. super-memory.com/english/ol/sm2.htm
- Ye, J., Su, J. & Cao, Y. (2022). A Stochastic Shortest Path Algorithm for Optimizing Spaced Repetition Scheduling. Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD). doi.org/10.1145/3534678.3539081
- FSRS
- Spaced Repetition
- Algorithm
- Memory
