# How does spell upgrades work? [duplicate]

This question already has an answer here:

This might be a noob question but one just needs to be on the required character level to get the "upgrades" on spells or on the required class levels?

As in eldritch blast upgrades at 5th level character or 5th level warlock?