Gofraid mac Arailt (died 989), in Old Norse Guðrøðr Haraldsson [ˈɡuðˌrøðz̠ ˈhɑrˌɑldsˌson], was a Scandinavian or Norse-Gael king.
Gofraid and Maccus are usually assumed to be members of the Uí Ímair, a kin group tracing its descent from Ímar (died 873), sometimes identified with the saga-character Ivar the Boneless.
An alternative proposal, advanced by Benjamin Hudson, makes Gofraid and Maccus sons of a Viking chief named Harald who was active in Normandy, but this has received little support.
Gofraid died in 989, said to be killed in Dál Riata, but whether this refers to the Glens of Antrim or perhaps to some part of the western coasts of Scotland is unclear.
The Banshenchas record that a daughter of one Gofraid named Máel Muire married Gilla Pátraic mac Donnchada, king of Osraige.