PART I — "THE OLD BUCCANEER" An old sailor, calling himself "the captain" — real name "Billy" Bones — comes to lodge at the Admiral Benbow Inn on the west English coast during the mid-1700s, paying the innkeeper's son, Jim Hawkins, a few pennies to keep a lookout for a one-legged "seafaring man." A seaman with intact legs shows up, frightening Billy — who drinks far too much rum — into a stroke, and Billy tells Jim that his former shipmates covet the contents of his sea chest. After a visit from yet another man, Billy has another stroke and dies; Jim and his mother (his father has also died just a few days before) unlock the sea chest, finding some money, a journal, and a map. The local physician, Dr. Livesey, deduces that the map is of an island where a deceased pirate — Captain Flint — buried a vast treasure. The district squire, Trelawney, proposes buying a ship and going after the treasure, taking Livesey as ship's doctor and Jim as cabin boy.
PART II — "THE SEA COOK" Several weeks later, Trelawney sends for Jim and Livesey and introduces them to "Long John" Silver, a one-legged Bristol tavern-keeper whom he has hired as ship's cook. (Silver enhances his outre attributes — crutch, pirate argot, etc. — with a talking parrot.) They also meet Captain Smollett, who tells them that he dislikes most of the crew or the voyage, which it seems everyone in Bristol knows is a search for treasure. After taking a few precautions, however, they set sail on Trelawny's schooner for the distant island. During the voyage the first mate, a drunkard, disappears overboard. And just before the island is sighted, Jim — concealed in an apple barrel — overhears Silver talking with two other crewmen. They are all former "gentlemen o'fortune" (pirates) in Flint's crew and have planned a mutiny. Jim alerts the captain, doctor, and squire, and they calculate that they will be seven to 19 against the mutineers and must pretend not to suspect anything until the treasure is found, when they can surprise their adversaries.
PART III — "MY SHORE ADVENTURE" But after the ship is anchored, Silver and some of the others go ashore, and two men who refuse to join the mutiny are killed — one with so loud a scream that everyone realizes there can be no more pretense. Jim has impulsively joined the shore party and covertly witnessed Silver committing one of the murders; now, in fleeing, he encounters a half-crazed Englishman, Ben Gunn, who tells him he was marooned here and can help against the mutineers in return for passage home and part of the treasure.
PART IV — "THE STOCKADE" Meanwhile Smollett, Trelawney, and Livesey, along with Trelawney's three servants and one of the other hands, Abraham Gray, abandon the ship and come ashore to occupy a stockade. The men still on the ship, led by the coxswain Israel Hands, run up the pirate flag. One of Trelawney's servants and one of the pirates are killed in the fight to reach the stockade, and the ship's gun keeps up a barrage upon them, to no effect, until dark, when Jim finds the stockade and joins them. The next morning Silver appears under a flag of truce, offering terms that the captain refuses, and revealing that another pirate has been killed in the night (by Gunn, Jim realizes, although Silver does not). At Smollett's refusal to surrender the map, Silver threatens an attack, and, within a short while, the attack on the stockade is launched.
PART V — "MY SEA ADVENTURE" After a battle, the surviving mutineers retreat, having lost six men, but two more of the captain's group have been killed and Smollett himself is badly wounded. When Livesey leaves in search of Gunn, Jim runs away without permission and finds Gunn's homemade coracle. After dark, he goes out and cuts the ship adrift. The two pirates on board, Hands and O'Brien, interrupt their drunken quarrel to run on deck, but the ship – with Jim's boat in her wake – is swept out to sea on the ebb tide. Exhausted, Jim falls asleep in the boat and wakens the next morning, bobbing along on the west coast of the island, carried by a northerly current. Eventually, he encounters the ship, which seems deserted, but getting on board, he finds O'Brien dead and Hands badly wounded. He and Hands agree that they will beach the ship at an inlet on the northern coast of the island. As the ship is finally beached, Hands attempts to kill Jim, but is himself killed in the attempt. Then, after securing the ship as well as he can, Jim goes back ashore and heads for the stockade. Once there, in utter darkness, he enters the blockhouse — to be greeted by Silver and the remaining five mutineers, who have somehow taken over the stockade in his absence.
PART VI — "CAPTAIN SILVER" Silver and the others argue about whether to kill Jim, and Silver talks them down. He tells Jim that, when everyone found the ship was gone, the captain's party agreed to a treaty whereby they gave up the stockade and the map. In the morning the doctor arrives to treat the wounded and sick pirates, and tells Silver to look out for trouble when they find the site of the treasure. After he leaves, Silver and the others set out with the map, taking Jim along as hostage. They encounter a skeleton, arms apparently oriented toward the treasure, which seriously unnerves the party. Eventually they find the treasure cache — empty. Two of the pirates charge at Silver and Jim, but are shot down by Livesey, Gray, and Gunn, from ambush. The other three run away, and Livesey explains that Gunn has long ago found the treasure and taken it to his cave.
In the next few days they load the treasure onto the ship, abandon the three remaining mutineers (with supplies and ammunition) and sail away. At their first port, where they will sign on more crew, Silver steals a bag of money and escapes. The rest sail back to Bristol and divide up the treasure. Jim says there is more left on the island, but he for one will not undertake another voyage to recover it.