The Slim Shady LP was recorded at Studio 8 at 430 8 Mile Road in Ferndale, Michigan. Eminem, who had idolized Dr. Dre since listening to his group N.W.A as a teenager, was nervous to work with him on the album: "I didn't want to be starstruck or kiss his ass too much ... I'm just a little white boy from Detroit. I had never seen stars, let alone Dr. Dre." However, Eminem became more comfortable working with Dr. Dre after a series of highly productive recording sessions. The recording process generally began with Dr. Dre creating a beat and Eminem using the tracks as a template for his freestyle raps; "Every beat he would make, I had a rhyme for", Eminem recalled. He later said: "Every time I sat down with a pen, everything was just like 'fuck you, fuck this, fuck them, fuck that, fuck the world, fuck what everybody thinks. Fuck them.' " On the first day of recording, Eminem and Dr. Dre finished "My Name Is" in an hour. Three other songs, including "Role Model", were also recorded that day.
"'97 Bonnie & Clyde", which was formerly featured on the Slim Shady EP as "Just the Two of Us", was re-recorded for The Slim Shady LP to feature his daughter Hailie's vocals. Because the song focuses on disposing of his girlfriend's corpse, Eminem was not comfortable with explaining the situation to Kim Scott, and instead told her that he would be taking Hailie to Chuck E. Cheese's. He explained, "When she found out I used our daughter to write a song about killing her, she fucking blew. We had just got back together for a couple of weeks. Then I played her the song and she bugged the fuck out." Eminem also said, "When [Hailie] gets old enough, I'm going to explain it to her. I'll let her know that Mommy and Daddy weren't getting along at the time. None of it was to be taken too literally, although at the time I wanted to fucking do it." Eminem asked Marilyn Manson to guest appear on the song, but the singer declined because he felt that the song was "too misogynistic". The song "Guilty Conscience" contains a humorous reference to an occasion in which Dr. Dre assaulted Dee Barnes. Having only known Dr. Dre for a few days, Eminem was anxious about how he would react to such a line, and to his relief, Dr. Dre "fell out of his chair laughing" upon hearing the lyric.
"Ken Kaniff", a skit involving a prank call to Eminem, featured fellow Detroit rapper Aristotle. After a falling out between the two in the wake of Eminem's breakthrough success, Eminem instead played Ken Kaniff on skits on future albums. Ken Kaniff would end up appearing in more Eminem albums over the course of his career and was last heard in The Death of Slim Shady (Coup de Grâce) (2024). Another skit, "Bitch", is an answering machine message in which Zoe Winkler, daughter of actor Henry Winkler, tells a friend that she was disgusted by Eminem's music. He met and had dinner with her in order to get permission to use the recording on the album. During the mixing process of The Slim Shady LP, at the same time, Kid Rock was recording his fourth studio album, Devil Without a Cause (1998); being friends with Kid Rock, Eminem asked Kid Rock to record scratching for Eminem's song "My Fault"; in return, Eminem delivered a guest rap verse on Kid Rock's song "Fuck Off" for Devil Without a Cause.
Production
The album's production was handled primarily by Dr. Dre, the Bass Brothers, and Eminem. The beats have been compared to West Coast hip-hop and G-funk musical styles. Kyle Anderson of MTV wrote that "The beats are full of bass-heavy hallucinations and create huge, scary sandboxes that allow Em to play." According to the staff at IGN, "'97 Bonnie & Clyde" is backed by the "lulling serenity of a super silky groove". "Cum on Everybody"; which features guest vocals from American singer Dina Rae contains an upbeat dance rhythm, while "My Name Is", which is built around a sample from British musician Labi Siffre's "I Got The...", features a prominent bassline and psychedelic-style …