A magnitude 7.4 earthquake off Alaska's far western Aleutians triggered a tsunami warning on Sunday evening that was cancelled within two hours. The official advice for boat owners is not what most sailors would guess.

Sunday evening in the western Aleutians is not, at the best of times, a place for a quiet drink in the cockpit. At about 18:07 local time on 29 November, which was just after 03:00 GMT on Monday here, a magnitude 7.4 earthquake struck in the Bering Sea about 183 miles east-south-east of Attu Island, one of the westernmost points of the United States. The US Geological Survey put it at a shallow depth of roughly six miles, and the Alaska Earthquake Center says the shaking lasted 45 seconds at its nearest seismic station, strong enough to overwhelm the closest sensors.

Seven minutes later, at 18:14, the National Tsunami Warning Center in Palmer, Alaska, issued a tsunami warning for the Aleutian Islands from Samalga Pass westward to Attu, including the Pribilof Islands. By about 19:15 it had been downgraded to an advisory, and at 20:00 the centre issued its fourth and final message: advisory cancelled, no destructive tsunami recorded, and no tsunami danger for the US West Coast, British Columbia or Alaska. The nearest land, uninhabited Buldir Island, lies about 65 miles north of the epicentre. A resident of Adak, some 300 miles away, told the Alaska Earthquake Center that the shaking felt endless, and that on the hilltop she drove to after the warning the wind made it feel like being on a ship at sea.

The reason the sea stayed put is down to how the fault moved. According to the Alaska Earthquake Center, this was a strike-slip quake, in which the two sides slide past each other sideways rather than one heaving up the sea floor, so it could not produce the huge uplift that drives a tectonic tsunami. It compares the event with the magnitude 7.9 quake off Kodiak in January 2018, which also slipped sideways and produced only a small, harmless tsunami. But it adds a warning of its own: a strike-slip quake of similar size at Palu in Indonesia in 2018 shook landslides into the sea and caused a tsunami that killed more than 4,000 people. Magnitude alone, in other words, tells you very little, which is why the warning goes out first and the questions get asked afterwards.

So what are you meant to do if you are aboard when the warning comes? Here the official answer will surprise anyone raised on the idea of putting to sea in a blow. Guidance from the US National Tsunami Hazard Mitigation Program, drawn up with the US Coast Guard and published by the National Weather Service, says plainly that it is not recommended that boaters try to take vessels offshore before or during a tsunami. If a big tsunami has been generated close by, it may arrive in 10 to 15 minutes. If you are tied up at the dock, do not try to take the boat out: leave it, and get to high ground on foot. In the guidance's words, you do not have time to save your boat and you put your life at risk if you try.

If you are already at sea, the advice flips: stay out, keep going to deep water, and do not try to come back in until the harbour master says it is safe. The magic numbers are in fathoms. For a tsunami from a distant source, the recommended minimum safe depth for boats leaving harbour in Alaska, California, Oregon and Washington is 30 fathoms, or 180 feet. For boats caught at sea by a local tsunami it is 100 fathoms, 600 feet, and in Alaska vessels should be at least half a mile from shore in every scenario. Hawaii works to 50 fathoms for both. The reasoning, set out in California's own research, is that tsunami currents in shallower water form eddies and jets that can wreck boats and pontoons, while beyond about 30 fathoms they settle into straight-line flows below the three-knot damage threshold.

Even with a distant tsunami hours away, the guidance says owners should only consider going offshore if a warning-level event is expected, if they are sure of reaching safe depth at least 30 minutes before the waves arrive, and if boat and skipper are ready to stay at sea for 12 to 24 hours or to find another undamaged harbour, bearing in mind that the weather out there may be as dangerous as the tsunami itself. Oregon's maritime advice adds the detail that sticks: head out as nearly at right angles to the shore as you can, keep clear of other boats, and point into the wind waves, because waves running against tsunami currents become greatly amplified.

None of this is likely to trouble a Solent mooring this week, but anyone with a charter booked in Hawaii, British Columbia or New Zealand next year, or a long passage across the Pacific in mind, would do well to know which side of the 30-fathom line they are on, and where the nearest high ground is from the marina gate.