I heard that Stephen King based some of his work on Lovecraft, who based some of his work on E. A. Poe.
Does anyone know which works of King's were based on H. P. Lovecraft?
A lot of this is answered by Wikipedia. For instance (according to his autobiography Danse Macabre), Lovecraftian themes (such as the Necronomicon or characters such as Yog-Sothoth) occur by name in King books such as Gramma, ‘Salem’s Lot, I Know What You Need. Furthermore, It is quite obviously influenced by Lovecraft.
Cthulhu mythos in popular culture lists more Stephen King works that are based in the Lovecraftian Cthulhu setting.
The short story "Jerusalem's Lot" in the collection Night Shift by Stephen King, is very Lovecraftian in tone and inspiration. From the cursed grimoire to the to the climactic monster burrowing up through the church floor, it could have been written by HPL himself.