The 29-year-old, the youngest entrant in the Golden Globe race, had waited two days for the Hong Kong-registered Tian Fu to arrive after sending a distress signal from 2,000 nautical miles west of Cape Horn.
The signal was picked up by Falmouth Coastguard in southwest England, with the alert passed on to race control and the Chilean maritime search and rescue authorities.
"ON THE SHIP!!!," she said on her Twitter feed after the rescue.
Tokyo 2020 - Giles Scott calls time on Olympic sailing career following second gold medal
Race organisers had earlier reported plans to lift the sailor from the deck of her yacht DHL Starlight using one of the cranes on the 38,000 tonne ship, which was heading to Argentina from China when diverted.
They said conditions had moderated, with three- to four-metre swells.
Goodall, who was in fourth place at the time of the incident, had been knocked out when the boat rolled end over end in the dismasting.
The Golden Globe was marking the 50th anniversary of the race, won in 1969 by Britain's Robin Knox-Johnston who became the first person to sail solo non-stop around the world.
Tokyo 2020 - Eilidh McIntyre on sharing Olympic gold with 'inspirational' and 'humble' Hannah Mills
Tokyo 2020 - Hannah Mills on her second Olympic gold medal