In the Jack and the Beanstalk fairy tale, Jack traded his cow for five magic beans. He is sent to sell the family cow because Jack and his mother are poor, but a mysterious stranger offers beans instead of money and claims they are magical.
Jack's mother is furious when he returns without cash and throws the beans away. During the night, however, the beans grow into an enormous beanstalk reaching into the clouds. Jack climbs it and discovers the giant's castle, beginning the dangerous adventure that gives the tale its familiar shape.
The best-known English version was published by Joseph Jacobs in 1890, although the story existed in earlier forms, including “The Story of Jack Spriggins and the Enchanted Bean” in 1807. Details vary between retellings: the cow may be named Milky-White, and the seller may be a stranger or a peddler. Some adaptations change the number of beans, but the classic trade is a cow for magic beans.