The movie had an unconventional shooting schedule. Tom Hardy filmed his part over six nights, with three cameras rolling, shooting the movie twice per night as it was filmed in a single take. The other actors were in a hotel room, speaking on the phone with Hardy, who was on location. After the actors wrapped their parts, there were an additional two nights of pickup shots.
The BMW used in the film is installed with a "low fuel warning" alert and would make a noise whenever the car was running out of petrol. The noise disrupted Tom Hardy's performance during takes, but director Steven Knight kept the actor's frustrated reactions in the movie and substituted the car's noise with "you have a call waiting" instead.
Tom Hardy agreed to star in this film in exchange for Steven Knight being the writer for Hardy's miniseries Taboo (2017).
According to producer Guy Heeley, Tom Hardy was the only actor Steven Knight wanted to star in Locke, because he is the only actor who could sustain the audience's interest while driving in a car for 80 minutes.