[RPG] Which classes are needed to have access to every spell in the PHB

dnd-5eoptimizationpartyspells

If a party wanted access to every spell in the PHB, what is the minimum number of PCs needed and which classes would those PCs need to be?

To clarify, I mean the potential to choose from all spells throughout their 20 levels, not necessarily having access to all spells at one given point in time.

  • Assume no magic items, potions, etc.
  • All PCs are level 20 and can access all spell levels available to them by RAW
  • Multiclassing is available
  • Feats from the PHB are available and may reduce the number of classes needed, for example: Spell Sniper, Ritual Caster and Magic Initiate allow PCs to choose cantrips, first level or ritual spells to use from other spell casting classes.
  • Class and racial features from the PHB may be factored in
  • Any other features included in the PHB may be factored in

Best Answer

One Bard

Thanks to the Magical Secrets class feature:

At 18th level, you have plundered magical knowledge from a wide spectrum of disciplines. Choose two spells from any classes, including this one. A spell you choose must be of a level you can cast, as shown on the Bard table, or a cantrip.

An 18th level bard has 9th level spell slots available and they can use Magical Secrets to choose spells and cantrips from any class spell list, so they can potentially gain knowledge of any spell that exists in the game (though of course they will only actually know a handful of non-bard spells in the specific case).