Cube is a 1997 Canadian psychological thriller/horror/science fiction movie directed by Vincenzo Natali. The film was a very successful product of the Canadian Film Centre's First Feature Project. Despite its low budget, the film achieved moderate commercial success and has acquired cult status as a niche science-fiction title.
The film opens with a man named Alderson waking up in a strange, cube-shaped room with glowing, computer circuit-like walls and six doors, one at the center of each wall, including the ceiling and floor. After recovering from his confusion, he opens two of the doors and looks into them to find rooms that differ to the one he is in only by color. He then opens and goes through a third door. He looks around and then takes a step, but is suddenly cut into large cubes. He falls apart and the rack of crosshatched wires which diced him moves into view. It folds up and retracts.
In another room, several people find each other: Quentin the cop, Worth the office worker, Holloway the doctor, Rennes the escape artist, and Leaven the college student. None of them know where they are, how they got there, or why they are there. Quentin, however, knows that there are traps, as he had looked into a room and nearly got his head cut off. The five decide to stay together and look for the way out. Rennes, who had escaped from at least seven prisons, takes the lead. He shows them how to test for traps by tossing a boot into the rooms while holding onto the laces, to trigger potential traps, figuring that the trapped room contain motion detectors. At one point he throws the boot in and comes with nothing, but figures out from smell that there are sensors rigged to detect the chemicals that come off skin. Not long later, Rennes jumps into a room tested with a boot, and is sprayed in the face with acid. The others pull him back, but he dies as the acid corrodes his face and the inside of his head. The group deduces that the floor must have pressure or thermal sensors, and decide that they need a better way to test for traps.
Quentin asks everyone about their occupations. He is a cop, Holloway is a free clinic doctor, and Worth works "in an office building, doing office building stuff". Leaven claims to do nothing but "hang out" with her friends. Quentin believes that nothing is a coincidence, that each of them has a purpose in the cube. He asks why Leaven has her glasses, while Holloway has had her jewellery taken away. Leaven reveals herself to excel at mathematics, and recalls that each room had a set of numbers engraved in the crawlspace between the doors. She theorizes that when one of those numbers is prime, the room is trapped.
Leaven's purpose becomes attempting to "crack the cube's code", and they progress through the cubes. When they find themselves in a room with trapped rooms all around and below, Quentin checks the door in the ceiling, through which falls a seventh person: Kazan. He appears to be mentally handicapped. At least two of the others see him as a burden, but Holloway decides to bring him along.
The group starts speculating about their surroundings, which leads to a conflict between Quentin and Holloway. Quentin dismisses Holloway's ideas as conspiracy theories, and Holloway thinks that Quentin is naive. They also fight over Holloway's sympathy for Kazan, whom she believes to be autistic, as Quentin is angered by him and wants to leave him behind.
Quentin enters a cube without prime numbers and narrowly avoids death. Leaven's theory that non-prime-numbered rooms are safe is shown to be incorrect, and the group rests. Worth and Quentin get into a fight, and it is revealed that Worth is one of the architects who designed the massive cube-shaped shell which contains the cube-shaped rooms. Although the others begin to distrust Worth, he is able to give them information about the dimensions of the outer cube: it is 434 feet on each side. Leaven then realizes that the numbers between the cubes represent encoded Cartesian coordinates, which show the starting location of the rooms. With this information, she can now guess at the size of the maze. She paces 14 feet, and deduces that the maze could be at most, 26 cubes by 26 cubes by 26 cubes, or 17,576 rooms. (Although not stated in the film, her calculations seem to be based on the correct assumption that the outer dimensions of the rooms are one and a half feet longer than their inner dimensions, so that each room measures 15.5 feet on an external side. One could calculate the external dimensions from the length of tunnels between rooms.) Using the encoded coordinates, Leaven claims to be able to navigate the maze, but could not do so without knowing what to use as the origin (0,0,0), and also without knowing that the rooms are moving which they discover later, or how fast the rooms are moving around (Leaven estimates this later).
As they make their way there, hunger and dehydration take hold. Each person becomes on edge and paranoid. Quentin is gradually driven mad by his conflicts with Worth and Holloway, and his annoyance with Kazan. He begins to seem cold and malicious. The group reaches a room near one face of the cube, but it is trapped with spears that come out of the walls when activated by sounds other than those of the doors opening and closing. Quentin refuses to backtrack, insisting that they can pass through this room if they are very quiet. He tries to leave Kazan behind, but Holloway and Worth get Kazan to cover his mouth and follow. As the last person, Quentin, is passing through, Kazan makes a sound. Quentin is nearly killed and is extremely angered, calling Kazan "a fucking fuck." Everyone begins to argue.
The group finally reaches the last room in that direction, but discovers that there is a gap between the door and the outer shell. They fashion a rope from their clothes, and Holloway volunteers to swing out on the rope to investigate. As she is suspended outside the room, the cube shakes and Holloway nearly falls. Quentin catches her, but then lets her fall to her death. He tells the others that she slipped.
As they sleep, Quentin carries Leaven into another room. He tells her that they will "be going to the bottom. It will be quiet there". As he tries to convince Leaven to abandon the others, he also makes sexual advances at her. Worth and Kazan wake up to save Leaven. Quentin says that he did not trust Holloway, and the group guesses that Holloway's death was not an accident. Enraged, Quentin throws Worth through a door in the floor. Worth begins to laugh hysterically at what he sees in that room: Rennes's corpse. They think that they have been going in circles, but then Worth notices that the "acid room" which killed Rennes is no longer adjacent to that room. He and Leaven realize that the rooms change locations by moving inside and outside the cube (a full cube of 26x26x26 rooms could not not shift without moving a room outside of the cube).
Leaven deduces that the sets of numbers connected to a room represent something other than its traps and initial location: permutations obtained by subtracting the digits that are claimed to be able to tell them how the rooms are moving. After some calculation, Leaven discovers that a room they have been in would be between the cubed rooms and the outer cube - a bridge to the outside world. If they had stayed in the room they started in, they would have eventually been linked to the bridge cube and thus the exit (though this means that they may not have found Kazan). Leaven also discovers that the trapped rooms are rooms in which any of the number of prime factors of the marked numbers is not a prime power. The prisoners then face the task of performing prime factorizations of three-digit numbers – a task Leaven claims that she requires a computer for to do quickly. Fortunately, Kazan appears to be an autistic savant and performs the factorizations easily. He utters the number of distinct prime factors each number has, as the room numbers are read to him.
They make their way towards the exit safely with Kazan's help. Worth devises a plan to incapacitate Quentin, who has gone completely mad. Leaven, Worth, and Kazan fight Quentin into a room below them and leave him to die. They proceed and reach the bridge cube. When they open its door, bright light pours into the room. Worth announces that he will not go, as there is nothing for him in the world outside. As he and Leaven share a moment, Quentin appears having somehow managed to catch up with the trio, and kills Leaven by stabbing her with a door handle he somehow broke off a door. He stabs Worth as well, and grabs Kazan, who is climbing out. Worth grabs Quentin's leg with the last of his strength, and Quentin is crushed in the crawlspace between the cubes when the cubes realign. Having saved Kazan, Worth lies down next to Leaven and dies.
In the final shot, Kazan is seen walking slowly into a bright light, outside which is only explained in Cube Zero
Kazan is introduced as the autistic man who seems only to be dead weight. He is immediately distrusted by Quentin and Leaven, who believe that he may be put into the cubes to slow them down or kill them off. He later becomes a pivotal part of their escape, as the only person who can perform the calculations needed for the group to move safely. In the end, he is the only prisoner who makes it out of the Cube alive.
There is speculation that Kazan and Eric Wynn (from Cube Zero) are the same person. Eric was lobotomized at the end of the film and put back into the Cube behaving and speaking in the same way as Kazan. Eric was a child prodigy, able to recognize and solve patterns with ease; at one point, he tells the others to read the codes at the doors to him so he can tell them the correct route, like how Kazan helps his group. The director's commentary for Cube Zero states: "Maybe this is Kazan or how Kazan came to be, making this much more of a prequel than a sequel."
The characters themselves reflect the prisons in their traits. Kazan (the autistic man) is a disorganized prison. Rennes (the "mentor") pioneered many of today's prison policies. Quentin (the policeman) is known for brutality. Holloway is a women's prison. Alderson is a prison where isolation is a common punishment. Leavenworth runs on a rigid set of rules (Leaven's mathematics), and the new prison is corporately owned and built (Worth, hired as an architect).
Most character's first names are either not given or not revealed until later in the film.
She also theorizes that the trapped rooms are the rooms in which at least one of these numbers is a prime number, and then later revises this to the theory that the trapped rooms are the rooms where the number of prime factors of any of the three coordinates are not a prime power. For instance, the first trapped room they encounter since discovering this is one where the number of prime factors of one of the marked numbers is one, while any room where the number of prime factors of the marked numbers consist of 2, 3, 4, or 5, or any prime power, are safe. This is also why the first theory worked for them up to a point, because a room with a prime number does mark a trapped room, because the number of prime factors of a prime is one, which is not a prime power, but it is not the only thing which marks the room. The number of prime factors could be any other non-prime-power number.
This may all be possible, but this is not enough to allow them to navigate. Leaven has no way to know which of the eight corners is the origin, the co-ordinate [1,1,1] (it could not be 0,0,0 because the maximum co-ordinate is 26, where it would be 25 if the origin were 0,0,0 because that would count as a room). In addition, she could not navigate to begin with because they later find the rooms are moving around which they did not know at start. Later, they claim to know what pattern they are moving in based on subtracting the digits rather than adding, and Leaven estimates how fast the rooms are moving based on having heard the cubes shift.
There is also one "bridge", a 17,577th room which begins outside the cube and moves its way through it, which they finally reach but again could not do so without knowing the origin. Kazaan finally enters it, which leads him to whatever lies outside. It is only explained later in Cube Zero what lies outside.
Another partial "cube" was made for shots from a different room.
There was only one working door which could support the weight of the actors.
It was intended that there would be six different colours of rooms to match the recurring theme of six throughout the movie - five sets of gel panels plus pure white. However, the budget did not stretch to the sixth gel panel and so there are only five different colours of room in the movie.