The Enchanter Merlin
, by Howard Pyle
, from The Story of King Arthur and His Knights
In medieval chivalric romance, the wizard often appears as a wise old man and acts as a mentor, with Merlin from the King Arthur stories being a prime example.:195 Wizards such as Gandalf in The Lord of the Rings and Albus Dumbledore from Harry Potter are also featured as mentors, and Merlin remains prominent as both an educative force and mentor in modern works of Arthuriana.:637 Other magicians, such as Saruman, from The Lord of the Rings or Lord Voldemort from "Harry Potter" can appear as hostile villains.:193 Villainous sorcerers were so crucial to pulp fantasy that the genre in which they appeared was dubbed sword and sorcery.:885
Ursula K. Le Guin's A Wizard of Earthsea explored the question of how wizards learned their art, introducing to modern fantasy the role of the wizard as protagonist. This theme has been further developed in modern fantasy, often leading to wizards as heroes on their own quests. Such heroes may have their own mentor, a wizard as well.:637
Wizards can be cast similarly to the absent-minded professor: being foolish and prone to misconjuring. They can also be capable of great magic, both good or evil.:140–141 Even comical wizards are often capable of great feats, such as those of Miracle Max in The Princess Bride; although he is a washed-up wizard fired by the villain, he saves the dying hero.
Wizards are often depicted as old, white-haired, and with long white beards majestic enough to occasionally host lurking woodland creatures. This depiction predates the modern fantasy genre, being derived from the traditional image of wizards such as Merlin.
In the Dragonlance campaign setting of the Dungeons & Dragons role-playing game, wizards show their moral alignment by their robes.
Terry Pratchett described robes as a magician's way of establishing to those they meet that they are capable of practicing magic.
To introduce conflict, writers of fantasy fiction often place limits on the magical abilities of wizards to prevent them from solving problems too easily.:616 In Larry Niven's The Magic Goes Away, once an area's mana is exhausted, no one can use magic.:942 A common limit used in role-playing games is that a person can only cast a specific number of spells in a day.:385
Magic can also require various sacrifices or the use of certain materials, such as gemstones, blood, or a live sacrifice. Even if the magician lacks scruples, obtaining the material may be difficult. A. K. Moonfire combines these limits in his book The Aubrey Stalking Portal. The magician expends power to fuel his spells, but does not replenish that power naturally; therefore, he must make sacrifices to generate more magical power.
The extent of a wizard's knowledge is limited to which spells a wizard knows and can cast. Magic may also be limited by its danger; if a powerful spell can cause grave harm if miscast, wizards are likely to be wary of using it.:142 Other forms of magic are limited by consequences that, while not inherently dangerous, are at least undesirable. In A Wizard of Earthsea, every act of magic distorts the equilibrium of the world, which in turn has far-reaching consequences that can affect the entire world and everything in it. As a result, competent wizards do not use their magic frivolously.
In Terry Pratchett's Discworld series, the Law of Conservation of Reality is a principle imposed by forces wanting wizards to not destroy the world, and works to limit how much power it is humanly possible to wield. Whatever your means, the effort put into reaching the ends stays the same. For example, when the wizards of Unseen University are chasing the hapless wizard Rincewind in the forest of Skund, the wizards send out search teams to go and find him on foot. The archchancellor beats them to it by using a powerful spell from his own office, and while he gets there first by clever use of his spell, he has used no less effort than the others.