The Mathematics of Magic

The Mathematics of Magic
Edd Cartier's illustration of
the story in Unknown
AuthorL. Sprague de Camp and Fletcher Pratt
IllustratorEdd Cartier
LanguageEnglish
SeriesHarold Shea
GenreFantasy
PublisherStreet & Smith
Publication date
1940
Publication placeUnited States
Media typePrint (Magazine)
Preceded byThe Roaring Trumpet 
Followed byThe Castle of Iron 

"The Mathematics of Magic" is a fantasy novella by American writers L. Sprague de Camp and Fletcher Pratt, the second story in their Harold Shea series. It was first published in the August 1940 issue of the fantasy pulp magazine Unknown. It first appeared in book form, together with the preceding novella, "The Roaring Trumpet", in the collection The Incomplete Enchanter, issued in hardcover by Henry Holt and Company in 1941, and in paperback by Pyramid Books in 1960. It has since been reprinted in various collections by numerous other publishers, including The Compleat Enchanter (1975), The Incompleat Enchanter (1979), The Complete Compleat Enchanter (1989), and The Mathematics of Magic: The Enchanter Stories of L. Sprague de Camp and Fletcher Pratt (2007). It has been translated into Dutch and Italian. In 2016, the story was shortlisted for the Retro Hugo Award for Best Novella.

The Harold Shea stories are parallel world tales in which universes where magic works coexist with our own, and in which those based on the mythologies, legends, and literary fantasies of our world and can be reached by aligning one's mind to them by a system of symbolic logic. In "The Mathematics of Magic", Shea visits his second such world, that of Edmund Spenser's epic poem The Faerie Queene.