Charlie Bucket (Freddie Highmore) is a kind and loving boy living in poverty with his parents (Noah Taylor and Helena Bonham Carter) and four bedridden grandparents. They all rely on his father for income, employed at a toothpaste factory, responsible for putting the caps on the tubes. Down the street is Willy Wonka’s (Johnny Depp) chocolate factory, which reopened after industrial espionage forced him into seclusion and to sack his employees. Charlie’s Grandpa Joe (David Kelly) worked for Wonka before the termination.
Wonka announces a contest whereby children that find five Golden Tickets hidden in Wonka bars will be given a tour of the factory and one a chance to be presented with an unknown grand prize. Four tickets are quickly found: the greedy and gluttonous Augustus Gloop (Philip Wiegratz) from Düsseldorf; the spoiled and rotten Veruca Salt (Julia Winter) from Buckinghamshire; the competitive and boastful Violet Beauregarde (AnnaSophia Robb) from Atlanta; and the arrogant and aggressive Mike Teavee (Jordan Fry) from Denver. Charlie hopes to find a ticket but chances are small as money is tight so the best has to be made of his annual birthday present of one Wonka bar and a bar bought by Grandpa Joe’s money. All hope is crushed when the last ticket is claimed in Russia. Charlie, on finding some money in the street, just intends to enjoy one chocolate bar when news breaks that the last ticket was fake. Charlie finds the bar he just bought has the last Golden Ticket. Bystanders attempt to separate him from it, only for the shopkeeper (Oscar James) to see that he keeps the ticket and gets back home with it.
Grandpa Joe offers to accompany Charlie on the tour, but Charlie explains how he was offered money for the ticket and intends to sell it. Grandpa George (David Morris) reminds Charlie that money is far more common than the tickets, and convinces Charlie to keep it. The visitors find Wonka to be peculiar, lonely and acting odd at the mention of ”parents”. The tour shows how fantastical the factory operates under the efforts of the short humans called Oompa-Loompas. The other four children succumb to temptation, and end up being caught in the factory workings and have to be safely recovered by the Oompa-Loompas, albeit in worse shape than at the start of the tour: Augustus falls into a river of chocolate and has been sucked up by a pipe before being rescued from the fudge processing center; Violet expands into an oversized blueberry when she tries an experimental piece of chewing gum; Veruca is thrown away as a ”bad nut” by trained squirrels; and Mike is shrunk down to a few inches in height after being the first person transported by Wonka’s new television advertising invention.
Charlie is congratulated as the only remaining child and the winner of the grand prize, Wonka’s heir to the factory. Unfortunately, Wonka stipulates that Charlie’s family has to stay behind ergo Charlie rejects the offer. Charlie learns that Wonka had a troubled past with his father, Wilbur Wonka (Christopher Lee); a dentist. Willy was forbidden from eating candy of any type or quantity and had torture device-like braces affixed to his teeth. But once Willy got a taste, he wanted to become a confectioner, against his father’s wishes and he left home to follow his dream. Wonka later returned to find his father and home completely gone. Wonka’s candies are selling poorly and he comes to associate his unhappiness with the sorry financial state of his company, so he makes an effort to find Charlie who helps him locate Wilbur. When they visit, it appears that despite his strict avoidance of candy, the dentist has followed Willy’s success and they reconcile. Wonka allows Charlie’s family to move into the factory while he and Charlie plan new product lines to produce.