"Bart Sells His Soul" was written by Greg Daniels, who was inspired by an experience from his youth where he had purchased a bully's soul. Director Wesley Archer and his team of animators visited Chili's for examples to use in Moe's family restaurant. The episode includes cultural references to the 1968 song "In-A-Gadda-Da-Vida" by Iron Butterfly, which is played during the show, to Chilean poet Pablo Neruda, and a parody of Judy Blume's 1970 book "Are You There God? It's Me, Margaret."