Nicholson was Kubrick's first choice for the role of Jack Torrance; other actors considered included Robert De Niro (who claims the film gave him nightmares for a month), Robin Williams, and Harrison Ford, all of whom met with Stephen King's disapproval.
In his search to find the right actor to play Danny, Kubrick sent a husband and wife team, Leon and Kersti Vitali, to Chicago, Denver, and Cincinnati to create an interview pool of 5,000 boys over a six-month period. These cities were chosen since Kubrick was looking for a boy with an accent which fell in between Jack Nicholson's and Shelley Duvall's speech patterns.
Because Danny Lloyd was so young, and since it was his first acting job, Stanley Kubrick was highly protective of the child. During the shooting of the movie, Lloyd was under the impression that the film he was making was a drama, not a horror movie. In fact, when Wendy carries Danny away while shouting at Jack in the Colorado Lounge, she is actually carrying a life-size dummy, so Lloyd would not have to be in the scene. He only realized the truth several years later, when he was shown a heavily edited version of the film. He did not see the uncut version of the film until he was seventeen, eleven years after he had made it.
Jack Nicholson suggested Scatman Crothers for the film. Crothers had a tough time on this movie, with Stanley Kubrick making him do over one hundred takes for one scene. Crothers' next film was Bronco Billy (1980), directed by Clint Eastwood, who was famous for generally only going with one take. Crothers broke down in tears of gratitude on his first scene in the film when he realized he wouldn't have to do endless take after take again.
The actresses who played the ghosts of the murdered Grady daughters, Lisa and Louise Burns, are identical twins; however, the characters in the book and film script are merely sisters, not twins.
Kubrick had sets constructed on soundstages at EMI Elstree Studios in Borehamwood, Hertfordshire, England. Some of the interior designs of the Overlook Hotel set were based on those of the Ahwahnee Hotel in Yosemite National Park. He used several stages at EMI Elstree Studios in order to make all sets available during the complete duration of production.
During production, Kubrick screened David Lynch's Eraserhead (1977) to the cast and crew, to convey the mood he wanted to achieve for the film.
The Shining was among the first half-dozen films (after the films Bound for Glory, Marathon Man, and Rocky, all released in 1976), to use the newly developed Steadicam, a stabilizing mount for a motion picture camera, which mechanically separates the operator's movement from the camera's, allowing smooth tracking shots while the operator is moving over an uneven surface. The inventor of the Steadicam, Garrett Brown, was heavily involved with the production of The Shining.
According to Shelley Duvall, the infamous "Here's Johnny!" scene took three days to film and the use of sixty doors. As he lived in England, Stanley Kubrick was not at all familiar with the "Heeeeere's Johnny" line (from The Tonight Show Starring Johnny Carson (1962)) that Jack Nicholson improvised. He very nearly didn't use it.
The Shining had a prolonged and arduous production period, often with very long workdays. Principal photography took over a year to complete, due to Kubrick's highly methodical nature. Actress Shelley Duvall did not get along with Kubrick, frequently arguing with him on set about lines in the script, her acting techniques and numerous other things. Duvall eventually became so overwhelmed by the stress of her role that she became physically ill for months.
Jack Nicholson and Shelley Duvall have expressed open resentment against the reception of this film, feeling that critics and audiences credited Stanley Kubrick solely for the film's success without considering the efforts of the actors, crew, or the strength of Stephen King's underlying material. Nicholson and Duvall have said that the film was one of the hardest of their careers; in fact, Nicholson considers Duvall's performance the most difficult role he's ever seen an actress take on. Duvall also considers her performance the hardest of her life.
Upon their arrival at Elstree Studios, Wendy Carlos and Rachel Elkind were shown the first version of the film by Kubrick: "The film was a little on the long side. There were great gobs of scenes that never made it to the film. There was a whole strange and mystical scene in which Jack Nicholson discovers objects that have been arranged in his working space in the ballroom with arrows and things. He walks down and thinks he hears a voice and a ghost throws a ball back to him. None of that made it to the final film. We scored a lot of those. We didn't know what was going to be used for sure". After having something similar happen to her on Clockwork Orange, Carlos has said that she was so disillusioned by Kubrick's actions that she vowed never to work with him again.
James Mason can be seen visiting the set of Stanley Kubrick's The Shining (1980) in Making 'The Shining' (1980). Stanley Kubrick did not usually allow visitors to his set, but made an exception for Mason, who had memorably played Humbert Humbert in Lolita (1962).
Saul Bass reportedly produced around three hundred versions of the film's poster before Stanley Kubrick was satisfied.
After its premiere and a week into the general run (with a running time of 146 minutes), Kubrick cut a scene at the end that took place in a hospital. The scene shows Wendy in a bed talking with Mr. Ullman who explains that Jack's body could not be found; he then gives Danny a yellow tennis ball, presumably the same one that Jack was throwing around the hotel. This scene was subsequently physically cut out of prints by projectionists and sent back to the studio by order of Warner Bros., the film's distributor. This cut the film's running time to 144 minutes.
For the international versions of the film, Kubrick shot different takes of Wendy reading the typewriter pages in different languages. For each language, a suitable idiom was used: German (Was du heute kannst besorgen, das verschiebe nicht auf morgen“ "Never put off till tomorrow what may be done today"), Italian (Il mattino ha l'oro in bocca “ "The morning has gold in its mouth"), French (Un Tiens vaut mieux que deux Tu l'auras“ "One 'here you go' is worth more than two 'you'll have it'", the equivalent of "A bird in the hand is worth two in the bush"), Spanish (No por mucho madrugar amanece más temprano“ "No matter how early you get up, you can't make the sun rise any sooner.") These alternate shots were not included with the DVD release, where only the English phrase "all work and no play makes Jack a dull boy" was used.
The Shining was eventually re-adapted as a 1997 miniseries that followed Stephen King's book more closely, because of his dissatisfaction with Stanley Kubrick's adaptation. However, Kubrick owned the rights to the 1980 adaptation, so in order for King to get the right to re-adapt his own book into the miniseries, Kubrick required that he sign a legally-binding contract that forced King to no longer be able to bring up frequent public criticism of Kubrick's film, save for the sole commentary that he was disappointed with Jack Nicholson's portrayal of Jack Torrance, as though he had been insane before his arrival at the Overlook Hotel.