They are closely related, but spacing effect is the broader idea and lag effect is about how much spacing you use.

Spacing effect:
Learning is better when repetitions are spread out rather than crammed together.

Example:
Study today → review tomorrow → review next week
is usually better than studying the same material three times in one sitting.

Lag effect:
Among spaced repetitions, the length of the gap between reviews matters. A longer gap can often improve long-term retention more than a very short gap, as long as the gap is not so long that retrieval completely fails.

Example:

  • Review after 10 minutes
  • Review after 1 day
  • Review after 1 week

The later reviews generally require more retrieval effort, which can strengthen memory more.

So the easiest way to remember it is:

Spacing effect = Don’t cram; spread learning out.
Lag effect = How far apart should those repetitions be?

You can think of the lag effect as a more specific part of the spacing effect.